Skip to content

feat(onboarding): show bundled site icons in the top sites picker - #3255

Open
spapaseit wants to merge 1 commit into
spapaseit/onboarding-shared-button-rowfrom
spapaseit/onboarding-picker-icons
Open

spapaseit wants to merge 1 commit into
spapaseit/onboarding-shared-button-rowfrom
spapaseit/onboarding-picker-icons

Conversation

@spapaseit

Copy link
Copy Markdown
Contributor

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

Description

Stacked on #3244.

  • The top sites picker now shows each site's icon instead of a placeholder letter. Icons are 64×64 transparent PNGs in public/assets/img/v4/top-sites/, named <site.id>.png and drawn at 32px. Native reads the same files to seed its favicon cache.
  • If an id has no bundled file, SiteIcon falls back to the site's first letter through onError. The id goes through encodeURIComponent first, since native can send any string.
  • I wrote a small SiteIcon rather than reusing FaviconWithState, because the shared one expects native favicon URLs and globe fallback images and draws its own letter tile.
  • To regenerate an icon, export the logo component as SVG, delete the full-size background <rect>, and rasterise it at 64px. The PNG export bakes in the dark canvas colour.

Testing Steps

  • npm run test-int -- pages/onboarding/integration-tests/onboarding.v4.spec.js --reporter list
  • In the Build Branch preview, open onboarding/?steps=welcome&steps=topSitesPicker&steps=addressBarMode&page=topSitesPicker&typingEffect=none and check all 10 icons in light and dark mode.

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

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

[Beta] Generated file diff

Time updated: Mon, 30 Nov 2026 10:37:10 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

New Files
    - apple/pages/onboarding/assets/img/v4/top-sites/amazon.png
  • apple/pages/onboarding/assets/img/v4/top-sites/bbcNews.png
  • apple/pages/onboarding/assets/img/v4/top-sites/facebook.png
  • apple/pages/onboarding/assets/img/v4/top-sites/gmail.png
  • apple/pages/onboarding/assets/img/v4/top-sites/netflix.png
  • apple/pages/onboarding/assets/img/v4/top-sites/outlook.png
  • apple/pages/onboarding/assets/img/v4/top-sites/reddit.png
  • apple/pages/onboarding/assets/img/v4/top-sites/wikipedia.png
  • apple/pages/onboarding/assets/img/v4/top-sites/yahooMail.png
  • apple/pages/onboarding/assets/img/v4/top-sites/youtube.png
  • integration/pages/onboarding/assets/img/v4/top-sites/amazon.png
  • integration/pages/onboarding/assets/img/v4/top-sites/bbcNews.png
  • integration/pages/onboarding/assets/img/v4/top-sites/facebook.png
  • integration/pages/onboarding/assets/img/v4/top-sites/gmail.png
  • integration/pages/onboarding/assets/img/v4/top-sites/netflix.png
  • integration/pages/onboarding/assets/img/v4/top-sites/outlook.png
  • integration/pages/onboarding/assets/img/v4/top-sites/reddit.png
  • integration/pages/onboarding/assets/img/v4/top-sites/wikipedia.png
  • integration/pages/onboarding/assets/img/v4/top-sites/yahooMail.png
  • integration/pages/onboarding/assets/img/v4/top-sites/youtube.png
  • windows/pages/onboarding/assets/img/v4/top-sites/amazon.png
  • windows/pages/onboarding/assets/img/v4/top-sites/bbcNews.png
  • windows/pages/onboarding/assets/img/v4/top-sites/facebook.png
  • windows/pages/onboarding/assets/img/v4/top-sites/gmail.png
  • windows/pages/onboarding/assets/img/v4/top-sites/netflix.png
  • windows/pages/onboarding/assets/img/v4/top-sites/outlook.png
  • windows/pages/onboarding/assets/img/v4/top-sites/reddit.png
  • windows/pages/onboarding/assets/img/v4/top-sites/wikipedia.png
  • windows/pages/onboarding/assets/img/v4/top-sites/yahooMail.png
  • windows/pages/onboarding/assets/img/v4/top-sites/youtube.png

❌ File only exists in new changeset

@github-actions github-actions Bot added the semver-minor New feature — triggers minor version bump label Nov 26, 2026
@spapaseit
spapaseit added this pull request to stack #3245 November 26, 2026 21:46
@spapaseit
spapaseit marked this pull request as ready for review November 26, 2026 21:49

@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 requested a review from shakyShane November 26, 2026 21:55
@spapaseit spapaseit self-assigned this Nov 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Build Branch

Branch pr-releases/spapaseit/onboarding-picker-icons
Commit 003845fc46
Updated November 30, 2026 at 10:36:04 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-picker-icons

Swift Package Manager (Apple):

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

git submodule (Windows):

git -C submodules/content-scope-scripts fetch origin pr-releases/spapaseit/onboarding-picker-icons
git -C submodules/content-scope-scripts checkout origin/pr-releases/spapaseit/onboarding-picker-icons
Pin to exact commit

npm (Android / Extension):

npm i github:duckduckgo/content-scope-scripts#003845fc46dc4b54ec3fa80b79d611464db53ce6

Swift Package Manager (Apple):

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

git submodule (Windows):

git -C submodules/content-scope-scripts fetch origin pr-releases/spapaseit/onboarding-picker-icons
git -C submodules/content-scope-scripts checkout 003845fc46dc4b54ec3fa80b79d611464db53ce6

@spapaseit
spapaseit force-pushed the spapaseit/onboarding-picker-icons branch from ddc0d1b to 10b5f69 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