All files / src/routes/apps User.tsx

99.08% Statements 108/109
50% Branches 1/2
98.14% Functions 53/54
98.85% Lines 86/87

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549                                                    4x 7x   4x 7x   4x 7x   4x 7x   7x 7x 4x 7x   7x 7x 7x 7x 4x 7x   4x 7x   7x 4x 7x   4x 4x 7x   4x 7x   7x 7x 4x 7x   4x 7x   4x 7x   4x 7x   7x 7x 4x 4x 3x   4x 5x 4x 5x   4x 5x   7x 7x 7x 7x 4x 7x   4x 7x   4x 4x 3x   4x 4x 3x   4x 3x   4x 3x   4x 3x   4x 3x   4x 3x   4x 3x   4x 3x   4x 3x   4x 3x   4x 7x   7x 4x       4x                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
import { lazyPage } from "@/routes/lazyPage";
import { legacyRedirect } from "@/routes/legacyRedirect";
import { MCP_AVAILABLE } from "@/util/mcp";
 
import NavTitle from "@/components/nav/NavTitle/NavTitle";
import {
  Activity,
  BarChart3,
  Bot,
  Building,
  Cog,
  FolderKanban,
  Home,
  LayoutDashboard,
  Library,
  ScrollText,
  Terminal,
} from "lucide-react";
 
import { PageConfig } from "../App";
import { APP_ROUTES } from "../const";
import { notfound } from "./default";
 
// Every page below is loaded on demand. Imported eagerly, the fifty-two user
// pages compiled into one 3.6 MB chunk that any visit had to download in full
// before anything rendered. `MyApp` provides the Suspense boundary.
const NewSkill = lazyPage(
  () => import("@/apps/user/pages/agents/skills/NewSkill"),
);
const SkillViewer = lazyPage(
  () => import("@/apps/user/pages/agents/skills/Skill"),
);
const SkillRunViewer = lazyPage(
  () => import("@/apps/user/pages/agents/skills/run/SkillRun"),
);
const SwarmViewer = lazyPage(
  () => import("@/apps/user/pages/swarms/SwarmViewer"),
);
const NewSwarm = lazyPage(() => import("@/apps/user/pages/swarms/NewSwarm"));
const EditSwarm = lazyPage(() => import("@/apps/user/pages/swarms/EditSwarm"));
const SwarmRunViewer = lazyPage(
  () => import("@/apps/user/pages/swarms/run/SwarmRunViewer"),
);
const ActivityPage = lazyPage(() => import("@/apps/user/pages/Activity"));
const AgentViewer = lazyPage(() => import("@/apps/user/pages/agents/Agent"));
const AgentChat = lazyPage(() => import("@/apps/user/pages/agents/agent/Chat"));
const NewAgent = lazyPage(() => import("@/apps/user/pages/agents/NewAgent"));
const GenerativeSetup = lazyPage(
  () => import("@/apps/user/pages/agents/setup/GenerativeSetup"),
);
const NewAgentChoice = lazyPage(
  () => import("@/apps/user/pages/agents/setup/NewAgentChoice"),
);
const Dashboards = lazyPage(() => import("@/apps/user/pages/Dashboards"));
const DashboardViewer = lazyPage(
  () => import("@/apps/user/pages/dashboards/DashboardViewer"),
);
const Developer = lazyPage(() => import("@/apps/user/pages/Developer"));
const ExperimentViewer = lazyPage(
  () => import("@/apps/user/pages/evaluation/ExperimentViewer"),
);
const DatasetViewer = lazyPage(
  () => import("@/apps/user/pages/evaluation/DatasetViewer"),
);
const Inference = lazyPage(() => import("@/apps/user/pages/Inference"));
const Knowledge = lazyPage(() => import("@/apps/user/pages/Knowledge"));
const EditKnowledge = lazyPage(
  () => import("@/apps/user/pages/knowledge/EditKnowledge"),
);
const KnowledgeViewer = lazyPage(
  () => import("@/apps/user/pages/knowledge/KnowledgeViewer"),
);
const NewKnowledge = lazyPage(
  () => import("@/apps/user/pages/knowledge/NewKnowledge"),
);
const RepositoryViewer = lazyPage(
  () => import("@/apps/user/pages/knowledge/RepositoryViewer"),
);
const ChatBot = lazyPage(() => import("@/apps/user/pages/models/Chat"));
const ModelViewer = lazyPage(() => import("@/apps/user/pages/models/Model"));
const Organisations = lazyPage(() => import("@/apps/user/pages/Organisations"));
const NewOrganisation = lazyPage(
  () => import("@/apps/user/pages/organisations/NewOrganisation"),
);
const Overview = lazyPage(() => import("@/apps/user/pages/Overview"));
const Projects = lazyPage(() => import("@/apps/user/pages/Projects"));
const NewProject = lazyPage(
  () => import("@/apps/user/pages/projects/NewProject"),
);
const ProjectViewer = lazyPage(
  () => import("@/apps/user/pages/projects/Project"),
);
const Governance = lazyPage(() => import("@/apps/user/pages/Governance"));
const NewRule = lazyPage(() => import("@/apps/user/pages/rules/NewRule"));
const RuleViewer = lazyPage(() => import("@/apps/user/pages/rules/RuleViewer"));
const EditRule = lazyPage(() => import("@/apps/user/pages/rules/EditRule"));
const DecisionViewer = lazyPage(
  () => import("@/apps/user/pages/decisions/Decision"),
);
const StatementViewer = lazyPage(
  () => import("@/apps/user/pages/spend/Statement"),
);
const AcceptInvite = lazyPage(() => import("@/apps/user/pages/AcceptInvite"));
const SettingsAppearance = lazyPage(
  () => import("@/apps/user/pages/settings/Appearance"),
);
const SettingsData = lazyPage(() => import("@/apps/user/pages/settings/Data"));
const SettingsPrivacy = lazyPage(
  () => import("@/apps/user/pages/settings/Privacy"),
);
const SettingsScenarioRuns = lazyPage(
  () => import("@/apps/user/pages/settings/ScenarioRuns"),
);
const SettingsProfile = lazyPage(
  () => import("@/apps/user/pages/settings/Profile"),
);
const SettingsSecurity = lazyPage(
  () => import("@/apps/user/pages/settings/Security"),
);
const SettingsSubscription = lazyPage(
  () => import("@/apps/user/pages/settings/Subscription"),
);
const NewScenario = lazyPage(
  () => import("@/apps/user/pages/simulations/NewScenario"),
);
const NewWorld = lazyPage(
  () => import("@/apps/user/pages/simulations/NewWorld"),
);
const ScenarioViewer = lazyPage(
  () => import("@/apps/user/pages/simulations/ScenarioViewer"),
);
const SimulationViewer = lazyPage(
  () => import("@/apps/user/pages/simulations/SimulationViewer"),
);
const WorldViewer = lazyPage(
  () => import("@/apps/user/pages/simulations/WorldViewer"),
);
const SkillsetViewer = lazyPage(
  () => import("@/apps/user/pages/skillsets/SkillsetViewer"),
);
const Stats = lazyPage(() => import("@/apps/user/pages/Stats"));
const ToolkitViewer = lazyPage(
  () => import("@/apps/user/pages/toolkits/ToolkitViewer"),
);
 
export const USER_APP: Record<string, PageConfig> = {
  overview: {
    title: <NavTitle icon={Home} label="Overview" />,
    route: APP_ROUTES.USER.overview,
    page: Overview,
    nav_section: "home",
  },
  activity: {
    title: <NavTitle icon={Activity} label="Activity" />,
    route: APP_ROUTES.USER.activity,
    page: ActivityPage,
    nav_section: "home",
  },
  dashboards: {
    title: <NavTitle icon={LayoutDashboard} label="Dashboards" />,
    route: APP_ROUTES.USER.dashboards,
    page: Dashboards,
    nav_section: "dash",
  },
  dashboards_by_id: {
    title: "Dashboard",
    route: APP_ROUTES.USER.DASHBOARDS.id,
    page: DashboardViewer,
  },
  inference: {
    title: <NavTitle icon={Bot} label="Inference" />,
    route: APP_ROUTES.USER.inference,
    page: Inference,
    nav_section: "main",
  },
  // models: {
  //   title: "Models",
  //   route: APP_ROUTES.USER.INFERENCE.models,
  //   page: Inference,
  // },
  models_by_id: {
    title: "Models By Id",
    route: APP_ROUTES.USER.INFERENCE.MODELS.id,
    page: ModelViewer,
  },
  models_chat: {
    title: "Model Chat",
    route: APP_ROUTES.USER.INFERENCE.MODELS.chat,
    page: ChatBot,
  },
  // agents: {
  //   title: "Agents",
  //   route: APP_ROUTES.USER.INFERENCE.agents,
  //   page: Inference,
  // },
  agents_by_id: {
    title: "Agents By Id",
    route: APP_ROUTES.USER.INFERENCE.AGENTS.id,
    page: AgentViewer,
  },
  agents_new: {
    title: "Create New Agent",
    route: APP_ROUTES.USER.INFERENCE.AGENTS.new,
    page: NewAgentChoice,
  },
  agents_new_manual: {
    title: "Create New Agent",
    route: APP_ROUTES.USER.INFERENCE.AGENTS.new_manual,
    page: NewAgent,
  },
  agents_new_generative: {
    title: "Generate New Agent",
    route: APP_ROUTES.USER.INFERENCE.AGENTS.new_generative,
    page: GenerativeSetup,
  },
  agent_chat: {
    title: "Agent Chat",
    route: APP_ROUTES.USER.INFERENCE.AGENTS.chat,
    page: AgentChat,
  },
  // inference_skills: {
  //   title: "Skills",
  //   route: APP_ROUTES.USER.INFERENCE.skills,
  //   page: Inference,
  // },
  inference_skills_by_id: {
    title: "Skill",
    route: APP_ROUTES.USER.INFERENCE.SKILLS.id,
    page: SkillViewer,
  },
  inference_skill_run: {
    title: "Skill Run",
    route: APP_ROUTES.USER.INFERENCE.SKILLS.run,
    page: SkillRunViewer,
  },
  inference_skills_new: {
    title: "New Skill",
    route: APP_ROUTES.USER.INFERENCE.SKILLS.new,
    page: NewSkill,
  },
  inference_swarms_by_id: {
    title: "Swarm",
    route: APP_ROUTES.USER.INFERENCE.SWARMS.id,
    page: SwarmViewer,
  },
  inference_swarms_edit: {
    title: "Edit Swarm",
    route: APP_ROUTES.USER.INFERENCE.SWARMS.edit,
    page: EditSwarm,
  },
  inference_swarms_new: {
    title: "New Swarm",
    route: APP_ROUTES.USER.INFERENCE.SWARMS.new,
    page: NewSwarm,
  },
  inference_swarm_run: {
    title: "Swarm Run",
    route: APP_ROUTES.USER.INFERENCE.SWARMS.run,
    page: SwarmRunViewer,
  },
  inference_skillsets_by_id: {
    title: "Skillset",
    route: APP_ROUTES.USER.INFERENCE.SKILLSETS.id,
    page: SkillsetViewer,
  },
  // MCP servers, and the toolkits that bundle them, are not available in this
  // release (util/mcp.ts): a toolkit's address lands on the Inference tab
  // that says so rather than on a page that could configure one.
  inference_toolkits_by_id: {
    title: "Toolkit",
    route: APP_ROUTES.USER.INFERENCE.TOOLKITS.id,
    page: MCP_AVAILABLE
      ? ToolkitViewer
      : legacyRedirect(APP_ROUTES.USER.INFERENCE.mcp),
  },
  knowledge: {
    title: <NavTitle icon={Library} label="Knowledge" />,
    route: APP_ROUTES.USER.knowledge,
    page: Knowledge,
    nav_section: "main",
  },
  knowledge_new: {
    title: "Upload File(s) to Your Knowledge Base",
    route: APP_ROUTES.USER.KNOWLEDGE.new,
    page: NewKnowledge,
  },
  knowledge_by_id: {
    title: "Knowledge By Id",
    route: APP_ROUTES.USER.KNOWLEDGE.id,
    page: KnowledgeViewer,
  },
  knowledge_edit: {
    title: "Edit Knowledge Base",
    route: APP_ROUTES.USER.KNOWLEDGE.edit,
    page: EditKnowledge,
  },
  knowledge_repository_by_id: {
    title: "Knowledge Repository",
    route: APP_ROUTES.USER.KNOWLEDGE.REPOSITORIES.id,
    page: RepositoryViewer,
  },
  // Governance sits after Knowledge in the main nav: the three top-level
  // surfaces are what runs (Inference), what grounds it (Knowledge), and the
  // rules it runs under (Governance). Its two tabs — Rules and Reviews —
  // render inside the page and are selected by `?section=`, so only the rule
  // editor and viewer keep routes of their own.
  governance: {
    title: <NavTitle icon={ScrollText} label="Governance" />,
    route: APP_ROUTES.USER.governance,
    page: Governance,
    nav_section: "main",
  },
  rules_new: {
    title: "New Rule",
    route: APP_ROUTES.USER.GOVERNANCE.RULES.new,
    page: NewRule,
  },
  rules_by_id: {
    title: "Rule",
    route: APP_ROUTES.USER.GOVERNANCE.RULES.id,
    page: RuleViewer,
  },
  rules_edit: {
    title: "Edit Rule",
    route: APP_ROUTES.USER.GOVERNANCE.RULES.edit,
    page: EditRule,
  },
  decision_by_id: {
    title: "Decision record",
    route: APP_ROUTES.USER.GOVERNANCE.DECISIONS.id,
    page: DecisionViewer,
  },
  statement_by_month: {
    title: "Statement",
    route: APP_ROUTES.USER.GOVERNANCE.STATEMENTS.month,
    page: StatementViewer,
  },
  // MCP servers render inside Inference → Toolkits, edited inline, so they
  // have no viewer route. Neither do built-in tools: there is no `Tool`
  // resource to open.
  // Simulations are out of the navigation for now: the runner simulates a
  // stand-in (the agent's model, knowledge, MCP servers and rules do not
  // reach it), and until it reuses the real agent execution path the feature
  // cannot honestly show how *your* agents behave together. The viewers stay
  // reachable by URL so nothing already made is lost; the standalone lists
  // — duplicates of a tab that no longer exists — are gone.
  evaluation_simulation_worlds_new: {
    title: "New Simulation World",
    route: APP_ROUTES.USER.INFERENCE.SIMULATIONS.WORLDS.new,
    page: NewWorld,
  },
  evaluation_simulation_worlds_by_id: {
    title: "Simulation World",
    route: APP_ROUTES.USER.INFERENCE.SIMULATIONS.WORLDS.id,
    page: WorldViewer,
  },
  evaluation_simulation_scenarios_new: {
    title: "New Scenario",
    route: APP_ROUTES.USER.INFERENCE.SIMULATIONS.SCENARIOS.new,
    page: NewScenario,
  },
  evaluation_simulation_scenarios_by_id: {
    title: "Scenario",
    route: APP_ROUTES.USER.INFERENCE.SIMULATIONS.SCENARIOS.id,
    page: ScenarioViewer,
  },
  evaluation_simulation_by_id: {
    title: "Simulation",
    route: APP_ROUTES.USER.INFERENCE.SIMULATIONS.id,
    page: SimulationViewer,
  },
  experiment_by_id: {
    title: "Experiment",
    route: APP_ROUTES.USER.GOVERNANCE.EVALUATION.EXPERIMENTS.id,
    page: ExperimentViewer,
  },
  dataset_by_id: {
    title: "Dataset",
    route: APP_ROUTES.USER.GOVERNANCE.EVALUATION.DATASETS.id,
    page: DatasetViewer,
  },
  // Moved paths. Each sends an old link to where the resource lives now —
  // see routes/legacyRedirect.tsx for why they are not simply deleted.
  legacy_simulations: {
    title: "Simulations",
    route: APP_ROUTES.USER.LEGACY.simulations,
    page: legacyRedirect(APP_ROUTES.USER.INFERENCE.simulations),
  },
  // A bookmarked tool detail page has nowhere of its own to go: built-ins are
  // bound to every agent and have no page. The MCP servers list is the nearest
  // thing — where an agent's *external* tools now live.
  legacy_tool_by_id: {
    title: "Tools",
    route: APP_ROUTES.USER.LEGACY.tool_by_id,
    page: legacyRedirect(APP_ROUTES.USER.INFERENCE.mcp),
  },
  // Experiments have no list of their own now; they live on their dataset.
  legacy_experiments: {
    title: "Experiments",
    route: APP_ROUTES.USER.LEGACY.experiments,
    page: legacyRedirect(APP_ROUTES.USER.GOVERNANCE.EVALUATION.datasets),
  },
  legacy_experiment_by_id: {
    title: "Experiment",
    route: APP_ROUTES.USER.LEGACY.experiment_by_id,
    page: legacyRedirect(APP_ROUTES.USER.GOVERNANCE.EVALUATION.EXPERIMENTS.id),
  },
  legacy_test_suites: {
    title: "Test Suites",
    route: APP_ROUTES.USER.LEGACY.test_suites,
    page: legacyRedirect(APP_ROUTES.USER.GOVERNANCE.EVALUATION.datasets),
  },
  legacy_test_suite_by_id: {
    title: "Test Suite",
    route: APP_ROUTES.USER.LEGACY.test_suite_by_id,
    page: legacyRedirect(APP_ROUTES.USER.GOVERNANCE.EVALUATION.DATASETS.id),
  },
  // The evaluation section's second address for the same two resources:
  // grouped under `/inference/evaluation/` and still named after the tables
  // rather than the product. Both are in bookmarks and in links written
  // before the rename.
  legacy_inference_experiment_by_id: {
    title: "Experiment",
    route: APP_ROUTES.USER.LEGACY.inference_experiment_by_id,
    page: legacyRedirect(APP_ROUTES.USER.GOVERNANCE.EVALUATION.EXPERIMENTS.id),
  },
  legacy_inference_evaluation_by_id: {
    title: "Experiment",
    route: APP_ROUTES.USER.LEGACY.inference_evaluation_by_id,
    page: legacyRedirect(APP_ROUTES.USER.GOVERNANCE.EVALUATION.EXPERIMENTS.id),
  },
  legacy_inference_test_suite_by_id: {
    title: "Test Suite",
    route: APP_ROUTES.USER.LEGACY.inference_test_suite_by_id,
    page: legacyRedirect(APP_ROUTES.USER.GOVERNANCE.EVALUATION.DATASETS.id),
  },
  // Evaluation was a tab of Inference until it moved under Governance.
  legacy_inference_experiment_page: {
    title: "Experiment",
    route: APP_ROUTES.USER.LEGACY.inference_experiment_page,
    page: legacyRedirect(APP_ROUTES.USER.GOVERNANCE.EVALUATION.EXPERIMENTS.id),
  },
  legacy_inference_dataset_page: {
    title: "Dataset",
    route: APP_ROUTES.USER.LEGACY.inference_dataset_page,
    page: legacyRedirect(APP_ROUTES.USER.GOVERNANCE.EVALUATION.DATASETS.id),
  },
  projects: {
    title: <NavTitle icon={FolderKanban} label="Projects" />,
    route: APP_ROUTES.USER.projects,
    page: Projects,
    nav_section: "projects-and-orgs",
  },
  projects_new: {
    title: "New Project",
    route: APP_ROUTES.USER.PROJECTS.new,
    page: NewProject,
  },
  projects_by_id: {
    title: "Projects By Id",
    route: APP_ROUTES.USER.PROJECTS.id,
    page: ProjectViewer,
  },
  organisations: {
    title: <NavTitle icon={Building} label="Orgs" />,
    route: APP_ROUTES.USER.organisations,
    page: Organisations,
    nav_section: "projects-and-orgs",
  },
  organisations_new: {
    title: "New Organisation",
    route: APP_ROUTES.USER.ORGANISATIONS.new,
    page: NewOrganisation,
  },
  // Out of the navigation until there is an API behind it: the portal's API
  // keys, firewall and vault are example data (docs/business/mvp-roadmap.md).
  // The route stays so existing links land on the page that says so.
  developer: {
    title: <NavTitle icon={Terminal} label="Developer" />,
    route: APP_ROUTES.USER.developer,
    page: Developer,
  },
  stats: {
    title: <NavTitle icon={BarChart3} label="Stats" />,
    route: APP_ROUTES.USER.stats,
    page: Stats,
    nav_section: "stats",
  },
  settings: {
    title: <NavTitle icon={Cog} label="Settings" />,
    route: APP_ROUTES.USER.settings,
    // Settings is its tab bar: the bare path opens the first tab rather than
    // a list of cards linking to the same tabs.
    page: legacyRedirect(APP_ROUTES.USER.SETTINGS.profile),
    nav_section: "settings",
  },
  // Where an invite link lands. Not in the navigation: you arrive by link.
  invite: {
    title: "Join an organisation",
    route: APP_ROUTES.USER.invite,
    page: AcceptInvite,
  },
  settings_profile: {
    title: "Profile",
    route: APP_ROUTES.USER.SETTINGS.profile,
    page: SettingsProfile,
  },
  settings_subscription: {
    title: "Subscription",
    route: APP_ROUTES.USER.SETTINGS.subscription,
    page: SettingsSubscription,
  },
  settings_security: {
    title: "Security",
    route: APP_ROUTES.USER.SETTINGS.security,
    page: SettingsSecurity,
  },
  settings_appearance: {
    title: "Appearance",
    route: APP_ROUTES.USER.SETTINGS.appearance,
    page: SettingsAppearance,
  },
  // Email preferences were withdrawn: CHAIN-R sends no email yet, so every
  // toggle controlled nothing. The path stays so a bookmark still lands.
  settings_email: {
    title: "Settings",
    route: APP_ROUTES.USER.SETTINGS.email,
    page: legacyRedirect(APP_ROUTES.USER.SETTINGS.profile),
  },
  settings_data: {
    title: "Data",
    route: APP_ROUTES.USER.SETTINGS.data,
    page: SettingsData,
  },
  settings_privacy: {
    title: "Privacy",
    route: APP_ROUTES.USER.SETTINGS.privacy,
    page: SettingsPrivacy,
  },
  // A developer tool: its tab shows only for the `developer` platform role,
  // and svc-core refuses everyone else (docs/guides/scenario-runs.md).
  settings_scenarios: {
    title: "Scenario runs",
    route: APP_ROUTES.USER.SETTINGS.scenarios,
    page: SettingsScenarioRuns,
  },
  notfound: notfound,
};