Skip to content

refactor(onboarding): share the Windows button-order rule across step rows - #3244

Open
spapaseit wants to merge 1 commit into
spapaseit/onboarding-picker-pocfrom
spapaseit/onboarding-shared-button-row
Open

spapaseit wants to merge 1 commit into
spapaseit/onboarding-picker-pocfrom
spapaseit/onboarding-shared-button-row

Conversation

@spapaseit

@spapaseit spapaseit commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Asana Task/Github Issue: https://app.asana.com/1/137249556945/task/1218157738560967

Description

  • Adds ButtonRow.module.css with one .buttonRow class that holds the Windows rule putting the primary button first.
  • MakeDefault, Settings, DuckPlayer and picker rows pull it in with composes: buttonRow from './ButtonRow.module.css' and keep their own layout. No JS changes.
  • I used composes rather than a <ButtonRow> component because each row lays out differently: centred, left-aligned, and indented 40px under an icon.
  • Adds a Settings test checking that the primary button comes first on Windows and last on macOS. Removing the rule broke the Windows screenshots for MakeDefault and DuckPlayer and the picker's order test, but nothing caught it for Settings.

Left as they are after a local review (all low-confidence):

  • The new test picks the dock/taskbar label with an inline project-name check instead of onboarding.build.switch, and its position check repeats the picker order test. A shared helper would touch Onboarding: add the picker step and its native messages #3241's test, so it belongs there.
  • ButtonRow.module.css has no matching ButtonRow.js, so the name can read like a missing component.
  • The ButtonRow.module.css comment says "every step's button row", but only the two-button rows compose it.
  • ButtonRow.module.css quotes the selector with single quotes. Most CSS in this repo uses double quotes.

Testing Steps

  • npm run test-int -- pages/onboarding --project windows --project macos --reporter list
  • Run the onboarding screenshot projects. The baselines are unchanged and still pass.
  • In the Build Branch preview, set the platform to Windows and check that the primary button comes first on the default-browser, settings and Duck Player steps.

Checklist

Please tick all that apply:

  • I have tested this change locally
  • I have tested this change locally in all supported browsers
  • This change will be visible to users
  • I have added automated tests that cover this change
  • I have ensured the change is gated by config
  • This change was covered by a ship review
  • This change was covered by a tech design
  • Any dependent config has been merged

@spapaseit
spapaseit added this pull request to stack #3245 November 24, 2026 12:36
@github-actions github-actions Bot added the semver-patch Bug fix / internal — no release needed label Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Build Branch

Branch pr-releases/spapaseit/onboarding-shared-button-row
Commit 63c1c70195
Updated November 30, 2026 at 10:35:52 AM UTC

Static preview entry points

QR codes (mobile preview)
Entry point QR code
Docs QR for docs preview
Static pages QR for static pages preview
Integration pages QR for integration pages preview

Integration commands

npm (Android / Extension):

npm i github:duckduckgo/content-scope-scripts#pr-releases/spapaseit/onboarding-shared-button-row

Swift Package Manager (Apple):

.package(url: "https://github.com/duckduckgo/content-scope-scripts.git", branch: "pr-releases/spapaseit/onboarding-shared-button-row")

git submodule (Windows):

git -C submodules/content-scope-scripts fetch origin pr-releases/spapaseit/onboarding-shared-button-row
git -C submodules/content-scope-scripts checkout origin/pr-releases/spapaseit/onboarding-shared-button-row
Pin to exact commit

npm (Android / Extension):

npm i github:duckduckgo/content-scope-scripts#63c1c7019594479a926e38502c1f59b45c114f46

Swift Package Manager (Apple):

.package(url: "https://github.com/duckduckgo/content-scope-scripts.git", revision: "63c1c7019594479a926e38502c1f59b45c114f46")

git submodule (Windows):

git -C submodules/content-scope-scripts fetch origin pr-releases/spapaseit/onboarding-shared-button-row
git -C submodules/content-scope-scripts checkout 63c1c7019594479a926e38502c1f59b45c114f46

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

[Beta] Generated file diff

Time updated: Mon, 30 Nov 2026 10:37:12 GMT

Apple
    - apple/pages/onboarding/dist/index.css
  • apple/pages/onboarding/dist/index.js

File has changed

Integration
    - integration/pages/onboarding/dist/index.css
  • integration/pages/onboarding/dist/index.js

File has changed

Windows
    - windows/pages/onboarding/dist/index.css
  • windows/pages/onboarding/dist/index.js

File has changed

@spapaseit
spapaseit force-pushed the spapaseit/onboarding-shared-button-row branch 5 times, most recently from 5a23062 to 345d813 Compare November 26, 2026 08:55
@spapaseit

Copy link
Copy Markdown
Contributor Author

@claude review

@claude claude Bot 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.

Nothing blocking. The comments below are optional suggestions. There is no need to push a fix for them before merging.

@spapaseit
spapaseit force-pushed the spapaseit/onboarding-shared-button-row branch 2 times, most recently from 34d70f4 to 61794f2 Compare November 26, 2026 14:38
@spapaseit spapaseit self-assigned this Nov 26, 2026
@spapaseit
spapaseit marked this pull request as ready for review November 26, 2026 21:56

@claude claude Bot 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.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@spapaseit
spapaseit force-pushed the spapaseit/onboarding-shared-button-row branch from 61794f2 to 737d266 Compare November 30, 2026 10:02
@github-actions github-actions Bot added semver-minor New feature — triggers minor version bump and removed semver-patch Bug fix / internal — no release needed labels Nov 30, 2026
@spapaseit
spapaseit force-pushed the spapaseit/onboarding-shared-button-row branch from 737d266 to dbba918 Compare November 30, 2026 10:34

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-minor New feature — triggers minor version bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants