chore(missions): bordered panel commands and remove dead tree leftovers (#1388)

## Summary

Last step of #1318 (clean-up).

- **Bordered commands.** Every command of the Missions panel and its
readers is now a bordered `.window-action`: Save as brief, Request an
update, retries, page controls, schedule checks, reader links and Copy.
`.window-text-button` stays only on end-of-list "Load more" links: the
panel's paging, the task tree's continuation, the schedule list and a
task's whole report history.
- **Disabled state.** The shared `.window-action` gains the muted
disabled state the text button had, and hovers only while enabled.
- **Dead leftovers removed:**
- the creation form's former schedule-picker styles
(`.mission-create-when/choice/time/zone`) and their six strings;
  - the unused "tasks not shown" strings, in all ten locales.

![Selected mission with its bordered "Save as brief"
action](https://raw.githubusercontent.com/NeuralNomadsAI/CodeNomad/529ce93db4d612dc39b3df23f923161502699c3e/pr-assets/missions-tree-cleanup.png)

Synthetic fixture rendered with the real MissionControl.

## Docs

- `dev-docs/UI_CONVENTIONS.md` scopes the text-button rule: Missions
keep it for end-of-list Load more.
- `dev-docs/MISSIONS.md` states the Missions rule.
- No help page describes these controls' styling.

## Validation

- UI typecheck and i18n tests.
- Full `mission-*` browser suite locally (522/522); no test targets the
text-button class.
This commit is contained in:
Pascal André 2026-11-08 10:36:11 +01:00 • committed by GitHub
parent 674d729de4
commit 263eb6cf75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
39 changed files with 50 additions and 130 deletions

View file

@ -1196,7 +1196,7 @@ answers mutations with 405 and writes `browser-report.json` to the absolute
## Agent conventions
- Mission sections use `components/mission-disclosure.tsx` and the shared `.disclosure-chevron`. Keep disclosure/selection/reader identities in the native per-window layout via `stores/mission-view-state.ts`, independent of refreshed snapshot object identity; the window keeps every toggled section and a mission persists the newest toggles one layout value holds. Long mission content uses `components/mission-reader.tsx` above the transcript; its chrome follows `.window-*`. Mission styles live under `styles/panels/mission-*.css`. Recurring setup/list geometry lives in `styles/panels/mission-recurrence.css`. Template and execution mode are orthogonal; recurring drafts record the chosen template, optional verbatim notes and exact coordinator/playbook-role profiles for future passages, under H9 editing guards. Recurring uses the same brief-only library, never storing clock, watch or invocation state in a brief. Daily CREATE and UI share `recurrenceReadBudget` / `recurrenceInputBudget`, with exact native Location room; never raise a ceiling automatically. Creation is one screen (`components/mission-editor.tsx`, `styles/panels/mission-create.css`): the shared objective/instructions draft, an editable title prefilled from its first sentence (≤60, `missions/mission-title.ts`), a folded Scheduling section defaulting to no launch criteria and exposing the Launch when criteria list (cards joined by their or / if / else connectors) and the saved zone (shown only when it differs from the system zone), and everything else under one collapsed Options disclosure (catalog-backed profile selectors stay lazily nested), except Compare's required Model A/B selectors in the main form. The panel's Create button heads the form, which replaces the selection line and the tree with its selected detail; these stay mounted but hidden (`.mission-control[data-creating]` in `mission-control.css`, `MissionPanelHeader` `creating`) so pending controls and retries survive. Options include the project's native nesting depth (`mission-subagent-depth.tsx`, shared with Preferences). The Playbook select's `aria-describedby` names the selected playbook's one-sentence description (`missions.control.template.<id>.description`), shown directly under it. The form fills the panel below its header as a column whose body is the only scroller, with the footer below that scrollport at the panel bottom: asynchronous content (depth reads, catalogs) never moves Create from under an aimed click, and focus scrolling never hides a field behind the footer. Banners the panel still shows while creating (stale map, unconfirmed cleanup) are ordered above the form, so they shrink the body instead. When the header, banners and footer leave the body less than its minimum, the whole form scrolls in the panel with the footer after it (`mission-panel-scroll.ts`). The footer's Save as brief takes the footer's `button-secondary` template; elsewhere it is a `.window-text-button`. The footer has a single **Create** submit: creation stores a paused Mission; one-time Missions and schedules start only through their separate explicit Play. Validation stays inline beside its field.
- Mission sections use `components/mission-disclosure.tsx` and the shared `.disclosure-chevron`. Keep disclosure/selection/reader identities in the native per-window layout via `stores/mission-view-state.ts`, independent of refreshed snapshot object identity; the window keeps every toggled section and a mission persists the newest toggles one layout value holds. Long mission content uses `components/mission-reader.tsx` above the transcript; its chrome follows `.window-*`. Mission styles live under `styles/panels/mission-*.css`. Recurring setup/list geometry lives in `styles/panels/mission-recurrence.css`. Template and execution mode are orthogonal; recurring drafts record the chosen template, optional verbatim notes and exact coordinator/playbook-role profiles for future passages, under H9 editing guards. Recurring uses the same brief-only library, never storing clock, watch or invocation state in a brief. Daily CREATE and UI share `recurrenceReadBudget` / `recurrenceInputBudget`, with exact native Location room; never raise a ceiling automatically. Creation is one screen (`components/mission-editor.tsx`, `styles/panels/mission-create.css`): the shared objective/instructions draft, an editable title prefilled from its first sentence (≤60, `missions/mission-title.ts`), a folded Scheduling section defaulting to no launch criteria and exposing the Launch when criteria list (cards joined by their or / if / else connectors) and the saved zone (shown only when it differs from the system zone), and everything else under one collapsed Options disclosure (catalog-backed profile selectors stay lazily nested), except Compare's required Model A/B selectors in the main form. The panel's Create button heads the form, which replaces the selection line and the tree with its selected detail; these stay mounted but hidden (`.mission-control[data-creating]` in `mission-control.css`, `MissionPanelHeader` `creating`) so pending controls and retries survive. Options include the project's native nesting depth (`mission-subagent-depth.tsx`, shared with Preferences). The Playbook select's `aria-describedby` names the selected playbook's one-sentence description (`missions.control.template.<id>.description`), shown directly under it. The form fills the panel below its header as a column whose body is the only scroller, with the footer below that scrollport at the panel bottom: asynchronous content (depth reads, catalogs) never moves Create from under an aimed click, and focus scrolling never hides a field behind the footer. Banners the panel still shows while creating (stale map, unconfirmed cleanup) are ordered above the form, so they shrink the body instead. When the header, banners and footer leave the body less than its minimum, the whole form scrolls in the panel with the footer after it (`mission-panel-scroll.ts`). The footer's Save as brief takes the footer's `button-secondary` template; elsewhere it is a `.window-action`. Every command of the Missions panel and its readers (retry, request, check, copy, open a reader or conversation, save as brief) is a bordered `.window-action`; `.window-text-button` stays only on end-of-list "Load more" links (the panel's paging, the task tree's continuation, the schedule list and a task's whole report history). The footer has a single **Create** submit: creation stores a paused Mission; one-time Missions and schedules start only through their separate explicit Play. Validation stays inline beside its field.
- One-time and current daily/native-scheduled readers show bodies through `useMissionBody`/`useReaderValue` (§Body display). Never feed cached display values into admission, mutations or lost-acknowledgement checks. Answer presence from descriptors (`missionBodyPresent`, `missionReportHas`) and labels from bounded excerpts and `decidedBy`. New bodies belong in `MISSION_BODY_FIELDS`; never add prose to compact rows. Restrict compacting and paging to display projections (`list`, `mission`, `panelPage`, exact current passage pages and their routes); keep authority maps full. Current passage body keys carry the exact source and report readers retain immutable report IDs. Browser fixtures serve actual bounded projections/content from their own full maps and retain every report in the mission's own `reports`, as the reducer does.
- A compact map holds a page of its tasks and their reports (§Task pages). Never derive a whole-mission fact (task counts, open questions, activity, owed work, whether a task or report exists) from its `tasks` or `reports`: use `taskPage`, `actorEvidence`, `actors`, the activity projection and the summary rows. Navigation to a task the map does not hold reads it (`openMissionTask`, `missionStore.loadTasks`) instead of being disabled, and every row the server sends stays within its budget: a new unbounded task, report or change field is a body or a count, never a list in a row. Keep `missionTaskOrder` the only display order, shared by the server's pages and the tree.
- Editor input copies and receipt checks use exact descriptor-pinned content with their original map revision and request identity (§User-journey regression checks). Unified-document projections stay whole in compact maps: `MissionDocumentSummary` carries bounded configuration metadata and input digests; editor text comes from the schedule or content route.
@ -1210,9 +1210,9 @@ answers mutations with 405 and writes `browser-report.json` to the absolute
- One-shot Missions and exact admitted daily/native-scheduled passages share `components/mission-tracking.tsx` and bounded stores through `MissionPanelScope`. `recurrenceCurrent` acquires source identity; `recurrenceCurrentPage` projects one accepted isolated range. `recurrencePassageRead` reads receipt-bound daily archives while CREATE retains its separate `recurrenceRead({ id })` lookup. Reader targets preserve exact instance/project/owner/schedule/passage and semantic identity; never substitute arbitrary session selectors or transcripts. Calendar CAS emits `rpc.codenomad.missions.scheduleChanged` only after commit through the fresh native graph's Bus; a wake warning changing emits the same invalidation at the current revision, best-effort, without a calendar write. A lost invalidation never replays a mutation.
- `stores/mission-recurrence.ts` owns daily-document visible list/current/reader demand, connection fencing and coalesced trailing reads without polling, and preserves unknown holds across remounts. `stores/mission-schedules.ts` owns unified native document pages and selected reads. Their separate control and snapshot contracts are in `MISSIONS_RECURRING.md`.
- Archived and current remote reader numeric drafts use `components/mission-reader-number.tsx` and commit on Enter/blur, not the first digit. Keep existing toolbar DOM mounted during same-source reads; local in-memory reader pagination stays immediate. A selected schedule's past-run list lives in `styles/panels/mission-detail.css`.
- Coordinators publish project briefings automatically at business milestones (initial plan, each task settlement, waiting on a human, before the final report) with requestID `auto:<revision>` and plain user-facing summaries (`missions/recipes.ts`); briefings come only from these milestones and explicit requests. An explicit update request is `createMissionBriefingRequest` in `components/mission-briefing.tsx` (the "Request an update" text button below the selected toolbar; its pending/uncertain feedback shows under it). Full briefing/final prose and task sources belong in the central `MissionReader`, opened/hidden with the detail toolbar's Summary eye. The fixed request follows `lib/mission-coordinator-message.ts` through ordinary native admission. Match its exact request ID before acknowledging a received briefing, retain pending/uncertain state by identity, and never replay it automatically. The coordinator-only `missions/briefing.ts` contract records a bounded narrative with assessed revision and exact task sources, separate from observed activity/task settlement/final outcome. Show stale-map/new-result notices and source readers in the reader without inventing semantic updates or human requests. For existing missions without a briefing, expose bounded exact current results/obstacles in the overview reader and use the tree for the remaining plan. Mission rows say "In progress" for an open mission (its lifecycle state); never show declared task counts as progress. Terminal missions omit settled lifecycle actions but retain unresolved control receipts. Project cleanup uses one disclosure for pending and settled receipts.
- Coordinators publish project briefings automatically at business milestones (initial plan, each task settlement, waiting on a human, before the final report) with requestID `auto:<revision>` and plain user-facing summaries (`missions/recipes.ts`); briefings come only from these milestones and explicit requests. An explicit update request is `createMissionBriefingRequest` in `components/mission-briefing.tsx` ("Request an update" in the selected toolbar's overflow menu; its pending/uncertain feedback shows in the selection's detail, below its secondary row). Full briefing/final prose and task sources belong in the central `MissionReader`, opened/hidden with the detail toolbar's Summary eye. The fixed request follows `lib/mission-coordinator-message.ts` through ordinary native admission. Match its exact request ID before acknowledging a received briefing, retain pending/uncertain state by identity, and never replay it automatically. The coordinator-only `missions/briefing.ts` contract records a bounded narrative with assessed revision and exact task sources, separate from observed activity/task settlement/final outcome. Show stale-map/new-result notices and source readers in the reader without inventing semantic updates or human requests. For existing missions without a briefing, expose bounded exact current results/obstacles in the overview reader and use the tree for the remaining plan. Mission rows say "In progress" for an open mission (its lifecycle state); never show declared task counts as progress. Terminal missions omit settled lifecycle actions but retain unresolved control receipts. Project cleanup uses one disclosure for pending and settled receipts.
- Mission display demand follows the actual right-panel visibility and selected tab. Preserve cached snapshots while hidden, cancel queued trailing display reads, and revalidate on activation. A component that shows a one-time Mission's full map registers it with `missionStore.want` and releases it on cleanup; never read `state().missions` for a row, which holds only open and wanted maps. Only native lifecycle events (`session.execution.*`, compaction, inbox, Shell, Form and permission events) invalidate activity; text/tool-progress deltas never do. Explicit recovery reuses the selected Mission's primary toolbar action and, while a task's reader is open, that task's report recovery as the toolbar's primary action, both through `createMissionRecoveryAction`; never add a separate administration surface or an automatic mutation retry. A value the panel learns from a read, such as the list's reported project, enters a view-fence identity through `createReportedChanges` (`lib/mission-view-fence.ts`), per instance and Location. A first report that matches the project the instance metadata names, or arrives while none is known, is the view already shown, so an operation captured before the first list read (a creation submitted right after the panel opens) still completes. A first report naming another project, and any later different report, is another view.
- Missions preferences live in the Settings/Preferences window's Missions section (`components/settings/missions-settings-section.tsx`); the Missions panel header gear deep-links there via `openSettings("missions")`. `stores/settings-screen.ts` is the single Settings route for every entry point: local Electron/Tauri windows always reuse/focus the one native Preferences window with the active instance/Location; only browser and remote windows use the embedded screen. A native rejection (e.g. an installed host lacking the section, which needs a native rebuild) shows an error notification and never opens a second, embedded Settings surface. Keep the section allowlist identical across renderer, Electron and Tauri (`native-mission-preferences.test.ts`). Project-scoped parts (catalog, Location depth) use the opener's instance/Location and stay disabled without one. `components/mission-preferences.tsx` writes each choice at once, compare-and-swapped against the value stored at its turn. Edits made during a write stay enabled (disabling a control drops its keyboard focus) and queue behind it, shown immediately, across window/section remounts. Each edit touches one role or the task-session policy of one scope and is refused when that stored value is no longer the one it was made from, so a queued edit never overwrites another window's change to that value or resends a rejected edit of it. (Customizing an inherited role copies the global values shown at edit time.) A rejected or unconfirmed write is never resent: a read-only reload shows the stored values, with Reload offered only when that read fails or the document is unreadable. The fold's Reset (confirmed) clears only the shown scope's agents/models; resetting an unreadable document is a separate confirmed repair. Catalog/depth demand stays fenced by that section's visibility. Agent/model choices use one `MissionProfileControls` row per role everywhere (coordinator, then the type's roles, Debugging included). In a mission-type scope, rows show the inherited global values with a muted Global mark; editing a field customizes the role starting from those values, its revert icon inherits again, and an all-native choice remains an explicit override (inherit, native default and a selected profile stay distinct). Creation waits for loaded preferences, shows requested choices and keeps overrides collapsed. Profiles use compact square native selectors in `components/mission-profile-controls.tsx`; preference/profile/library layout lives in `styles/panels/mission-preferences.css`. Model selects list exactly what the conversation's model selector lists: the shared catalog build and display names (`lib/model-catalog.ts` `buildProviderCatalog`, also behind the composer's providers store) and its hidden-model/favorites-only list (`stores/model-picker.ts` `preferredModelList`), restricted to tool-capable models and grouped by provider; never filter or label models separately. A saved model outside that list stays selected (by name when known, marked Unavailable when the selector's usable catalog lacks it: missing, deprecated or without tool support) so a default never changes silently; stored values remain `providerID`/`id`. Summaries with an `instanceId` and catalog `directory` name models through `knownModelName`, never a catalog read: the newer of the conversation catalog and that Location's latest Missions read in the same native generation (an omitted directory is the workspace root, compared with `normalizeSessionDirectory`); technical details keep exact IDs. Saved briefs are bounded versioned brief-only records under existing owned UI preferences (`lib/mission-model-library.ts`). Creation shows one "Start from a brief" select at the top of Options that loads on selection (Remove/Reload in its small `…` overflow) and a footer "Save as brief" text button that asks for a name inline (`components/mission-model-library.tsx`, styles in `styles/panels/mission-create.css`); only Preferences keeps the full library manager and invalid-library repair. A selected one-time Mission, including a finished one, offers the same "Save as brief" text action beside its update request (`MissionActionBar` secondary row): `missionRecordedBrief` copies only its recorded objective, verbatim notes, template, frozen profiles and taskMode (the title only prefills the name). Loading copies into ordinary manual creation and is never a launch, delete preserves all executions, and arrays retain config merge-patch replacement semantics. Preserve exact choices in uncertain creation drafts. Defaults never silently reconfigure existing/busy actors.
- Missions preferences live in the Settings/Preferences window's Missions section (`components/settings/missions-settings-section.tsx`); the Missions panel header gear deep-links there via `openSettings("missions")`. `stores/settings-screen.ts` is the single Settings route for every entry point: local Electron/Tauri windows always reuse/focus the one native Preferences window with the active instance/Location; only browser and remote windows use the embedded screen. A native rejection (e.g. an installed host lacking the section, which needs a native rebuild) shows an error notification and never opens a second, embedded Settings surface. Keep the section allowlist identical across renderer, Electron and Tauri (`native-mission-preferences.test.ts`). Project-scoped parts (catalog, Location depth) use the opener's instance/Location and stay disabled without one. `components/mission-preferences.tsx` writes each choice at once, compare-and-swapped against the value stored at its turn. Edits made during a write stay enabled (disabling a control drops its keyboard focus) and queue behind it, shown immediately, across window/section remounts. Each edit touches one role or the task-session policy of one scope and is refused when that stored value is no longer the one it was made from, so a queued edit never overwrites another window's change to that value or resends a rejected edit of it. (Customizing an inherited role copies the global values shown at edit time.) A rejected or unconfirmed write is never resent: a read-only reload shows the stored values, with Reload offered only when that read fails or the document is unreadable. The fold's Reset (confirmed) clears only the shown scope's agents/models; resetting an unreadable document is a separate confirmed repair. Catalog/depth demand stays fenced by that section's visibility. Agent/model choices use one `MissionProfileControls` row per role everywhere (coordinator, then the type's roles, Debugging included). In a mission-type scope, rows show the inherited global values with a muted Global mark; editing a field customizes the role starting from those values, its revert icon inherits again, and an all-native choice remains an explicit override (inherit, native default and a selected profile stay distinct). Creation waits for loaded preferences, shows requested choices and keeps overrides collapsed. Profiles use compact square native selectors in `components/mission-profile-controls.tsx`; preference/profile/library layout lives in `styles/panels/mission-preferences.css`. Model selects list exactly what the conversation's model selector lists: the shared catalog build and display names (`lib/model-catalog.ts` `buildProviderCatalog`, also behind the composer's providers store) and its hidden-model/favorites-only list (`stores/model-picker.ts` `preferredModelList`), restricted to tool-capable models and grouped by provider; never filter or label models separately. A saved model outside that list stays selected (by name when known, marked Unavailable when the selector's usable catalog lacks it: missing, deprecated or without tool support) so a default never changes silently; stored values remain `providerID`/`id`. Summaries with an `instanceId` and catalog `directory` name models through `knownModelName`, never a catalog read: the newer of the conversation catalog and that Location's latest Missions read in the same native generation (an omitted directory is the workspace root, compared with `normalizeSessionDirectory`); technical details keep exact IDs. Saved briefs are bounded versioned brief-only records under existing owned UI preferences (`lib/mission-model-library.ts`). Creation shows one "Start from a brief" select at the top of Options that loads on selection (Remove/Reload in its small `…` overflow) and a footer "Save as brief" button that asks for a name inline (`components/mission-model-library.tsx`, styles in `styles/panels/mission-create.css`); only Preferences keeps the full library manager and invalid-library repair. A selected one-time Mission, including a finished one, offers the same "Save as brief" action in its detail's secondary row (`MissionActionBar` `secondary`): `missionRecordedBrief` copies only its recorded objective, verbatim notes, template, frozen profiles and taskMode (the title only prefills the name). Loading copies into ordinary manual creation and is never a launch, delete preserves all executions, and arrays retain config merge-patch replacement semantics. Preserve exact choices in uncertain creation drafts. Defaults never silently reconfigure existing/busy actors.
- Delegation defaults apply per new Mission (`taskMode`, omitted means native); changing defaults or saved briefs preserves existing Missions. `mission-task-mode-controls.tsx` shares its compact native selector between preferences and the editor. Task agents use subagent/all in native mode and primary/all in independent mode; coordinators always use primary/all. Retain the policy with the creation/defaults snapshot and uncertain request identity, and preserve it in explicitly selected saved briefs. Explicit document edits may change task mode before admission or between eligible recurring passages under H9; admitted work keeps its frozen policy. Never change OpenCode configuration through task-mode selection. Ordinary internal helper calls remain governed by native permissions/depth.
- Delegation's native depth editor (`mission-subagent-depth.tsx`) is separately Location/project scoped and affects all OpenCode conversations there, unlike global new-mission defaults. Under the field it states that an override also lets subagents launch their own subagents in the project, taking precedence over General's restrictions from other config files; beside the effective depth it states whether General subagents can nest per the snapshot (no subagent at all when the tool is hidden; no other General subagent when only General is denied, other agents following their permissions) or that OpenCode's depth limit stops nesting below 2, never claiming nesting OpenCode would not allow, and it warns when an override saved only the depth. Demand only while the Preferences window's Missions section or the creation form's open Options show it, retain dirty drafts and exact file expectations by instance/directory, and never invent an unknown effective depth or label zero as disabled. Enter or leaving the field writes a changed valid value (Inherit writes at once; pressing it keeps focus in the field so the typed value is not saved first; Escape discards an unsaved value) without reload/restart; invalid values are flagged, never written. A write acknowledged after the view was left or hidden is accepted and reread on the next activation. Reads and writes make the field read-only rather than disabled, preserving focus; the saving status shows only while a write or a discard confirmation is in progress. The refresh icon appears only after an error or an unconfirmed write; uncertain writes remain fenced until that explicit refresh and are never replayed automatically.
- The Missions panel is the only scroller (`styles/panels/mission-task-tree.css`): the header stays at its top, the tree and the task flow take their natural height (never a scroller of their own) and `scrollbar-gutter: stable` keeps the panel width when the scrollbar appears. The header's measured height (`--mission-header-height`) is the scroll margin of the tree's content, so scrolled-to and focused content stays below it while focusing the header's own controls never scrolls the tree; while creating, and in windows under 400px tall, the header scrolls away instead. The creation form's body keeps its own single-scroller policy, and the task tree keeps its focus repair, both through `components/mission-panel-scroll.ts`, which honours that scroll margin. After asynchronous nested content growth or a scroller-policy change, keep the actual focused control (`document.activeElement`) in view while it remains connected and rendered in the visible panel. If occluded, move only its existing owning scroller by the minimum vertical distance needed, preserving focus, horizontal scroll positions and the single-scroller policy, with the footer reachable. Graph endpoints measure the status-icon edges in SVG coordinates, including RTL and zoom. Keep IME composition keys in the filter. Validate with `tests/browser/mission-panel-geometry.test.ts`.

View file

@ -11,7 +11,7 @@ Shared renderer rules for dialogs, utility windows, icon toggles, surfaces and s
- Persistent command/search utility windows use `components/dismissible-window.tsx`: non-modal, no scrim, outside interactions keep them open, and explicit toggles use `.icon-toggle` with `aria-expanded`/`aria-controls`. Keep search state scoped to its instance/session and close it when that view becomes inactive.
- The `.icon-toggle` active state (`aria-pressed`/`aria-expanded`/`data-active`) is one shared rule in `styles/utilities.css`: one uniform partial accent tint for every palette (an ink of accent leaning 20% toward `--text-on-accent`, then 10% toward `--surface-base`, at 40% opacity, 50% on hover) over the surface beneath, primary-text icon, disabled toggles excluded. It is for icon toggles only: text list rows select through `--list-item-highlight-*` instead (Mission past runs). The only active override is `.tool-call-output-rail`, which keeps its compact output-rail toggles transparent. `tests/browser/icon-toggle-active.test.ts` samples real active toggles on every ready-made palette over the session header (search), sessions sidebar header, right-panel tab bar, user and assistant message cards (speech button), interruption dock header and transcript canvas (overlay windows share the canvas colour): OKLab ΔE ≥ 8 from the surface on the header and ≥ 5 elsewhere, ≥ 6 from the header's idle hover, ≥ 1.4 from active to active hover, icon ≥ 3:1 on both fills.
- Lists of independent toggles of one kind (Message content eyes and chevrons, session selection checkboxes, right-panel customization, notification routing, model visibility, form multi-select options) sweep by drag through `lib/toggle-sweep.ts`: give each toggle `data-toggle-sweep={toggleSweepGroup("<group>")}`, one group per column or list. Pressing a toggle and dragging out of it flips it; every toggle of the same group the pointer then crosses takes that state, through its own click, so handlers, `disabled`/`aria-disabled` and accessibility stay the toggle's. State is read from `checked` (checkbox inputs, labels standing for their control) or `aria-pressed`/`aria-checked`. Mouse and pen only; touch keeps scrolling, and another pointer pressing mid-sweep leaves it going; the release after a sweep clicks nothing. A toggle whose handler saves asynchronously shows its new state at once and applies successive clicks (merge or queue them), never dropping clicks while saving; one whose change is costly to apply (Message content re-renders the transcript) or whose writes each carry a whole table (notification routing, which also runs its writes one after another and asks for System permission once per gesture) defers it with `afterSweep`, so a sweep applies once, on release. Never give a group to exclusive selectors (tabs, presets, radio-like choices) or to trust decisions such as extension activation. Covered by `tests/browser/transcript-presets.test.ts`, `tests/browser/session-search.test.ts` and `tests/browser/notification-routing.test.ts`.
- Window and panel buttons come from `styles/components/window.css`: `.window-icon-button` for icon-only commands, `.window-action` for bordered actions, `.window-text-button` for borderless inline text commands (accent text, hover tint, muted when disabled: open a reader, request an update, name a brief). A command placed in a `.window-footer` next to `button-secondary`/`button-primary` takes that footer's template instead. Contextual layout (width, alignment) may be scoped to a panel; colours, borders and states stay in the primitive.
- Window and panel buttons come from `styles/components/window.css`: `.window-icon-button` for icon-only commands, `.window-action` for bordered actions, `.window-text-button` for borderless inline text commands (accent text, hover tint, muted when disabled: install an integration, re-enable a plugin); both mute when disabled. The Missions panel and its readers use `.window-action` for every command and keep `.window-text-button` for end-of-list "Load more" links only (`dev-docs/MISSIONS.md`). A command placed in a `.window-footer` next to `button-secondary`/`button-primary` takes that footer's template instead. Contextual layout (width, alignment) may be scoped to a panel; colours, borders and states stay in the primitive.
- Movable utility windows opt into `DismissibleWindow.draggable` and mark their existing top bar with `data-window-drag-handle`; keep drag geometry shared and controls interactive. `--window-visible-height` bounds their height to the visual viewport; native scrolling and a sticky existing top bar keep results, pagination and drag/close controls reachable.
- Appearance mode and the saved light/dark selections are independent (`lib/appearance-preferences.ts`). Message/tool cards use the muted surface; preferences use the same secondary surface as the main panels. Show a subtle local rollover with `--surface-hover-overlay` over the preserved selected background, never by substituting a generic panel or the secondary surface; right-panel canvas button rollover overrides live in `styles/panels/control-hover.css`.
- `index.css` re-anchors `box-sizing: border-box` on every `details > :not(summary)`: the component library resets elements to `box-sizing: inherit`, so folded content would inherit content-box from the browser's own details slot and overflow full-width controls. Keep that rule rather than patching individual disclosures.

View file

@ -58,9 +58,9 @@ export function createMissionBriefingRequest(props: {
<div class="mission-briefing-feedback">
<p role={request()?.state === "error" || request()?.state === "uncertain" ? "alert" : "status"}>{t(`missions.briefing.request.${request()!.state}`)}</p>
<Show when={["admitted", "uncertain"].includes(request()!.state)}>
<button type="button" class="window-text-button" disabled={props.disabled || !props.active}
<button type="button" class="window-action" disabled={props.disabled || !props.active}
onClick={onOpenCoordinator}>{t("missions.control.openCoordinator")}</button>
<button type="button" class="window-text-button" disabled={props.disabled || !props.active || !available()}
<button type="button" class="window-action" disabled={props.disabled || !props.active || !available()}
onClick={() => { if (window.confirm(t("missions.briefing.newConfirm"))) {
setMissionBriefingRequest(identity(), { requestID: request()!.requestID, state: "error" })
void ask()

View file

@ -453,7 +453,7 @@ export function MissionEditor(props: {
{/* Steps, roles and the exact instructions open in the central reader. On narrow layouts that
closes the panel, ending the view a request in flight completes in, so wait for it. */}
<Show when={props.onShowPlaybook}>
<button type="button" class="window-text-button" aria-describedby={ids.templateDescription} disabled={pending() || creationPending()}
<button type="button" class="window-action" aria-describedby={ids.templateDescription} disabled={pending() || creationPending()}
onClick={() => props.onShowPlaybook?.(template(), taskMode() ?? "native")}>{t("missions.playbook.details")}</button>
</Show>
</div>
@ -474,8 +474,8 @@ export function MissionEditor(props: {
onChange={value => { setCustomProfiles(true); setProfiles(value) }} />
</Show>
<div class="mission-create-option-actions">
<button type="button" class="window-text-button" disabled={structuralLocked()} onClick={() => void useSavedDefaults()}>{t("missions.defaults.use")}</button>
<Show when={props.onOpenPreferences}><button type="button" class="window-text-button" title={t("missions.defaults.hint")} onClick={props.onOpenPreferences}>{t("missions.defaults.manage")}</button></Show>
<button type="button" class="window-action" disabled={structuralLocked()} onClick={() => void useSavedDefaults()}>{t("missions.defaults.use")}</button>
<Show when={props.onOpenPreferences}><button type="button" class="window-action" title={t("missions.defaults.hint")} onClick={props.onOpenPreferences}>{t("missions.defaults.manage")}</button></Show>
</div>
</details>
{inlineError("profiles", ids.profilesError)}

View file

@ -78,7 +78,7 @@ function createMissionModelActions(props: LibraryProps) {
<Show when={reconciliationPending()}><p role="alert">{t("missions.defaults.reconciliationPending")}</p></Show>
{/* An unreadable library already offers its own Reload beside the repair. */}
<Show when={(failed() || reconciliationPending()) && !(config.isUiConfigLoaded() && !config.missionModelsValid())}>
<button type="button" class="window-text-button" aria-label={t("missions.models.reload")} title={t("missions.models.reload")}
<button type="button" class="window-action" aria-label={t("missions.models.reload")} title={t("missions.models.reload")}
disabled={pending() || !active()} onClick={() => void reload()}>{t("missions.preferences.reload")}</button>
</Show>
</>
@ -148,11 +148,11 @@ export function MissionBriefPicker(props: LibraryProps & { value?: string; onUse
/** A "Save as brief" button that asks for a name inline: the creation footer's
* draft, or a selected Mission's recorded brief inputs (`initialName` prefills).
* `onOpen` follows the name field, which shows `reading` while the draft is still read.
* A window footer passes its own button template; elsewhere these are text commands. */
* A window footer passes its own button template; elsewhere these are bordered actions. */
export function MissionBriefSave(props: LibraryProps & { draft: () => MissionModelBrief; initialName?: () => string; buttonClass?: string
onOpen?: (open: boolean) => void; reading?: () => { failed: boolean; changed?: boolean; onRetry: () => void } | undefined }) {
const { t } = useI18n(), config = useConfig(), actions = createMissionModelActions(props)
const buttonClass = () => props.buttonClass ?? "window-text-button"
const buttonClass = () => props.buttonClass ?? "window-action"
const [open, setOpen] = createSignal(false), [name, setName] = createSignal("")
createEffect(() => props.onOpen?.(open()))
let input: HTMLInputElement | undefined

View file

@ -46,7 +46,7 @@ export function MissionOverviewDetails(props: {
<Show when={props.mission.panelCollections}><MissionPanelPaging instanceId={props.instanceId} lane={`field:${props.mission.id}:history`} /></Show>
<Show when={props.mission.historyTruncated}><p>{t("missions.control.history.truncated", { count: history().length })}</p></Show>
<ol class="mission-reader-links"><For each={history()}>{change => <li>
<button type="button" class="window-text-button" onClick={() => open("change", String(change.revision))}>
<button type="button" class="window-action mission-reader-link" onClick={() => open("change", String(change.revision))}>
{missionChangeExcerpt(change) ?? t("missions.control.edit")}</button>
<small>{when(change.createdAt)} · {author(change.actorSessionId, change.source)}</small>
</li>}</For></ol>
@ -60,7 +60,7 @@ export function MissionOverviewDetails(props: {
<Show when={props.mission.panelCollections}><MissionPanelPaging instanceId={props.instanceId} lane={`field:${props.mission.id}:reports`} /></Show>
<Show when={omittedReports()}>{count => <p>{t(`missionsPanel.reports.omitted.${count() === 1 ? "one" : "other"}`, { count: count() })}</p>}</Show>
<ol class="mission-reader-links"><For each={reports()}>{report => <li>
<button type="button" class="window-text-button" onClick={() => { const target = reportTarget(report); open(target.kind, target.id) }}>
<button type="button" class="window-action mission-reader-link" onClick={() => { const target = reportTarget(report); open(target.kind, target.id) }}>
{props.mission.tasks.find(task => task.key === report.taskKey)?.title ?? (report.taskKey || t("missions.control.overview"))}</button>
<small>{when(report.createdAt)} · {t(missionReportIsPrevious(props.mission, report) ? "missions.progress.previousAttempt" : `missions.control.report.outcome.${report.outcome}`)}
<Show when={missionReportDecisionMaker(props.mission, report)}>{by => <> · <span data-decided-by={by()}>{t(`missions.decision.${by()}`)}</span></>}</Show></small>

View file

@ -19,7 +19,7 @@ function Field(props: { instanceId: string; missionId: string; field: string })
await missionStore.more(props.instanceId, lane(), retry, at)
}
return <>
<button type="button" class="window-text-button" aria-pressed={raw()} onClick={() => {
<button type="button" class="window-action" aria-pressed={raw()} onClick={() => {
setRaw(value => !value)
if (raw() && state().total === undefined) void read(0)
}}>{t("missionsPanel.pages.raw")}</button>
@ -28,11 +28,11 @@ function Field(props: { instanceId: string; missionId: string; field: string })
<For each={missionStore.fieldValues(props.instanceId, props.missionId, props.field)}>{value => <Value value={value} />}</For>
</>}>
<Show when={state().failure}><p role="status">{t(state().failure === "changed" ? "missionsPanel.pages.changed" : "missionsPanel.pages.failed")}</p>
<button type="button" class="window-text-button" disabled={state().loading} onClick={() => void read(state().failure === "changed" ? 0 : page(), true)}>{t("missions.control.retry")}</button>
<button type="button" class="window-action" disabled={state().loading} onClick={() => void read(state().failure === "changed" ? 0 : page(), true)}>{t("missions.control.retry")}</button>
</Show>
<p role="status">{t(state().loading ? "missions.control.loading" : "missionsPanel.pages.rawPage", { page: page() + 1, total: state().total ?? 0 })}</p>
<button type="button" class="window-text-button" disabled={state().loading || Boolean(state().failure) || page() === 0} onClick={() => void read(page() - 1)}>{t("missionsPanel.pages.previous")}</button>
<button type="button" class="window-text-button" disabled={state().loading || Boolean(state().failure) || page() + 1 >= (state().total ?? 0)} onClick={() => void read(page() + 1)}>{t("missionsPanel.pages.next")}</button>
<button type="button" class="window-action" disabled={state().loading || Boolean(state().failure) || page() === 0} onClick={() => void read(page() - 1)}>{t("missionsPanel.pages.previous")}</button>
<button type="button" class="window-action" disabled={state().loading || Boolean(state().failure) || page() + 1 >= (state().total ?? 0)} onClick={() => void read(page() + 1)}>{t("missionsPanel.pages.next")}</button>
<Show when={missionStore.fieldText(props.instanceId, props.missionId, props.field, page())}>{text => <BoundedText source={text()}>{shown => <pre>{shown()}</pre>}</BoundedText>}</Show>
</Show>
</>

View file

@ -22,7 +22,7 @@ export function MissionPanelPaging(props: { instanceId: string; lane: string; se
return <Show when={visible().shown}><div class="mission-panel-paging" data-lane={props.lane}>
<Show when={info()}>{text => <SettingsInfoTip text={text()} />}</Show>
<Show when={state().failure}><p role="status">{t(state().failure === "changed" ? "missionsPanel.pages.changed" : "missionsPanel.pages.failed")}</p>
<button type="button" class="window-text-button" disabled={state().loading} onClick={() => void missionStore.more(props.instanceId, props.lane, true)}>{t("missions.control.retry")}</button>
<button type="button" class="window-action" disabled={state().loading} onClick={() => void missionStore.more(props.instanceId, props.lane, true)}>{t("missions.control.retry")}</button>
</Show>
<Show when={!state().failure && state().more}>
<button type="button" class="window-text-button" disabled={state().loading} onClick={() => void missionStore.more(props.instanceId, props.lane)}>

View file

@ -39,12 +39,12 @@ export function MissionPlaybookReader(props: { playbook: MissionTemplateId; task
return <div class="mission-playbook-reader">
<p>{t(`missions.control.template.${props.playbook}.description`)}</p>
<p><button type="button" class="window-text-button" onClick={() => void openGuide()}>{t("missions.playbook.guide")}</button></p>
<p><button type="button" class="window-action" onClick={() => void openGuide()}>{t("missions.playbook.guide")}</button></p>
<Show when={helpFailed()}><p role="alert">{t("missions.playbook.guideFailed", { url: guideUrl() })}</p></Show>
<Show when={!shown() && !failed()}><p role="status">{t("missions.playbook.loading")}</p></Show>
<Show when={failed() && !shown()}>
<p role="alert" class="mission-playbook-failure">{t("missions.playbook.unavailable")}{" "}
<button type="button" class="window-text-button" onClick={() => setAttempt(value => value + 1)}>{t("missionsPanel.reader.retry")}</button></p>
<button type="button" class="window-action" onClick={() => setAttempt(value => value + 1)}>{t("missionsPanel.reader.retry")}</button></p>
</Show>
<Show when={playbook()}>{value => <>
<p class="mission-playbook-note">{t("missions.playbook.english")}</p>

View file

@ -71,7 +71,7 @@ export function useReaderValues<T>(props: Omit<ReaderValueProps, "selector"> & {
export function MissionBodyPending(props: { failed: boolean; changed?: boolean; onRetry: () => void; actionLabel?: string }) {
const { t } = useI18n()
return <p role="status">{t(props.changed ? "missions.control.reader.changed" : props.failed ? "missions.control.reader.unavailable" : "missions.control.loading")}
<Show when={props.failed || props.changed}>{" "}<button type="button" class="window-text-button"
<Show when={props.failed || props.changed}>{" "}<button type="button" class="window-action"
onClick={() => props.onRetry()}>{t(props.actionLabel ?? "missions.control.retry")}</button></Show>
</p>
}

View file

@ -132,7 +132,7 @@ export function MissionReaderSection(props: { text?: string; body?: MissionReade
onCommit={next => { if (props.pagination) props.pagination.onPage(next - 1); else setPage(next - 1); article?.scrollIntoView({ block: "nearest" }) }} />
</Show>
</label></Show>
<button type="button" class="window-text-button" onClick={() => void copy()}>{t("markdown.copy")}</button>
<button type="button" class="window-action" onClick={() => void copy()}>{t("markdown.copy")}</button>
<span role="status">{copyStatus()}</span>
</div>
</Show>
@ -503,7 +503,7 @@ export function MissionReader(props: { instanceId: string; scope: string }) {
<Show when={section().taskKeys?.length}><div class="mission-briefing-sources"><For each={section().taskKeys}>{key => {
// A source a compact map's page does not hold is read by key when opened.
const source = () => mission()?.tasks.find(task => task.key === key)
return <Show when={source() || taskPage()}><button type="button" class="window-text-button"
return <Show when={source() || taskPage()}><button type="button" class="window-action mission-reader-link"
onClick={() => void openMissionTask(props.instanceId, props.scope, mission, key, target()?.recurrence, missionStore)}>
{source()?.title ?? key}
</button></Show>

View file

@ -198,7 +198,7 @@ function createRecurrenceControls(props: { schedule: RecurrenceSchedule; identit
const feedback = <Show when={heldIntent()} fallback={<Show when={refusal()}>{message => <small role="status">{t(message())}</small>}</Show>}>
<small role="status">{t("missions.recurrence.uncertain")}</small></Show>
// While a superseding action holds the primary place, the unknown intent's exact status read stays one click away.
const statusButton = <button type="button" class="window-text-button" title={statusAction().ariaLabel} aria-label={statusAction().ariaLabel}
const statusButton = <button type="button" class="window-action" title={statusAction().ariaLabel} aria-label={statusAction().ariaLabel}
disabled={statusAction().disabled} onClick={() => statusAction().onSelect()}>{statusAction().label}</button>
const superseding = createMemo(() => Boolean(heldIntent() && primaryAction()))
const secondary = () => superseding() ? statusButton : undefined

View file

@ -73,7 +73,7 @@ export function MissionRecurrencePassageReader(props: { instanceId: string; scop
return <div class="mission-recurrence-result" data-passage-id={props.receipt.passageID}>
<Show when={loading()}><p role="status">{t("missions.control.loading")}</p></Show>
<Show when={error()}><p role="alert" class="mission-recurrence-failure">{t("missionsPanel.reader.resultFailed")}{" "}
<button type="button" class="window-text-button" onClick={() => setRefresh(value => value + 1)}>{t("missionsPanel.reader.retry")}</button>
<button type="button" class="window-action" onClick={() => setRefresh(value => value + 1)}>{t("missionsPanel.reader.retry")}</button>
</p></Show>
<Show when={value()}>{result => <>
<Show when={result().sectionCount > 1}><div class="window-toolbar">

View file

@ -68,8 +68,8 @@ export function createMissionScheduleList(props: { instanceId: string; projectID
onDelete={() => void controls.act("delete")} deleteDisabled={!controls.capable("delete")}
onOpenConversation={doc().pendingPassage ? () => props.onOpenConversation(doc().pendingPassage!.coordinatorSessionID) : undefined}
secondary={<>
<button type="button" class="window-text-button" disabled={!controls.capable("check")} onClick={() => void controls.act("check")}>{controls.label("check")}</button>
<Show when={controls.held()}><button type="button" class="window-text-button" disabled={controls.busy()} onClick={() => void controls.reconcile()}>{t("missions.scheduling.readReceipt")}</button></Show>
<button type="button" class="window-action" disabled={!controls.capable("check")} onClick={() => void controls.act("check")}>{controls.label("check")}</button>
<Show when={controls.held()}><button type="button" class="window-action" disabled={controls.busy()} onClick={() => void controls.reconcile()}>{t("missions.scheduling.readReceipt")}</button></Show>
</>}
feedback={<>
<Show when={controls.held()}><p role="status">{t(controls.publishing() ? "missions.scheduleList.confirmedRefreshing" : "missions.scheduleList.uncertain")}</p></Show>
@ -100,7 +100,7 @@ export function createMissionScheduleList(props: { instanceId: string; projectID
<section class="mission-past-runs" aria-label={t("missionsPanel.pastRuns")}><h3>{t("missionsPanel.pastRuns")}</h3>
<Show when={doc().history.length} fallback={<p>{t("missionsPanel.schedule.noRuns")}</p>}><ol><For each={[...doc().history].reverse()}>{item => <li>
<span>{date(item.dueAt)} · {t(`missionsPanel.run.${item.reason === "not-started" ? "not-started" : item.outcome}`)}</span>
<button type="button" class="window-text-button" onClick={() => props.onOpenConversation(item.coordinatorSessionID)}>{t("missionsPanel.action.openConversation")}</button>
<button type="button" class="window-action" onClick={() => props.onOpenConversation(item.coordinatorSessionID)}>{t("missionsPanel.action.openConversation")}</button>
</li>}</For></ol></Show>
</section>
<MissionScheduleDiagnostics document={doc()} />

View file

@ -164,7 +164,7 @@ export function MissionTaskTree(props: {
</div>
<Show when={read()?.failure}>{failed =>
<p class="mission-tree-read" role="status">{t(failed().reason === "changed" ? "missionsPanel.tasks.readChanged" : "missionsPanel.tasks.readFailed")}{" "}
<button type="button" class="window-text-button" onClick={() => readFurther(failed().request)}>{t("missions.control.retry")}</button></p>}</Show>
<button type="button" class="window-action" onClick={() => readFurther(failed().request)}>{t("missions.control.retry")}</button></p>}</Show>
</Show>
</section>
}

View file

@ -2,14 +2,8 @@ export const missionCreateMessages = {
"missions.create.objective": "Was soll die Mission tun?",
"missions.create.objectivePlaceholder": "Beschreiben Sie das gewünschte Ergebnis. Bei einer täglichen Mission gelten diese Anweisungen für jeden Lauf.",
"missions.create.title": "Titel",
"missions.create.when": "Wann",
"missions.create.once": "Einmal",
"missions.create.daily": "Täglich um",
"missions.create.zone": "Zeitzone: {zone}",
"missions.create.zoneChange": "Ändern",
"missions.create.options": "Optionen",
"missions.create.agents": "Agenten und Modelle",
"missions.create.zoneOverride": "Zeitzone (IANA)",
"missions.create.submit": "Erstellen",
"missions.create.brief.start": "Mit einem gespeicherten Auftrag beginnen",
"missions.create.brief.none": "Leere Mission",

View file

@ -73,8 +73,6 @@ export const missionsPanelMessages = {
"missionsPanel.picker.edit": "Ausgewählte Mission bearbeiten",
"missionsPanel.picker.delete": "Ausgewählte Mission löschen…",
"missionsPanel.picker.actions": "Missionsaktionen",
"missionsPanel.tasks.omitted.one": "{count} Aufgabe nicht angezeigt",
"missionsPanel.tasks.omitted.other": "{count} Aufgaben nicht angezeigt",
"missionsPanel.tasks.showMore": "Mehr anzeigen",
"missionsPanel.tasks.readFailed": "Diese Aufgaben konnten nicht gelesen werden.",
"missionsPanel.tasks.readChanged": "Die Aufgabenliste hat sich beim Lesen geändert. Aktualisieren Sie und versuchen Sie es erneut.",

View file

@ -2,14 +2,8 @@ export const missionCreateMessages = {
"missions.create.objective": "What should the mission do?",
"missions.create.objectivePlaceholder": "Describe the outcome you want. For a daily mission, these instructions apply to every run.",
"missions.create.title": "Title",
"missions.create.when": "When",
"missions.create.once": "Once",
"missions.create.daily": "Every day at",
"missions.create.zone": "Time zone: {zone}",
"missions.create.zoneChange": "Change",
"missions.create.options": "Options",
"missions.create.agents": "Agents and models",
"missions.create.zoneOverride": "Time zone (IANA)",
"missions.create.submit": "Create",
"missions.create.brief.start": "Start from a brief",
"missions.create.brief.none": "Blank mission",

View file

@ -73,8 +73,6 @@ export const missionsPanelMessages = {
"missionsPanel.picker.edit": "Edit selected mission",
"missionsPanel.picker.delete": "Delete selected mission…",
"missionsPanel.picker.actions": "Mission actions",
"missionsPanel.tasks.omitted.one": "{count} task not shown",
"missionsPanel.tasks.omitted.other": "{count} tasks not shown",
"missionsPanel.tasks.showMore": "Show more",
"missionsPanel.tasks.readFailed": "These tasks could not be read.",
"missionsPanel.tasks.readChanged": "The task list changed during this read. Refresh, then try again.",

View file

@ -2,14 +2,8 @@ export const missionCreateMessages = {
"missions.create.objective": "¿Qué debe hacer la misión?",
"missions.create.objectivePlaceholder": "Describe el resultado que quieres. En una misión diaria, estas instrucciones se aplican a cada ejecución.",
"missions.create.title": "Título",
"missions.create.when": "Cuándo",
"missions.create.once": "Una vez",
"missions.create.daily": "Cada día a las",
"missions.create.zone": "Zona horaria: {zone}",
"missions.create.zoneChange": "Cambiar",
"missions.create.options": "Opciones",
"missions.create.agents": "Agentes y modelos",
"missions.create.zoneOverride": "Zona horaria (IANA)",
"missions.create.submit": "Crear",
"missions.create.brief.start": "Empezar desde una descripción",
"missions.create.brief.none": "Misión en blanco",

View file

@ -73,8 +73,6 @@ export const missionsPanelMessages = {
"missionsPanel.picker.edit": "Editar la misión seleccionada",
"missionsPanel.picker.delete": "Eliminar la misión seleccionada…",
"missionsPanel.picker.actions": "Acciones de la misión",
"missionsPanel.tasks.omitted.one": "{count} tarea no mostrada",
"missionsPanel.tasks.omitted.other": "{count} tareas no mostradas",
"missionsPanel.tasks.showMore": "Mostrar más",
"missionsPanel.tasks.readFailed": "No se pudieron leer estas tareas.",
"missionsPanel.tasks.readChanged": "La lista de tareas cambió durante la lectura. Actualiza y vuelve a intentarlo.",

View file

@ -2,14 +2,8 @@ export const missionCreateMessages = {
"missions.create.objective": "Que doit faire la mission ?",
"missions.create.objectivePlaceholder": "Décrivez le résultat attendu. Pour une mission quotidienne, ces instructions s'appliquent à chaque exécution.",
"missions.create.title": "Titre",
"missions.create.when": "Quand",
"missions.create.once": "Une fois",
"missions.create.daily": "Chaque jour à",
"missions.create.zone": "Fuseau horaire : {zone}",
"missions.create.zoneChange": "Modifier",
"missions.create.options": "Options",
"missions.create.agents": "Agents et modèles",
"missions.create.zoneOverride": "Fuseau horaire (IANA)",
"missions.create.submit": "Créer",
"missions.create.brief.start": "Partir d’une consigne",
"missions.create.brief.none": "Mission vierge",

View file

@ -73,8 +73,6 @@ export const missionsPanelMessages = {
"missionsPanel.picker.edit": "Modifier la mission sélectionnée",
"missionsPanel.picker.delete": "Supprimer la mission sélectionnée…",
"missionsPanel.picker.actions": "Actions de la mission",
"missionsPanel.tasks.omitted.one": "{count} tâche non affichée",
"missionsPanel.tasks.omitted.other": "{count} tâches non affichées",
"missionsPanel.tasks.showMore": "Afficher plus",
"missionsPanel.tasks.readFailed": "Ces tâches n'ont pas pu être lues.",
"missionsPanel.tasks.readChanged": "La liste des tâches a changé pendant la lecture. Actualisez, puis réessayez.",

View file

@ -2,14 +2,8 @@ export const missionCreateMessages = {
"missions.create.objective": "מה המשימה צריכה לעשות?",
"missions.create.objectivePlaceholder": "תארו את התוצאה הרצויה. במשימה יומית, ההוראות האלה חלות על כל הרצה.",
"missions.create.title": "כותרת",
"missions.create.when": "מתי",
"missions.create.once": "פעם אחת",
"missions.create.daily": "כל יום בשעה",
"missions.create.zone": "אזור זמן: {zone}",
"missions.create.zoneChange": "שינוי",
"missions.create.options": "אפשרויות",
"missions.create.agents": "סוכנים ומודלים",
"missions.create.zoneOverride": "אזור זמן (IANA)",
"missions.create.submit": "יצירה",
"missions.create.brief.start": "להתחיל מתקציר",
"missions.create.brief.none": "משימה ריקה",

View file

@ -73,8 +73,6 @@ export const missionsPanelMessages = {
"missionsPanel.picker.edit": "עריכת המשימה שנבחרה",
"missionsPanel.picker.delete": "מחיקת המשימה שנבחרה…",
"missionsPanel.picker.actions": "פעולות המשימה",
"missionsPanel.tasks.omitted.one": "משימה {count} לא מוצגת",
"missionsPanel.tasks.omitted.other": "{count} משימות לא מוצגות",
"missionsPanel.tasks.showMore": "הצג עוד",
"missionsPanel.tasks.readFailed": "לא ניתן היה לקרוא את המשימות האלה.",
"missionsPanel.tasks.readChanged": "רשימת המשימות השתנתה במהלך הקריאה. יש לרענן ולנסות שוב.",

View file

@ -2,14 +2,8 @@ export const missionCreateMessages = {
"missions.create.objective": "ミッションで何をしますか?",
"missions.create.objectivePlaceholder": "望む結果を記述してください。毎日のミッションでは、この指示が毎回の実行に適用されます。",
"missions.create.title": "タイトル",
"missions.create.when": "実行タイミング",
"missions.create.once": "1 回",
"missions.create.daily": "毎日",
"missions.create.zone": "タイムゾーン: {zone}",
"missions.create.zoneChange": "変更",
"missions.create.options": "オプション",
"missions.create.agents": "エージェントとモデル",
"missions.create.zoneOverride": "タイムゾーン (IANA)",
"missions.create.submit": "作成",
"missions.create.brief.start": "保存済みの概要から始める",
"missions.create.brief.none": "空のミッション",

View file

@ -73,8 +73,6 @@ export const missionsPanelMessages = {
"missionsPanel.picker.edit": "選択したミッションを編集",
"missionsPanel.picker.delete": "選択したミッションを削除…",
"missionsPanel.picker.actions": "ミッションの操作",
"missionsPanel.tasks.omitted.one": "{count} 件のタスクを表示していません",
"missionsPanel.tasks.omitted.other": "{count} 件のタスクを表示していません",
"missionsPanel.tasks.showMore": "さらに表示",
"missionsPanel.tasks.readFailed": "これらのタスクを読み込めませんでした。",
"missionsPanel.tasks.readChanged": "読み込み中にタスク一覧が変更されました。更新してから再試行してください。",

View file

@ -2,14 +2,8 @@ export const missionCreateMessages = {
"missions.create.objective": "मिसनले के गर्नुपर्छ?",
"missions.create.objectivePlaceholder": "तपाईंले चाहेको नतिजा वर्णन गर्नुहोस्। दैनिक मिसनमा, यी निर्देशनहरू हरेक चलाइमा लागू हुन्छन्।",
"missions.create.title": "शीर्षक",
"missions.create.when": "कहिले",
"missions.create.once": "एक पटक",
"missions.create.daily": "हरेक दिन",
"missions.create.zone": "समय क्षेत्र: {zone}",
"missions.create.zoneChange": "परिवर्तन",
"missions.create.options": "विकल्पहरू",
"missions.create.agents": "एजेन्ट र मोडेलहरू",
"missions.create.zoneOverride": "समय क्षेत्र (IANA)",
"missions.create.submit": "बनाउनुहोस्",
"missions.create.brief.start": "सुरक्षित विवरणबाट सुरु गर्नुहोस्",
"missions.create.brief.none": "खाली मिसन",

View file

@ -73,8 +73,6 @@ export const missionsPanelMessages = {
"missionsPanel.picker.edit": "चयन गरिएको मिसन सम्पादन गर्नुहोस्",
"missionsPanel.picker.delete": "चयन गरिएको मिसन मेटाउनुहोस्…",
"missionsPanel.picker.actions": "मिसन कार्यहरू",
"missionsPanel.tasks.omitted.one": "{count} कार्य देखाइएको छैन",
"missionsPanel.tasks.omitted.other": "{count} कार्यहरू देखाइएका छैनन्",
"missionsPanel.tasks.showMore": "थप देखाउनुहोस्",
"missionsPanel.tasks.readFailed": "यी कार्यहरू पढ्न सकिएन।",
"missionsPanel.tasks.readChanged": "पढ्ने क्रममा कार्य सूची परिवर्तन भयो। ताजा गरेर फेरि प्रयास गर्नुहोस्।",

View file

@ -2,14 +2,8 @@ export const missionCreateMessages = {
"missions.create.objective": "Что должна сделать миссия?",
"missions.create.objectivePlaceholder": "Опишите нужный результат. Для ежедневной миссии эти инструкции применяются к каждому запуску.",
"missions.create.title": "Название",
"missions.create.when": "Когда",
"missions.create.once": "Один раз",
"missions.create.daily": "Каждый день в",
"missions.create.zone": "Часовой пояс: {zone}",
"missions.create.zoneChange": "Изменить",
"missions.create.options": "Параметры",
"missions.create.agents": "Агенты и модели",
"missions.create.zoneOverride": "Часовой пояс (IANA)",
"missions.create.submit": "Создать",
"missions.create.brief.start": "Начать с сохранённого описания",
"missions.create.brief.none": "Пустая миссия",

View file

@ -73,8 +73,6 @@ export const missionsPanelMessages = {
"missionsPanel.picker.edit": "Изменить выбранную миссию",
"missionsPanel.picker.delete": "Удалить выбранную миссию…",
"missionsPanel.picker.actions": "Действия миссии",
"missionsPanel.tasks.omitted.one": "{count} задача не показана",
"missionsPanel.tasks.omitted.other": "Не показано задач: {count}",
"missionsPanel.tasks.showMore": "Показать ещё",
"missionsPanel.tasks.readFailed": "Не удалось прочитать эти задачи.",
"missionsPanel.tasks.readChanged": "Список задач изменился во время чтения. Обновите его и повторите попытку.",

View file

@ -2,14 +2,8 @@ export const missionCreateMessages = {
"missions.create.objective": "Görev ne yapmalı?",
"missions.create.objectivePlaceholder": "İstediğiniz sonucu açıklayın. Günlük bir görevde bu talimatlar her çalıştırmaya uygulanır.",
"missions.create.title": "Başlık",
"missions.create.when": "Ne zaman",
"missions.create.once": "Bir kez",
"missions.create.daily": "Her gün saat",
"missions.create.zone": "Saat dilimi: {zone}",
"missions.create.zoneChange": "Değiştir",
"missions.create.options": "Seçenekler",
"missions.create.agents": "Ajanlar ve modeller",
"missions.create.zoneOverride": "Saat dilimi (IANA)",
"missions.create.submit": "Oluştur",
"missions.create.brief.start": "Kayıtlı bir özetle başla",
"missions.create.brief.none": "Boş görev",

View file

@ -73,8 +73,6 @@ export const missionsPanelMessages = {
"missionsPanel.picker.edit": "Seçili görevi düzenle",
"missionsPanel.picker.delete": "Seçili görevi sil…",
"missionsPanel.picker.actions": "Görev eylemleri",
"missionsPanel.tasks.omitted.one": "{count} görev gösterilmiyor",
"missionsPanel.tasks.omitted.other": "{count} görev gösterilmiyor",
"missionsPanel.tasks.showMore": "Daha fazla göster",
"missionsPanel.tasks.readFailed": "Bu görevler okunamadı.",
"missionsPanel.tasks.readChanged": "Okuma sırasında görev listesi değişti. Yenileyip tekrar deneyin.",

View file

@ -2,14 +2,8 @@ export const missionCreateMessages = {
"missions.create.objective": "任务要做什么?",
"missions.create.objectivePlaceholder": "描述你想要的结果。对于每日任务,这些指令适用于每次运行。",
"missions.create.title": "标题",
"missions.create.when": "时间",
"missions.create.once": "一次",
"missions.create.daily": "每天",
"missions.create.zone": "时区:{zone}",
"missions.create.zoneChange": "更改",
"missions.create.options": "选项",
"missions.create.agents": "代理和模型",
"missions.create.zoneOverride": "时区(IANA)",
"missions.create.submit": "创建",
"missions.create.brief.start": "从已保存的简述开始",
"missions.create.brief.none": "空白任务",

View file

@ -73,8 +73,6 @@ export const missionsPanelMessages = {
"missionsPanel.picker.edit": "编辑所选任务",
"missionsPanel.picker.delete": "删除所选任务…",
"missionsPanel.picker.actions": "任务操作",
"missionsPanel.tasks.omitted.one": "{count} 个任务未显示",
"missionsPanel.tasks.omitted.other": "{count} 个任务未显示",
"missionsPanel.tasks.showMore": "显示更多",
"missionsPanel.tasks.readFailed": "无法读取这些任务。",
"missionsPanel.tasks.readChanged": "读取期间任务列表已更改。请刷新后重试。",

View file

@ -126,12 +126,17 @@
white-space: nowrap;
}
.window-action:hover {
.window-action:hover:not(:disabled, [aria-disabled="true"]) {
background: var(--surface-interactive-hover);
color: var(--text-primary);
}
/* Borderless inline text command (open a reader, request an update, name a brief). */
.window-action:is(:disabled, [aria-disabled="true"]) {
color: var(--text-muted);
cursor: default;
}
/* Borderless inline text link (an end-of-list "Load more", a guide). */
.window-text-button {
display: inline-flex;
align-items: center;

View file

@ -3,23 +3,6 @@
.mission-create .window-body > textarea { width: 100%; min-height: 7em; }
.mission-create-field-error { display: block; color: var(--status-error-fg); font-size: var(--font-size-xs); margin-block: var(--space-xs); }
.mission-create-when {
display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm);
border: 0; padding: 0; margin: var(--space-sm) 0; min-inline-size: 0;
}
.mission-create-when > legend { float: inline-start; width: 100%; padding: 0; margin-block-end: var(--space-xs); }
.mission-editor .mission-create-when .mission-create-choice {
display: inline-flex; flex-direction: row; align-items: center; gap: var(--space-xs); margin: 0;
min-height: var(--touch-target-size-compact); white-space: nowrap;
}
/* Opt out of the editor's full-width text-input rule. */
.mission-editor .mission-create-when input[type="radio"] { width: auto; min-height: 0; padding: 0; margin: 0; flex: none; }
.mission-editor .mission-create-when input.mission-create-time { width: auto; }
.mission-create-zone {
display: flex; flex-basis: 100%; flex-wrap: wrap; align-items: center; gap: var(--space-xs);
color: var(--text-secondary); font-size: var(--font-size-xs);
}
.mission-create-options > summary { font-weight: 500; }
.mission-create-options[open] { border-top: 1px solid var(--border-base); padding-top: var(--space-xs); }
.mission-create-option { margin-block: var(--space-sm); }

View file

@ -3,6 +3,8 @@
.mission-reader { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; background: var(--surface-canvas); }
.mission-reader .window-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mission-reader .window-action { display: flex; gap: var(--space-xs); align-items: center; flex-shrink: 0; }
/* Content-bearing links (a plan change, a report, a briefing source) wrap within the reader. */
.mission-reader .window-action.mission-reader-link { flex-shrink: 1; max-width: 100%; justify-content: flex-start; white-space: normal; overflow-wrap: anywhere; text-align: start; }
.mission-reader article { min-width: 0; max-width: 90ch; margin-block: var(--space-lg); margin-inline: 0; overflow-wrap: anywhere; }
.mission-reader pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.mission-reader-pagination { display: flex; align-items: center; gap: var(--space-sm); }

View file

@ -242,7 +242,17 @@ test("actual MissionControl reuses the current task tree and attention, with bri
const historical = mission.tasks[0].report!
mission.reports.push(historical)
mission.tasks[0].report = { ...historical, id: "rpt_newer", summary: "Newer result must not replace the historical body", createdAt: 4 }
await page.locator(".mission-briefing-sources").getByRole("button", { name: "Review commits" }).click()
// A long source title wraps within a narrow reader instead of overflowing it.
const source = page.locator(".mission-briefing-sources").getByRole("button", { name: "Review commits" })
assert.equal(await source.evaluate(element => {
const original = element.textContent, parent = element.parentElement!
element.textContent = "Review every commit of the release branch and reconcile the changelog ".repeat(3)
parent.style.width = "240px"
const fits = element.getBoundingClientRect().right <= parent.getBoundingClientRect().right + 1 && element.scrollWidth <= element.clientWidth + 1
element.textContent = original; parent.style.width = ""
return fits
}), true, "a long briefing source wraps within its container")
await source.click()
await page.locator(".mission-reader").getByText("Exact isolated result", { exact: true }).waitFor()
assert.equal(await page.locator(".mission-reader").getByText("Newer result must not replace the historical body", { exact: true }).count(), 0)
mission.tasks[0].report = historical