mirror of
https://github.com/bitbaum/substrata.git
synced 2026-12-04 08:39:02 +01:00
* feat(home): the homepage, rebuilt ask-first The hero is the Ask box (chatkit composer plus four questions, one built from the worst bottleneck); sending opens /chat with the question started. Worst right now is one row component with a fixed gauge column; what changed falls back to the sweep's unchecked finds or is absent, never an empty box; the numbers are four equal linked cells; doors share one anatomy; the footer is calm. The page is served from a 60 second cache: the shell learns its reader from /api/me in the browser instead of reading the session while rendering. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE * fix(home): centred column, aligned worst rows, broken-word scan Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE --------- Co-authored-by: Claude <noreply@anthropic.com>
16 lines
556 B
TypeScript
16 lines
556 B
TypeScript
'use client';
|
|
|
|
import { AccountMenuView } from '@/components/portal/AccountMenuView';
|
|
import { useReader } from './useReader';
|
|
|
|
/**
|
|
* The account menu for a cached page. Until /api/me answers it holds the
|
|
* menu's place (same size as "Sign in") instead of guessing, so a signed-in
|
|
* reader never sees "Sign in" flash and nothing moves when it arrives.
|
|
*/
|
|
export function ClientAccountMenu() {
|
|
const reader = useReader(true);
|
|
if (!reader) return <span className="account-menu-pending" aria-hidden />;
|
|
return <AccountMenuView reader={reader} />;
|
|
}
|