Skip to content

Bump to MobX 6 with decorators kept #146

Closed

Description

@jtklein-agents

Parent

#118

What to build

The version bump is separated from the class rewrites so that a failure points at one cause: the page store moves to mobx 6.16 and mobx-react-lite 4.1 while still written with decorators. MobX 6 is an intermediate step only. The app behaves exactly as before.

Cut the worktree from the spec's feature branch spec/118-page-store-mobx-7 and open the pull request into it.

Acceptance criteria

  • mobx is on 6.16 and mobx-react-lite on 4.1, moved in the same change, with yarn.lock updated.
  • Each decorated class in the page store gains a makeObservable( this ) call in its constructor.
  • Each subclass member that replaces a parent's action or computed is marked with the override decorator.
  • Class fields use spec (define) semantics in the Babel configurations and the TypeScript configuration, for the page build and jest together.
  • The page store runs under MobX's default action enforcement; there is no configure call.
  • The async-computed helper package the run imports still works on MobX 6, or is bumped or replaced in this change with the run's behaviour unchanged.
  • No panel changes.
  • The coverage tests and the parity test pass.
  • Jest, lint, the typecheck baseline check and the end-to-end suite pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions