Repository navigation
NTP: attachment chips UI updates - #3048
Conversation
Ports the Duck.ai composer attachment-chip redesign to the omnibar. Tab, PDF and image chips now share one AttachmentChip card: title, metadata (domain or file size) and icon + type row, or a full-bleed image preview, with hover/pressed fills, a scale-in entrance and a remove button that appears on hover. The row moves above the textarea and scrolls a newly added chip into view. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
[Beta] Generated file diffTime updated: Tue, 06 Oct 2026 17:25:53 GMT Apple
File has changed Integration
File has changed Windows
File has changed |
|
This PR requires a manual review and approval from a member of one of the following teams:
|
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Build Branch
Static preview entry points
QR codes (mobile preview)
Integration commandsnpm (Android / Extension): Swift Package Manager (Apple): .package(url: "https://github.com/duckduckgo/content-scope-scripts.git", branch: "pr-releases/moon0326/o-j/ntp-attachment-ui-changes")git submodule (Windows): git -C submodules/content-scope-scripts fetch origin pr-releases/moon0326/o-j/ntp-attachment-ui-changes
git -C submodules/content-scope-scripts checkout origin/pr-releases/moon0326/o-j/ntp-attachment-ui-changesPin to exact commitnpm (Android / Extension): Swift Package Manager (Apple): .package(url: "https://github.com/duckduckgo/content-scope-scripts.git", revision: "6c7e20b19a1bea9da9c1fca2d1726e6cb51106e2")git submodule (Windows): git -C submodules/content-scope-scripts fetch origin pr-releases/moon0326/o-j/ntp-attachment-ui-changes
git -C submodules/content-scope-scripts checkout 6c7e20b19a1bea9da9c1fca2d1726e6cb51106e2 |
sashalavron
left a comment
There was a problem hiding this comment.
Looks very good @moon0326 🔥
I added a couple of minor comments
Please make sure to test it e2e (may be even both windows/macOS cause of styles changes, to make sure it looks good on both platforms), and to follow up with translations. Approving in advance
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Tooltip wrapper prevented default on Enter/Space bubbling up from nested controls, so the attachment chip remove button couldn't be activated from the keyboard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…chment-ui-changes # Conflicts: # special-pages/pages/new-tab/integration-tests/new-tab.screenshots.spec.js-snapshots/omnibar-attached-file-chip-ntp-screenshots-dark-darwin.png # special-pages/pages/new-tab/integration-tests/new-tab.screenshots.spec.js-snapshots/omnibar-attached-file-chip-ntp-screenshots-light-darwin.png # special-pages/pages/new-tab/integration-tests/new-tab.screenshots.spec.js-snapshots/omnibar-attached-image-chip-ntp-screenshots-dark-darwin.png # special-pages/pages/new-tab/integration-tests/new-tab.screenshots.spec.js-snapshots/omnibar-attached-image-chip-ntp-screenshots-light-darwin.png # special-pages/pages/new-tab/integration-tests/new-tab.screenshots.spec.js-snapshots/omnibar-attached-mixed-chips-ntp-screenshots-dark-darwin.png # special-pages/pages/new-tab/integration-tests/new-tab.screenshots.spec.js-snapshots/omnibar-attached-mixed-chips-ntp-screenshots-light-darwin.png # special-pages/pages/new-tab/integration-tests/new-tab.screenshots.spec.js-snapshots/omnibar-attached-tab-chip-ntp-screenshots-dark-darwin.png # special-pages/pages/new-tab/integration-tests/new-tab.screenshots.spec.js-snapshots/omnibar-attached-tab-chip-ntp-screenshots-light-darwin.png # special-pages/pages/new-tab/integration-tests/new-tab.screenshots.spec.js-snapshots/omnibar-attachment-carousel-overflow-ntp-screenshots-dark-darwin.png # special-pages/pages/new-tab/integration-tests/new-tab.screenshots.spec.js-snapshots/omnibar-attachment-carousel-overflow-ntp-screenshots-light-darwin.png
Asana Task/Github Issue: https://app.asana.com/1/137249556945/project/1211592734365220/task/1218846454330664?focus=true
Description
Ports the Duck.ai composer attachment-chip redesign (frontend branch
moon0326/o-j/page-context-attachment-ui-changes) to the NTP omnibar. Only the chat-input changes are brought over; the sidebar variant does not apply here.AttachmentChipcard (116px): title, metadata line (domain or file size) and a 16px icon + type label ("Webpage" / "PDF"), or a full-bleed image preview.omnibar_attachmentTypeWebpagestring; newCloseXsmallIconandDocumentPdfColorIcon.Tooltipgains an optionalariaLabelso the card wrapper's accessible name doesn't include the nested remove label.Testing Steps
Checklist
Please tick all that apply:
🤖 Generated with Claude Code