Skip to content

Conversation

unniznd
Copy link
Contributor

@unniznd unniznd commented Aug 23, 2025

UI Feedback when you added a new type from the left panel
Closes #498

Copy link
Collaborator

@cmwhited cmwhited left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appreciate you taking this task on!
Few things:

  1. make sure to format and lint your code
  2. I am not sure the typeRefs map and useEffect is the best way to scroll the newly added type into view. could just add the scroll into view in the KnowledgeGraphBrowser.typeSelected instead. much less state to manage and the useEffect has me really worried

@unniznd
Copy link
Contributor Author

unniznd commented Aug 25, 2025

@cmwhited thank you for your feedback. I will work on it.

@unniznd
Copy link
Contributor Author

unniznd commented Aug 26, 2025

@cmwhited
I have removed the usage of useEffect and added in KnowledgeGraphBrowser.typeSelected the scrolling logic. Can you help me with linting the code? The pnpm lint:fix is giving me errors.

@cmwhited
Copy link
Collaborator

@cmwhited I have removed the usage of useEffect and added in KnowledgeGraphBrowser.typeSelected the scrolling logic. Can you help me with linting the code? The pnpm lint:fix is giving me errors.

what errors is it giving you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(TypeSync) UI Feedback when you add a new type from the left panel
2 participants