diff --git a/CHANGELOG b/CHANGELOG index 0992fd8c23a32df9e3b9404cd531e9d1f761330d..ead072d885beb1e938df722b698681dd8c2b4207 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -5,6 +5,7 @@ minerva-front (19.0.0~alpha.0) stable; urgency=medium * Feature: allow plugin to access info about opened panel (#309) * Feature: allow plugin to hide opened panel (#309) * Feature: allow plugin to open left panel (#309) + * Feature: allow to export current view for graphics export (#327) -- Piotr Gawron <piotr.gawron@uni.lu> Fri, 18 Oct 2024 13:00:00 +0200 diff --git a/src/components/Map/Drawer/ExportDrawer/ExportCompound/Submap/Submap.component.test.tsx b/src/components/Map/Drawer/ExportDrawer/ExportCompound/Submap/Submap.component.test.tsx index 6ee9cb42426c0d218bcf1922f0d4db5a0d6a41fd..f3b874e3c3cfb7dd1bf87d403a3f07afd2051220 100644 --- a/src/components/Map/Drawer/ExportDrawer/ExportCompound/Submap/Submap.component.test.tsx +++ b/src/components/Map/Drawer/ExportDrawer/ExportCompound/Submap/Submap.component.test.tsx @@ -45,7 +45,7 @@ describe('Submap - component', () => { navigationButton.click(); }); - expect(screen.getByText('Submap')).toBeInTheDocument(); + expect(screen.getByText('Diagram')).toBeInTheDocument(); await waitFor(() => { expect(screen.getByTestId('checkbox-filter')).toBeInTheDocument(); @@ -64,7 +64,7 @@ describe('Submap - component', () => { }, }, }); - expect(screen.getByText('Submap')).toBeInTheDocument(); + expect(screen.getByText('Diagram')).toBeInTheDocument(); const navigationButton = screen.getByTestId('accordion-item-button'); act(() => { navigationButton.click(); @@ -83,7 +83,7 @@ describe('Submap - component', () => { }, }, }); - expect(screen.getByText('Submap')).toBeInTheDocument(); + expect(screen.getByText('Diagram')).toBeInTheDocument(); const navigationButton = screen.getByTestId('accordion-item-button'); act(() => { navigationButton.click(); @@ -103,7 +103,7 @@ describe('Submap - component', () => { }, }, }); - expect(screen.getByText('Submap')).toBeInTheDocument(); + expect(screen.getByText('Diagram')).toBeInTheDocument(); const navigationButton = screen.getByTestId('accordion-item-button'); act(() => { navigationButton.click(); diff --git a/src/components/Map/Drawer/ExportDrawer/ExportCompound/Submap/Submap.component.tsx b/src/components/Map/Drawer/ExportDrawer/ExportCompound/Submap/Submap.component.tsx index 422c4b7385fffdac8bde41a57f9c1ed0543986dd..21e1048d0de165e0554bb4dbc30cf3bc1b68ace5 100644 --- a/src/components/Map/Drawer/ExportDrawer/ExportCompound/Submap/Submap.component.tsx +++ b/src/components/Map/Drawer/ExportDrawer/ExportCompound/Submap/Submap.component.tsx @@ -30,7 +30,7 @@ export const Submap = (): React.ReactNode => { } return ( - <CollapsibleSection title="Submap" dangerouslySetExpanded> + <CollapsibleSection title="Diagram" dangerouslySetExpanded> {isPending && <p>Loading...</p>} {!isPending && mappedElementAnnotations && mappedElementAnnotations.length > ZERO && ( <CheckboxFilter