diff --git a/CHANGELOG b/CHANGELOG index 553788d8b9ded1d44c3b72230848d33598f71296..253994ebcd3b089e7e764098bca2a3325a633827 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,6 @@ minerva-front (18.0.0~beta.3) stable; urgency=medium * Bugfix: license info styling (#280) + * Bugfix: list of plugins did not contain version (#287) -- Piotr Gawron <piotr.gawron@uni.lu> Thu, 26 Sep 2024 13:00:00 +0200 diff --git a/src/components/Map/Drawer/AvailablePluginsDrawer/AvailablePluginsDrawer.component.test.tsx b/src/components/Map/Drawer/AvailablePluginsDrawer/AvailablePluginsDrawer.component.test.tsx index 436f89c6a9a4cd4737c4d4eb4627c2ffb65799fc..1e33584b23527b180c27d3fe864e2f0228c41c23 100644 --- a/src/components/Map/Drawer/AvailablePluginsDrawer/AvailablePluginsDrawer.component.test.tsx +++ b/src/components/Map/Drawer/AvailablePluginsDrawer/AvailablePluginsDrawer.component.test.tsx @@ -48,7 +48,7 @@ describe('AvailablePluginsDrawer - component', () => { }, }); - const pluginLabel = screen.getByText(currentPlugin.name); + const pluginLabel = screen.getByText(`${currentPlugin.name} (${currentPlugin.version})`); expect(pluginLabel).toBeInTheDocument(); }, ); diff --git a/src/components/Map/Drawer/AvailablePluginsDrawer/LoadPlugin/LoadPlugin.component.test.tsx b/src/components/Map/Drawer/AvailablePluginsDrawer/LoadPlugin/LoadPlugin.component.test.tsx index ca74841a981e53d189e46e52b9a859ca73856620..a672f76aa035043a6fdcb1844a5d9c3833bd9350 100644 --- a/src/components/Map/Drawer/AvailablePluginsDrawer/LoadPlugin/LoadPlugin.component.test.tsx +++ b/src/components/Map/Drawer/AvailablePluginsDrawer/LoadPlugin/LoadPlugin.component.test.tsx @@ -43,7 +43,7 @@ describe('LoadPlugin - component', () => { it('renders plugin name', () => { renderComponent({ plugin }); - const title = screen.getByText(plugin.name); + const title = screen.getByText(`${plugin.name} (${plugin.version})`); expect(title).toBeInTheDocument(); }); diff --git a/src/components/Map/Drawer/AvailablePluginsDrawer/LoadPlugin/LoadPlugin.component.tsx b/src/components/Map/Drawer/AvailablePluginsDrawer/LoadPlugin/LoadPlugin.component.tsx index 72ec131e851a51671c7f8b9934948613937421fb..b074ab0a0b66d09a2be8478fa69dff7fcdbac539 100644 --- a/src/components/Map/Drawer/AvailablePluginsDrawer/LoadPlugin/LoadPlugin.component.tsx +++ b/src/components/Map/Drawer/AvailablePluginsDrawer/LoadPlugin/LoadPlugin.component.tsx @@ -22,7 +22,9 @@ export const LoadPlugin = ({ plugin }: Props): JSX.Element => { return ( <div className="flex w-full items-center justify-between text-sm"> - <span className="text-cetacean-blue">{plugin.name}</span> + <span className="text-cetacean-blue"> + {plugin.name} ({plugin.version}) + </span> <Button variantStyles="secondary" className="h-10 self-end rounded-e rounded-s text-xs font-medium"