diff --git a/pages/collection-preferences/reorder-content.page.tsx b/pages/collection-preferences/reorder-content.page.tsx index 0a10cb2e9a..d821f78d0c 100644 --- a/pages/collection-preferences/reorder-content.page.tsx +++ b/pages/collection-preferences/reorder-content.page.tsx @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 import React from 'react'; -import CollectionPreferences from '~components/collection-preferences'; +import { Box, CollectionPreferences, SpaceBetween } from '~components'; import { contentDisplayPreferenceI18nStrings } from '../common/i18n-strings'; import ScreenshotArea from '../utils/screenshot-area'; @@ -43,39 +43,126 @@ const longOptionsList = Array(50) .fill(1) .map((item, index) => ({ id: `id_${index}`, label: `Item ${index + 1}` })); +const optionListWithGroups = [ + { + id: 'id', + label: 'Item ID', + alwaysVisible: true, + }, + { id: 'name', label: 'Item name' }, + { + id: 'prices', + label: 'Prices', + options: [ + { + id: 'price-de', + label: 'Price DE', + }, + { + id: 'price-pl', + label: 'Price PL', + }, + { + id: 'price-uk', + label: 'Price UK', + }, + { + id: 'price-fr', + label: 'Price FR', + }, + { + id: 'price-it', + label: 'Price IT', + }, + ], + }, + { + id: 'attributes', + label: 'Attributes', + options: [ + { + id: 'size', + label: 'Size', + }, + { + id: 'weight', + label: 'Weight', + }, + { + id: 'battery', + label: 'Battery', + }, + { + id: 'power', + label: 'Power', + }, + { + id: 'condition', + label: 'Condition', + }, + ], + }, +]; + export default function App() { return ( CollectionPreferences page with content reordering - - + + + + + No groups and no column filter + + + + + + No groups with column filter + + + + + + With groups with column filter + ); } diff --git a/pages/collection-preferences/simple.page.tsx b/pages/collection-preferences/simple.page.tsx index 8a5d4bbd7b..c45693eefd 100644 --- a/pages/collection-preferences/simple.page.tsx +++ b/pages/collection-preferences/simple.page.tsx @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 import * as React from 'react'; +import { Box, SpaceBetween } from '~components'; import CollectionPreferences from '~components/collection-preferences'; import ScreenshotArea from '../utils/screenshot-area'; @@ -20,29 +21,48 @@ export default function CollectionPreferencesPermutations() { <>