ref: Prompt Category Icon Update#8308
Conversation
WalkthroughThe icon representing the "prompts" category was updated from "TerminalSquare" to "braces" in three data structures within a utility file. No other logic or exported entity signatures were changed. Changes
Sequence Diagram(s)No sequence diagram generated as the changes are limited to updating static icon values. ✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
| { display_name: "Inputs", name: "inputs", icon: "Download" }, | ||
| { display_name: "Outputs", name: "outputs", icon: "Upload" }, | ||
| { display_name: "Prompts", name: "prompts", icon: "TerminalSquare" }, | ||
| { display_name: "Prompts", name: "prompts", icon: "braces" }, |
There was a problem hiding this comment.
The icon name casing is inconsistent: using lowercase "braces" here but uppercase "Braces" elsewhere. Update this to "Braces" to match the other mappings and avoid lookup failures.
| { display_name: "Prompts", name: "prompts", icon: "braces" }, | |
| { display_name: "Prompts", name: "prompts", icon: "Braces" }, |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
src/frontend/src/utils/styleUtils.ts (2)
211-211: Inconsistency: Icon casing inSIDEBAR_CATEGORIESentry
The rest of the sidebar icons use PascalCase (e.g.,"GradientSave","Cable"). To maintain consistency, consider changing- { display_name: "Prompts", name: "prompts", icon: "braces" }, + { display_name: "Prompts", name: "prompts", icon: "Braces" },
434-440: Optional: Clean up unused mappings
ThegetLucideIconNamehelper still maps"TerminalSquare"to"square-terminal", but that icon is no longer referenced anywhere in this file. Consider removing this mapping to reduce dead code.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/frontend/src/utils/styleUtils.ts(3 hunks)
🔇 Additional comments (2)
src/frontend/src/utils/styleUtils.ts (2)
291-291: Update the prompts category icon mapping
Great catch updating the prompts icon incategoryIconsto"Braces"to match the new design.
319-319: Update the prompts node icon mapping
Good update to the prompts entry innodeIconToDisplayIconMap—now uses"Braces"consistently.
Update styleUtils.ts
Summary by CodeRabbit