Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
52bf103
Valibot v1.1.0
JamieB-gu Oct 10, 2025
9637cc1
`AppsNav` type and schema
JamieB-gu Oct 10, 2025
c1d477a
`AppsNavTool` component
JamieB-gu Oct 10, 2025
bdb8209
Allow inserting or deleting sections
JamieB-gu Oct 24, 2025
2faa70e
Add UI for inserting and deleting sections
JamieB-gu Oct 24, 2025
84d0be2
Add icons to buttons
JamieB-gu Oct 24, 2025
7d36dcc
Add move buttons
JamieB-gu Oct 24, 2025
1ce454a
Added undo for move
JamieB-gu Oct 24, 2025
f521660
Prevent duplicate sections
JamieB-gu Oct 24, 2025
48d6171
Refactored the buttons
JamieB-gu Oct 24, 2025
412f4f6
Make subsections collapsible
JamieB-gu Nov 4, 2025
7feb7df
Prevent moving sections out of range
JamieB-gu Nov 4, 2025
519e7e7
Clear errors
JamieB-gu Nov 4, 2025
f262f43
Take a full URL as input and extract the path
JamieB-gu Nov 4, 2025
87bca98
Merge branch 'main' into apps-nav-tool
JamieB-gu Nov 4, 2025
fa33ca2
Fix optional chaining syntax
JamieB-gu Nov 4, 2025
47b9192
Fix storybook 9 import
JamieB-gu Nov 4, 2025
02d7924
Make details/summary clear
JamieB-gu Nov 4, 2025
2c45e71
Style error messages
JamieB-gu Nov 4, 2025
7027d5e
Add a publish button
JamieB-gu Nov 4, 2025
66fc315
Surface publication successes and errors
JamieB-gu Nov 4, 2025
2bd2d67
Fix tests
JamieB-gu Nov 4, 2025
a6c431a
Add ability to update sections
JamieB-gu Nov 4, 2025
08272c1
Improved the forms
JamieB-gu Nov 4, 2025
eedadd3
Moved and changed priority of buttons
JamieB-gu Nov 4, 2025
949094f
Moved into `appsNav` directory
JamieB-gu Nov 4, 2025
c88e0b9
Moved `SectionForm` into own file
JamieB-gu Nov 4, 2025
6624a28
Moved `MenuActions` into own file
JamieB-gu Nov 4, 2025
92d8192
Move heading
JamieB-gu Nov 4, 2025
384f109
Add `mobileOverride` to form
JamieB-gu Nov 5, 2025
e5f98d3
Move `SectionActions` into own file
JamieB-gu Nov 5, 2025
dfc8dce
Move `Sections` into own file
JamieB-gu Nov 5, 2025
c6da38a
Only use `details` if there are subsections
JamieB-gu Nov 5, 2025
673edd0
Add editions
JamieB-gu Nov 5, 2025
c947294
Use `space`
JamieB-gu Nov 5, 2025
55a360c
Move `EditDialog` to own file
JamieB-gu Nov 5, 2025
6976682
Move `InsertDialog` to own file
JamieB-gu Nov 5, 2025
e770260
Remove `useCallback`s
JamieB-gu Nov 5, 2025
46ba889
Rename `appsNavContext` module to `state`
JamieB-gu Nov 5, 2025
32685e3
Move `Message` to own file
JamieB-gu Nov 5, 2025
a79edbe
Move dialogs down
JamieB-gu Nov 5, 2025
97ab7f2
Rename directory to `appsNavTool`
JamieB-gu Nov 5, 2025
c9eb9fd
Rename "actions" to "buttons"
JamieB-gu Nov 5, 2025
edebda3
Prevent moving sections beyond end of list
JamieB-gu Nov 5, 2025
97b63e3
`errorState` function
JamieB-gu Nov 5, 2025
b11f74d
Made errors structured
JamieB-gu Nov 7, 2025
663c178
Exclude status message stories from Chromatic
JamieB-gu Nov 7, 2025
490701a
Add summary of changes before publish
JamieB-gu Nov 10, 2025
f091413
Fix errors caused by valibot upgrade
JamieB-gu Nov 10, 2025
da5d11f
Fix most lint errors
JamieB-gu Nov 10, 2025
53f90f6
Add story for `EditDialog`
JamieB-gu Nov 13, 2025
22510f3
Don't render `EditDialog` when not editing
JamieB-gu Nov 13, 2025
d12ce89
Don't render `InsertDialog` when not editing
JamieB-gu Nov 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
371 changes: 371 additions & 0 deletions dotcom-rendering/fixtures/manual/appsNav/au.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,371 @@
export const auNav = {
pillars: [
{
title: 'Australia',
path: 'australia-news',
sections: [],
},
{
title: 'World',
path: 'world',
sections: [
{
title: 'UK',
path: 'uk-news',
},
{
title: 'US',
path: 'us-news',
},
{
title: 'Asia',
path: 'world/asia',
},
{
title: 'Europe',
path: 'world/europe-news',
},
{
title: 'Americas',
path: 'world/americas',
},
{
title: 'Africa',
path: 'world/africa',
},
{
title: 'Middle East',
path: 'world/middleeast',
},
{
title: 'Ukraine',
path: 'world/ukraine',
},
],
},
{
title: 'Opinion',
path: 'au/commentisfree',
sections: [],
},
{
title: 'Politics',
path: 'australia-news/australian-politics',
sections: [],
},
{
title: 'Sport',
path: 'au/sport',
sections: [
{
title: 'Australia sport',
path: 'sport/australia-sport',
},
{
title: 'AFL',
path: 'sport/afl',
},
{
title: 'NRL',
path: 'sport/nrl',
},
{
title: 'A-League',
path: 'football/a-league',
},
{
title: 'Football',
path: 'football',
mobileOverride: 'section-list',
},
{
title: 'Cricket',
path: 'sport/cricket',
},
{
title: 'Rugby union',
path: 'sport/rugby-union',
},
{
title: 'Tennis',
path: 'sport/tennis',
},
{
title: 'Cycling',
path: 'sport/cycling',
},
{
title: 'Boxing',
path: 'sport/boxing',
},
],
},
{
title: 'Football',
path: 'football',
sections: [],
},
{
title: 'Tech',
path: 'au/technology',
sections: [],
},
{
title: 'Culture',
path: 'au/culture',
sections: [
{
title: 'Film',
path: 'au/film',
},
{
title: 'Music',
path: 'music',
},
{
title: 'Games',
path: 'games',
},
{
title: 'Books',
path: 'books',
},
{
title: 'TV & radio',
path: 'tv-and-radio',
},
{
title: 'Art & design',
path: 'artanddesign',
},
{
title: 'Stage',
path: 'stage',
},
{
title: 'Classical',
path: 'music/classical-music-and-opera',
},
],
},
{
title: 'Lifestyle',
path: 'au/lifeandstyle',
sections: [
{
title: 'Food',
path: 'au/food',
},
{
title: 'Relationships',
path: 'lifeandstyle/relationships',
},
{
title: 'Fashion',
path: 'lifeandstyle/fashion',
},
{
title: 'Beauty',
path: 'fashion/beauty',
},
{
title: 'Cars',
path: 'technology/motoring',
},
{
title: 'Health & fitness',
path: 'lifeandstyle/health-and-wellbeing',
},
{
title: 'Women',
path: 'lifeandstyle/women',
},
],
},
{
title: 'Fashion',
path: 'fashion',
sections: [],
},
{
title: 'Economy',
path: 'au/business',
sections: [
{
title: 'Markets',
path: 'business/stock-markets',
},
{
title: 'Money',
path: 'money/money',
},
],
},
{
title: 'Travel',
path: 'travel',
sections: [
{
title: 'Australasia',
path: 'travel/australasia',
},
{
title: 'Asia',
path: 'travel/asia',
mobileOverride: 'tag-list',
},
{
title: 'UK',
path: 'travel/uk',
},
{
title: 'Europe',
path: 'travel/europe',
},
{
title: 'US',
path: 'travel/usa',
},
{
title: 'Skiing',
path: 'travel/skiing',
},
],
},
{
title: 'Media',
path: 'au/media',
sections: [],
},
{
title: 'Environment',
path: 'au/environment',
sections: [
{
title: 'Climate crisis',
path: 'environment/climate-crisis',
},
{
title: 'Energy',
path: 'environment/energy',
},
{
title: 'Wildlife',
path: 'environment/wildlife',
},
{
title: 'Biodiversity',
path: 'environment/biodiversity',
},
{
title: 'Oceans',
path: 'environment/oceans',
},
{
title: 'Pollution',
path: 'environment/pollution',
},
{
title: 'Great Barrier Reef',
path: 'environment/great-barrier-reef',
},
],
},
{
title: 'Health',
path: 'australia-news/health',
sections: [],
},
{
title: 'Science',
path: 'science',
sections: [],
},
{
title: 'Video',
path: 'video',
sections: [],
},
{
title: 'Podcasts',
path: 'podcasts',
sections: [
{
title: 'Full Story',
path: 'australia-news/series/full-story',
sections: [],
},
{
title: 'Politics',
path: 'australia-news/series/australian-politics-live',
sections: [],
},
{
title: 'Politics Weekly UK',
path: 'politics/series/politicsweekly',
sections: [],
},
{
title: 'Politics Weekly America',
path: 'politics/series/politics-weekly-america',
sections: [],
},
{
title: 'Today in Focus',
path: 'news/series/todayinfocus',
sections: [],
},
{
title: 'Weekend',
path: 'lifeandstyle/series/weekend',
sections: [],
},
{
title: 'Football',
path: 'football/series/footballweekly',
sections: [],
},
{
title: 'Audio Long Reads',
path: 'news/series/the-audio-long-read',
sections: [],
},
{
title: 'Science',
path: 'science/series/science',
sections: [],
},
{
title: 'Books',
path: 'books/series/books',
sections: [],
},
{
title: 'Tech',
path: 'technology/series/chips-with-everything',
sections: [],
},
{
title: 'The Story',
path: 'news/series/the-story',
sections: [],
},
],
},
{
title: 'Obituaries',
path: 'tone/obituaries',
sections: [],
},
{
title: 'Support us',
path: 'insidetheguardian',
sections: [],
},
{
title: 'Corrections',
path: 'theguardian/series/corrections-and-clarifications',
sections: [],
},
],
};
Loading
Loading