CodeNomad/docs
Pascal André 32f2961329
fix(missions): make the tree behave like the session list (#1402)
## 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.

![A task selected under its Mission, the eye pressed and the reader
following it, the dependency rail under the chevron (real dev
instance)](https://raw.githubusercontent.com/NeuralNomadsAI/CodeNomad/53d37ad19ed2994b9df859fa338f4c31a09b4726/pr-assets/missions-tree-parity.png)

![Task rows as session-list rows with a single highlight (real dev
instance)](https://raw.githubusercontent.com/NeuralNomadsAI/CodeNomad/53d37ad19ed2994b9df859fa338f4c31a09b4726/pr-assets/missions-tree-task-selected.png)

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.
2026-11-09 01:12:21 +01:00
..
features/wake-lock feat(settings): keep the computer awake while CodeNomad is running (#1307) 2026-11-06 04:44:18 +01:00
guides ci(release): sign Windows artifacts with SignPath (#1257) 2026-11-01 16:07:50 +01:00
help fix(missions): make the tree behave like the session list (#1402) 2026-11-09 01:12:21 +01:00
screenshots feat(integrations): ship native Status sections and catalogue installation (#1283) 2026-11-04 01:36:40 +01:00