Skip to content

Add component status page #282

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

Merged
merged 9 commits into from
Dec 16, 2021
Merged

Add component status page #282

merged 9 commits into from
Dec 16, 2021

Conversation

colebemis
Copy link
Contributor

@colebemis colebemis commented Dec 15, 2021

Co-authored-by: Charlotte Dann pouretrebelle@github.com

Summary

Implements a cross-implementation component status page at primer.style/status.

👀 Preview: https://primer-style-git-status-page-primer.vercel.app/status

CleanShot 2021-12-15 at 12 18 55@2x

A few implementation details:

Next steps

  • Add a link to primer.style/status in the Primer header. We may need to rethink the information architecture of the links in the header.
  • Add more React statuses by adding componentId frontmatter to all the markdown pages in the Primer React docs
  • (Nice to have) Make table header sticky so column headers stay visible as you scroll down the page Add component status page #282 (comment)

Part of https://github.com/github/primer/issues/114

Co-authored-by: Charlotte Dann <pouretrebelle@github.com>
@vercel
Copy link

vercel bot commented Dec 15, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/primer/primer-style/D2ZtLcDVTGQkKGcA36C6tYbrqRmV
✅ Preview: https://primer-style-git-status-page-primer.vercel.app

@vercel vercel bot temporarily deployed to Preview December 15, 2021 20:04 Inactive
@vercel vercel bot temporarily deployed to Preview December 15, 2021 20:07 Inactive
@vercel vercel bot temporarily deployed to Preview December 15, 2021 20:09 Inactive
@vercel vercel bot temporarily deployed to Preview December 15, 2021 20:13 Inactive
@colebemis colebemis marked this pull request as ready for review December 15, 2021 20:25
Copy link
Member

@yaili yaili left a comment

Choose a reason for hiding this comment

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

👍🏼 Looking great. I noticed the link doesn't take anywhere yet, and just wondering if we can add Figma too, hence the request changes.

<th align="left">Component</th>
{/* TODO: How would we add a Figma column? Where would that data come from ? */}
<th>ViewComponent</th>
<th>React</th>
Copy link
Member

Choose a reason for hiding this comment

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

Could we have Figma too?

Copy link
Contributor

Choose a reason for hiding this comment

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

There's a slot in the component-metadata schema for Figma but it's just the URL and not the status; we could change the schema to add that in there? Or is there a different way that we could magically pull the data for straight from Figma? 🤔

I don't think it should be a blocker for this PR though because when we update/add to the component-metadata package we'll have to bump the version in this repo, and we can make any additional changes then.

Copy link
Member

@yaili yaili Dec 16, 2021

Choose a reason for hiding this comment

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

Adding status to Figma in the schema sounds good to me, but I'd like us to wait a few hours to see what @ashygee suggests. I think it would be great with ship with Figma as we treat is an implementation too and it's useful for our designer audience, if it doesn't involve a lot of work.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Where would be a good place for the Figma status labels to link to?

Copy link
Contributor

Choose a reason for hiding this comment

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

For Figma status I think that would be a little difficult. I have made a consideration for adding the status to a component in the new layout I've started to use in Primer Web but I've been relating it more to the status of the component in code, which is tricky now that we have a divergence of status between PRC and PVC.

Component status label in Figma next to component example

Another thing to note is that we don't have actual status criteria for Figma. I think on this table, instead of a status, it would be better to state, possibly with the use of simple ✅ and ❌ emojis if the component exists in Figma. Maybe in the metadata there could be a key that passes a boolean for inFigma: true/false and then we can link to the page in Figma. I'd love to see more tooling to automate this so there would be less manual work but for now I think just having stock of the inventory would be more valuable in Figma than it's status since, ideally, the Figma component would be the most complete compared to code. (Although this is not the case everywhere, I'm looking at you buttons.)

Copy link
Contributor

@pouretrebelle pouretrebelle left a comment

Choose a reason for hiding this comment

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

Love the design! So slick! I'll ✅ when that broken link is fixed

@vercel vercel bot temporarily deployed to Preview December 16, 2021 18:37 Inactive
@vercel vercel bot temporarily deployed to Preview December 16, 2021 18:38 Inactive
@vercel vercel bot temporarily deployed to Preview December 16, 2021 19:09 Inactive
@colebemis colebemis requested a review from yaili December 16, 2021 19:23
@colebemis
Copy link
Contributor Author

@yaili gave me the 👍 to merge

@colebemis colebemis merged commit e10a604 into main Dec 16, 2021
@colebemis colebemis deleted the status-page branch December 16, 2021 20:07
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.

4 participants