-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support published status for landing pages and preview of draft…
… pages (#1175) * reword banner to line up with status * add support for displaying draft landing to cms users * update types so tests continue to pass * show draft tag on landing page index * hide unpublished pages from non-cms users * support pages published in the future * add long titled sample to storybook * undoes hiding publish date and sets colors for different status tags * sets default tag color to mars in case other statuses are addes later * update tests for showing published tag * hide status tag for landing pages for portal user --------- Co-authored-by: Shauna Keating <shauna@truss.works>
- Loading branch information
Showing
14 changed files
with
320 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,25 @@ | ||
import { DateTime } from 'luxon' | ||
|
||
export const mockLandingPages = [ | ||
{ | ||
pageDescription: 'This is a test landing page', | ||
pageTitle: 'Test Landing Page', | ||
slug: 'test-landing-page', | ||
publishedDate: DateTime.now().toISO()!, | ||
status: 'Published' as 'Draft' | 'Published' | 'Archived', | ||
}, | ||
{ | ||
pageDescription: 'Another landing page', | ||
pageTitle: 'Another Landing Page', | ||
slug: 'another-landing-page', | ||
publishedDate: DateTime.now().toISO()!, | ||
status: 'Published' as 'Draft' | 'Published' | 'Archived', | ||
}, | ||
{ | ||
pageDescription: 'Draft landing page', | ||
pageTitle: 'Another Landing Page', | ||
slug: 'draft-landing-page', | ||
publishedDate: '', | ||
status: 'Draft' as 'Draft' | 'Published' | 'Archived', | ||
}, | ||
] |
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
Oops, something went wrong.