feat(ui): per-project .work-files/ navigable tab - #14
Merged
Merged
Conversation
Adds a sidebar tab next to Plans/Memory listing files under each project's .work-files/ directory, with content view (markdown rendered, JSON pretty-printed, plain text otherwise). IPC handlers list-work-files / read-work-file are path-validated under <projectPath>/.work-files to prevent directory traversal. New jsdom smoke test covers the renderer.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a sidebar tab next to Plans / Memory that lists files under each project's
.work-files/directory, with content viewing (markdown rendered, JSON pretty-printed, plain text otherwise).public/index.html— new tab button + panepublic/plans-memory-view.js— extends the existing pattern (loadWorkFiles / showWorkFile)public/app.js— tab wiringpublic/icons.js— folder iconpublic/style.css— pane stylingmain.js—list-work-files/read-work-fileIPC handlers, path-validated under<projectPath>/.work-files/to prevent directory traversalpreload.js— exposes the IPC channelseslint.config.js— new globals for the test filetest/dom-work-files-view.test.js— jsdom smoke test (~315 lines covering tree rendering, content panel, IPC mocking, path-traversal guard)Test plan
npm test— 53/53 pass (was 45/45 before)npx eslint .— 0 errors, 217 warnings (pre-existing pattern).work-files/dir, click the new tab, expand tree, click a markdown file, click a JSON fileNotes
..traversal at the IPC boundary (server-sidepath.resolve+ prefix check)Closes the
.work-files/tab spec.