-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cloud UI: Surface Custom Dashboards in navigation (#4531)
* WIP commit * Fix lint * Use TanStack Query client to fetch chart data * TODO: render a "read-only" version of the dashboard * Utils to differentiate between Metrics Explorer and Custom Dashboard pages * Show both Metrics Explorers and Custom Dashboards in the breadcrumb * Remove console log * Add wrongly-detected TS error to whitelist * Small clean-up * Fix merge * Remove unused component
- Loading branch information
1 parent
6b2e0b4
commit ce70116
Showing
19 changed files
with
200 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
web-admin/src/features/dashboards/listing/NoDashboardsCTA.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
web-admin/src/routes/[organization]/[project]/-/dashboards/+page.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { redirect } from "@sveltejs/kit"; | ||
import type { PageLoad } from "./$types"; | ||
|
||
export const load: PageLoad = ({ params }) => { | ||
throw redirect(307, `/${params.organization}/${params.project}`); | ||
}; |
11 changes: 11 additions & 0 deletions
11
web-admin/src/routes/[organization]/[project]/-/dashboards/[dashboard]/+page.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<script lang="ts"> | ||
import { page } from "$app/stores"; | ||
$: customDashboardName = $page.params.dashboard; | ||
</script> | ||
|
||
<div> | ||
A "read-only" version of the Custom Dashboard named <span | ||
class="font-semibold">{customDashboardName}</span | ||
> goes here. | ||
</div> |
Oops, something went wrong.
ce70116
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://ui.rilldata.in as production
🚀 Deployed on https://661ee8b6365e330d09cbb548--rill-ui-dev.netlify.app