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
fix: give the Rapid Reader a screen-reader word, progressbar semantics, and full-text transcript (#9123)
[._.]/ Adam Eivy4f0093fd18fc
diff --git a/client/src/components/RapidReader.jsx b/client/src/components/RapidReader.jsxindex 2166fd96d7..1a9a0be1ae 100644--- a/client/src/components/RapidReader.jsx+++ b/client/src/components/RapidReader.jsx@@ -68,6 +68,7 @@ export default function RapidReader({const words = useMemo(() => rapidReaderWords(text), [text]);const totalWords = words.length;+ const [transcriptOpen, setTranscriptOpen] = useState(false);const current = useMemo(() => chunkAt(words, wordIndex, chunkSize), [words, wordIndex, chunkSize]);const availableSections = useMemo(() => (Array.isArray(sections) ? sections : []).filter((section) => Number.isInteger(section?.wordIndex) && section.wordIndex >= 0 && section.wordIndex < totalWords)@@ -197,7 +198,14 @@ export default function RapidReader({</div>{/* Progress bar */}- <div className="h-1 bg-port-border/40">+ <div+ className="h-1 bg-port-border/40"+ role="progressbar"+ aria-label="Reading progress"+ aria-valuemin={0}+ aria-valuemax={100}+ aria-valuenow={Math.round(progress)}+ ><divclassName="h-full bg-port-accent transition-[width] duration-150"style={{ width: `${progress}%` }}@@ -325,6 +333,14 @@ export default function RapidReader({</span></div></div>++ {/* Static transcript — the flashing display is not readable by assistive tech */}+ <details className="border-t border-port-border text-xs text-gray-400" onToggle={(e) => setTranscriptOpen(e.currentTarget.open)}>+ <summary className="cursor-pointer select-none px-3 py-2 hover:text-white">Full text</summary>+ {transcriptOpen && (+ <p className="max-h-48 overflow-y-auto px-3 pb-3 whitespace-pre-wrap text-gray-300">{text}</p>+ )}+ </details></div>);}@@ -350,15 +366,19 @@ function FocalSlot({ words, focalColor }) {const rightHalf = `${right}${target < parts.length - 1 ? ` ${parts.slice(target + 1).join(' ')}` : ''}`;return (- <div className="flex items-baseline justify-center">- <span className="text-right" style={{ flex: '1 1 0', whiteSpace: 'pre' }}>- {leftHalf}- </span>- <span style={{ color: focalColor }}>{focal}</span>- <span className="text-left" style={{ flex: '1 1 0', whiteSpace: 'pre' }}>- {rightHalf}- </span>- </div>+ <>+ {/* Screen readers get the whole word; the focal split below is visual only */}+ <span className="sr-only">{parts.join(' ')}</span>+ <div className="flex items-baseline justify-center" aria-hidden="true">+ <span className="text-right" style={{ flex: '1 1 0', whiteSpace: 'pre' }}>+ {leftHalf}+ </span>+ <span style={{ color: focalColor }}>{focal}</span>+ <span className="text-left" style={{ flex: '1 1 0', whiteSpace: 'pre' }}>+ {rightHalf}+ </span>+ </div>+ </>);}diff --git a/client/src/components/RapidReader.test.jsx b/client/src/components/RapidReader.test.jsxindex 746271188d..c6f5629969 100644--- a/client/src/components/RapidReader.test.jsx+++ b/client/src/components/RapidReader.test.jsx@@ -3,6 +3,21 @@ import { render, screen, fireEvent, act } from '@testing-library/react';import { installVoiceHotkeySpy } from '../test/voiceHotkeySpy';import RapidReader, { RapidReaderModal } from './RapidReader';+describe('RapidReader accessibility', () => {+ it('exposes the whole word, a progressbar, and the full text to assistive tech', () => {+ const { container } = render(<RapidReader text="alpha bravo charlie delta" chunkSize={1} />);+ expect(container.querySelector('.sr-only').textContent).toBe('alpha');+ expect(container.querySelector('[aria-hidden="true"].flex')).not.toBeNull();+ const bar = screen.getByRole('progressbar', { name: 'Reading progress' });+ expect(bar).toHaveAttribute('aria-valuenow', '25');+ expect(bar).toHaveAttribute('aria-valuemin', '0');+ expect(bar).toHaveAttribute('aria-valuemax', '100');+ const details = container.querySelector('details');+ act(() => { details.open = true; fireEvent(details, new Event('toggle')); });+ expect(screen.getByText('alpha bravo charlie delta')).toBeInTheDocument();+ });+});+describe('RapidReader keyboard transport', () => {const voiceHotkey = installVoiceHotkeySpy();