Skip to content

fix some navigation issues in --preview mode back to /dashboards#9190

Merged
royendo merged 2 commits intomainfrom
one-more-preview-bug
Apr 7, 2026
Merged

fix some navigation issues in --preview mode back to /dashboards#9190
royendo merged 2 commits intomainfrom
one-more-preview-bug

Conversation

@royendo
Copy link
Copy Markdown
Contributor

@royendo royendo commented Apr 6, 2026

INSERT DESCRIPTION HERE

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

@royendo royendo requested a review from AdityaHegde April 6, 2026 13:29
Copy link
Copy Markdown
Collaborator

@AdityaHegde AdityaHegde left a comment

Choose a reason for hiding this comment

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

Approving. The item about using file path should be addressed before merge. Rest can be follow up PRs.

section: "project",
depth: -1,
href: "/",
href: mode === "Preview" ? "/dashboards" : "/",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Are we using constants like Preview? Would be good to move it to an enum instead. Can be a follow up PR though.

importStep = step;
if (currentFilePath) {
currentFileRoute = `/files${addLeadingSlash(currentFilePath)}`;
if ($previewModeStore) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Would be good to have a utility file for all the path switches based on mode. That way it is also testable. Lets do a follow up for this as well, would be good to add tests for these utlities.

@royendo royendo merged commit 8891e43 into main Apr 7, 2026
10 checks passed
@royendo royendo deleted the one-more-preview-bug branch April 7, 2026 13:43
royendo added a commit that referenced this pull request Apr 7, 2026
* fix some navigation issues in --preview mode back to /dashboards

* Update GenerateDashboardStatus.svelte
@royendo royendo restored the one-more-preview-bug branch April 7, 2026 16:56
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.

2 participants