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
address review (claude): fix Live-mode Esc reopen; aria-labels on icon buttons
[._.]/ Adam Eivy5694ecf18e0a
diff --git a/client/src/components/pipeline/manuscript/ManuscriptCommentCard.jsx b/client/src/components/pipeline/manuscript/ManuscriptCommentCard.jsxindex 5ac0d3c09e..f4c847c828 100644--- a/client/src/components/pipeline/manuscript/ManuscriptCommentCard.jsx+++ b/client/src/components/pipeline/manuscript/ManuscriptCommentCard.jsx@@ -189,6 +189,7 @@ export default function ManuscriptCommentCard({type="button"onClick={() => setDiffStyle('side')}aria-pressed={diffStyle === 'side'}+ aria-label="Side-by-side diff"title="Side-by-side diff"className={`px-1.5 py-0.5 ${diffStyle === 'side' ? 'bg-port-accent text-white' : 'text-gray-400 hover:text-white'}`}>@@ -198,6 +199,7 @@ export default function ManuscriptCommentCard({type="button"onClick={() => setDiffStyle('inline')}aria-pressed={diffStyle === 'inline'}+ aria-label="Stacked inline diff"title="Stacked inline diff"className={`px-1.5 py-0.5 ${diffStyle === 'inline' ? 'bg-port-accent text-white' : 'text-gray-400 hover:text-white'}`}>@@ -267,6 +269,7 @@ export default function ManuscriptCommentCard({onClick={generate}disabled={generating || accepting}className="inline-flex items-center gap-1 px-2 py-1 rounded text-[12px] text-gray-400 hover:text-white disabled:opacity-40"+ aria-label="Regenerate the suggested fix"title="Regenerate the suggested fix">{generating ? <Loader2 size={12} className="animate-spin" /> : <Sparkles size={12} />}diff --git a/client/src/components/pipeline/manuscript/ManuscriptLiveSection.jsx b/client/src/components/pipeline/manuscript/ManuscriptLiveSection.jsxindex 489b8e30f2..161edd679a 100644--- a/client/src/components/pipeline/manuscript/ManuscriptLiveSection.jsx+++ b/client/src/components/pipeline/manuscript/ManuscriptLiveSection.jsx@@ -124,7 +124,9 @@ export default function ManuscriptLiveSection({onChange={(e) => onContentChange(e.target.value)}onBlur={onBlurSave}onClick={handleCaret}- onKeyUp={handleCaret}+ // Escape closes the popover (useEscapeKey); don't let the trailing+ // keyup re-open it because the caret still sits inside the span.+ onKeyUp={(e) => { if (e.key !== 'Escape') handleCaret(); }}// Keep the underline backdrop aligned when a section longer than the// row cap scrolls internally (the backdrop is overflow-hidden).onScroll={(e) => {diff --git a/client/src/pages/PipelineManuscriptEditor.test.jsx b/client/src/pages/PipelineManuscriptEditor.test.jsxindex a4034a41dd..ff0d4afa4d 100644--- a/client/src/pages/PipelineManuscriptEditor.test.jsx+++ b/client/src/pages/PipelineManuscriptEditor.test.jsx@@ -95,6 +95,22 @@ describe('PipelineManuscriptEditor', () => {await waitFor(() => expect(screen.getAllByText('The ending is abrupt')).toHaveLength(1));});+ it('Live mode: Escape closes the popover and the trailing keyup does not reopen it', async () => {+ renderEditor(); // Live is the default mode+ await screen.findByText('My Series');+ const ta = screen.getByDisplayValue('The hero walked in. She left.');+ // Put the caret inside the "She left." anchor span and click to open.+ const idx = 'The hero walked in. She left.'.indexOf('She left.') + 2;+ ta.selectionStart = idx; ta.selectionEnd = idx;+ fireEvent.click(ta);+ expect(await screen.findByText('Editorial note')).toBeInTheDocument();++ // Esc (keydown) closes; the trailing keyup must NOT re-open it.+ fireEvent.keyDown(window, { key: 'Escape' });+ fireEvent.keyUp(ta, { key: 'Escape' });+ await waitFor(() => expect(screen.queryByText('Editorial note')).not.toBeInTheDocument());+ });+it('generates a fix, then accepts it — moving the comment to Accepted and updating the section', async () => {api.generatePipelineManuscriptFix.mockResolvedValue({fix: { find: 'She left.', replace: 'She left, but paused.' },