Skip to content

Conversation

@torkelo
Copy link
Contributor

@torkelo torkelo commented Aug 13, 2025

The url state support for the inspect drawer is buggy (as it does not work with lazy loading), and just adds a lot of unnessary complexity.

I think we can remove it / should remove it

@torkelo torkelo requested a review from a team as a code owner August 13, 2025 16:09
@torkelo torkelo requested review from mdvictor and oscarkilhed and removed request for a team August 13, 2025 16:09
@torkelo torkelo force-pushed the remove-inspect-url-sync branch from d1c89f1 to 44b0bb5 Compare August 14, 2025 04:56
@torkelo torkelo changed the base branch from viz-panel-pathId to main August 14, 2025 04:56
@torkelo torkelo changed the title Inspect: Remove url state support Dashboard: Inspect drawer can no longer be opened with url or linked to Aug 14, 2025
@torkelo torkelo requested review from bfmatei, dprokop and thanos-karachalios and removed request for mdvictor August 14, 2025 05:13
Copy link
Contributor

@oscarkilhed oscarkilhed left a comment

Choose a reason for hiding this comment

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

I agree with this change.

It also got me thinking about if we really need url sync support for share and export. They are also side panes that open where I don't think there is a lot of benefit of linking to.

Keeping them in the url sync isn't as complex. But It is a bit inconsistent. I also think it's a bit weird that the opening of those side panels get added to the browser history. So navigating back opens the closed side pane.

Since we don't have the edit mode in the url sync you can get into a weird state. You can't enter into export / share without first exiting edit mode. But if you open the panel, enter into edit mode and navigate back, you will have the panel open but also be in edit mode.

@torkelo torkelo requested a review from a team as a code owner August 15, 2025 09:01
@torkelo torkelo requested review from eledobleefe and joshhunt and removed request for a team August 15, 2025 09:01
@torkelo torkelo merged commit 6820857 into main Aug 15, 2025
110 checks passed
@torkelo torkelo deleted the remove-inspect-url-sync branch August 15, 2025 11:32
gillesdemey pushed a commit that referenced this pull request Aug 18, 2025
…to (#109617)

* Inspect: Remove url state support

* Fixes

* fix e2e

* fix lint

* fix lint

* fix test

* Update
gelicia pushed a commit that referenced this pull request Aug 19, 2025
…to (#109617)

* Inspect: Remove url state support

* Fixes

* fix e2e

* fix lint

* fix lint

* fix test

* Update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants