Repository navigation
Closed
Labels
ready-for-agentFully specified, ready for an AFK agent
Description
Parent
What to build
One family of the page store declares its observable fields, computeds and actions in a plain annotation map instead of decorators: the run list. A family converts as a unit because decorators and annotation maps cannot be mixed within one inheritance chain.
The replacement pattern, fixed by the spec (trimmed from the prototype):
class Option {
value;
constructor( run, defaultValue /* … */ ) {
this.defaultValue = defaultValue;
this.value = defaultValue;
makeObservable( this, {
value: observable,
setValue: action,
reset: action,
isDefault: computed,
error: computed,
} );
}
setValue( value ) { /* … */ }
}
class OutGroup extends Option {
constructor( run ) {
super( run, ['<none>'], 'Outgroup', '' );
makeObservable( this, {
options: computed,
setValue: override, // replaces the parent action
cmdValue: computed,
} );
}
setValue( value ) { /* … */ }
}Cut the worktree from the spec's feature branch spec/118-page-store-mobx-7 and open the pull request into it.
Acceptance criteria
- No decorator remains on the run list.
- Each of these classes that has observable members calls
makeObservablewith an explicit annotation map in its constructor. A class that needs the call and has no constructor gets one. A subclass with no observable members of its own gets no call. -
makeAutoObservableis used nowhere. - An action stays an arrow field where it is passed unbound; where a subclass replaces an action, actions are prototype methods.
- A subclass that replaces a parent's action or computed annotates it
override. - The parity test passes with its baseline unchanged.
- No test triggers a MobX action warning.
- Panels and behaviour are unchanged.
- Jest, lint, the typecheck baseline check and the end-to-end suite pass.
Metadata
Metadata
Assignees
Labels
ready-for-agentFully specified, ready for an AFK agent
Activity
Merge pull request #197 from jtklein-agents/153-convert-the-run-list-…
jtklein-agents commentedon Nov 15, 2026
Merged in #197 (also converted AppStore, which shares the inheritance chain).