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: wrap music video disclosure titles on small screens with enlarged text

[._.]/ Adam Eivy57fe376d313a
diff --git a/client/src/components/musicVideo/StageSection.jsx b/client/src/components/musicVideo/StageSection.jsx
index dd933d40cf..253542e7a7 100644
--- a/client/src/components/musicVideo/StageSection.jsx
+++ b/client/src/components/musicVideo/StageSection.jsx
@@ -21,7 +21,7 @@ export default function StageSection({ id, title, summary = null, defaultOpen =
<details ref={ref} id={id} open={initialOpen || undefined} className={`group min-w-0 rounded-lg border border-port-border bg-port-card ${className}`}>
<summary className="flex min-h-[44px] cursor-pointer select-none items-center gap-2 px-3 py-2 marker:content-none [&::-webkit-details-marker]:hidden">
<ChevronRight size={14} aria-hidden="true" className="shrink-0 text-port-text-muted transition-transform group-open:rotate-90" />
- <span className="shrink-0 text-sm font-medium">{title}</span>
+ <span className="min-w-0 break-words text-sm font-medium">{title}</span>
{summary && <span className="min-w-0 truncate text-xs text-port-text-muted">{summary}</span>}
</summary>
<div className="min-w-0 space-y-2 px-3 pb-3">{children}</div>
diff --git a/client/src/components/musicVideo/StageSection.test.jsx b/client/src/components/musicVideo/StageSection.test.jsx
index ebcd011725..c491503490 100644
--- a/client/src/components/musicVideo/StageSection.test.jsx
+++ b/client/src/components/musicVideo/StageSection.test.jsx
@@ -1,5 +1,6 @@
import { describe, expect, it } from 'vitest';
-import { render } from '@testing-library/react';
+import { render, screen } from '@testing-library/react';
+import userEvent from '@testing-library/user-event';
import StageSection from './StageSection.jsx';
// The folded autopilot and approvals sections compute `defaultOpen` from live
@@ -26,4 +27,25 @@ describe('StageSection', () => {
const { container } = render(section(false));
expect(container.querySelector('details').open).toBe(false);
});
+
+ it('keeps a long disclosure title readable and keyboard focus stable when live context changes', async () => {
+ const user = userEvent.setup();
+ const title = 'Dependency changes and repair';
+ const panel = (summary, defaultOpen = false) => <StageSection title={title} summary={summary} defaultOpen={defaultOpen}><p>Review evidence</p></StageSection>;
+ const { container, rerender } = render(panel('No repairs pending'));
+ const details = container.querySelector('details');
+ const disclosure = details.querySelector('summary');
+ await user.tab();
+ expect(disclosure).toHaveFocus();
+ expect(screen.getByText(title)).toBeVisible();
+
+ rerender(panel('An updated dependency needs review', true));
+ expect(details.open).toBe(true);
+ expect(disclosure).toHaveFocus();
+ expect(screen.getByText(title)).toBeVisible();
+ expect(screen.getByText('Review evidence')).toBeVisible();
+ rerender(panel('No repairs pending'));
+ expect(details.open).toBe(true);
+ expect(disclosure).toHaveFocus();
+ });
});