-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: rewrite component status page [SRED-404] #497
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -201,7 +201,7 @@ export default function Sidebar({ navigation, setMobileMenu }) { | |||
<div>{item.frontMatter.data.title}</div> | |||
<Change type="ComingSoon">Coming soon</Change> | |||
</CustomLink> | |||
) : item.frontMatter.data.status == "Draft" ? ( | |||
) : item.frontMatter.data.status == "Alpha" ? ( |
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.
⛏️ Can we abstract this look up?
) : item.frontMatter.data.status == "Alpha" ? ( | |
) : StatusHelpers.isAlpha(item.frontMatter.data.status) ? ( |
@@ -212,7 +212,7 @@ export default function Sidebar({ navigation, setMobileMenu }) { | |||
}} | |||
> | |||
<div>{item.frontMatter.data.title}</div> | |||
<Change type="Draft">Draft</Change> | |||
<Change type="Alpha">Alpha</Change> |
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.
<Change type="Alpha">Alpha</Change> | |
<Change type="Alpha" /> |
Maybe we could abstract away the children.
@@ -58,7 +58,7 @@ export default function Page({ | |||
{source.scope.title} | |||
</Header> | |||
|
|||
{(source.scope.status == "Draft" || source.scope.status == "Beta") && ( | |||
{(source.scope.status == "Alpha" || source.scope.status == "Beta") && ( |
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.
{(source.scope.status == "Alpha" || source.scope.status == "Beta") && ( | |
{(isAlpha(source.scope.status) || isBeta(source.scope.status) && ( |
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.
I left nits and a note in slack.
Rewrite draft status to be alpha status
Link for sidebar example:
https://wpds-ui-kit-git-feat-update-draft-docs.preview.now.washingtonpost.com/
Alpha component example:
https://wpds-ui-kit-git-feat-update-draft-docs.preview.now.washingtonpost.com/components/action-menu
Component status doc:
https://wpds-ui-kit-git-feat-update-draft-docs.preview.now.washingtonpost.com/support/component-status