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: name the SoulWizard step dots for screen readers (#3923)
[._.]/ Adam Eivyb318cd0b52fd
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex a7f3deb45d..238d7aa48d 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -90,3 +90,4 @@- Unsaved edits in the pipeline manuscript editor and the writers-room work editor now survive an in-app navigation. Both carried a `beforeunload`-only guard, so a tab close or reload asked before dropping the draft but a sidebar link, a ⌘K jump, a voice `ui_navigate` or the browser Back button unmounted the editor and discarded the work silently — manuscript sections only persist onBlur, so a section typed into and left without blurring was gone. Both now adopt the shared `useUnsavedChangesGuard` hook and render an inline Discard / Keep editing confirm (never a `window.confirm`), with the local `beforeunload` effects dropped in favour of the hook's. The manuscript editor is a splat route where switching issue tabs changes the pathname without leaving the editor, so the hook grew an `isSameView(from, to)` option that exempts an editor's own in-page moves: switching between issues with unsaved text raises nothing, while leaving the manuscript entirely still parks the navigation behind the confirm, and discarding restores each section to its last server-confirmed content before the navigation runs.- A merge follow-up that successfully lands its PR is no longer recorded as a failure. These runs exist to merge one pull request: they make no commit, are told to exit once the PR reads `MERGED`, and on Antigravity often skip the completion sentinel — so the idle reaper had only proxies to judge them by, and every proxy got it wrong. Their prompt quotes `gh pr checks`, `gh pr merge` and `--delete-branch`, which the TUI echoes back, which latches the swarm merge-queue tracker before any work happens; the finished agent then sat silent for the tracker's 15-minute grace and was reaped as "idled out in the merge queue — it likely died mid-merge", twice retried, and finally blocked on max retries with a high-priority "PR left open" notification naming a PR that had merged fifteen minutes into the first attempt. The reaper now asks the forge the actual question — once a follow-up run has been quiet for its normal idle window, it checks whether its PR merged, and finalises on that answer. A `gh` that cannot be reached still counts as "we could not ask" rather than "not merged", so every existing verdict is untouched when the forge is unavailable, and a follow-up whose PR genuinely did not land still surfaces as needs-manual-finish. The reaper's branch matrix also moved out of the interval body into a pure function the tests now call directly, replacing a hand-maintained copy of that logic inside the test file.- The backup service's persisted state file is now covered by tests. `getState` returning the default state when `data/backup/state.json` is missing or truncated mid-write, `saveState` merging a partial patch into what is already on disk, and — the one that actually matters — two concurrent `saveState` calls (a run finishing while the scheduler stamps a status) serializing through the write queue so neither loses the other's fields. The concurrency test fails if the queue is removed, and all of it runs against a real temp directory rather than a mocked filesystem.+- The Soul Creation Wizard's step-indicator dots are now announced. The five dots are real `<button>` elements with no text inside them, so a screen reader read out five unnamed buttons with no cue as to which step each one jumped to or which was current. Each dot now carries an `aria-label` naming its step number and title, and the active one carries `aria-current="step"`.diff --git a/client/src/components/digital-twin/SoulWizard.jsx b/client/src/components/digital-twin/SoulWizard.jsxindex 84fc17e248..daa46b08fa 100644--- a/client/src/components/digital-twin/SoulWizard.jsx+++ b/client/src/components/digital-twin/SoulWizard.jsx@@ -262,6 +262,8 @@ ${boundaries.irritant ? `- **Pet Peeve**: ${boundaries.irritant}` : ''}<buttonkey={s.id}onClick={() => setCurrentStep(index)}+ aria-label={`Go to step ${index + 1}: ${s.title}`}+ aria-current={index === currentStep ? 'step' : undefined}className={`w-3 h-3 min-w-[12px] min-h-[12px] rounded-full transition-colors ${index === currentStep? 'bg-port-accent'diff --git a/client/src/components/digital-twin/SoulWizard.test.jsx b/client/src/components/digital-twin/SoulWizard.test.jsxnew file mode 100644index 0000000000..0d0ba36851--- /dev/null+++ b/client/src/components/digital-twin/SoulWizard.test.jsx@@ -0,0 +1,30 @@+import { describe, it, expect, vi } from 'vitest';+import { render, screen, fireEvent } from '@testing-library/react';++vi.mock('../../services/api', () => ({}));+vi.mock('../ui/Toast', () => ({ default: { success: vi.fn(), error: vi.fn() } }));++import SoulWizard from './SoulWizard';++const stepDots = () => screen.getAllByRole('button', { name: /^Go to step \d+: / });++describe('SoulWizard step indicators', () => {+ it('names every step dot with its number and title', () => {+ render(<SoulWizard onComplete={vi.fn()} onCancel={vi.fn()} />);+ const dots = stepDots();+ expect(dots.length).toBeGreaterThan(1);+ dots.forEach((dot, index) => {+ expect(dot.getAttribute('aria-label')).toMatch(new RegExp(`^Go to step ${index + 1}: .+`));+ });+ });++ it('marks only the active step with aria-current="step"', () => {+ render(<SoulWizard onComplete={vi.fn()} onCancel={vi.fn()} />);+ const current = () => stepDots().map((d) => d.getAttribute('aria-current'));+ expect(current()).toEqual(['step', ...stepDots().slice(1).map(() => null)]);++ fireEvent.click(stepDots()[2]);+ expect(current()[2]).toBe('step');+ expect(current()[0]).toBeNull();+ });+});