Repository navigation
Move the page store to MobX 7 annotation maps - #504
Merged
jtklein merged 98 commits intoNov 16, 2026
Merged
Conversation
The 24 Option and tree-file subclasses and the constants they read (binaries, analysis option lists, CPU count, RAxML settings aliases) move verbatim from Run.js to RunOptions.js, so the run and its options can be covered and converted in separate tickets. Run imports what it uses; RunOptions never imports Run. Typecheck baseline paths updated. Closes #119 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
import/no-cycle turns the spec's no-circular-import criterion into a lint error (src has none today). typecheck-baseline.js --rename <old> <new> repoints baseline entries after a pure file move, refusing any entry with no same-message diagnostic at the new path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…to-one-module-per-class-family Split the run file into one module per class family
FinalAlignment moves verbatim to FinalAlignment.js, and the raxml-ng model options and MultistateNumber move verbatim to AlignmentOptions.js, so each family can be covered and converted in its own ticket. Alignment.js keeps only Alignment and imports its option classes; neither new module imports Alignment. Run imports FinalAlignment from its new module. Typecheck baseline entries repointed with --rename. Closes #120 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move the part option classes to PartOptions.js and FinalPartition to FinalPartition.js; Part and Partition stay in Partition.js. Pure move. Closes #121 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@babel/preset-env pulls in a placeholder build of @babel/plugin-proposal-private-property-in-object, which yarn nests under babel-preset-react-app; that copy prints a ten-line warning on every lint run. A resolution to 7.21.11 dedupes it to the real plugin already in devDependencies, so lint output is just the lint result. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ile-into-one-module-per-class-family Split the partition file into one module per class family
…t-file-into-one-module-per-class-family
#121 moved FinalPartition out of Partition.js; FinalAlignment still imported it from there, breaking the build after the spec merge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pins today's behaviour of Citation and Config through the page store: each citation format's text, allText following format, show/hide, clipboard copy, dark mode loading, switching and menu events, and dispose. Bridge stub lives in the test file. Closes #124 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pin Option's actions, computeds and value reactivity before the MobX 7 rewrite. Closes #123 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
darkMode.test.js and the light/dark case in menu.test.js assert what citationConfig.test.js asserts through the page store. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
eslint exits 0 on warnings, so the CI lint job let them through. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ile-into-one-module-per-class-family Split the alignment file into one module per class family
Pins today's behaviour of AppStore and RunList: every action and computed, a reaction per observable field, adding, removing and switching runs, and independent state between two runs. Closes #125 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fail lint on warnings
…d-config-on-mobx-5 Cover the citation and config on MobX 5
…-on-mobx-5 Cover the option base on MobX 5
…nd-run-list-on-mobx-5 Cover the app store and run list on MobX 5
Replaces the 'shows an input file in its folder' test in showItemInFolder.test.js, now covered by InputFile.test.js. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Tests pin the alignment's computeds, actions, observable fields, parsed-alignment loader and model selection start, success, failure and cancel (#127). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…tion-warning Jest fails a test on a MobX action warning
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
AppStore converts with it: its decorators and the run list's map cannot share an inheritance chain. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…154) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The run list converts with it: a decorated subclass cannot sit under a parent that passes an annotation map, so the two convert as one unit. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…-an-annotation-map Convert the config to an annotation map (#149)
…nt-annotation-map Convert the final alignment to an annotation map (#150)
…partition-final-partition Convert the part, partition and final partition to annotation maps
…-file-alignment-astral-tree Convert the input file, alignment and ASTRAL tree to annotation maps
…-to-annotation-maps Convert the Option family to annotation maps (#155)
…-to-an-annotation-map Convert the app store to an annotation map (#152)
…to-an-annotation-map Convert the run list to an annotation map (#153)
Replace the run's decorators with a makeObservable annotation map. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…-annotation-map Convert the run to an annotation map
observable.ref becomes observableRef. mobx-utils 6.1.1 works on MobX 7 despite its ^6 peer range; no new action warnings. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The menu already updates the page through the renderer bridge; the note described a workaround that no longer exists. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…react-lite-5 Bump to MobX 7 and mobx-react-lite 5
Remove the stale decorator note from the file menu
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Remove the decorator plugin and the TypeScript decorator flag
Closes #160 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…t-and-its-baseline Delete the parity test and its baseline
…MobX guard busy was only read by one test. fromPromise already exposes rejection, so the ok/failed wrapper is gone. The _getGlobalState guard used a private MobX API that the MobX 7 bump could break. Adds a direct test for the shim. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Slim promisedComputed: drop busy, ok/failed wrapping, private MobX guard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The page store moves from MobX 5 legacy decorators to MobX 7 with
mobx-react-lite5. Each store class declares its observables, computeds and actions in an annotation map. Spec: jtklein-agents#118.Evidence
After: no decorators, no decorator config; the page-store tests (about 5,000 added lines under
src/app/store/*.test.js) pass on MobX 7, andjest/mobxActionWarning.jsfails any test that triggers a MobX action warning.Merge Danger
Door: two-way
Revert the merge to return to MobX 5 and decorators.
Blast Radius: page state
Every panel reads the page store, so a missed annotation would show as a panel that does not update or a wrong command preview. Jest constructs every store class, and the end-to-end specs run on macOS, Ubuntu and Windows. The branch is one commit behind
upstream/master(#499); that commit touches nothing in the page store.🤖 Generated with Claude Code