You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
split(pm-stack): render.ts (8,515 lines) under the production line limit (#12671) #13051
Split pm-stack/aggregator/src/render.ts under the production line limit
pm-stack/aggregator/src/render.ts is 8,515 lines (measured on main, 2026-11-23) — the largest PM-stack TypeScript file. It is pure HTML rendering for every aggregator view (charts, tables, filters, boards).
It is grandfathered in .github/scripts/check-production-line-limit.sh (limit 2500 production lines, extended to pm-stack TypeScript under #12671). Per the guard's convention, this issue is the one that removes its grandfather entry: the entry is deleted in the same PR that lands the split.
Split by view — for example charts, tables, filters, boards — behind the existing renderX exports, so callers keep importing the same names. Each resulting file must be under 2500 lines and covered by the existing aggregator test suites.
Done when
render.ts (or its successor modules) are each under the 2500-line guard limit.
The pm-stack/aggregator/src/render.ts grandfather entry is removed from the guard script in the same PR.
Pickup — xaltha lane taking this split. Branch xaltha/13051-split-render-ts pushed from current main; splitting pm-stack/aggregator/src/render.ts (8,515 lines) by view behind the existing renderX exports, no behavior change, and removing its grandfather entry from .github/scripts/check-production-line-limit.sh in the same PR per the guard convention. Staying strictly inside render.ts and its own imports (sibling lane has server.ts / #13052).
Import graph is a DAG (everything → core; attention/today → quota for the shared card helpers; views → board; program → board + views). The grandfather entry is removed from check-production-line-limit.sh in the same PR.
Evidence (full detail in the PR body): module bodies verified line-for-line against the original; render-touching suites (75 files) show zero deterministic failures before or after — the only failures in both runs are the sandbox's missing-web-push server-boot flake, proven split-independent; the six source-scanning test files were re-pointed at the render module set (assertions unchanged) and pass 61/61; differential typecheck of the render graph vs pristine HEAD is identical with zero errors in render files; the guard's only delta vs HEAD is the render.ts warning gone, and its contract tests pass.
Activity
developing-today commentedon Nov 23, 2026
CODE-4762
dezren39 commentedon Nov 23, 2026
Pickup — xaltha lane taking this split. Branch
xaltha/13051-split-render-tspushed from current main; splittingpm-stack/aggregator/src/render.ts(8,515 lines) by view behind the existingrenderXexports, no behavior change, and removing its grandfather entry from.github/scripts/check-production-line-limit.shin the same PR per the guard convention. Staying strictly inside render.ts and its own imports (sibling lane has server.ts / #13052).pm-stack: split render.ts (8,515 lines) into render-*.ts view modules (…
dezren39 commentedon Nov 23, 2026
Split landed as PR #13089 (Closes #13051).
Module map — render.ts is now a 118-line barrel re-exporting every public name (callers unchanged); bodies moved verbatim:
Import graph is a DAG (everything → core; attention/today → quota for the shared card helpers; views → board; program → board + views). The grandfather entry is removed from check-production-line-limit.sh in the same PR.
Evidence (full detail in the PR body): module bodies verified line-for-line against the original; render-touching suites (75 files) show zero deterministic failures before or after — the only failures in both runs are the sandbox's missing-web-push server-boot flake, proven split-independent; the six source-scanning test files were re-pointed at the render module set (assertions unchanged) and pass 61/61; differential typecheck of the render graph vs pristine HEAD is identical with zero errors in render files; the guard's only delta vs HEAD is the render.ts warning gone, and its contract tests pass.