Closed
Description
Describe your issue
E.g. I want to show someone a specific Problem node in my Topic
Also context: before 1d11b73, ?selected={partId}
was tracked in the URL, but this was moved to be saved on the View, motivated by wanting to add all filter info to the URL and realizing that it's too much and should just be in the View. This has turned out to be annoying when using the "navigate back" button because usually I want to go to the previous filters, not the previously-selected node.
Solution you'd like
Maybe:
- add
?selected={partId}
back into URL for sharing - again use first 8 chars for
partId
since it otherwise gets pretty long - would be nice if the selected part is centralized in the diagram, or details pane opened if the part isn't showing in the diagram
Questions:
- should specific tab be selectable/scrollable too?
- split this to Way to share Topic with specific details section selected #761 because it'll be more work
Alternatives you've considered
No response
Additional context
No response
Technical ideas and questions
- add to the ephemeralStore
partIdToCentralize
- add usePartIdToCentralize hook to Diagram, invoke centralize() if it's shown, otherwise trigger viewBasics
?comment={}
should have priority, so process?selected={}
first
Metadata
Metadata
Assignees
Type
Projects
Status
✅ Done