Skip to content

Sync Primer view_components upstream through v0.53.1 - #519

Open
myabc wants to merge 33 commits into
mainfrom
bump/primer-upstream
Open

Sync Primer view_components upstream through v0.53.1#519
myabc wants to merge 33 commits into
mainfrom
bump/primer-upstream

Conversation

@myabc

@myabc myabc commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

🤖 Opened by an agent on Alex's behalf.

Syncs the fork with primer/view_components through upstream v0.53.1 — merge target 18aa9c415 (parent of Release Tracking primer#4154).

Upstream changes included

Conflicts resolved

  • package.json: kept fork identity (name/version/description); took upstream's markdownlint-cli2 bump. package-lock.json regenerated with npm install (the merge had left conflict markers in it).
  • 13 workflow files under .github/workflows/: resolved as ours, leaving them byte-identical to main. The upstream side was only Action version bumps — this fork pins Actions by SHA and its own Dependabot raises them — plus the RubyGems Trusted Publishing migration, which does not apply here: the fork publishes openproject-primer_view_components with its own shared RubyGems token and its own npm scope. All 13 files re-validated as YAML after resolution.
  • Gemfile: took upstream's selenium-webdriver and yard bumps; both Gemfile.locks refreshed with bundle install.

Dependency bumps replayed by hand

Gemfile.lock is merge=ours, so upstream's lockfile-only bumps are dropped on merge. Replayed the security-relevant pair in both bundles with bundle update --conservative:

Everything else upstream locked ahead of us (postcss 8.5.25, axe-core 4.12.1, playwright 1.62.0, svgo 4.0.2, msgpack 1.8.2) is non-urgent and left to the fork's weekly Dependabot.

Notes

  • Static files and docs regenerated from a clean tree (git clean -fdx -- app/ first) — no phantom classes leaked into static/.
  • static/classnames.{js,cjs} gained Box-list, Button--medium and container-{md,lg,xl}. These come from sources already on main (collapsible_header.pcss, segmented_control.pcss, layout.pcss); CI regenerates static/*.json but never classnames.*, so those files had drifted stale.
  • tsconfig.json verified intact — the fork's recursive include (app/components/primer/**/*.ts) survived the merge.
  • Lint is unchanged from main's baseline: the remaining rubocop/eslint offenses are all in files this merge does not touch.

primer Bot and others added 30 commits July 1, 2026 20:03
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…tion-dependencies group across 1 directory (primer#4115)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…#4129)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ates (primer#4123)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…4151)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ates (primer#4158)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot Bot and others added 3 commits August 4, 2026 19:59
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Merges primer/view_components up to 18aa9c4, the parent of upstream
Release Tracking primer#4154.

Component change: reserves height as well as width in
.ToggleSwitch-statusIcon so the switch no longer jumps when the
loading spinner appears (primer#4152).

Keeps the fork's workflow files unchanged: the upstream conflicts are
GitHub Action version bumps (the fork pins by SHA through its own
Dependabot) and the migration of gem publishing to RubyGems Trusted
Publishing, which does not apply to the fork's release flow.

Replays the rails-html-sanitizer 1.7.1 and loofah 2.25.2 bumps that
merge=ours dropped from both Gemfile.locks. Remaining upstream
lockfile bumps are left to the fork's weekly Dependabot.

Regenerates static/classnames.* from a clean tree, which also picks up
class names the fork's own sources already carried.
Copilot AI lite review requested due to automatic review settings August 14, 2026 16:33
@changeset-bot

changeset-bot Bot commented Aug 14, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 914fb8e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@openproject/primer-view-components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Syncs the OpenProject fork of Primer ViewComponents with upstream through v0.53.1, bringing in the ToggleSwitch layout fix plus related dependency and generated-file updates while preserving fork-specific publishing/workflow behavior.

Changes:

  • Prevent ToggleSwitch layout “jump” when showing loading/error status icons by reserving status icon height and centering content.
  • Add system test coverage to ensure the ToggleSwitch track position and spinner centering remain stable.
  • Update dependencies/lockfiles (Ruby + npm) and refresh generated static class name allowlists; add a changeset for the user-facing fix.

Reviewed changes

Copilot reviewed 8 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
app/components/primer/alpha/toggle_switch.pcss Reserves .ToggleSwitch-statusIcon height and centers icon/spinner to avoid layout shift.
test/system/alpha/toggle_switch_test.rb Adds system tests asserting the switch doesn’t move and the spinner is centered.
.changeset/hungry-poems-shout.md Documents the ToggleSwitch fix as a patch release for the forked package.
static/classnames.js Updates generated/maintained class name allowlist to match current sources.
static/classnames.cjs Same allowlist update for CommonJS consumers.
package.json Bumps markdownlint-cli2 dev dependency.
package-lock.json Regenerates lockfile to reflect updated npm dependency graph.
Gemfile Bumps selenium-webdriver and yard constraints.
Gemfile.lock Updates resolved Ruby dependencies including sanitizer/security-related bumps.
demo/package.json Bumps @primer/css in the demo app.
demo/package-lock.json Regenerates demo lockfile for updated npm dependencies.
demo/Gemfile.lock Updates resolved demo Ruby dependencies consistent with root bundle updates.
Files not reviewed (1)
  • demo/package-lock.json: Generated file

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@myabc myabc added the needs review Needs review label Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants