Skip to content

Way to share Topic with specific part selected #608

Closed
@keyserj

Description

@keyserj

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:

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

No one assigned

    Labels

    collaborationhelps people work togetherconvenientmakes the tool easier to useenhancementNew feature or request

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions