mirror of
https://github.com/NeuralNomadsAI/CodeNomad.git
synced 2026-11-17 22:16:13 +00:00
## Summary Follow-up to #1318: the delivered Missions tree diverged from the session list it was modelled on. This brings it in line with the issue's design. - **One selection, session-list highlight.** The panel selects a row **or** one task, never both. A click only selects; only the chevron (the session list's own `SessionExpander`) expands. Expanded rows are kept per project. A Mission without tasks has no chevron: summaries now carry an optional `taskCount`. - **Tasks are session-list rows**, nested one level, with the same height, separators, rollover and highlight. - **The eye is a mode.** Pressed, the central reader shows the selection (a Mission's overview, or the task's reader) and follows each new selection. Released, it closes. A selected task takes the header toolbar. - **Colours agree.** The chevron uses the task rows' own states (`missionTaskRowState`): input, then active, then unseen finished. - Finished tasks stay **green until seen**. Selecting one, clicking its icon or sweeping across icons greys it. The chevron's right-click **Mark as read** clears a Mission's tasks and its own completion. - Tasks not started yet are **blue**. - **No text under rows.** - Command progress and errors are announced and appended to the primary button's tooltip; their actions stay visible. - The empty-plan and loading lines are gone. - Delete happens at once. Deleting task conversations is a Settings › Missions checkbox, and the delete form only appears on failure. - **Dependency rail.** Lanes start under the Mission chevron with a fixed step. Rows move over when the lanes need more room, instead of lanes merging at the panel edge.   Not in this PR: a recurring Mission listing its passages as children (#1318) needs a passage listing the panel does not have yet. It follows separately. ## Docs - `dev-docs/MISSIONS.md` describes the selection, expansion, eye, colour, seen and deletion model. - The Missions help (ten locales) covers the same. ## Validation - Missions browser tests migrated to the new behaviour. - New `mission-tree-parity.test.ts`, every test failing on the previous UI: - single highlight; - chevron-only expansion; - the eye following the selection; - chevron colours from task states; - unseen tasks and Mark as read; - leaf Missions; - immediate delete honouring the preference; - feedback in the tooltip. - Missions, session and automation browser suites: 669/670. The schedule-list cold-start timeout passes alone (37/37). - Server mission tests, plus a `taskCount` test. - UI and server typecheck; `npm run test:help`. - `tests/browser/mission-control.test.ts` is about 1,700 lines. |
||
|---|---|---|
| .. | ||
| features/wake-lock | ||
| guides | ||
| help | ||
| screenshots | ||