Skip to content

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

fix: mark the SyncedReview anchor card with aria-pressed so the selection isn't a color-only cue (#3586)

[._.]/ Adam Eivy0cacbcb61db4
diff --git a/client/src/components/writers-room/SyncedReview.jsx b/client/src/components/writers-room/SyncedReview.jsx
index e0985d2189..9dea74666c 100644
--- a/client/src/components/writers-room/SyncedReview.jsx
+++ b/client/src/components/writers-room/SyncedReview.jsx
@@ -342,6 +342,7 @@ function ProsePane({ containerRef, className, segments, proseIds, selectedId, ha
<button
key={seg.id}
data-sync-id={seg.id}
+ aria-pressed={state === 'selected'}
onClick={() => onSelect(seg.id)}
className={`w-full text-left rounded border px-3 py-2 transition-all ${CARD_CLASS[state]}`}
>
@@ -383,6 +384,7 @@ function ScriptPane({ containerRef, className, script, sceneIds, selectedId, has
<button
key={sc.id}
data-sync-id={sc.id}
+ aria-pressed={state === 'selected'}
onClick={() => onSelect(sc.id)}
className={`w-full text-left rounded border px-3 py-2 transition-all ${CARD_CLASS[state]}`}
>
@@ -428,6 +430,7 @@ function MediaPane({ containerRef, className, items, mediaSceneIds, selectedId,
<button
key={`${m.sceneId}-${m.ref}`}
data-sync-id={m.sceneId}
+ aria-pressed={state === 'selected'}
onClick={() => onSelect(m.sceneId)}
className={`text-left rounded border overflow-hidden transition-all ${CARD_CLASS[state]}`}
>
diff --git a/client/src/components/writers-room/SyncedReview.test.jsx b/client/src/components/writers-room/SyncedReview.test.jsx
index ef3bd1219a..218a9bbdaf 100644
--- a/client/src/components/writers-room/SyncedReview.test.jsx
+++ b/client/src/components/writers-room/SyncedReview.test.jsx
@@ -101,6 +101,9 @@ describe('SyncedReview', () => {
expect(isLinked(card('media', 'scene-01'))).toBe(true);
// an unrelated prose card dims rather than reading as linked
expect(card('prose', 'seg-002').className).toMatch(/opacity-40/);
+ // the anchor is also exposed non-visually, so it doesn't read as color-only
+ expect(card('prose', 'seg-001').getAttribute('aria-pressed')).toBe('true');
+ expect(card('script', 'scene-01').getAttribute('aria-pressed')).toBe('false');
// Selecting the script scene moves the anchor to the script pane.
fireEvent.click(card('script', 'scene-01'));