Skip to content

refactor(missions): the creation form keeps schedules above events and reads no schedule route - #1833

Merged
pascalandr merged 1 commit into
devfrom
refactor/programmed-criteria-form
Nov 28, 2026
Merged

pascalandr merged 1 commit into
devfrom
refactor/programmed-criteria-form

Conversation

@pascalandr

Copy link
Copy Markdown
Contributor

The creation form still offered criteria a programmed Mission refuses on save: a date after events (the "else" fallback) and the events of another schedule or Mission. It now keeps schedules above events, drops those two events, shows followed conversations for a one-time Mission only, and reads the service directory from the native Location instead of the recurring engine's capability route, so no form request reaches the schedule routes.

Verified with the UI typecheck, the Missions UI unit and contract tests, the creation-form browser tests one file at a time and npm run test:help.

…d reads no schedule route

A programmed Mission carries date rules, Git and forge events, and events
that condition a date. The form still offered what its save refuses: a date
placed after events (a fallback, shown as "else"), the success of another
schedule and the completion of another Mission. It also asked the recurring
engine's capability route whether criteria could be added, and its source
lists for those two Mission events.

The form now keeps schedules above events, so the "else" connector cannot be
produced: a card that becomes a schedule joins the schedules, a dragged event
stays below them, and a card added after an event is an event. The two
Mission events leave the list of criteria; a stored policy naming one is
kept under "Stored scheduling policy" until replaced. Followed conversations
show for a Mission launched once only. The service directory the sources
need comes from the native Location, read once a source needs it, and no
form request reaches the schedule routes any more. Recurring instructions
take the same 20,000 characters as a one-time objective.

Help in the ten languages loses the "else" combination, the two Mission
events and the claim that followed conversations apply to scheduled
Missions.

Validation: UI typecheck; the Missions UI unit and contract tests; the
creation-form browser tests one file at a time; npm run test:help.
@pascalandr

Copy link
Copy Markdown
Contributor Author

Own review before merging (no blocking finding).

  • Order: every change of the criteria goes through one ordering (orderMissionCriteria), including the drag preview, so the list cannot hold a schedule below an event. A card added after an event is an event, so adding never moves a card; a card whose type crosses from event to schedule moves to the schedules.
  • A stored policy with another Mission's event decodes as retained ("Stored scheduling policy") instead of being read as a schedule shortcut; covered by the decode test.
  • The native Location read runs only once a source needs the directory (an event criterion, an existing coordinator conversation, a followed conversation); a failure shows the existing "Refresh the source location" action.
  • Left for the next PR: the schedule routes, their client methods and the fixtures that still stub them.
  • Checked: UI typecheck; 506 Missions UI unit and contract tests (2 failures already on dev); the thirteen form-related browser test files; npm run test:help.

@pascalandr
pascalandr merged commit d5725bc into dev Nov 28, 2026
2 checks passed
@pascalandr
pascalandr deleted the refactor/programmed-criteria-form branch November 28, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant