diff --git a/calm-hub-ui/AGENTS.md b/calm-hub-ui/AGENTS.md index 57db0256e..217e176b7 100644 --- a/calm-hub-ui/AGENTS.md +++ b/calm-hub-ui/AGENTS.md @@ -280,7 +280,9 @@ restyled desktop while targeting mobile — don't. menu) portal into the navbar `#navbar-actions` slot instead of floating in the render pane. See `components/navbar/Navbar.tsx` and `diagram-section/DiagramSection.tsx`. - **iOS-style drill-down explorer** on mobile (`tree-navigation/MobileNavMenu.tsx`): - one flat list per level, not a tree. + one flat list per level for `types`, `resources`, `domains` and `controls`. The + `namespaces` level is the exception — it renders as a nested tree, because the + hierarchy is already latent in the dotted names. - **Full-bleed render pane** with the minimap/zoom controls hidden (pinch is the native gesture) — see `visualizer/components/reactflow/`. - **Tabbed detail views** where desktop stacks panels (e.g. diff --git a/calm-hub-ui/src/hub/Hub.tsx b/calm-hub-ui/src/hub/Hub.tsx index 3d68def4e..89b56aec2 100644 --- a/calm-hub-ui/src/hub/Hub.tsx +++ b/calm-hub-ui/src/hub/Hub.tsx @@ -1,7 +1,8 @@ import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react'; import { useLocation, useMatch, useNavigate } from 'react-router-dom'; -import { IoChevronForwardOutline, IoCompassOutline } from 'react-icons/io5'; +import { IoCompassOutline } from 'react-icons/io5'; import { ExploreRail } from './components/explore-rail/ExploreRail.js'; +import { CollapsedRail } from './components/explore-rail/CollapsedRail.js'; import { MobileNavMenu } from './components/tree-navigation/MobileNavMenu.js'; import { NamespacePage } from './components/namespace-page/NamespacePage.js'; import { DomainPage } from './components/domain-page/DomainPage.js'; @@ -421,7 +422,7 @@ export default function Hub() {