Repository navigation
Closed
8 / 88 of 8 issues completedLabels
wayfinder:mapWayfinder map
Description
Destination
A spec issue, "Spec: page TypeScript", with a feature branch and child leaf tickets, the same shape as the main-process TypeScript spec. The map is done when that spec and its leaves can be written with nothing left to decide. The map converts no files.
Notes
- In scope: production files under
src/app(panels, page store, helpers, entry),src/preload/index.js, and the threesrc/commonparsers (fastaParser.js,phylipParser.js,typecheckAlignment.js). About 8,000 lines in 40 files onmasteratb0d2729. - Tests stay JavaScript. Only production files convert.
- Done bar per leaf: file renamed to
.ts/.tsx, shape kept, explicit types added, the file's typecheck baseline lines gone.strictstaysfalse. - Types only. A bug that typing exposes becomes its own ticket, not a fix inside a leaf.
- Written against
master, which holds the page store on MobX 7 annotation maps. - Vocabulary:
GLOSSARY.md(Page, Page store, Renderer bridge, Shell). Conventions:docs/agents/issue-tracker.md(TypeScript leaves, Checks) andCODING_STANDARDS.md(TypeScript renames). - Research findings land on throwaway
research/<name>branches, pushed, never merged.
Decisions so far
- Inventory the in-scope files for the page TypeScript conversion: 40 files, 14 of them JSX, no import cycles; leaf-first order ends in the chain Alignment, Run, RunList, store index, App, page entry.
--noImplicitAnyadds 414 diagnostics in scope, 267 of them in seven files.lodashandd3-arrayhave no types. Renames breaksrc/pageNodeImports.test.js,scripts/page-store-coverage.jsand every baseline line. - What do MobX 7 annotation maps need from TypeScript?: nothing extra for the store as it stands. Map keys are checked against public members only, annotation kinds and
overrideare runtime-only, and the store has noflowand no non-public members. The Jest field trap it reported does not reproduce; see the Option prototype. - How does the page see the renderer bridge's type?: one declared interface in
src/common/rendererBridge.tsplus aWindowdeclaration, no cast. Crossing payloads are typed once in main and imported type-only. The interface lands with the preload as the first leaf and grows leaf by leaf. - Prototype the typing pattern on Option and two subclasses:
Option<Value, Owner>, the owner typed by one small module-local interface per leaf file,descriptionandhoverInfooptional. The option base is its own early leaf and alone clears 22 of the 26 baseline diagnostics. A subclass never redeclares a base field. - Do PropTypes go when a panel gets typed props?: yes, in the same leaf. React 19 already ignores them, so it is dead-code removal. Store-object props get a small module-local interface; required and optional carry over exactly; the last leaf drops the direct
prop-typesdependency. - How is "no implicit any" checked with strict off?: by a second
tsc --noImplicitAnypass insideyarn typecheck:baselinethat requires zero diagnostics in any.tsor.tsxfile, with no allowlist. Lint bans a writtenanyand applies the "full typing" rules to all TypeScript. It is its own leaf, landing first. - Choose the slices and their order: 17 leaves of whole files grouped by family; Run is one leaf. Fixed order is the check, then the bridge, the option base before its subclasses, the app shell after all other conversions, close-out last; the rest is free.
@types/lodashand@types/d3-arraycome in with their first importer, and the baseline script learns to pass when empty. - What happens to the bugs typing exposes?: a leaf keeps the behaviour, accommodates with a widened type or a reasoned
@ts-expect-error, files one issue per bug outside the spec, and carries on. Two are known and get filed with the spec: the delete icon'stitleprop andMultistateNumber.error.
Not yet specified
- The spec text itself: user stories, testing decisions, and the 17 leaf tickets. Not a decision; it is the hand-off once the last ticket closes.
Out of scope
- Turning on
strictornoImplicitAnyintsconfig.json, and removingallowJs. - Converting
.test.jsfiles and thejest/setup files to TypeScript.
Sub-issues
Collapse Sub-issuesSub-issues
Loading 8 sub-issues
Metadata
Metadata
Assignees
Labels
wayfinder:mapWayfinder map
Activity
jtklein-agents commentedon Nov 16, 2026
Spec written: #236. The two known bugs from #233 are filed as #234 and #235. The 17 leaf tickets are still to be written.
jtklein-agents commentedon Nov 22, 2026
Merged upstream: AntonelliLab#508