Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
responsive POST memory layouts for Builder, Practice & Results
[._.]/ Adam Eivy309ee77e8aaf
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 83b974c163..c7b4471bf4 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -21,6 +21,7 @@- **[issue-1986] The POST launcher now fills the full desktop width.** The Power On Self Test launcher (`PostSessionLauncher.jsx`) previously wrapped every card in a single ~672px column (`max-w-2xl`), leaving a large dead gutter on wide monitors. It's now a responsive main-plus-sidebar grid (`lg:grid-cols-[minmax(0,1fr)_22rem]`, capped at `max-w-6xl`): the primary session flow — Today's Status, Session Mode toggle, Conditions, and the Start / Quick 5 Min buttons — stays in the left column above the fold, while the Mental Math / Wit & Memory drill summaries and Recent Sessions flow into the right sidebar. On mobile it collapses to a single readable column (Start buttons still prominent), the header action buttons wrap instead of overflowing, and the Start buttons stack on narrow screens. Layout-only — session start, Quick 5 Min, the Test/Train toggle, and condition tags are all unchanged. (`client/src/components/meatspace/post/PostSessionLauncher.jsx`, Closes #1986)- **[issue-1987] The POST drill config now exposes all 14 LLM drill types in a responsive, domain-grouped layout.** The Drill Configuration screen (`PostDrillConfig.jsx`) previously showed a single narrow column that only surfaced 5 of the 14 generatable LLM drills — so the entire **Imagination** family (What If?, Alternative Uses, Story Prompt, Invention Pitch, Reframe) plus **Compound Chain**, **Bridge Word**, **Double Meaning**, and **Idiom Twist** could be generated server-side but never toggled on for a session. All 14 are now shown as toggle cards grouped under **Wordplay / Verbal Agility / Imagination** section headers, laid out in a responsive grid (single column on mobile, up to three columns on desktop) instead of one page-length stack. Enabling any of them and saving persists via `PUT /post/config` and makes the drill appear in Full POST and Quick 5 Min sessions. (`client/src/components/meatspace/post/PostDrillConfig.jsx`, Closes #1987)- **[issue-1988] POST History is now a responsive analytics dashboard.** The History view (`client/src/components/meatspace/post/PostHistory.jsx`) was a single `max-w-3xl` column that stacked a lone overall-score line chart, a 3-up stat block, and the session table — surfacing only a fraction of what `getPostStats` already computes. It now fills desktop width and surfaces the full stats payload: a 4-up summary of **Sessions / Avg Score / Current Streak / Longest Streak**, a wide **Score Trend** line beside a horizontal **Avg by Domain** bar chart (each domain colored to match its `text-*-400` domain class), and a **Drill Breakdown** card that groups every drill's average into per-domain progress bars — so per-domain and per-drill averages plus streaks are visible without opening a single session. The five training domains (Mental Math / Memory / Wordplay / Verbal Agility / Imagination) are derived from each drill's *type* via `DRILL_TO_DOMAIN`, because the runners persist coarse module keys (`mental-math`, `llm-drills`) rather than domain keys — so all LLM drills split correctly across Wordplay/Verbal/Imagination instead of collapsing into one bucket. Mobile stays single-column; the 7/30/90/All range selector still drives every panel from one fetch. (Closes #1988)+- **[issue-1989] POST Memory surfaces are now responsive.** The Memory Builder, Practice, and Session Results screens were all pinned to a single narrow `max-w-2xl` column that wasted desktop width. **Memory Builder** (`MemoryBuilder.jsx`) now renders its saved items as a responsive card grid (`grid-cols-1 md:grid-cols-2 xl:grid-cols-3`) — each card lays out the item icon, title, line/chunk meta, and mastery badge above a full-width Practice button (with an aria-labeled delete for non-built-ins), while the create form and description stay in a readable `max-w-2xl` column above the grid. **Memory Practice** (`MemoryPractice.jsx`) widens the reading-oriented screens to `max-w-4xl` — the practice-mode picker (now a two-column card grid), Learn progressive-reveal, and Speed Run — while the active-recall focus steps (Sequence, Fill-in-the-Blank, Spaced Repetition) stay at a comfortable `max-w-2xl` for readability. **Session Results** (`PostSessionResults.jsx`) widens to `max-w-4xl` and lays the per-drill breakdown out in two columns on desktop. Layout-only: create/edit/delete, practice submission, mastery display, and score/breakdown rendering are unchanged; every surface collapses to a single column on mobile. (Closes #1989)## Media Generationdiff --git a/client/src/components/meatspace/post/MemoryBuilder.jsx b/client/src/components/meatspace/post/MemoryBuilder.jsxindex 0e75582af4..4e8af95f63 100644--- a/client/src/components/meatspace/post/MemoryBuilder.jsx+++ b/client/src/components/meatspace/post/MemoryBuilder.jsx@@ -114,7 +114,7 @@ export default function MemoryBuilder({ onBack, onNavigateElements }) {}return (- <div className="space-y-6 max-w-2xl">+ <div className="space-y-6"><div className="flex items-center justify-between"><div className="flex items-center gap-3"><button onClick={onBack} className="text-gray-400 hover:text-white transition-colors">@@ -134,13 +134,13 @@ export default function MemoryBuilder({ onBack, onNavigateElements }) {)}</div>- <p className="text-gray-400 text-sm">+ <p className="text-gray-400 text-sm max-w-2xl">Train your memory with songs, poems, speeches, and sequences. Track mastery and practice weak spots.</p>{/* Create Form */}{creating && (- <div className="bg-port-card border border-port-accent/30 rounded-lg p-5 space-y-4">+ <div className="bg-port-card border border-port-accent/30 rounded-lg p-5 space-y-4 max-w-2xl"><div className="flex items-center justify-between"><h3 className="text-white font-medium">Add Memory Item</h3><button onClick={resetCreateForm} className="text-gray-500 hover:text-white transition-colors">@@ -215,18 +215,18 @@ export default function MemoryBuilder({ onBack, onNavigateElements }) {)}{/* Memory Items */}- <div className="space-y-3">+ <div className="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4">{items.map(item => (<divkey={item.id}- className="bg-port-card border border-port-border rounded-lg p-4 hover:border-port-accent/50 transition-colors"+ className="bg-port-card border border-port-border rounded-lg p-4 flex flex-col hover:border-port-accent/50 transition-colors">- <div className="flex items-center justify-between">+ <div className="flex items-start justify-between gap-3"><div className="flex items-center gap-3 flex-1 min-w-0"><ItemIcon type={item.type} builtin={item.builtin} /><div className="min-w-0"><h3 className="text-white font-medium truncate">{item.title}</h3>- <div className="flex items-center gap-3 text-xs text-gray-500 mt-0.5">+ <div className="flex flex-wrap items-center gap-x-3 gap-y-0.5 text-xs text-gray-500 mt-0.5"><span>{item.type}</span><span>{item.content?.lines?.length || 0} lines</span><span>{item.content?.chunks?.length || 0} chunks</span>@@ -234,41 +234,42 @@ export default function MemoryBuilder({ onBack, onNavigateElements }) {</div></div></div>+ <MasteryBadge pct={item.mastery?.overallPct || 0} />+ </div>- <div className="flex items-center gap-3">- <MasteryBadge pct={item.mastery?.overallPct || 0} />- <button- onClick={() => handleSelect(item)}- className="flex items-center gap-1.5 px-3 py-1.5 text-sm bg-port-accent hover:bg-port-accent/80 text-white rounded-lg transition-colors"- >- <BookOpen size={14} />- Practice- </button>- {!item.builtin && (- isConfirming(item.id) ? (- <ConfirmButtonPair- prompt="Delete?"- confirmIcon={Trash2}- ariaLabel={`Confirm delete ${item.title}`}- onConfirm={() => confirmDelete(() => handleDelete(item.id))}- onCancel={cancelDelete}- />- ) : (- <button- onClick={() => requestDelete(item.id)}- className="p-1.5 text-gray-500 hover:text-port-error transition-colors"- >- <Trash2 size={14} />- </button>- )- )}- </div>+ <div className="flex items-center gap-2 mt-4">+ <button+ onClick={() => handleSelect(item)}+ className="flex-1 flex items-center justify-center gap-1.5 px-3 py-1.5 text-sm bg-port-accent hover:bg-port-accent/80 text-white rounded-lg transition-colors"+ >+ <BookOpen size={14} />+ Practice+ </button>+ {!item.builtin && (+ isConfirming(item.id) ? (+ <ConfirmButtonPair+ prompt="Delete?"+ confirmIcon={Trash2}+ ariaLabel={`Confirm delete ${item.title}`}+ onConfirm={() => confirmDelete(() => handleDelete(item.id))}+ onCancel={cancelDelete}+ />+ ) : (+ <button+ onClick={() => requestDelete(item.id)}+ aria-label={`Delete ${item.title}`}+ className="p-1.5 text-gray-500 hover:text-port-error transition-colors"+ >+ <Trash2 size={14} />+ </button>+ )+ )}</div></div>))}{items.length === 0 && (- <div className="bg-port-card border border-port-border rounded-lg p-8 text-center">+ <div className="col-span-full bg-port-card border border-port-border rounded-lg p-8 text-center"><Brain size={32} className="text-gray-600 mx-auto mb-3" /><p className="text-gray-500">No memory items yet. The Elements Song will be added automatically.</p></div>diff --git a/client/src/components/meatspace/post/MemoryPractice.jsx b/client/src/components/meatspace/post/MemoryPractice.jsxindex 1eb14d1fc7..83bbf7bcda 100644--- a/client/src/components/meatspace/post/MemoryPractice.jsx+++ b/client/src/components/meatspace/post/MemoryPractice.jsx@@ -57,7 +57,7 @@ export default function MemoryPractice({ item, onBack }) {if (!mode) {return (- <div className="space-y-6 max-w-2xl">+ <div className="space-y-6 max-w-4xl"><div className="flex items-center gap-3"><button onClick={onBack} className="text-gray-400 hover:text-white transition-colors"><ChevronLeft size={20} />@@ -67,7 +67,7 @@ export default function MemoryPractice({ item, onBack }) {<p className="text-gray-400 text-sm">Choose a practice mode:</p>- <div className="space-y-3">+ <div className="grid grid-cols-1 md:grid-cols-2 gap-3">{MODES.map(m => (<buttonkey={m.id}@@ -292,10 +292,10 @@ export default function MemoryPractice({ item, onBack }) {);}- // LEARN mode — progressive reveal+ // LEARN mode — progressive reveal (reading view, widened for desktop)if (mode === 'learn') {return (- <div className="space-y-6 max-w-2xl">+ <div className="space-y-6 max-w-4xl"><div className="flex items-center gap-3"><button onClick={onBack} className="text-gray-400 hover:text-white transition-colors"><ChevronLeft size={20} />@@ -509,10 +509,10 @@ export default function MemoryPractice({ item, onBack }) {);}- // SPEED RUN mode — show all lines, check how many you can recite+ // SPEED RUN mode — show all lines, check how many you can recite (reading view, widened)if (mode === 'speed-run') {return (- <div className="space-y-6 max-w-2xl">+ <div className="space-y-6 max-w-4xl"><div className="flex items-center gap-3"><button onClick={onBack} className="text-gray-400 hover:text-white transition-colors"><ChevronLeft size={20} />diff --git a/client/src/components/meatspace/post/PostSessionResults.jsx b/client/src/components/meatspace/post/PostSessionResults.jsxindex cdf1bd9ed2..98d012e56b 100644--- a/client/src/components/meatspace/post/PostSessionResults.jsx+++ b/client/src/components/meatspace/post/PostSessionResults.jsx@@ -15,7 +15,7 @@ export default function PostSessionResults({ session, tags = {}, onSaved, onBack}return (- <div className="max-w-2xl mx-auto space-y-6">+ <div className="max-w-4xl mx-auto space-y-6">{/* Overall Score */}<div className="text-center py-8"><div className="flex items-center justify-center gap-3 mb-2">@@ -63,7 +63,7 @@ export default function PostSessionResults({ session, tags = {}, onSaved, onBack{/* Per-drill Breakdown */}<div className="bg-port-card border border-port-border rounded-lg p-4"><h3 className="text-sm font-medium text-gray-400 mb-3">Drill Breakdown</h3>- <div className="space-y-3">+ <div className="grid grid-cols-1 lg:grid-cols-2 gap-x-6 gap-y-3">{drillResults.map((result, i) => {const isLlm = LLM_DRILL_TYPES.includes(result.type);const isExpanded = expandedDrill === i;