106f0ad337cc446d2a465262e5f2772588901969
EditTab.svelte was 589 lines against the 500-line hard limit in docs/10 §1 -- the one place in the codebase that broke it. Now 459. Extracted, in each case because the thing was genuinely cohesive rather than to hit a number: - src/lib/edit/edit-node.ts -- toEditNode, flattenTree, isEditable, resolveNewFolderParent, countDescendants, extraCopyIds. All pure, all previously inline and therefore untestable. resolveNewFolderParent in particular encodes a fixed bug (a focused root resolving to the synthetic root "0", which every create rejects) that nothing was pinning. - src/lib/browser/open-url.ts -- the docs/09 T3 scheme allowlist, which is the only thing between a crafted `javascript:` bookmark in someone's import file and the browser acting on it. It had NO test. It does now, including the case-shouting dodge and data:/file:/chrome:. - EditToolbar.svelte and MoveToDialog.svelte -- presentational, with their styles copied verbatim. This is a move, not a redesign. The script block is still 279 lines against docs/10 §1's 150-line guidance. The remainder is the mutation layer (guardEdit and the six operations), which is coupled to reactive state and would need accessor indirection to move. Adding that indirection to the app's delete paths immediately before a release is a worse trade than the line count, so it stays and is recorded in CLAUDE.md rather than quietly ignored. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Languages
TypeScript
75.8%
Svelte
14.5%
JavaScript
9.2%
CSS
0.4%