Update storybook to v9 (#4645)

* chore: Update storybook to v9

* Pin next-export-i18n + remove outdated mock library

* Replace old mocking library with MSW

* Resolve knip unused code warnings
This commit is contained in:
Gabe Kangas
2025-10-20 21:26:32 -07:00
committed by GitHub
parent 72d5ee8754
commit cc9286416c
68 changed files with 40881 additions and 44059 deletions
+17 -13
View File
@@ -1,4 +1,4 @@
import { Meta, StoryFn, StoryObj } from '@storybook/react';
import { Meta, StoryFn, StoryObj } from '@storybook/nextjs';
import { MutableSnapshot, RecoilRoot } from 'recoil';
import { makeEmptyClientConfig } from '../../../interfaces/client-config.model';
import { ServerStatus, makeEmptyServerStatus } from '../../../interfaces/server-status.model';
@@ -129,20 +129,22 @@ export const OfflineMobile: StoryObj<typeof Template> = {
},
},
parameters: {
globals: {
viewport: {
defaultViewport: 'mobile1',
},
value: 'mobile1',
isRotated: false
}
},
};
export const OfflineTablet: StoryObj<typeof Template> = {
render: Template,
parameters: {
globals: {
viewport: {
defaultViewport: 'tablet',
},
value: 'tablet',
isRotated: false
}
},
};
@@ -168,10 +170,11 @@ export const OnlineMobile: StoryObj<typeof Template> = {
},
},
parameters: {
globals: {
viewport: {
defaultViewport: 'mobile1',
},
value: 'mobile1',
isRotated: false
}
},
};
@@ -182,9 +185,10 @@ export const OnlineTablet: StoryObj<typeof Template> = {
ServerStatusServiceMock: OnlineServerStatusServiceMock,
},
parameters: {
globals: {
viewport: {
defaultViewport: 'tablet',
},
value: 'tablet',
isRotated: false
}
},
};