Skip to content
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

Merged
merged 6 commits into from
Sep 18, 2023

Conversation

ebgranger
Copy link
Contributor

@ebgranger ebgranger commented Sep 8, 2023

@ebgranger ebgranger requested a review from a team as a code owner September 8, 2023 19:33
@vercel
Copy link

vercel bot commented Sep 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
wpds-ui-kit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 18, 2023 4:40pm
wpds-ui-kit-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 18, 2023 4:40pm
wpds-ui-kit-vitejs-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 18, 2023 4:40pm
wpds-ui-kit-vitejs-v2-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 18, 2023 4:40pm

@@ -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" ? (
Copy link
Contributor

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?

Suggested change
) : 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>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<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") && (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{(source.scope.status == "Alpha" || source.scope.status == "Beta") && (
{(isAlpha(source.scope.status) || isBeta(source.scope.status) && (

Copy link
Contributor

@artmsilva artmsilva left a 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.

@ebgranger ebgranger deleted the feat/update-draft-docs branch September 18, 2023 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants