Skip to content

Commit 5950185

Browse files
committed
chore: address feedback
1 parent a103f85 commit 5950185

File tree

3 files changed

+72
-70
lines changed

3 files changed

+72
-70
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424

2525
- [ ] _Descriptive Test Statement_
2626

27-
1. Go here
28-
2. Do this
29-
3. Expect this
27+
1. Go [here](url)
28+
2. Do this action
29+
3. Expect this result
3030

3131
- [ ] _Descriptive Test Statement_
32-
1. Go here
33-
2. Do this
34-
3. Expect this
32+
1. Go [here](url)
33+
2. Do this action
34+
3. Expect this result
3535

3636
Polypane review:
3737

CONTRIBUTING.md

+53-51
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,53 @@
1+
# Contributing Best Practices
2+
13
Welcome! We’re excited you’re interested in improving Spectrum Web Components. Whether you’re reporting bugs, adding new features, writing documentation, or helping other users, your contributions make this project better for everyone.
24

35
Here you’ll find a broad overview of how you can get involved. Please read through these guidelines to help keep the contribution process smooth and to ensure we’re all on the same page.
46

57
- [Community \& Support](community--support)
6-
- [1.1. External Contributors](#11-external-contributors)
7-
- [1.2. Internal Contributors](#12-internal-contributors)
8-
- [2. How can you Contribute](#2-how-can-you-contribute)
9-
- [3. Contributor License Agreement](#3-contributor-license-agreement)
10-
- [4. Code of Conduct](#4-code-of-conduct)
11-
- [5. Using the Issue Tracker](#5-using-the-issue-tracker)
12-
- [5.1. Before Submitting A Bug Report](#51-before-submitting-a-bug-report)
13-
- [6. Bug Reports](#6-bug-reports)
14-
- [6.1. Issue Severity Classification](#61-issue-severity-classification)
15-
- [7. Feature Requests/New Component](#7-feature-requestsnew-component)
16-
- [8. Pull Requests](#8-pull-requests)
17-
- [9. Branches](#9-branches)
18-
- [10. Developing Locally](#10-developing-locally)
19-
- [11. Testing](#11-testing)
20-
- [12. Documentation](#12-documentation)
21-
- [13. Best Practices \& Guidelines](#13-best-practices--guidelines)
22-
- [13.1. Code Formatting](#131-code-formatting)
23-
- [13.2. Accessibility](#132-accessibility)
24-
- [13.3. Commit Guidelines](#133-commit-guidelines)
25-
- [14. Thank You](#14-thank-you)
8+
- [External Contributors](external-contributors)
9+
- [Internal Contributors](internal-contributors)
10+
- [How can you Contribute](how-can-you-contribute)
11+
- [Contributor License Agreement](contributor-license-agreement)
12+
- [Code of Conduct](code-of-conduct)
13+
- [Using the Issue Tracker](using-the-issue-tracker)
14+
- [Before Submitting A Bug Report](before-submitting-a-bug-report)
15+
- [Bug Reports](bug-reports)
16+
- [Issue Severity Classification](issue-severity-classification)
17+
- [Feature Requests/New Component](feature-requestsnew-component)
18+
- [Pull Requests](pull-requests)
19+
- [Branches](branches)
20+
- [Developing Locally](developing-locally)
21+
- [Testing](testing)
22+
- [Documentation](documentation)
23+
- [Best Practices \& Guidelines](best-practices--guidelines)
24+
- [Code Formatting](code-formatting)
25+
- [Accessibility](accessibility)
26+
- [Commit Guidelines](commit-guidelines)
27+
- [Thank You](thank-you)
2628

2729
---
2830

29-
# 1. Community & Support
31+
## Community & Support
3032

3133
A fantastic first step to contributing is filing an issue. This is where you can:
3234

3335
- Ask questions, file bugs, and troubleshoot with other users.
3436
- Propose new features and ideas or get feedback on your own through a linked pull request.
35-
Additionally, you can check GitHub Discussions to stay up-to-date with any major announcements about the project.
37+
- Additionally, you can check GitHub Discussions to stay up-to-date with any major announcements about the project.
3638

37-
## 1.1. External Contributors
39+
### External Contributors
3840

39-
**Adobe Employees, read section 1.2 below.**
41+
**Adobe Employees, read Internal Contributors section below.**
4042
If you need support or have a question about how something works, filing an issue is the best place to start. A team member will be in touch to either triage your issue or follow-up with you in the comments.
4143

42-
## 1.2. Internal Contributors
44+
### Internal Contributors
4345

4446
If you work for Adobe, our Slack channel #spectrum_web_components has some great workflows to get you started. Be sure to read the Welcome Canvas when you join.
4547

4648
---
4749

48-
# 2. How can you Contribute
50+
## How can you Contribute
4951

5052
There’s a common misconception that you need to code in order to contribute. In reality, there are many different ways to help:
5153

@@ -60,20 +62,20 @@ Of course, contributing code is also welcome from fixing a bug to building a bra
6062

6163
---
6264

63-
# 3. Contributor License Agreement
65+
## Contributor License Agreement
6466

6567
We require all external contributors to sign our Contributor License Agreement (CLA). If you haven’t signed it before making your first contribution, please do so—otherwise, we can’t merge your changes.
6668

6769
---
6870

69-
# 4. Code of Conduct
71+
## Code of Conduct
7072

7173
Spectrum Web Components abides by the Adobe Code of Conduct. By participating, you agree to treat all community members kindly and respectfully. We’re committed to fostering a welcoming, inclusive environment.
7274
Should any behavior fall short of these expectations, please report it to <Grp-opensourceoffice@adobe.com>.
7375

7476
---
7577

76-
# 5. Using the Issue Tracker
78+
## Using the Issue Tracker
7779

7880
We use GitHub Issues for two purposes:
7981

@@ -82,7 +84,7 @@ We use GitHub Issues for two purposes:
8284

8385
If you’re having a usage issue or need support, do not open an issue. Instead, reference the Community & Support section. This helps us keep issues focused on actual bugs and actionable tasks.
8486

85-
## 5.1. Before Submitting A Bug Report
87+
### Before Submitting A Bug Report
8688

8789
1. Check the [Open Issues](https://github.com/adobe/spectrum-web-components/issues) to see if the problem has already been reported.
8890
- TIP: Apply the component label to make your search process more straightforward.
@@ -92,20 +94,20 @@ If you’re having a usage issue or need support, do not open an issue. Instead,
9294

9395
---
9496

95-
# 6. Bug Reports
97+
## Bug Reports
9698

9799
When you file a bug, please use the `Bug Report` template provided in GitHub. Include the following information:
98100

99-
1. A concise summary of the problem.
100-
2. Relevant components involved in the issue.
101-
3. Issue Severity based on our classifications defined below.
102-
4. What you expected vs. what actually happened, along with any errors logged in the console.
103-
5. Steps to reproduce the issue, preferably in an isolated environment, so that we can narrow down where the bug is originating from. (e.g., webcomponents.dev or CodePen). Be detailed if you write out the steps!
104-
6. Relevant environment details (OS, browser, library version).
101+
- A concise summary of the problem.
102+
- Relevant components involved in the issue.
103+
- Issue Severity based on our classifications defined below.
104+
- What you expected vs. what actually happened, along with any errors logged in the console.
105+
- Steps to reproduce the issue, preferably in an isolated environment, so that we can narrow down where the bug is originating from. (e.g., webcomponents.dev or CodePen). Be detailed if you write out the steps!
106+
- Relevant environment details (OS, browser, library version).
105107

106108
Clear bug reports speed up the triage process, help us replicate the issue, and keep the project robust.
107109

108-
## Issue severity classification
110+
### Issue severity classification
109111

110112
Providing the correct issue severity classification helps us adequately assess and prioritize your issue. We reserve the right to adjust the severity of your bug during triage.
111113
Below is our issue severity classification criteria:
@@ -120,7 +122,7 @@ Below is our issue severity classification criteria:
120122

121123
---
122124

123-
# 7. Feature Requests/New Component
125+
## Feature Requests/New Component
124126

125127
Is there something you wish the project did differently? Have a new component in mind? We love hearing new ideas and are eager to collaborate!
126128

@@ -129,13 +131,13 @@ Is there something you wish the project did differently? Have a new component in
129131

130132
---
131133

132-
# 8. Pull Requests
134+
## Pull Requests
133135

134136
If you plan to fix a bug, create a feature, or improve documentation, follow the [Pull Request Guide](PULL_REQUESTS.md) to ensure you're contribution meets expectations for getting reviewed.
135137

136138
---
137139

138-
# 9. Branches
140+
## Branches
139141

140142
We keep things straightforward with branching:
141143

@@ -146,15 +148,15 @@ Avoid editing distribution files (if present). Make changes to the source files,
146148

147149
---
148150

149-
# 10. Developing Locally
151+
## Developing Locally
150152

151153
Read the steps outlined in the [README.md](README.md) to get your environment set up.
152154

153155
If you encounter hurdles, feel free to ask for help in your pull request or in the community forum.
154156

155157
---
156158

157-
# 11. Testing
159+
## Testing
158160

159161
Quality and stability are important. We require writing tests for any fixes or features you introduce. This helps ensure:
160162

@@ -168,7 +170,7 @@ If you’re unsure how to write tests for certain parts of the library, don’t
168170

169171
---
170172

171-
# 12. Documentation
173+
## Documentation
172174

173175
In addition to well-tested code, documentation is crucial. Whenever you add or change a feature,include documentation for it in the relevant areas:
174176

@@ -179,23 +181,23 @@ Accessible, helpful docs are a huge win for everyone, especially newcomers.
179181

180182
---
181183

182-
# 13. Best Practices & Guidelines
184+
## Best Practices & Guidelines
183185

184-
## 13.1. Code Formatting
186+
### Code Formatting
185187

186-
We rely on automated tools like Prettier or ESLint to enforce style preferences. Setting up these tools in your editor saves time and prevents minor style conflicts from slowing down reviews.
188+
We rely on automated tools like Prettier, ESLint, and Stylelint to enforce style preferences. Setting up these tools in your editor saves time and prevents minor style conflicts from slowing down reviews.
187189

188-
## 13.2. Accessibility
190+
### Accessibility
189191

190192
Since this project is used by a diverse audience, the accessibility of our product is of utmost importance. Features will be evaluated for inclusivity by:
191193

192194
- The use of semantic markup.
193-
- Labeled interactive elements with appropriate affordances.
195+
- Labeled interactive elements with appropriate accordance's.
194196
- Accounting for appropriate states, such as focus and keyboard navigation, according to [standards](https://www.w3.org/WAI/perspective-videos/keyboard/).
195197

196198
If you’re unsure about an accessibility detail, the [Web Accessibility Initiative (WAI) ARIA Practices Guide (APG)](https://www.w3.org/WAI/ARIA/apg/patterns/) is a good place to start. You can also open a discussion or ask in your PR.
197199

198-
## 13.3. Commit Guidelines
200+
### Commit Guidelines
199201

200202
As mentioned previously, we use [Conventional Commit](https://www.conventionalcommits.org) syntax:
201203

@@ -212,7 +214,7 @@ This helps us track changes in a predictable way and automate versioning.
212214

213215
---
214216

215-
# 14. Thank You
217+
## Thank You
216218

217219
We appreciate everyone who invests time, energy, and expertise into Spectrum Web Components. Your contributions—big or small—help this library evolve to serve a broader audience and remain at a high standard of quality.
218220

PULL_REQUESTS.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This document outlines our team's expectations and best practices for creating,
2323
- [Specific Requirements by Element Type](#specific-requirements-by-element-type)
2424
- [New Components](#new-components)
2525
- [Documentation](#documentation)
26-
- [API Documentation](#api-documentation)
26+
- [API Documentation Utilizing JSDocs](#api-documentation-utilizing-jsdocs)
2727
- [Technical Requirements](#technical-requirements)
2828

2929
## Pull Request Creation
@@ -130,16 +130,16 @@ Both reviewers and PR authors should follow these guidelines:
130130

131131
#### For Reviewers
132132

133-
- **Be specific and constructive**: By providing clear, actionable feedback and explaining why a change is needed, we help contributors make updates to their code more quickly and accurately.
134-
- **Prioritize Issues**: Focus on important issues first (architecture, functionality, performance) before minor stylistic concerns.
135-
- **Ask Questions**: When something isn't clear, start with asking questions. We don't assume intent or meaning and focus instead on curiosity and clarification.
136-
- **Suggest Alternatives**: When pointing out issues, suggest possible solutions or approaches. Leverage the code suggestions feature to streamline applying feedback for the author.
137-
- **Celebrate good work**: By acknowledging well-written code and good design decisions, we celebrate our contributors and the hard work they put in. Positive reinforcement is valued and makes for a fun and engaging project!
138-
- **Remember Context**: Consider the PR author's experience level and the scope of changes when providing feedback.
139-
- **Be Timely**: Complete reviews promptly to avoid blocking progress.
140-
- **Avoid Nitpicking**: Focus on meaningful improvements rather than personal style preferences that don't violate project standards. Prepend comments with `nit:` to denote that it is non-blocking feedback.
141-
- **Use Changes Requested Sparingly**: Changes Requested review status should only be used in instances where a bug or regression is still present in the PR.
142-
- **Review VRTs Thoroughly**: Ensure the diffs in VRT are expected and inform the author via comment if they are approved so they know to update the golden hash.
133+
- **Maintain Momentum**: Complete reviews in a timely manner to keep the project moving forward.
134+
- **Provide Clear, Actionable Feedback**: Help contributors succeed by offering specific guidance and explaining the reasoning behind suggested changes.
135+
- **Offer Solutions**: When identifying areas for improvement, suggest alternative approaches and use code suggestions to make implementation easier.
136+
- **Seek Understanding**: Ask questions to clarify intent and approach, fostering a collaborative environment for learning and improvement.
137+
- **Recognize Excellence**: Celebrate well-written code and thoughtful design decisions to encourage continued high-quality contributions.
138+
- **Focus on Impact**: Prioritize feedback on architecture, functionality, and performance to ensure the most important aspects are addressed first.
139+
- **Focus on Value**: Prioritize feedback that improves code quality and maintainability over personal style preferences. If you make a suggestion that is non-blocking feedback, prepend the comment with `nit:`.
140+
- **Consider Context**: Tailor feedback to the PR author's experience level and the scope of changes.
141+
- **Use Changes Requested Thoughtfully**: Reserve the Changes Requested status for instances where critical issues need to be addressed.
142+
- **Review VRTs with Care**: Thoroughly examine visual regression test results and communicate approval status to authors.
143143

144144
#### For PR Authors
145145

@@ -191,7 +191,7 @@ When creating or reviewing new components, ensure:
191191

192192
See [Documenting a component](https://opensource.adobe.com/spectrum-web-components/guides/adding-component/#documenting-the-component) for more information on our documentation standards and structure.
193193

194-
#### API Documentation
194+
#### API Documentation Utilizing [JSDocs](https://jsdoc.app/)
195195

196196
- **Slots**: All slots documented in the element class docblock
197197
- **Events**: All dispatched events documented with `@fires` docblock
@@ -205,4 +205,4 @@ See [Documenting a component](https://opensource.adobe.com/spectrum-web-componen
205205
- Component follows established patterns and conventions
206206
- Accessibility is thoroughly considered
207207
- Responsive design best practices are followed
208-
- Cross-browser compatibility is verified
208+
- Supported cross-browser compatibility is verified

0 commit comments

Comments
 (0)