feat(ui): fold the Workflows page into Dashboard → Analytics → Workflow
The workflow analytics now render under the Analytics tab's Workflow sub-tab; ?tab= and ?sub= deep-link the Dashboard, /workflows redirects there, and the sidebar drops its Workflows item.
This commit is contained in:
@@ -9390,11 +9390,11 @@ exports[`screen snapshots > Workflows 1`] = `
|
||||
<div
|
||||
class="flex items-center gap-2"
|
||||
>
|
||||
<h1
|
||||
<h2
|
||||
class="text-lg font-semibold text-fg-primary"
|
||||
>
|
||||
Workflows
|
||||
</h1>
|
||||
</h2>
|
||||
<span
|
||||
class="flex items-center gap-1.5 text-[11px] text-status-success bg-status-success/10 border border-status-success/20 px-2 py-0.5 rounded-full"
|
||||
>
|
||||
|
||||
@@ -559,6 +559,17 @@ describe("screen snapshots", () => {
|
||||
it("Dashboard", async () => {
|
||||
await snapshot(<Dashboard />, "/");
|
||||
});
|
||||
it("Dashboard deep link opens the Workflow sub-tab with the workflow analytics", async () => {
|
||||
localStorage.removeItem("dashboard_tab");
|
||||
const { container } = render(
|
||||
<MemoryRouter initialEntries={["/?tab=analytics&sub=workflow"]}>
|
||||
<Dashboard />
|
||||
</MemoryRouter>
|
||||
);
|
||||
await settle();
|
||||
const headings = [...container.querySelectorAll("h2")].map((h) => h.textContent);
|
||||
expect(headings).toContain(i18n.t("workflows:title"));
|
||||
});
|
||||
it("Sessions", async () => {
|
||||
await snapshot(<Sessions />, "/sessions");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user