feat: add status-based color coding to tree view icons#46
Open
kevglynn wants to merge 2 commits into
Open
Conversation
Tint issue type icons with status-based colors using VS Code's ThemeIcon(id, ThemeColor) API. Icon shape still represents issue type (bug, feature, epic, etc.) while color now represents status. Declares 8 custom theme colors via contributes.colors: - open (green), in_progress (blue), blocked (red), closed (gray) - deferred (amber), pinned (purple), hooked (cyan) - fallback for unknown/custom statuses (muted orange) All colors are user-overridable via workbench.colorCustomizations. Consistent with the existing detail webview color palette. Closes raychaser#45 Made-with: Cursor
The detail panel only styled open/in_progress/blocked/closed badges. Add CSS for deferred (yellow), pinned (purple), and hooked (cyan) using VS Code theme variables. Includes both .status-* and .child-status-* classes for consistency. Made-with: Cursor
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 color-coded status indicators to the tree view icons, making issue status instantly scannable at a glance — similar to how VS Code's file explorer colors modified/untracked files.
Before: All icons are the same color regardless of status. Status is conveyed only by text symbols (
[O],[>],[B],[C]).After: Icon shape still represents issue type (bug, feature, epic, etc.), while icon color now represents status.
Color Scheme
openbeadsx.statusOpenin_progressbeadsx.statusInProgressblockedbeadsx.statusBlockedclosedbeadsx.statusCloseddeferredbeadsx.statusDeferredpinnedbeadsx.statusPinnedhookedbeadsx.statusHookedbeadsx.statusDefaultImplementation
Two small changes:
package.json— Addedcontributes.colorsblock declaring 8 customThemeColorentries with light and dark theme defaultssrc/beadsTreeDataProvider.ts— Added astatusColorMapingetTreeItem()that maps status strings toThemeColorinstances, with a fallback for unknown/custom statusesDesign Decisions
contributes.colors, so users can customize any status color in theirworkbench.colorCustomizationssettings.bd config set status.custom. Unknown statuses getbeadsx.statusDefault(muted orange) — no breakage, visible differentiation.open,in_progress,blocked,closed,deferred,pinned,hooked.Test Plan
tsc --noEmit)workbench.colorCustomizationsCloses #45
Made with Cursor