Skip to content

Commit fb921cf

Browse files
feat: add read-only services dashboard
1 parent 22886ec commit fb921cf

7 files changed

Lines changed: 1364 additions & 2 deletions

File tree

‎docs/ULYSSES_CONTROL_PLANE_DESIGN.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,14 @@ The overview does not concatenate every terminal into one unreadable stream.
139139
It shows compact status/port/resource cards; selecting a service opens its own
140140
bounded logs and, where registered, its tmux console.
141141

142+
The first implemented UI slice is read-only and uses the existing Odysseus
143+
window manager, icon rail, sidebar, theme variables, resizing, docking, and
144+
minimize behavior. Its Overview, Services, JavaScript, and Chroma views consume
145+
only `GET /api/ulysses/topology` and
146+
`GET /api/ulysses/chroma/persistence`. No lifecycle button is rendered until
147+
the corresponding runtime has an adoption record, typed action plan, durable
148+
job runner, and rollback contract.
149+
142150
## Browser and search capabilities
143151

144152
- Camofox/Camofox MCP is the preferred general browser provider.

‎docs/ULYSSES_ROADMAP.md‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,17 @@ databases, and model endpoints.
422422

423423
Admin UI:
424424

425+
- [x] Add a native draggable/minimizable Services window to the existing
426+
Odysseus sidebar and icon rail.
427+
- [x] Add read-only Overview, Services, JavaScript, and Chroma views backed by
428+
the sanitized Ulysses APIs.
429+
- [x] Label `host`, `odysseus_agent`, and `hermes_agent` ownership explicitly;
430+
the Odysseus MCP integration form and Hermes MCP registry remain separate.
425431
- infrastructure overview and dependency graph;
426-
- a Services screen listing status, adapter, working directory, ports, health,
427-
configuration readiness, ownership/adoption state, and resource impact;
432+
- [x] A Services screen listing status, adapter, source/working root, ports,
433+
scope, ownership, dependencies, and capabilities.
434+
- [ ] Add adapter-specific health, configuration readiness, adoption detail,
435+
and resource impact to each service view;
428436
- Up, Down, Restart, Update, and terminal/log actions backed by typed adapter
429437
methods rather than arbitrary shell text;
430438
- existing-host discovery roots remain filesystem sources of truth, and

‎static/app.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import themeModule from './js/theme.js';
3838
// _envState objects), which broke server selection. Keep all cookbook imports
3939
// unversioned so this can't recur.
4040
import cookbookModule from './js/cookbook.js';
41+
import ulyssesServicesModule from './js/ulyssesServices.js';
4142
import groupModule from './js/group.js';
4243
import * as researchPanelModule from './js/research/panel.js?v=20260630researchthumb';
4344
import ttsModule from './js/tts-ai.js';
@@ -52,6 +53,7 @@ window.sessionModule = sessionModule;
5253
window.uiModule = uiModule;
5354
window.adminModule = adminModule;
5455
window.cookbookModule = cookbookModule;
56+
window.ulyssesServicesModule = ulyssesServicesModule;
5557

5658
function _isMobileChatInput() {
5759
return window.innerWidth <= 768;
@@ -170,6 +172,7 @@ function initRailHoverLabels() {
170172
'rail-archive': 'Library',
171173
'rail-memory': 'Brain',
172174
'rail-notes': 'Notes',
175+
'rail-services': 'Services',
173176
'rail-tasks': 'Tasks',
174177
'rail-theme': 'Theme',
175178
'rail-settings': 'Settings',
@@ -1178,6 +1181,7 @@ function initializeEventListeners() {
11781181
},
11791182
'/calendar': () => calendarModule && calendarModule.openCalendar(),
11801183
'/cookbook': () => document.getElementById('tool-cookbook-btn')?.click(),
1184+
'/services': () => document.getElementById('tool-services-btn')?.click(),
11811185
'/email': () => {
11821186
// Collapse the wide sidebar → icon rail (48px) so the user keeps
11831187
// navigation visible alongside the fullscreen email view.
@@ -2728,6 +2732,7 @@ function initializeEventListeners() {
27282732
'tool-library': '#tool-library-btn',
27292733
'tool-memory': '#tool-memory-btn',
27302734
'tool-notes': '#tool-notes-btn',
2735+
'tool-services': '#tool-services-btn',
27312736
'tool-tasks': '#tool-tasks-btn',
27322737
'tool-theme': '#tool-theme-btn',
27332738
'user-bar': '#user-bar-profile',
@@ -3751,6 +3756,7 @@ function startOdysseusApp() {
37513756
if (searchChatModule) {
37523757
searchChatModule.init(API_BASE);
37533758
}
3759+
ulyssesServicesModule.init(API_BASE);
37543760

37553761
// Search buttons — icon rail + sidebar
37563762
const railSearchBtn = el('rail-search-btn');

‎static/index.html‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@
152152
'/tasks':
153153
"<rect x='4' y='4' width='24' height='24' rx='3' fill='none' stroke='" + ac + "' stroke-width='2.5'/>" +
154154
"<path d='M9 16 L14 21 L23 11' fill='none' stroke='" + ac + "' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/>",
155+
'/services':
156+
"<rect x='4' y='5' width='24' height='9' rx='2' fill='none' stroke='" + ac + "' stroke-width='2.5'/>" +
157+
"<rect x='4' y='18' width='24' height='9' rx='2' fill='none' stroke='" + ac + "' stroke-width='2.5'/>" +
158+
"<circle cx='9' cy='9.5' r='1.5' fill='" + ac + "'/><circle cx='9' cy='22.5' r='1.5' fill='" + ac + "'/>",
155159
'/library':
156160
"<rect x='5' y='5' width='5' height='22' rx='1' fill='none' stroke='" + ac + "' stroke-width='2.5'/>" +
157161
"<rect x='13' y='5' width='5' height='22' rx='1' fill='none' stroke='" + ac + "' stroke-width='2.5'/>" +
@@ -176,6 +180,7 @@
176180
'/memory': 'Memory — Οδυσσέας',
177181
'/gallery': 'Gallery — Οδυσσέας',
178182
'/tasks': 'Tasks — Οδυσσέας',
183+
'/services': 'Services — Οδυσσέας',
179184
'/library': 'Library — Οδυσσέας',
180185
};
181186
if (titles[path]) document.title = titles[path];
@@ -737,6 +742,7 @@ <h2><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentC
737742
<button class="icon-rail-btn" id="rail-archive" title="Library"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"/><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"/><path d="M9 7h6M9 11h4"/></svg></button>
738743
<button class="icon-rail-btn" id="rail-memory" title="Brain"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z"/><path d="M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z"/><path d="M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4"/></svg></button>
739744
<button class="icon-rail-btn" id="rail-notes" title="Notes"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 3h10l4 4v14H5z"/><path d="M15 3v5h5"/><path d="M8 17.5 15.5 10l2.5 2.5L10.5 20H8z"/></svg></button>
745+
<button class="icon-rail-btn" id="rail-services" title="Services"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="6" rx="2"/><rect x="3" y="14" width="18" height="6" rx="2"/><path d="M7 7h.01M7 17h.01M11 7h7M11 17h7"/></svg></button>
740746
<button class="icon-rail-btn" id="rail-tasks" title="Tasks"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/><path d="M9 16l2 2 4-4"/></svg></button>
741747
<button class="icon-rail-btn" id="rail-theme" title="Theme"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 2a10 10 0 0 0 0 20 5 5 0 0 0 5-5 3 3 0 0 0-3-3h-2a3 3 0 0 1-3-3 5 5 0 0 1 5-5"/></svg></button>
742748
<div style="flex:1"></div>
@@ -920,6 +926,16 @@ <h4>Memory</h4>
920926
</svg>
921927
<span class="grow">Notes</span>
922928
</div>
929+
<div class="list-item" id="tool-services-btn">
930+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
931+
stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
932+
style="flex-shrink:0;opacity:0.5;">
933+
<rect x="3" y="4" width="18" height="6" rx="2"/>
934+
<rect x="3" y="14" width="18" height="6" rx="2"/>
935+
<path d="M7 7h.01M7 17h.01M11 7h7M11 17h7"/>
936+
</svg>
937+
<span class="grow">Services</span>
938+
</div>
923939
<div class="list-item" id="tool-tasks-btn">
924940
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
925941
stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
@@ -1838,6 +1854,11 @@ <h2 style="display:flex;align-items:center;gap:8px;"><svg width="14" height="14"
18381854
<span class="vis-label">Notes</span>
18391855
<input type="checkbox" checked data-ui-key="tool-notes"><span class="vis-switch"></span>
18401856
</label>
1857+
<label class="vis-row">
1858+
<span class="vis-icon"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="6" rx="2"/><rect x="3" y="14" width="18" height="6" rx="2"/><path d="M7 7h.01M7 17h.01M11 7h7M11 17h7"/></svg></span>
1859+
<span class="vis-label">Services</span>
1860+
<input type="checkbox" checked data-ui-key="tool-services"><span class="vis-switch"></span>
1861+
</label>
18411862
<label class="vis-row">
18421863
<span class="vis-icon"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/><path d="M9 16l2 2 4-4"/></svg></span>
18431864
<span class="vis-label">Tasks</span>

0 commit comments

Comments
 (0)