mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-08 22:21:45 +00:00
Previously Settings was reachable only via direct URL or logout menu. Add it to the nav (visible in both demo and real modes) and drop the now-redundant in-page title so the shell header supplies the heading instead. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
22 lines
790 B
TypeScript
22 lines
790 B
TypeScript
import { describe, expect, test } from "bun:test";
|
|
import { getVisibleNavigation } from "./app-shell";
|
|
|
|
describe("getVisibleNavigation", () => {
|
|
test("shows all nav items in demo mode", () => {
|
|
const items = getVisibleNavigation(true);
|
|
const names = items.map((i) => i.name);
|
|
expect(names).toContain("Workflows");
|
|
expect(names).toContain("Runs");
|
|
expect(names).toContain("Insights");
|
|
expect(names).toContain("Settings");
|
|
});
|
|
|
|
test("hides Workflows and Insights in production mode", () => {
|
|
const items = getVisibleNavigation(false);
|
|
const names = items.map((i) => i.name);
|
|
expect(names).not.toContain("Workflows");
|
|
expect(names).not.toContain("Insights");
|
|
expect(names).toContain("Runs");
|
|
expect(names).toContain("Settings");
|
|
});
|
|
});
|