-
-
Notifications
You must be signed in to change notification settings - Fork 86
Disable activeFill #373
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
Disable activeFill #373
Conversation
✅ Deploy Preview for reagraph ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@claude - Can you review? |
|
Claude finished @amcdnl's task —— View job Code Review for PR #373Todo List
SummaryThis PR adds a Review Feedback✅ Strengths
🔍 Areas for Improvement1. Prop initialization in store (src/store.ts:48-49, 72, 85, 101-102)The Issue: If someone changes the Suggestion: Add a useEffect(() => {
store.getState().setDisableActiveFill(disableActiveFill);
}, [disableActiveFill, store]);2. Missing TypeScript type export (src/GraphCanvas/GraphCanvas.tsx:84)The Observation: This is consistent with other props, so not a blocker. 3. Consider naming consistencyThe prop is called 4. Edge label conditionals (src/symbols/Node.tsx:342-345, 357-361)The Node component has two separate checks for
These could be extracted into a helper variable at the start of const shouldApplyActiveFill = combinedActiveState && !disableActiveFill;5. DocumentationConsider adding JSDoc comments to the store properties (src/store.ts:48-49) to explain what /**
* When true, prevents nodes/edges from changing color on hover/selection
*/
disableActiveFill: boolean;6. Default value consistencyThe default is Minor Observations
const shouldApplyActiveFill = combinedActiveState && !disableActiveFill;
const color = shouldApplyActiveFill
? theme.node.activeFill
: node.fill || theme.node.fill;
Testing Recommendations
ConclusionThis is a well-implemented feature that follows the existing patterns in the codebase. The main issue is the missing Recommendation: Request changes to add the |
|
@AntonJames-Sistence - Wouldn't you just want to make the color the same for active and it would solve this? Just curious, I can't remember the exact scenario for this. Im going to close this for now until we have clearer requirements on this. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
#267
What is the new behavior?
Possible to add
disableActiveFillto the themedisabled.mov
Does this PR introduce a breaking change?
Other information