Skip to content

Convert the config to an annotation map (#149) - #193

Merged
jtklein-agents merged 1 commit into
spec/118-page-store-mobx-7from
149-convert-the-config-to-an-annotation-map
Nov 15, 2026
Merged

jtklein-agents merged 1 commit into
spec/118-page-store-mobx-7from
149-convert-the-config-to-an-annotation-map

Conversation

@jtklein-agents

Copy link
Copy Markdown
Owner

Summary

 class Config extends StoreBase {
   constructor() {
     super();
-    makeObservable( this );
+    makeObservable( this, { isDarkMode: observable, setDarkMode: action } );
 }
-  @observable isDarkMode = false;
-  @action setDarkMode = ( value ) => { ... }
+  isDarkMode = false;
+  setDarkMode = ( value ) => { ... }

Closes #149

Evidence

  • Before: decorators on Config.
    After: yarn test — 61 suites, 451 tests pass, parity test baseline unchanged.
  • typecheck:baseline fails on the spec branch with or without this change (missing Jest types, from Type-check test files with Jest types #168 not yet in the spec branch). E2E not run locally.

Merge Danger

Door: two-way

Blast Radius: dark-mode toggle only

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@jtklein-agents
jtklein-agents merged commit 2ed42d4 into spec/118-page-store-mobx-7 Nov 15, 2026
8 checks passed
@jtklein-agents
jtklein-agents deleted the 149-convert-the-config-to-an-annotation-map branch November 15, 2026 23:12
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