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
Merge remote-tracking branch 'origin/main' into next/issue-2101
Adam Eivyd70752633fb7
diff --cc .changelog/NEXT.mdindex f58b40fdc8,a57657baea..e4bdf09513--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@@ -15,7 -15,9 +15,10 @@@## MeatSpace POST+- **[issue-2101] POST config & UX polish: Morse in the sidebar, config presets, keyboard-accessible history, pausable transitions.** Morse is now a full nav entry under the POST sidebar section (previously reachable only via the launcher or ⌘K). The drill config page gained one-click presets — "Balanced daily", "Math focus", "Cognitive focus", and "Everything (local-only)" — plus per-group "Enable all / Disable all" buttons on the Mental Math, Cognitive, and LLM sections (bulk-enabling LLM drills is blocked until you've picked an AI provider). History session rows now expand/collapse with the keyboard (Enter/Space), not just a mouse click. The inter-drill transition screen gained a Pause/Resume control and pauses its 3-second auto-advance countdown while you're hovering or focused on it, so you're never yanked into the next drill mid-read.+ - **[issue-2097] The Wordplay tab now tracks your practice.** Completing a round of Compound Chain, Bridge Word, Double Meaning, or Idiom Twist in the standalone Wordplay tab used to score every response and then throw the result away — closing the tab meant the practice never happened. Each completed round now logs to your training history (same log the in-session drills and streak use), so Wordplay accuracy shows up in training stats and counts toward your practice streak. The standalone tab and the in-session drill runner now also share one scoring path for these four types, and a bug that always logged 0% accuracy for in-session LLM-drill training rounds (regardless of actual performance) is fixed too.+ - **[issue-2094] Scores now separate how *accurate* you were from how *fast* — and stop rewarding not answering.** Every scored drill now records accuracy (of the answers you actually gave), completion (how much of a timed drill you reached), and average speed as distinct numbers alongside the blended headline score, so the session and history views show accuracy and speed side by side instead of one merged figure. Running out of time on a timed drill now lowers *completion*, not accuracy — an unreached question no longer counts as wrong. Adaptive difficulty follows your accuracy (with a guard that skips adjusting when you barely started a drill), so a fast-but-sloppy run and a slow-but-careful run now push difficulty in different, correct directions. The n-back drill is rescored with proper signal-detection: never pressing now lands at ~50% (chance) instead of the old ~70% freebie, and always-pressing is penalized for its false alarms. The reaction-time drill is now scored on your median reaction speed (false starts invalidate their trial) with your best time tracked too. Older saved sessions without the new fields still display and chart correctly.+ - **[issue-2093] Session results now teach from mistakes on every drill, not just AI ones.** Expanding a math, memory, or cognitive (n-back, digit-span, Stroop, Schulte table, mental rotation, reaction time) drill row on the results screen used to do nothing — only AI-scored drills showed a review. Every drill row now expands into a per-question/per-trial breakdown: a "missed items" summary up top, then a type-appropriate view — a prompt/answer/expected table for math and memory, letter-sequence hit/miss/false-alarm marks for n-back, shown-vs-recalled digits for digit span, word/ink/your-answer for Stroop, and per-trial timing with slow-response outliers flagged for the pure speed drills. Unanswered questions are shown distinctly from wrong ones. The same review now also appears when you expand a past session in History.- **Multiplication drills now ramp up instead of starting hard.** The mental-math multiplication drill used to open at a fixed 2-digit × 2-digit difficulty (e.g. `566 × 191`) for everyone. It now climbs a mastery-gated ladder — `1×1` → `1×2` → `1×1×1` → `2×2` → … — starting at single-digit × single-digit and advancing to the next rung only after you answer a level quickly *and* accurately (≥90% correct within a per-rung speed target). The drill header and the config page show your current rung and per-level mastery. On by default; turn off "Progressive difficulty" on the Multiplication card to go back to the manual Max Digits setting.- **Morse trainer audio now works on mobile Safari.** iOS Safari starts the Web Audio context suspended and only unlocks it once `resume()` fully settles. The trainer fired `resume()` without awaiting it, so the first tones were scheduled against a still-suspended clock and never sounded on iPhone/iPad. It now awaits the resume before scheduling any tone (matching the app's other audio modules), so Copy, Head Copy, and Send-mode keying all produce sound on mobile Safari.- **The Elements Song trainer is now mobile-friendly and speed-readable.** The periodic-table memorization view no longer overflows off the right edge of a phone screen: the mastery summary, search box, and Mastery/Category toggle now stack and stretch to full width on small screens, the periodic table uses smaller cells (with a scroll-hint fade so it's clear the grid pans horizontally), and the header shrinks to fit. It also gained a **Rapid Read** practice mode that RSVP-flashes the lyrics one word at a time (reusing the app's speed reader) — run the whole song from the Practice list, or tap the gauge icon on any verse to speed-read just that section.diff --cc client/src/components/meatspace/post/PostHistory.test.jsxindex d93c412f86,57f47a00ae..a92ac65e71--- a/client/src/components/meatspace/post/PostHistory.test.jsx+++ b/client/src/components/meatspace/post/PostHistory.test.jsx@@@ -85,53 -85,51 +85,100 @@@ describe('PostHistory analytics dashboaawait waitFor(() => expect(screen.getByText('No sessions found for this range.')).toBeTruthy());expect(screen.queryByText('Drill Breakdown')).toBeNull();});++ describe('session row keyboard accessibility', () => {+ it('exposes a collapsed session row as a disclosure control with aria-expanded=false', async () => {+ render(<PostHistory onBack={() => {}} />);+ await waitFor(() => expect(screen.getByText('2026-06-01')).toBeTruthy());+ const row = screen.getByRole('button', { name: /Session 2026-06-01/ });+ expect(row).toHaveAttribute('aria-expanded', 'false');+ expect(row).toHaveAttribute('tabindex', '0');+ });++ it('expands a row via a click, flipping aria-expanded and revealing task detail', async () => {+ render(<PostHistory onBack={() => {}} />);+ await waitFor(() => expect(screen.getByText('2026-06-01')).toBeTruthy());+ const table = screen.getByRole('table');+ expect(within(table).queryByText('Multiplication')).toBeNull();+ fireEvent.click(screen.getByRole('button', { name: /Session 2026-06-01/ }));+ expect(screen.getByRole('button', { name: /Session 2026-06-01/ })).toHaveAttribute('aria-expanded', 'true');+ expect(within(table).getByText('Multiplication')).toBeTruthy();+ });++ it('expands and collapses a row via the Enter key, without scrolling the page (default prevented)', async () => {+ render(<PostHistory onBack={() => {}} />);+ await waitFor(() => expect(screen.getByText('2026-06-01')).toBeTruthy());+ const table = screen.getByRole('table');+ const row = screen.getByRole('button', { name: /Session 2026-06-01/ });+ fireEvent.keyDown(row, { key: 'Enter' });+ expect(screen.getByRole('button', { name: /Session 2026-06-01/ })).toHaveAttribute('aria-expanded', 'true');+ expect(within(table).getByText('Multiplication')).toBeTruthy();+ fireEvent.keyDown(screen.getByRole('button', { name: /Session 2026-06-01/ }), { key: 'Enter' });+ expect(screen.getByRole('button', { name: /Session 2026-06-01/ })).toHaveAttribute('aria-expanded', 'false');+ expect(within(table).queryByText('Multiplication')).toBeNull();+ });++ it('expands a row via the Space key', async () => {+ render(<PostHistory onBack={() => {}} />);+ await waitFor(() => expect(screen.getByText('2026-06-01')).toBeTruthy());+ const row = screen.getByRole('button', { name: /Session 2026-06-01/ });+ fireEvent.keyDown(row, { key: ' ' });+ expect(screen.getByRole('button', { name: /Session 2026-06-01/ })).toHaveAttribute('aria-expanded', 'true');+ });++ it('ignores unrelated keys — a row does not expand on an arbitrary keypress', async () => {+ render(<PostHistory onBack={() => {}} />);+ await waitFor(() => expect(screen.getByText('2026-06-01')).toBeTruthy());+ const row = screen.getByRole('button', { name: /Session 2026-06-01/ });+ fireEvent.keyDown(row, { key: 'a' });+ expect(row).toHaveAttribute('aria-expanded', 'false');+ });+ });});++ // Issue #2093 — expanding a past session must reuse DrillQuestionReview so+ // history teaches from mistakes exactly like the just-finished session does.+ describe('PostHistory expanded session review', () => {+ const REVIEW_SESSIONS = [+ {+ id: 'c', date: '2026-06-03', score: 70, durationMs: 60000, modules: ['mental-math'],+ tasks: [+ {+ module: 'mental-math', type: 'multiplication', score: 50,+ questions: [+ { prompt: '6 x 7', expected: 42, answered: 41, correct: false, responseMs: 2000 },+ { prompt: '3 x 3', expected: 9, answered: 9, correct: true, responseMs: 1200 },+ ],+ },+ { module: 'llm-drills', type: 'pun-wordplay', score: 64, responses: [{}] },+ ],+ },+ ];++ it('reuses DrillQuestionReview inside an expanded session for a non-LLM task', async () => {+ getPostSessions.mockResolvedValue(REVIEW_SESSIONS);+ render(<PostHistory onBack={() => {}} />);+ await waitFor(() => expect(screen.getByText('2026-06-03')).toBeTruthy());++ fireEvent.click(screen.getByText('2026-06-03'));++ // The missed-item summary + per-question table (shared with PostSessionResults).+ // "6 x 7" appears twice once expanded: once in the missed-items chip,+ // once in the per-question table row.+ await waitFor(() => expect(screen.getByText('1 missed')).toBeTruthy());+ expect(screen.getAllByText('6 x 7').length).toBe(2);+ expect(screen.getByText('42')).toBeTruthy();+ });++ it('does not render a review for an LLM task (unchanged summary-only behavior)', async () => {+ getPostSessions.mockResolvedValue(REVIEW_SESSIONS);+ render(<PostHistory onBack={() => {}} />);+ await waitFor(() => expect(screen.getByText('2026-06-03')).toBeTruthy());++ fireEvent.click(screen.getByText('2026-06-03'));++ await waitFor(() => expect(screen.getByText('1 responses')).toBeTruthy());+ // No missed-item summary rendered twice — only the one math task produces it.+ expect(screen.getAllByText(/missed/).length).toBe(1);+ });+ });