Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 03_implementation/ui/src/app/AppShell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function AppShell({ children }: { children?: ReactNode }) {
<Sidebar />
<div className="flex min-h-0 flex-1 flex-col">
<TopBar activeLabel={activeTab.label} />
<main className={dashboard ? "min-h-0 flex-1 overflow-auto p-2.5 lg:overflow-hidden" : "min-h-0 flex-1 overflow-auto p-2.5"}>
<main className={dashboard ? "min-h-0 flex-1 overflow-auto p-2.5" : "min-h-0 flex-1 overflow-auto p-2.5"}>
{children}
</main>
</div>
Expand Down
4 changes: 3 additions & 1 deletion 03_implementation/ui/src/components/layout/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export function Sidebar() {
/>
))}
</nav>
<AgentChatMirror />
<div className="min-h-0 shrink overflow-hidden">
<AgentChatMirror />
</div>
</ResizablePane>
);
}
Expand Down
27 changes: 18 additions & 9 deletions 03_implementation/ui/src/components/layout/TopBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,26 @@ export function TopBar({ activeLabel }: { activeLabel: string }) {

useEffect(() => {
let mounted = true;
void adapters.getSystemSnapshot().then((snapshot) => {
if (mounted) setSys(snapshot);
});
void adapters.getNotifications().then((items) => {
if (mounted) setNotifications(items);
});
void adapters.getLatestProofBundle().then((bundle) => {
if (mounted) setLatestProof(bundle);
});

const fetchAll = () => {
void adapters.getSystemSnapshot().then((snapshot) => {
if (mounted) setSys(snapshot);
});
void adapters.getNotifications().then((items) => {
if (mounted) setNotifications(items);
});
void adapters.getLatestProofBundle().then((bundle) => {
if (mounted) setLatestProof(bundle);
});
};

fetchAll();
// Refresh system status every 10 s — non-critical display data; 10 s avoids render churn.
const timer = window.setInterval(fetchAll, 10_000);

return () => {
mounted = false;
window.clearInterval(timer);
};
}, []);

Expand Down