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

Reshaping Contributing docs #67785

Open
wants to merge 14 commits into
base: trunk
Choose a base branch
from
Open

Reshaping Contributing docs #67785

wants to merge 14 commits into from

Conversation

juanbuis
Copy link

@juanbuis juanbuis commented Dec 10, 2024

Adding new docs on how to contribute to WPDS, including an overview, how to get started with contributing, and specific guidance for documentation and components.

Related issue: #66016

What?

  • New section: Contributing
  • New page: Contributing/Overview
  • New page: Contributing/Get Ready to Contribute
  • New page: Contributing/Documentation
  • New page: Contributing/Components

Why?

Make it easier for anyone to get started contributing to the design system.

How?

Rewritten pages with clearer structure, an overview page, a new page that explains contributing to documentation, various step-by-step guides, a "how to get started" guide, plus a new "Contributing" section that holds it all.

Testing Instructions

Please check for inaccuracies, missing content, language.
Also I'd love for someone to check if i edited storybook/preview.js correctly

Adding new docs on how to contribute to WPDS, including specific guidance for documentation and components
Copy link

github-actions bot commented Dec 10, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: juanbuis <juanbuis@git.wordpress.org>
Co-authored-by: auareyou <auareyou@git.wordpress.org>
Co-authored-by: mirka <0mirka00@git.wordpress.org>
Co-authored-by: kristastevens <kristastevens@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@juanbuis juanbuis added the Design System Issues related to the system of combining components according to best practices. label Dec 10, 2024
Copy link

github-actions bot commented Dec 10, 2024

Warning: Type of PR label mismatch

To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.

  • Type-related labels to choose from: [Type] Automated Testing, [Type] Breaking Change, [Type] Bug, [Type] Build Tooling, [Type] Code Quality, [Type] Copy, [Type] Developer Documentation, [Type] Enhancement, [Type] Experimental, [Type] Feature, [Type] New API, [Type] Task, [Type] Technical Prototype, [Type] Performance, [Type] Project Management, [Type] Regression, [Type] Security, [Type] WP Core Ticket, Backport from WordPress Core, Gutenberg Plugin.
  • Labels found: Needs Testing, Needs Copy Review, Design System.

Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task.

Copy link

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @juanbuis! In case you missed it, we'd love to have you join us in our Slack community.

If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information.

@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Dec 10, 2024
@juanbuis juanbuis added Needs Testing Needs further testing to be confirmed. Needs Copy Review Needs review of user-facing copy (language, phrasing) and removed First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository labels Dec 10, 2024
@juanbuis
Copy link
Author

juanbuis commented Dec 10, 2024

This is my first PR at WordPress, so apologies if I'm doing anything wrong — I'm open to any feedback! :)

@juanbuis juanbuis self-assigned this Dec 10, 2024
@juanbuis juanbuis requested a review from auareyou December 10, 2024 14:02
@kristastevens
Copy link

Hi @juanbuis 👋 I'm answering the "Needs Copy Review" ping. Can you point me to the copy you'd like reviewed?

@juanbuis
Copy link
Author

juanbuis commented Dec 10, 2024

Hi @juanbuis 👋 I'm answering the "Needs Copy Review" ping. Can you point me to the copy you'd like reviewed?

Thank you! Would love a read-through of all new pages that have been added with this PR:

storybook/stories/contributing/contributing-components.txt
storybook/stories/contributing/contributing-documentation.txt
storybook/stories/contributing/contributing-get-ready.txt
storybook/stories/contributing/contributing-overview.txt

Copy link
Contributor

@auareyou auareyou left a comment

Choose a reason for hiding this comment

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

Hey @juanbuis, this is looking great—I added what looks like a lot of comments but they're basically the same 2 to 3 concerns repeated across instances to make sure we address it all.

Thank you for your work! 🙏

storybook/stories/contributing/contributing-components.txt Outdated Show resolved Hide resolved
storybook/stories/contributing/contributing-components.txt Outdated Show resolved Hide resolved
Comment on lines +40 to +41
- How much effort will be required to create and maintain it?
- Is there a clear purpose for it?
Copy link
Contributor

Choose a reason for hiding this comment

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

These questions are great. I think they might have even more impact if instead of a deterrent, they could be part of a quality assurance checklist that or something of sorts?

- Does it overlap functionally or visually with any existing components? Can we use existing components to implement an alternative solution?
- How much effort will be required to create and maintain it?
- Is there a clear purpose for it?
- Can we introduce this change without causing breaking changes? Will we be able to keep this change and iterate on it in the future without causing future breaking changes?
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a breaking change? And maybe link to what makes a breaking change?

Copy link
Author

Choose a reason for hiding this comment

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

I can't find WordPress guidance on what makes a breaking change — do you think I could link out to general guidance?

Alternatively, we could rewrite to something like:

“Can we make this change without causing a breaking change (something that forces users to update their setup or workflows to keep things working) and will it allow future updates without similar issues?”

Copy link
Member

Choose a reason for hiding this comment

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

This is a good description:

"Breaking Changes" - A backwards-incompatible change which requires specific attention of the impacted developers to reconcile

There's also a relevant section here.

storybook/stories/contributing/contributing-components.txt Outdated Show resolved Hide resolved
storybook/stories/contributing/contributing-get-ready.txt Outdated Show resolved Hide resolved
storybook/stories/contributing/contributing-get-ready.txt Outdated Show resolved Hide resolved
storybook/stories/contributing/contributing-get-ready.txt Outdated Show resolved Hide resolved
storybook/stories/contributing/contributing-overview.txt Outdated Show resolved Hide resolved
storybook/stories/contributing/contributing-overview.txt Outdated Show resolved Hide resolved
@kristastevens
Copy link

Just to recap my conversation with @juanbuis—my understanding is that this text has already been reviewed by Michael Pick.

Copy link
Member

@mirka mirka left a comment

Choose a reason for hiding this comment

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

Thank you for preparing this, Juan!

I have two high-level concerns:

  • It is unclear what exactly the WordPress Design System is, and how "contributing to the design system" differs from "contributing to the components package", for example. In fact I don't think we can make a clear delineation between the two since it's very intertwined right now, and there is not much practical difference in the contribution process.
  • I'm afraid that having a completely separate set of docs for "design system contributions" in addition to the central contributing docs, despite the processes being almost identical, will lead to unnecessary duplication/fragmentation. That increases maintenance cost for us, while adding cognitive load to our audience since they may have to read through both documents.

So to balance those two out, I'm wondering if we could:

  • Make this more like a single landing page, where we explain what the WordPress Design System is, tell people about the Slack channel, and then link to all the relevant contribution guides that already exist centrally.
  • Any gaps in the existing contributing guides should ideally be improved/added on those documents themselves. (I'm sure you noticed a bunch of gaps while preparing these!)

storybook/stories/contributing/contributing-overview.txt Outdated Show resolved Hide resolved
- Does it overlap functionally or visually with any existing components? Can we use existing components to implement an alternative solution?
- How much effort will be required to create and maintain it?
- Is there a clear purpose for it?
- Can we introduce this change without causing breaking changes? Will we be able to keep this change and iterate on it in the future without causing future breaking changes?
Copy link
Member

Choose a reason for hiding this comment

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

This is a good description:

"Breaking Changes" - A backwards-incompatible change which requires specific attention of the impacted developers to reconcile

There's also a relevant section here.

storybook/stories/contributing/contributing-components.txt Outdated Show resolved Hide resolved
- Include inspiration from other products (optional)
- Tag the [@WordPress/gutenberg-components](https://github.com/orgs/WordPress/teams/gutenberg-components) and [@WordPress/gutenberg-design](https://github.com/orgs/WordPress/teams/gutenberg-design) GitHub groups

Add the “Design System” label to correctly categorize your work. Also, consider adding other labels depending on your needs, like Needs Design, Needs Copy Review, Needs Dev, or Needs Accessibility Feedback.
Copy link
Member

Choose a reason for hiding this comment

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

We could leave this out, since I don't think new contributors have privileges to add arbitrary labels anyway. More experienced contributors with privileges will label them accordingly, so new contributors mostly shouldn't have to worry about it.

Copy link
Author

Choose a reason for hiding this comment

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

I see what you mean, but wouldn't it be helpful for a new contributor to get used to labeling their issues correctly?

Copy link
Member

Choose a reason for hiding this comment

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

They literally cannot because they do not have the rights. I believe it works the same on almost all open source projects on GitHub. They gain rights when they join the Triage team or meet the criteria to join the Gutenberg team.


<Meta title="Contributing/Components" />

# Contribute to components
Copy link
Member

Choose a reason for hiding this comment

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

I think it would be better if we reviewed changes as a diff on the original file, since it's unclear which parts have been changed here from the original.

Comment on lines +13 to +15
### **Small copy changes**

If you see a spelling, punctuation, or grammatical error anywhere in the documentation, you can help fix it.
Copy link
Member

Choose a reason for hiding this comment

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

These trivial edits definitely don't need an issue opened beforehand — it can go direct to a PR.

Copy link
Author

Choose a reason for hiding this comment

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

Opening an issue is easier than creating a PR for people who aren't comfortable with Git — especially in the current workflow that requires forking and cloning the entire repo. I think having this option allows more people to contribute, but I'll rewrite everything to make it clear that if you're comfortable creating a PR, that you can just do that :)

Ideally there'd be an "edit page" button that allows someone to directly create a PR with any copy edits, but I don't think that's possible with the current setup.

Copy link
Member

Choose a reason for hiding this comment

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

It should be pretty easy to make copy edits without forking/cloning locally. Edits can go straight to PR in the browser (for example using this link).


After opening your issue, reviewers will start a discussion in the comments to see if it's an appropriate change. When it’s approved, the community will take care of making the change — unless you want to create a PR yourself.

### **Adding new pages**
Copy link
Member

Choose a reason for hiding this comment

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

I'm kind of doubting that a new contributor would be able to (or even want to) author a page from scratch on a foundational aspect of the design system, which requires a deep understanding of the whole.

I wonder if we should focus on improving flows for the more likely entry points for new contributors, which will be to edit existing pages. For example I could add some kind of footer on the doc pages, that links out to a GitHub view to edit the doc.

juanbuis and others added 2 commits December 19, 2024 11:28
Co-authored-by: Lena Morita <lena@jaguchi.com>
Co-authored-by: Lena Morita <lena@jaguchi.com>

Creating a new page takes more work and will need feedback from the community. That’s why you’ll need to open an issue on GitHub to track the progress of your new page.

#### **Step 1: Open a GitHub issue**
Copy link
Member

Choose a reason for hiding this comment

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

I was surprised to see this document going into such depth. Before going into writing those up in such detail, I'd suggest:

After all, if a document tries to address all questions and solve all problems, it usually addresses none. And there's no need to rediscover the wheel; we are standing on the shoulders of giants when reusing the existing docs that are the product of years of iteration from many contributors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Design System Issues related to the system of combining components according to best practices. Needs Copy Review Needs review of user-facing copy (language, phrasing) Needs Testing Needs further testing to be confirmed.
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

5 participants