docs: record HEL-756 batch 1 implementation and validation
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
HEL-756 delivers only the first batch of HEL-754, on the existing PR #5 branch. The whole PR remains unaccepted: 49 planned diagnostics remain for later batches, and the new head still requires independent review.
|
||||
|
||||
## Scope and implementation
|
||||
|
||||
Started from `fix/hel-750-code-checks@a666f6bd12cd437629cd52debadbd9da79b67f57`; PR base remains `feat/hel-730-management@64c1116bca1150e413ab51151bade6844f1ec914`. Both remote refs were verified before editing. All preceding commits are retained. No dependency, lint configuration, backend, API, saved user configuration, CSS, layout or visible copy changes.
|
||||
|
||||
- Navigation: resolve the 74 A/B/C application destinations. `shell/nav.ts` and CommandPalette carry `Pathname`, context helpers carry precise template return types, and the unchanged four home tools are a module constant. AttachToProject computes its link inside the existing non-null attached branch. Query/hash, replaceState, keepFocus and noScroll options retain their prior semantics; resource and dynamic-URL navigation categories D/E/F are untouched.
|
||||
- The matrix's `/create${url.search}${url.hash}` expression does not pass this checkout's typed-route overload: search/hash are broad strings, so the resulting type can also describe invalid `/createXYZ`. `src/lib/createHref.ts` uses actual nonempty query/hash branches and precise return types, with no assertions. It preserves the exact prior concatenated bytes, including empty tails. StudioDesk, image/video redirects and playground use the same helper, then resolve the entire result. Canvas parameter removal uses the current route's `page.params.id`, preserving the prior query-only behavior; workbench stage changes use `pageStore.params.id` and retain query plus hash.
|
||||
- Lists: 42 loops use unique identity keys from the matrix. Six explicitly retain positional reuse: three ComfyDynamicForm option lists allow repeated paths and parent-owned selection; Artboard output buttons are numbered positions and allow repeated paths; Artboard spec rows are display-only; tasks output rows can repeat paths and own video DOM state. Each positional loop has its own reason at the callsite. No output is deduplicated or discarded.
|
||||
- Readonly state: `mode` becomes const with `$state`, `untrack(initMode)` and consumers preserved; `syncVersion` becomes const with `$state`, existing comments and effect read preserved. TimelineStrip's `exporting` had no writer and only one boolean reader, so remove the false flag and simplify `false || !canExport` to `!canExport`.
|
||||
|
||||
## Validation
|
||||
|
||||
Node v24.16.0 / npm 11.13.0. Clean `npm ci` exits 0. Locked versions include Kit 2.70.3, Svelte 5.56.7, ESLint 9.39.5, eslint-plugin-svelte 3.23.1, TypeScript 5.9.3, Prettier 3.9.6 and Vite 6.4.3. No package files changed.
|
||||
|
||||
- Baseline ESLint: 174 errors. Final: 49 errors, 0 warnings. A multiset comparison by file/rule/message proves 125 removed (navigation 74, keys 48, readonly state 3), with no new diagnostics. Remaining: navigation 13, reactivity 25, imperative DOM 10, video-caption compilation 1.
|
||||
- Full `npm run lint` exits 1 solely for those 49 planned later-batch diagnostics; its existing Prettier stage passes. The existing formatter does not scan Svelte templates without explicitly loading the plugin; no broader format-compliance claim is made.
|
||||
- `npm run check`, `npm test`, `npm run build` all exit 0. One existing ShotStagePanel caption warning remains, along with existing dependency/chunk build notices. No new empty track or exception is added.
|
||||
- 296 expression-level destination comparisons cover every one of the 74 positions; 20 extra helper tail cases preserve exact bytes. CSS blocks in all 39 changed Svelte files compare byte-for-byte equal to the starting head.
|
||||
- Chromium runs the same isolated API fixture against an archive of a666f6b and the new implementation. 66 before / 67 after checks pass, including the final full snapshot comparison. Coverage: shell and home links; Ctrl+K project navigation; new-project flow; image/video/playground redirects; mediumLink and cross-kind reuse with query/hash; original image draft and reused video draft ownership; models/connections tabs; stage focus; seven languages; four themes plus keyboard focus; all three duplicate-path asset option branches; project/character/location/scene selects; image/video attach destination stages; helper handoff source IDs; agent style/filtered skill focus and draft retention; workflow/library/task filters.
|
||||
- Tasks media: two identical output paths render without duplicate-key failure. First video is explicitly playing and second paused; append preserves that state, and insertion/removal/replacement preserve positional DOM identities and the same paused/source transitions as the old version. This is actual media playback with a local fixture, not mocked media properties.
|
||||
|
||||
The fixture intercepts all API requests. The only POSTs are fake LLM connection probing and fake project attachment; no generation call, external model request, user data, or production service is used. Vite/browser children are collected and stopped by the foreground runner; its temporary route is removed before final checks. Early harness failures (missing browser libraries, selector/timing and media URL fixture mistakes) are retained in the attached attempt logs; they were fixed in test infrastructure, not by altering product behavior. The first navigation check also caught the matrix's template typing issue and a nonexistent local `id`; the corrected check passes.
|
||||
|
||||
Artifacts attached to HEL-756 contain per-position results, initial/final diagnostics and exact difference, full logs with exits and package versions, complete batch patch and individual patches, foreground runner/harness/browser scripts and screenshots, and the PR-description draft. No full-site visual acceptance, production API run, or independent final review is claimed. HEL-755's review of a666f6b does not validate this new head.
|
||||
|
||||
## Commits and rollback
|
||||
|
||||
Navigation `9d54b9d`, list keys `88965fa`, readonly state `99574c2`, module tool constant `67eb822`; this documentation is separate. To undo one change, `git revert <full-commit>`; to undo the complete batch, revert its commits in reverse order, including this documentation commit. Do not reset or force push. No deployment or data migration occurred. The environment had no configured Git identity; commits use the same per-command identity as every preceding PR commit (leefer / hello@shengshentech.com), with no Git identity configuration written.
|
||||
Reference in New Issue
Block a user