Skip to content

Commit 143761b

Browse files
committed
Merge branch 'main' of github.com:adobe/react-spectrum into testing_docs
2 parents 3014b0e + 9da8c73 commit 143761b

File tree

434 files changed

+11551
-9101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

434 files changed

+11551
-9101
lines changed

.cursor/rules/add-subheadings.mdc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
alwaysApply: false
3+
---
4+
5+
# Step 3: Add sub-headings
6+
7+
Within the Enhancements, Fixes, and Under Construction categories, group commits by UI component under sub-headings.
8+
9+
### Sub-heading rules:
10+
- Use sub-headings ONLY for:
11+
- Enhancements
12+
- Fixes
13+
- Under Construction
14+
- Do NOT create sub-headings for:
15+
- Documentation
16+
- To Be Categorized
17+
- S2
18+
- Sub-headings should be in alphabetical order
19+
- Use "Miscellaneous" as a sub-heading for commits that do not belong to a specific component
20+
- Each category can have its own Miscellaneous sub-heading
21+
- Write sub-headings and commits as unordered lists using a hyphen (-)
22+
- Do NOT bold the sub-heading text
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
alwaysApply: false
3+
---
4+
5+
# Step 1: Categorize commits
6+
7+
Sort ALL commit messages into one of six main categories. The main categories are the following:
8+
- Enhancements
9+
- Fixes
10+
- Documentation
11+
- Under Construction
12+
- To Be Categorized
13+
- S2
14+
15+
Before categorizing commits into other groups, check whether each commit should be classified as “Under Construction.”
16+
- Follow the steps below in order:
17+
1. Identify pre-release packages
18+
- Use a command such as grep to scan the repository for package versions that include prerelease identifiers (e.g., alpha, beta, rc)
19+
2. Extract component keywords from commit messages
20+
- Parse each commit message to identify possible component names
21+
- Normalize these keywords (e.g., lowercase, remove punctuation) for easier comparison.
22+
3. Compare extracted keywords with pre-release packages
23+
- If any keyword matches a package in the list, mark the commit as Under Construction.
24+
4. Check for explicit prerelease keywords in commit text
25+
- If the commit message directly includes alpha, beta, or rc, classify it as Under Construction, regardless of package matches.
26+
27+
Next, categorize the remaining commits not categorized as "Under Construction". Use the following keywords to determine the category:
28+
| Keyword | Category |
29+
|----------------------------|----------|
30+
| feat | Enhancements|
31+
| fix | Fixes |
32+
| docs | Documentation |
33+
| chore, revert, bump, build | To Be Categorized |
34+
| S2 | S2 |
35+
36+
Do not duplicate commits. In terms of priority, it should be Under Construction > S2 > To Be Categorized > Enhancements > Fixes > Documentation
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
alwaysApply: false
3+
---
4+
5+
You are a expert technical writer for front-end development.
6+
7+
# Step 2: Rewrite commit messages
8+
9+
Original format: Type (Scope): Summary of changes - [@username](link to username) - [PR](link to PR)
10+
New Format: Summary of changes - [@username](link to username) - [PR](link to PR)
11+
12+
### General Guidelines:
13+
- Keep the summary as a single, grammatically correct sentence
14+
- Verbs should be first person present tense but do NOT include the subject (e.g. I)
15+
- The message should be concise and easy to read
16+
- Wrap any camelCase or code-like terms (e.g. onClick, onAction, isDisabled) in backticks (``)
17+
- Do NOT use backticks for component names
18+
- Replace specific terms:
19+
- RAC -> React Aria
20+
- V3 -> React Spectrum
21+
- ALWAYS capitalize UI component names
22+
- Example:
23+
- toast -> Toast
24+
- inline alert -> InlineAlert
25+
26+
### Component Names to Capitalize:
27+
Accordion, Autocomplete, Badge, Breadcrumbs, Buttons, Calendar, Checkbox, CheckboxGroup, Collections, ColorArea, ColorField, ColorPicker, ColorSlider, ColorSwatch, ColorSwatchPicker, ColorWheel, ComboBox, Date and Time, DateField, DatePicker, DateRangePicker, Dialog, Disclosure, DisclosureGroup, Drag and Drop, DropZone, FileTrigger, Form, InlineAlert, Link, Listbox, ListView, Menu, Meter, Modal, NotificationBadge, NumberField, Picker, ProgressBar, ProgressCircle, RadioGroup, RangeCalendar, SearchField, Select, Slider, StatusLight, Switch, Table, Tabs, TagGroup, TextArea, TextField, TimeField, Toast, ToggleButton, ToggleButtonGroup, Tooltip, Tree, Virtualizer.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.DS_Store
22
.cache
33
.idea
4-
.nyc_output
54
.package-lock.json
65
.parcel-cache
76
build-storybook.log

.npmignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
.DS_Store
22
.storybook
33
.editorconfig
4-
.nycrc
5-
.nyc_output
64
coverage
75
Makefile
86
yarn.lock

.nycrc

Lines changed: 0 additions & 8 deletions
This file was deleted.

.parcelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"*.{md,mdx}": ["parcel-transformer-mdx-docs"],
1212
"*.svg": ["@parcel/transformer-svg-react"],
1313
"packages/@react-aria/example-theme/**/*.css": ["@parcel/transformer-css"],
14+
"starters/docs/src/*.css": ["@parcel/transformer-css"],
1415
"*.css": ["...", "parcel-transformer-css-env"],
1516
"*.{js,mjs,jsm,jsx,es6,cjs,ts,tsx}": [
1617
"@parcel/transformer-js",

CONTRIBUTING.md

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -77,32 +77,6 @@ Or run the documentation and browse to [http://localhost:1234/](http://localhost
7777
yarn start:docs
7878
```
7979

80-
### Component/Hook scaffolding
81-
If you are looking to contribute a brand new component or Hook in a package that does not exist yet, please run the following command.
82-
```bash
83-
yarn plop
84-
```
85-
This will start a series of cli prompts to determine what template files and folders should be generated to help quick start your contribution.
86-
The prompts are as follows:
87-
88-
1. What type of project are you setting up?
89-
- Select "React Spectrum v3"
90-
91-
2. Scope name(s)
92-
- Select the package scopes that make sense for your contribution (e.g. react-spectrum if you are contributing a component, react-aria for an aria Hook, etc)
93-
94-
3. Package name, all lowercase (e.g. textfield)
95-
96-
4. Component name, please use appropriate uppercase (e.g. TextField)
97-
- If you are contributing a non-component Hook, just enter the name of your Hook.
98-
99-
5. Component css module name, blank if N/A. If unsure, check @adobe/spectrum-css-temp/components for a module containing the desired css (e.g. textfield)
100-
- If you cannot find the component CSS module name in @adobe/spectrum-css-temp/components, feel free to reach out to a team member via GitHub Issues or Discussions.
101-
102-
Upon answering all the prompts, the appropriate package(s) should be generated and ready for modification.
103-
104-
**Note:** With regards to the generated docs files, please feel free to remove them if you won't be contributing docs. If you are contributing docs for a new component or Hook, please submit them in a separate pull request so that we can decide when to deploy them to our docs site.
105-
10680
### Tests
10781
We use [jest](https://jestjs.io/) for unit tests and [react-testing-library](https://testing-library.com/docs/react-testing-library/intro) for rendering and writing assertions. Please make sure you include tests with your pull requests. Our CI will run the tests on PRs as well as the linter and type checker. You can see on each PR whether you have passed all our checks. We split the tests into 2 groups.
10882

@@ -154,7 +128,7 @@ yarn start:docs
154128
Then, open [http://localhost:1234](http://localhost:1234) in your browser.
155129

156130
### Verdaccio
157-
We use [Verdaccio](https://verdaccio.org/) to set up a private registry for our packages to test our components in our example apps.
131+
We use [Verdaccio](https://verdaccio.org/) to set up a private registry for our packages to test our components in our example apps.
158132

159133
To run verdaccio, first ensure that your `git status` is clean. If your computer has an Intel chip, add the line `shopt -s globstar extglob` in the `verdaccio.sh` file after line 21. Save and commit these changes under a clear message like "Do not push". If you have an Apple silicon chip, you may skip this step.
160134

babel-esm.config.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@
2323
]
2424
]
2525
},
26-
"cover": {
27-
"plugins": [
28-
"istanbul"
29-
]
30-
},
3126
"production": {
3227
"plugins": [
3328
[

babel.config.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
]
2323
]
2424
},
25-
"cover": {
26-
"plugins": [
27-
"istanbul"
28-
]
29-
},
3025
"production": {
3126
"plugins": [
3227
[

0 commit comments

Comments
 (0)