-
Notifications
You must be signed in to change notification settings - Fork 0
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 #524 from UKHSA-Internal/feature/CDD-2245-index-page
Feature/CDD-2245: Index page
- Loading branch information
Showing
11 changed files
with
192 additions
and
3 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
66 changes: 66 additions & 0 deletions
66
src/mock-server/handlers/cms/pages/fixtures/page/respiratory-viruses.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,66 @@ | ||
import { PageResponse } from '@/api/requests/cms/getPage' | ||
import { PageType } from '@/api/requests/cms/getPages' | ||
|
||
export const respiratoryVirusesMock: PageResponse<PageType.Composite> = { | ||
id: 80, | ||
meta: { | ||
seo_title: 'Respiratory viruses | UKHSA data dashboard', | ||
search_description: 'Respiratory viruses index page', | ||
type: 'composite.CompositePage', | ||
detail_url: 'http:/api/pages/80/', | ||
html_url: 'http://localhost:3000/respiratory-viruses/', | ||
slug: 'respiratory-viruses', | ||
show_in_menus: false, | ||
first_published_at: '2024-09-29T20:51:56.451450+01:00', | ||
alias_of: null, | ||
parent: { | ||
id: 3, | ||
meta: { type: 'home.UKHSARootPage', detail_url: 'http:/api/pages/3/', html_url: null }, | ||
title: 'UKHSA Dashboard Root', | ||
}, | ||
}, | ||
title: 'Respiratory viruses', | ||
seo_change_frequency: 5, | ||
seo_priority: 0.5, | ||
last_updated_at: '2024-09-29T20:51:56.451450+01:00', | ||
date_posted: '2024-09-29', | ||
body: [ | ||
{ | ||
type: 'internal_page_links', | ||
value: [ | ||
{ | ||
type: 'page_link', | ||
value: { | ||
title: 'COVID-19', | ||
sub_title: 'COVID-19 is a respiratory infection caused by the SARS-CoV-2-virus.', | ||
page: 'http://localhost:3000/topics/covid-19/', | ||
}, | ||
id: 'c36d19c1-3a5e-4fcf-b696-91468c609369', | ||
}, | ||
{ | ||
type: 'page_link', | ||
value: { | ||
title: 'Influenza', | ||
sub_title: 'Influenza (commonly known as flu) is a respiratory infection.', | ||
page: 'http://localhost:3000/topics/influenza/', | ||
}, | ||
id: 'b3375764-0829-494e-9060-a65df5dd53bd', | ||
}, | ||
{ | ||
type: 'page_link', | ||
value: { | ||
title: 'Other respiratory viruses', | ||
sub_title: 'RSV is one of the common viruses that cause coughs and colds in winter.', | ||
page: 'http://localhost:3000/topics/other-respiratory-viruses/', | ||
}, | ||
id: 'd7104a96-3066-4139-80b4-9a4dfb2ed2f9', | ||
}, | ||
], | ||
id: '99c01f1d-0280-4cf4-bd96-39543a6c1ac9', | ||
}, | ||
], | ||
last_published_at: '2024-09-29T20:51:56.451450+01:00', | ||
related_links: [], | ||
related_links_layout: 'Sidebar', | ||
page_description: '', | ||
} |
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
8e79d5c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unit tests coverage