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: show tab legend for ChordPro staffs (#3218)
[._.]/ Adam Eivy1d5cf0d2d6f5
diff --git a/client/src/components/songbook/TabSheetView.jsx b/client/src/components/songbook/TabSheetView.jsxindex 356fa4c418..bfd8a4118d 100644--- a/client/src/components/songbook/TabSheetView.jsx+++ b/client/src/components/songbook/TabSheetView.jsx@@ -152,7 +152,7 @@ function TabSheetView({}return out;}, [lines]);- const hasTabstaff = format === 'tab' && lines.some((line) => line.type === 'tabstaff');+ const hasTabstaff = lines.some((line) => line.type === 'tabstaff');const [legendOpen, setLegendOpen] = useState(false);const legendId = useId();diff --git a/client/src/components/songbook/TabSheetView.test.jsx b/client/src/components/songbook/TabSheetView.test.jsxindex 4393997a91..0906cb8c12 100644--- a/client/src/components/songbook/TabSheetView.test.jsx+++ b/client/src/components/songbook/TabSheetView.test.jsx@@ -57,12 +57,12 @@ describe('TabSheetView', () => {expect(document.getElementById(panelId)).toBeNull();});- it('only offers the articulation legend for tab-format sheets with a tab staff', () => {+ it('only offers the articulation legend when parsed content has a tab staff', () => {const { rerender } = render(<TabSheetView text={'C G\nNonsense lyric line'} format="tab" />);expect(screen.queryByRole('button', { name: 'Legend' })).toBeNull();- rerender(<TabSheetView text={SAMPLE} format="chordpro" />);- expect(screen.queryByRole('button', { name: 'Legend' })).toBeNull();+ rerender(<TabSheetView text={`{start_of_tab}\n${SAMPLE}`} format="chordpro" />);+ expect(screen.getByRole('button', { name: 'Legend' })).toBeTruthy();rerender(<TabSheetView text={SAMPLE} format="plain" />);expect(screen.queryByRole('button', { name: 'Legend' })).toBeNull();