-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1390 from dpc-sdp/feat/linkset-menu
[SD-463] Add linkset processor for site menus
- Loading branch information
Showing
12 changed files
with
2,225 additions
and
1,579 deletions.
There are no files selected for viewing
532 changes: 0 additions & 532 deletions
532
packages/ripple-tide-api/src/services/lib/__test__/fixtures/large-menu.ts
This file was deleted.
Oops, something went wrong.
152 changes: 152 additions & 0 deletions
152
packages/ripple-tide-api/src/services/lib/__test__/fixtures/linkset-processed.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
export default [ | ||
{ | ||
text: 'Learning and support', | ||
url: '/learning-and-support', | ||
id: '0', | ||
parent: null, | ||
items: [ | ||
{ | ||
text: 'System logins for school staff', | ||
url: '/system-logins-school-staff', | ||
id: '0-0', | ||
parent: '0', | ||
items: [ | ||
{ | ||
text: 'Edumail', | ||
url: 'https://www2.education.vic.gov.au/pal/edumail/advice', | ||
id: '0-0-0', | ||
parent: '0-0' | ||
}, | ||
{ | ||
text: 'Edupay', | ||
url: 'https://www2.education.vic.gov.au/pal/edupay-and-edupay-help/overview', | ||
id: '0-0-1', | ||
parent: '0-0' | ||
} | ||
] | ||
}, | ||
{ | ||
text: 'School term dates and holidays', | ||
url: '/school-term-dates-and-holidays-victoria', | ||
id: '0-1', | ||
parent: '0' | ||
}, | ||
{ | ||
text: 'Closures and emergencies', | ||
url: '/closures-security-and-emergency-management', | ||
id: '0-2', | ||
parent: '0' | ||
}, | ||
{ | ||
text: 'School programs and initiatives', | ||
url: '/school-programs-and-initiatives', | ||
id: '0-3', | ||
parent: '0' | ||
}, | ||
{ | ||
text: 'Child Protection and Child Safe Standards (PROTECT)', | ||
url: '/child-protection-and-child-safe-standards-protect', | ||
id: '0-4', | ||
parent: '0' | ||
}, | ||
{ | ||
text: 'Teaching materials and methods', | ||
url: '/teaching-materials-and-methods', | ||
id: '0-5', | ||
parent: '0', | ||
items: [ | ||
{ | ||
text: 'Arc', | ||
url: 'https://arc.educationapps.vic.gov.au/', | ||
id: '0-5-0', | ||
parent: '0-5' | ||
} | ||
] | ||
}, | ||
{ | ||
text: 'In Our Classrooms', | ||
url: 'https://www.schools.vic.gov.au/in-our-classrooms', | ||
id: '0-6', | ||
parent: '0' | ||
}, | ||
{ | ||
text: 'Information for early childhood professionals', | ||
url: 'https://www.vic.gov.au/early-childhood-education-information-professionals', | ||
id: '0-7', | ||
parent: '0' | ||
}, | ||
{ | ||
text: 'School Update', | ||
url: 'https://eduvic.sharepoint.com/sites/SchoolUpdate', | ||
id: '0-8', | ||
parent: '0' | ||
} | ||
] | ||
}, | ||
{ | ||
text: 'Working with us', | ||
url: '/working-us', | ||
active: true, | ||
id: '1', | ||
parent: null, | ||
items: [ | ||
{ | ||
text: 'HRWeb for schools', | ||
url: '/HRWeb-for-schools', | ||
id: '1-0', | ||
parent: '1' | ||
}, | ||
{ | ||
text: 'Professional learning and development', | ||
url: '/starting-school-training-and-professional-development', | ||
id: '1-1', | ||
parent: '1', | ||
items: [ | ||
{ | ||
text: 'Professional development for teachers', | ||
url: 'https://www2.education.vic.gov.au/pal/performance-and-development-teacher-class-employees/overview', | ||
id: '1-1-0', | ||
parent: '1-1' | ||
}, | ||
{ | ||
text: 'Professional development for principals and administrators', | ||
url: '/professional-development-principals-and-administrators', | ||
id: '1-1-1', | ||
parent: '1-1' | ||
}, | ||
{ | ||
text: 'Professional development for casual relief teachers', | ||
url: '/professional-development-casual-relief-teachers', | ||
id: '1-1-2', | ||
parent: '1-1' | ||
}, | ||
{ | ||
text: 'Victorian Academy of Teaching and Leadership', | ||
url: 'https://www.academy.vic.gov.au/', | ||
id: '1-1-3', | ||
parent: '1-1' | ||
} | ||
] | ||
}, | ||
{ | ||
text: 'Careers and recruitment', | ||
url: '/careers-and-recruitment-hr', | ||
id: '1-2', | ||
parent: '1' | ||
}, | ||
{ | ||
text: 'Starting a job in a government school (induction)', | ||
url: '/starting-job-government-school-induction', | ||
id: '1-3', | ||
parent: '1' | ||
}, | ||
{ | ||
active: true, | ||
text: 'Recruitment Online', | ||
url: '/recruitment-online', | ||
id: '1-5', | ||
parent: '1' | ||
} | ||
] | ||
} | ||
] |
140 changes: 140 additions & 0 deletions
140
packages/ripple-tide-api/src/services/lib/__test__/fixtures/linkset.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
export default [ | ||
{ | ||
href: '/site-1285/learning-and-support', | ||
title: 'Learning and support', | ||
hierarchy: ['0'], | ||
'machine-name': ['site-main-menu-schoolsvicgovau'] | ||
}, | ||
{ | ||
href: '/site-1285/system-logins-school-staff', | ||
title: 'System logins for school staff', | ||
hierarchy: ['0', '0'], | ||
'machine-name': ['site-main-menu-schoolsvicgovau'] | ||
}, | ||
{ | ||
href: 'https://www2.education.vic.gov.au/pal/edumail/advice', | ||
title: 'Edumail', | ||
hierarchy: ['0', '0', '0'], | ||
'machine-name': ['site-main-menu-schoolsvicgovau'] | ||
}, | ||
{ | ||
href: 'https://www2.education.vic.gov.au/pal/edupay-and-edupay-help/overview', | ||
title: 'Edupay', | ||
hierarchy: ['0', '0', '1'], | ||
'machine-name': ['site-main-menu-schoolsvicgovau'] | ||
}, | ||
{ | ||
href: '/site-1285/school-term-dates-and-holidays-victoria', | ||
title: 'School term dates and holidays', | ||
hierarchy: ['0', '1'], | ||
'machine-name': ['site-main-menu-schoolsvicgovau'] | ||
}, | ||
{ | ||
href: '/site-1285/closures-security-and-emergency-management', | ||
title: 'Closures and emergencies', | ||
hierarchy: ['0', '2'], | ||
'machine-name': ['site-main-menu-schoolsvicgovau'] | ||
}, | ||
{ | ||
href: '/site-1285/school-programs-and-initiatives', | ||
title: 'School programs and initiatives', | ||
hierarchy: ['0', '3'], | ||
'machine-name': ['site-main-menu-schoolsvicgovau'] | ||
}, | ||
{ | ||
href: '/site-1285/child-protection-and-child-safe-standards-protect', | ||
title: 'Child Protection and Child Safe Standards (PROTECT)', | ||
hierarchy: ['0', '4'], | ||
'machine-name': ['site-main-menu-schoolsvicgovau'] | ||
}, | ||
{ | ||
href: '/site-1285/teaching-materials-and-methods', | ||
title: 'Teaching materials and methods', | ||
hierarchy: ['0', '5'], | ||
'machine-name': ['site-main-menu-schoolsvicgovau'] | ||
}, | ||
{ | ||
href: 'https://arc.educationapps.vic.gov.au/', | ||
title: 'Arc', | ||
hierarchy: ['0', '5', '0'], | ||
'machine-name': ['site-main-menu-schoolsvicgovau'] | ||
}, | ||
{ | ||
href: 'https://www.schools.vic.gov.au/in-our-classrooms', | ||
title: 'In Our Classrooms', | ||
hierarchy: ['0', '6'], | ||
'machine-name': ['site-main-menu-schoolsvicgovau'] | ||
}, | ||
{ | ||
href: 'https://www.vic.gov.au/early-childhood-education-information-professionals', | ||
title: 'Information for early childhood professionals', | ||
hierarchy: ['0', '7'], | ||
'machine-name': ['site-main-menu-schoolsvicgovau'] | ||
}, | ||
{ | ||
href: 'https://eduvic.sharepoint.com/sites/SchoolUpdate', | ||
title: 'School Update', | ||
hierarchy: ['0', '8'], | ||
'machine-name': ['site-main-menu-schoolsvicgovau'] | ||
}, | ||
{ | ||
href: '/site-1285/working-us', | ||
title: 'Working with us', | ||
hierarchy: ['1'], | ||
'machine-name': ['site-main-menu-schoolsvicgovau'] | ||
}, | ||
{ | ||
href: '/site-1285/HRWeb-for-schools', | ||
title: 'HRWeb for schools', | ||
hierarchy: ['1', '0'], | ||
'machine-name': ['site-main-menu-schoolsvicgovau'] | ||
}, | ||
{ | ||
href: '/site-1285/starting-school-training-and-professional-development', | ||
title: 'Professional learning and development', | ||
hierarchy: ['1', '1'], | ||
'machine-name': ['site-main-menu-schoolsvicgovau'] | ||
}, | ||
{ | ||
href: 'https://www2.education.vic.gov.au/pal/performance-and-development-teacher-class-employees/overview', | ||
title: 'Professional development for teachers', | ||
hierarchy: ['1', '1', '0'], | ||
'machine-name': ['site-main-menu-schoolsvicgovau'] | ||
}, | ||
{ | ||
href: '/site-1285/professional-development-principals-and-administrators', | ||
title: 'Professional development for principals and administrators', | ||
hierarchy: ['1', '1', '1'], | ||
'machine-name': ['site-main-menu-schoolsvicgovau'] | ||
}, | ||
{ | ||
href: '/site-1285/professional-development-casual-relief-teachers', | ||
title: 'Professional development for casual relief teachers', | ||
hierarchy: ['1', '1', '2'], | ||
'machine-name': ['site-main-menu-schoolsvicgovau'] | ||
}, | ||
{ | ||
href: 'https://www.academy.vic.gov.au/', | ||
title: 'Victorian Academy of Teaching and Leadership', | ||
hierarchy: ['1', '1', '3'], | ||
'machine-name': ['site-main-menu-schoolsvicgovau'] | ||
}, | ||
{ | ||
href: '/site-1285/careers-and-recruitment-hr', | ||
title: 'Careers and recruitment', | ||
hierarchy: ['1', '2'], | ||
'machine-name': ['site-main-menu-schoolsvicgovau'] | ||
}, | ||
{ | ||
href: '/site-1285/starting-job-government-school-induction', | ||
title: 'Starting a job in a government school (induction)', | ||
hierarchy: ['1', '3'], | ||
'machine-name': ['site-main-menu-schoolsvicgovau'] | ||
}, | ||
{ | ||
href: '/site-1285/recruitment-online', | ||
title: 'Recruitment Online', | ||
hierarchy: ['1', '5'], | ||
'machine-name': ['site-main-menu-schoolsvicgovau'] | ||
} | ||
] |
Oops, something went wrong.