Add photo settings menu item and page
This commit is contained in:
2 files changed
+13
-16
No files matched your search
+12
-15
@@ -4,27 +4,24 @@
|
||||
// `icon` is an array of SVG path `d` strings (24x24 viewBox, stroke based) so
|
||||
// the nav can stay data driven without a separate icon component. Icons come
|
||||
// from Feather (https://feathericons.com) where an equivalent exists; the
|
||||
// paint brush and globe are Heroicons and the chart icon is Lucide, because
|
||||
// globe is Heroicons and the chart and image icons are Lucide, because
|
||||
// Feather has no match.
|
||||
|
||||
export const SETTINGS_GROUPS = [
|
||||
{
|
||||
items: [
|
||||
{
|
||||
id: 'appearance',
|
||||
label: 'Appearance',
|
||||
description:
|
||||
'Choose your wallpaper, theme, and how the dashboard looks.',
|
||||
// Heroicons paint brush (no Feather equivalent).
|
||||
icon: [
|
||||
'M9.53 16.122a3 3 0 0 0-5.78 1.128 2.25 2.25 0 0 1-2.4 2.245 4.5 4.5 0 0 0 8.4-2.245c0-.399-.078-.78-.22-1.128Zm0 0a15.998 15.998 0 0 0 3.388-1.62m-5.043-.025a15.994 15.994 0 0 1 1.622-3.395m3.42 3.42a15.995 15.995 0 0 0 4.764-4.648l3.876-5.814a1.151 1.151 0 0 0-1.597-1.597L14.146 6.32a15.996 15.996 0 0 0-4.649 4.763m3.42 3.42a6.776 6.776 0 0 0-3.42-3.42',
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: 'Integrations',
|
||||
items: [
|
||||
{
|
||||
id: 'photos',
|
||||
label: 'Photos',
|
||||
description: 'Choose the photos shown behind your dashboard.',
|
||||
// Lucide image.
|
||||
icon: [
|
||||
'M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z',
|
||||
'M11 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0z',
|
||||
'm21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21',
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'site-links',
|
||||
label: 'Site Links',
|
||||
|
||||
@@ -23,6 +23,6 @@ module('Integration | Component | settings-button', function (hooks) {
|
||||
await click('[aria-label="Open settings"]');
|
||||
|
||||
assert.dom('el-dialog-panel').hasClass('sm:max-w-4xl');
|
||||
assert.dom('el-dialog-panel h3').hasText('Appearance');
|
||||
assert.dom('el-dialog-panel h3').hasText('Photos');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user