Skip to content

Commit f20d77f

Browse files
committed
refactor(design-system): remove deprecated DsSystemStatus component [AR-53409]
1 parent 349ec56 commit f20d77f

10 files changed

Lines changed: 4 additions & 238 deletions

File tree

packages/design-system/src/components/ds-drawer/ds-drawer.stories.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import DsDrawer from './ds-drawer';
66
import { DsButton } from '../ds-button';
77
import { DsTextInput } from '../ds-text-input';
88
import { DsIcon } from '../ds-icon';
9-
// TODO: Use DsStatusBadge instead.
10-
import { DsSystemStatus } from '../ds-system-status';
9+
import { DsStatusBadge } from '../ds-status-badge';
1110
import styles from './ds-drawer.stories.module.scss';
1211
import { DsTypography } from '../ds-typography';
1312
import type { DsDrawerProps } from './ds-drawer.types';
@@ -82,7 +81,7 @@ export const Default: Story = {
8281
<>
8382
<DsDrawer.Header>
8483
<DsDrawer.Title>
85-
Default Drawer <DsSystemStatus status="healthy" label="Active" />
84+
Default Drawer <DsStatusBadge status="active" label="Active" />
8685
</DsDrawer.Title>
8786
<div className={styles.headerActions}>
8887
<button className={styles.expand} aria-label="Expand">
@@ -179,7 +178,7 @@ export const WithTabs: Story = {
179178
<>
180179
<DsDrawer.Header>
181180
<DsDrawer.Title>
182-
Drawer with Tabs <DsSystemStatus status="healthy" label="Active" />
181+
Drawer with Tabs <DsStatusBadge status="active" label="Active" />
183182
</DsDrawer.Title>
184183
<div className={styles.headerActions}>
185184
<button className={styles.expand} aria-label="Expand">

packages/design-system/src/components/ds-system-status/ds-system-status.module.scss

Lines changed: 0 additions & 87 deletions
This file was deleted.

packages/design-system/src/components/ds-system-status/ds-system-status.stories.ts

Lines changed: 0 additions & 48 deletions
This file was deleted.

packages/design-system/src/components/ds-system-status/ds-system-status.tsx

Lines changed: 0 additions & 33 deletions
This file was deleted.

packages/design-system/src/components/ds-system-status/ds-system-status.types.ts

Lines changed: 0 additions & 37 deletions
This file was deleted.

packages/design-system/src/components/ds-system-status/index.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

packages/design-system/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ export * from './components/ds-smart-tabs';
4343
export * from './components/ds-spinner';
4444
export * from './components/ds-status-badge';
4545
export * from './components/ds-stepper';
46-
export * from './components/ds-system-status';
4746
export * from './components/ds-table';
4847
export * from './components/ds-tabs';
4948
export * from './components/ds-tag';

packages/design-system/vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default defineConfig({
2424
'**/ds-chip/**',
2525
'**/ds-chip-group/**',
2626
'**/ds-confirmation/**',
27-
'**/ds-system-status/**',
27+
'**/ds-date-input/**',
2828
],
2929
thresholds: {
3030
lines: 90,

packages/eslint-plugin/src/__tests__/no-deprecated.test.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,6 @@ ruleTester.run('no-deprecated-ds-confirmation', plugin.rules['no-deprecated-ds-c
5353
],
5454
});
5555

56-
ruleTester.run('no-deprecated-ds-system-status', plugin.rules['no-deprecated-ds-system-status'], {
57-
valid: ['<DsStatusBadge />'],
58-
59-
invalid: [
60-
{
61-
code: '<DsSystemStatus />',
62-
errors: [{ message: `DsSystemStatus is deprecated. Use DsStatusBadge instead.` }],
63-
},
64-
],
65-
});
66-
6756
ruleTester.run(
6857
'no-deprecated-ds-dropdown-menu-legacy',
6958
plugin.rules['no-deprecated-ds-dropdown-menu-legacy'],

packages/eslint-plugin/src/index.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ const eslintPlugin = createPlugin(
2424
message: `DsConfirmation is deprecated. Use DsModal instead.`,
2525
},
2626

27-
{
28-
name: 'no-deprecated-ds-system-status',
29-
selector: JSXElement('DsSystemStatus'),
30-
message: `DsSystemStatus is deprecated. Use DsStatusBadge instead.`,
31-
},
32-
3327
{
3428
name: 'no-deprecated-ds-dropdown-menu-legacy',
3529
selector: JSXElement('DsDropdownMenuLegacy'),

0 commit comments

Comments
 (0)