Skip to content

Commit 8fa12ea

Browse files
authored
SelectPanelV2: Add Deprecated status to SelectPanelV2 docs, stories (#5906)
1 parent 682814c commit 8fa12ea

File tree

7 files changed

+31
-26
lines changed

7 files changed

+31
-26
lines changed

.changeset/ten-eggs-arrive.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react': patch
3+
---
4+
5+
SelectPanelV2: Add `deprecated` status to SelectPanelV2 docs and stories

e2e/components/drafts/SelectPanel.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,28 @@ const stories: Array<{
1010
}> = [
1111
{
1212
title: 'Default',
13-
id: 'experimental-components-selectpanel--default',
13+
id: 'deprecated-components-selectpanel--default',
1414
},
1515
{
16-
id: 'experimental-components-selectpanel-features--as-modal',
16+
id: 'deprecated-components-selectpanel-features--as-modal',
1717
title: 'As Modal',
1818
},
1919
{
20-
id: 'experimental-components-selectpanel-features--external-anchor',
20+
id: 'deprecated-components-selectpanel-features--external-anchor',
2121
title: 'External Anchor',
2222
},
2323
{
24-
id: 'experimental-components-selectpanel-features--instant-selection-variant',
24+
id: 'deprecated-components-selectpanel-features--instant-selection-variant',
2525
title: 'Instant Selection Variant',
2626
buttonText: 'Choose a tag',
2727
},
2828
{
29-
id: 'experimental-components-selectpanel-features--with-warning',
29+
id: 'deprecated-components-selectpanel-features--with-warning',
3030
title: 'With Warning',
3131
buttonText: 'Assignees',
3232
},
3333
{
34-
id: 'experimental-components-selectpanel-features--with-errors',
34+
id: 'deprecated-components-selectpanel-features--with-errors',
3535
title: 'With Errors',
3636
buttonText: 'Assignees',
3737
},

packages/react/src/experimental/SelectPanel2/SelectPanel.docs.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
"id": "select_panel_v2",
33
"docsId": "select_panel",
44
"name": "SelectPanel",
5-
"status": "draft",
5+
"status": "deprecated",
66
"a11yReviewed": false,
77
"stories": [
8-
{"id": "experimental-components-selectpanel-examples--minimal"},
9-
{"id": "experimental-components-selectpanel-examples--short-select-panel"},
10-
{"id": "experimental-components-selectpanel-features--instant-selection-variant"},
11-
{"id": "experimental-components-selectpanel-features--with-warning"},
12-
{"id": "experimental-components-selectpanel-examples--open-from-menu"},
13-
{"id": "experimental-components-selectpanel-examples--with-groups"},
14-
{"id": "experimental-components-selectpanel-examples--async-search-with-use-transition"},
15-
{"id": "experimental-components-selectpanel-examples--async-with-suspended-list"},
16-
{"id": "experimental-components-selectpanel-examples--with-filter-buttons"}
8+
{"id": "deprecated-components-selectpanel-examples--minimal"},
9+
{"id": "deprecated-components-selectpanel-examples--short-select-panel"},
10+
{"id": "deprecated-components-selectpanel-features--instant-selection-variant"},
11+
{"id": "deprecated-components-selectpanel-features--with-warning"},
12+
{"id": "deprecated-components-selectpanel-examples--open-from-menu"},
13+
{"id": "deprecated-components-selectpanel-examples--with-groups"},
14+
{"id": "deprecated-components-selectpanel-examples--async-search-with-use-transition"},
15+
{"id": "deprecated-components-selectpanel-examples--async-with-suspended-list"},
16+
{"id": "deprecated-components-selectpanel-examples--with-filter-buttons"}
1717
],
1818
"importPath": "@primer/react/experimental",
1919
"props": [

packages/react/src/experimental/SelectPanel2/SelectPanel.examples.stories.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
import data from './mock-story-data'
1919

2020
export default {
21-
title: 'Experimental/Components/SelectPanel/Examples',
21+
title: 'Deprecated/Components/SelectPanel/Examples',
2222
component: SelectPanel,
2323
}
2424

@@ -298,8 +298,8 @@ const SuspendedActionList: React.FC<{query: string}> = ({query}) => {
298298
)
299299
}
300300

301-
/*
302-
`data` is already pre-fetched with the issue
301+
/*
302+
`data` is already pre-fetched with the issue
303303
`users` are fetched async on search
304304
*/
305305
const SearchableUserList: React.FC<{
@@ -347,8 +347,8 @@ const SearchableUserList: React.FC<{
347347
)
348348
}
349349

350-
/*
351-
`data` is already pre-fetched with the issue
350+
/*
351+
`data` is already pre-fetched with the issue
352352
`users` are fetched async on search
353353
*/
354354
export const AsyncSearchWithUseTransition = () => {
@@ -931,8 +931,8 @@ export const CreateNewRow = () => {
931931

932932
const itemsToShow = query ? filteredLabels : data.labels.sort(sortingFn)
933933

934-
/*
935-
Controlled state + Create new label Dialog
934+
/*
935+
Controlled state + Create new label Dialog
936936
We only have to do this until https://github.com/primer/react/pull/3840 is merged
937937
*/
938938
const [panelOpen, setPanelOpen] = React.useState(false)

packages/react/src/experimental/SelectPanel2/SelectPanel.features.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {TagIcon, GearIcon, ArrowBothIcon} from '@primer/octicons-react'
1515
import data from './mock-story-data'
1616

1717
export default {
18-
title: 'Experimental/Components/SelectPanel/Features',
18+
title: 'Deprecated/Components/SelectPanel/Features',
1919
component: SelectPanel,
2020
}
2121

packages/react/src/experimental/SelectPanel2/SelectPanel.playground.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {ActionList, Box} from '../../index'
66
import data from './mock-story-data'
77

88
export default {
9-
title: 'Experimental/Components/SelectPanel/Playground',
9+
title: 'Deprecated/Components/SelectPanel/Playground',
1010
component: SelectPanel,
1111

1212
args: {

packages/react/src/experimental/SelectPanel2/SelectPanel.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {ActionList, Box} from '../../index'
44
import data from './mock-story-data'
55

66
export default {
7-
title: 'Experimental/Components/SelectPanel',
7+
title: 'Deprecated/Components/SelectPanel',
88
component: SelectPanel,
99
}
1010

0 commit comments

Comments
 (0)