Repository navigation
Refactor: Infrastructure cleanup, shared components, and theme synchronization #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
9b2bb11
refactor: extract shared hooks/helpers/components (arch review waves …
ddutchie 4af0c8d
refactor: decompose large modules + de-dup markdown/hydration (wave 3)
ddutchie a0897cc
refactor: merge session date helper + de-dup agent transcript save (w…
ddutchie c7e25c8
chore: remove unused imports flagged by eslint
ddutchie f2658bb
fix(chat): use theme-aware accent-fg token for user bubble text
ddutchie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| ## What's new | ||
|
|
||
| A maintenance release focused on internal cleanup: shared hooks and components were extracted across the app to remove duplicated logic and shrink several oversized files. No new features, but it fixes a few UI consistency issues along the way. | ||
|
|
||
| ### Fixes | ||
|
|
||
| - **Code, diff, and git views now recolour instantly on theme change**: Syntax-highlighted code blocks, the diff viewer, and the git panel read the theme once when they rendered and didn't update when you switched light/dark (or when the OS theme changed in "system" mode) — leaving stale colours until the view remounted. They now repaint immediately on a theme change. | ||
| - **More reliable navigation from links and chips**: Opening a note or task from a card's linked-notes list, a chat/agent reference chip, a flow node, the search panel, or the project overview occasionally raced the target view's load and failed to scroll to / select the item. These now consistently switch views and reveal the target. | ||
| - **Consistent syntax-highlight colours everywhere**: Code blocks in notes, the dashboard HTML editor, and PDF export all draw from a single shared palette, so a given token renders the same colour across every surface (and the PDF light-theme remap stays in sync). | ||
|
|
||
| ### Changes | ||
|
|
||
| - **Medium-priority colour aligned to blue**: The medium priority level now renders blue (`--info`) consistently. Previously the class-based badges (flow task nodes, the node-edit modal, the top-bar project badge, the card-detail flag) showed amber while the board card stripes and analytics charts already used blue. They now all match. | ||
| - **Shared UI primitives**: Introduced reusable building blocks — a theme hook (`useIsDark`), a copy-to-clipboard hook, a navigation helper, a `Toggle` switch, and a node-type chip — and adopted them across chat, agent, notes, kanban, graph, insights, settings, and onboarding to replace ad-hoc copies. | ||
| - **Unified the card detail view**: The card-detail modal and the inline card-detail panel (shown beside chat) now share one implementation, so they always stay in sync. | ||
| - **Smaller, more focused modules**: The kanban board's archive view, the note PDF-export logic, and the shared markdown code-block renderer were split into their own files; the store's startup hydration paths now share a single restore routine. The agent chat pane's turn-complete and error handlers now share one transcript-save routine, and the session-list date formatter moved into the shared date helpers. |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.