-
Notifications
You must be signed in to change notification settings - Fork 3
[ENG-602] Add color setting #300
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
Conversation
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
📝 WalkthroughWalkthroughThis change introduces visual color indicators for node types across several components and adds support for editing a "color" field in node type settings. A new color input is provided in the settings UI, and colored dots are displayed next to node type names in selection lists and context views. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant NodeTypeSettings
participant DiscourseContextView
participant NodeTypeModal
User->>NodeTypeSettings: Opens node type settings
NodeTypeSettings->>User: Displays editable fields (incl. color input)
User->>NodeTypeSettings: Edits color and saves
NodeTypeSettings->>DiscourseContextView: Passes updated color for node type
NodeTypeSettings->>NodeTypeModal: Passes updated color for node type
DiscourseContextView->>User: Renders node type with color indicator
NodeTypeModal->>User: Renders node type suggestions with color indicator
Estimated code review effort2 (~18 minutes) Possibly related PRs
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🧰 Additional context used🧠 Learnings (2)apps/obsidian/src/components/DiscourseContextView.tsx (3)Learnt from: maparent Learnt from: maparent Learnt from: sid597 apps/obsidian/src/components/NodeTypeSettings.tsx (2)Learnt from: maparent Learnt from: maparent 🔇 Additional comments (8)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 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 (
|
mdroidian
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
Let's also add the default colors to the shipped default nodes (clm, evd, etc)
from defaultDiscourseNodes.ts
Claim - #7DA13E (olive green)
Question - #99890e (dark yellow/amber)
Evidence - #DB134A (red)
Source - #9E9E9E (gray)
https://www.loom.com/share/6a80cb8386a1437c836a10a938c13622?sid=579a43b8-dfc3-490a-8cab-c5704aa085a1
Summary by CodeRabbit
New Features
Style