Skip to content

Commit

Permalink
Merge branch 'main' into mp/improve-checkbox-radio-click-area
Browse files Browse the repository at this point in the history
  • Loading branch information
mperrotti authored Nov 20, 2024
2 parents 4434e87 + 1d4116d commit 6d99e98
Show file tree
Hide file tree
Showing 485 changed files with 10,445 additions and 6,659 deletions.
5 changes: 5 additions & 0 deletions .changeset/brave-cheetahs-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move Select component from team to staff flag
5 changes: 5 additions & 0 deletions .changeset/calm-meals-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move CounterLabel CSS module feature flag from staff to ga
5 changes: 5 additions & 0 deletions .changeset/chilled-goats-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move Spinner component from team to staff flag
5 changes: 5 additions & 0 deletions .changeset/curly-bikes-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move Radio component from team to staff flag
5 changes: 0 additions & 5 deletions .changeset/dirty-dodos-applaud.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/dirty-fans-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": minor
---

Update `Textarea` component to use CSS module
5 changes: 5 additions & 0 deletions .changeset/dry-seals-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": minor
---

Convert TextInput to CSS module behind feature flag
5 changes: 5 additions & 0 deletions .changeset/fair-wolves-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": minor
---

Convert Breadcrumbs to css module behind feature flag
5 changes: 5 additions & 0 deletions .changeset/fast-hats-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move Pagehead component from team to staff flag
5 changes: 0 additions & 5 deletions .changeset/fluffy-days-brake.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/forty-hornets-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": minor
---

Convert Dialog v2 to CSS Modules behind feature flag
5 changes: 0 additions & 5 deletions .changeset/forty-rats-jog.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fuzzy-kiwis-greet.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/gentle-yaks-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": minor
---

Update `TreeView` component to use CSS Modules
5 changes: 5 additions & 0 deletions .changeset/grumpy-cherries-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move Details component from team to staff flag
5 changes: 5 additions & 0 deletions .changeset/honest-plums-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move Header component from team to staff flag
5 changes: 0 additions & 5 deletions .changeset/lazy-mugs-care.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/lovely-stingrays-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Convert CheckBoxOrRadioGroup to CSS modules behind feature flag
5 changes: 5 additions & 0 deletions .changeset/odd-seas-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move BranchName component from team to staff flag
5 changes: 5 additions & 0 deletions .changeset/old-weeks-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move Skeleton component from team to staff flag
5 changes: 5 additions & 0 deletions .changeset/polite-ligers-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

chore(ButtonGroup): Move ButtonGroup CSS module feature flag from staff to ga
5 changes: 0 additions & 5 deletions .changeset/slow-news-love.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/slow-shoes-wait.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/small-foxes-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": minor
---

Convert ProgressBar to CSS modules behind feature flag
5 changes: 5 additions & 0 deletions .changeset/tall-cameras-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": minor
---

Migrate TextInputAction & TextInputInnerVisualSlot to CSS Modules behind feature flag
5 changes: 0 additions & 5 deletions .changeset/thick-pugs-hammer.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/three-falcons-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": minor
---

Update `Popover` component to use CSS modules behind the feature flag primer_react_css_modules_team
5 changes: 5 additions & 0 deletions .changeset/tidy-turtles-protect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': patch
---

Check certain refs for nullishness to address HMR issues in dotcom
55 changes: 26 additions & 29 deletions .github/workflows/recommend-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,46 +29,43 @@ jobs:
- name: Has diff?
run: echo ${{ steps.source-files.outputs.diff != '' }}

- name: Get or Create Comment
- name: Add label and comment
if: ${{ steps.source-files.outputs.diff != '' }}
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const result = await github.paginate(github.rest.issues.listComments, {
const INTEGRATION_LABEL_NAMES = {
// synced with https://github.com/primer/react/labels?q=integration-tests
skipped: 'integration-tests: skipped manually',
recommended: 'integration-tests: recommended',
failing: 'integration-tests: failing',
passing: 'integration-tests: passing'
}
const issue = {
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo
});
}
const labels = await github.paginate(github.rest.issues.listLabelsOnIssue, issue);
const integrationLabels = labels.filter(label => label.name.startsWith('integration-tests'))
const hasPassingLabel = integrationLabels.find(label => label.name === INTEGRATION_LABEL_NAMES.passing)
const previousComment = result.filter(c => c.user.login == 'github-actions[bot]' && c.body.startsWith('<!-- recommend-integration-tests.yml -->'))
if (!previousComment.length) {
if (integrationLabels.length === 0) {
// recommend integration tests
await github.rest.issues.addLabels({...issue, labels: [INTEGRATION_LABEL_NAMES.recommended]})
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
...issue,
body: '<!-- recommend-integration-tests.yml -->\n\n :wave: Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the [integration workflow](https://gh.io/testing_primer_at_dotcom). Thanks!'
})
}
- name: Add label
if: ${{ steps.source-files.outputs.diff != '' }}
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const result = await github.rest.issues.listLabelsOnIssue({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
})
const integrationLabels = result.data.filter(label => label.name.startsWith('integration-tests'))
if (!integrationLabels.length) {
await github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['integration-tests: recommended'],
} else if (hasPassingLabel) {
// recommend running integration tests again as there are new commits that might change the status
// note: we don't remove 'integration-tests: passing' label because this is only a suggestion/nudge
await github.rest.issues.addLabels({...issue, labels: [INTEGRATION_LABEL_NAMES.recommended]})
await github.rest.issues.createComment({
...issue,
body: '<!-- recommend-integration-tests.yml -->\n\n :wave: Hi, there are new commits since the last successful integration test. We recommend running the [integration workflow](https://gh.io/testing_primer_at_dotcom) once more, unless you are sure the new changes do not affect github/github. Thanks!'
})
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6d99e98

Please sign in to comment.