Skip to content

NTP: Set target to 'new-tab' and 'new-window' properly when submitting Omnibar #1824

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 15, 2025

Conversation

noisysocks
Copy link
Contributor

Asana Task/Github Issue: https://app.asana.com/1/137249556945/project/1209121419454298/task/1210783311211753?focus=true

Description

target in omnibar_submitSearch and omnibar_submitChat should be new-window if shift is held down or new-tab if cmd is held down.

Testing Steps

Tests are included. You can manually verify by loading https://deploy-preview-1824--content-scope-scripts.netlify.app/build/pages/new-tab/?omnibar=true and inspecting the target field of the payload in the omnibar_submitSearch and omnibar_submitSearch notifications that are logged in DevTools when submitting the Search or Duck.ai inputs.

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

@noisysocks noisysocks requested review from shakyShane, mgurgel and a team as code owners July 15, 2025 03:55
@noisysocks noisysocks added the bug Something isn't working label Jul 15, 2025
Copy link

netlify bot commented Jul 15, 2025

Deploy Preview for content-scope-scripts ready!

Name Link
🔨 Latest commit 550cf15
🔍 Latest deploy log https://app.netlify.com/projects/content-scope-scripts/deploys/687621b69dd3d90008765670
😎 Deploy Preview https://deploy-preview-1824--content-scope-scripts.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

github-actions bot commented Jul 15, 2025

Temporary Branch Update

The temporary branch has been updated with the latest changes. Below are the details:

Please use the above install command to update to the latest version.

Copy link

github-actions bot commented Jul 15, 2025

[Beta] Generated file diff

Time updated: Tue, 15 Jul 2025 09:40:02 GMT

Integration
    - integration/pages/new-tab/dist/index.js

File has changed

Windows
    - windows/pages/new-tab/dist/index.js

File has changed

Apple
    - dist/pages/new-tab/dist/index.js

File has changed

cursor[bot]

This comment was marked as outdated.

@noisysocks noisysocks merged commit 60a562e into main Jul 15, 2025
16 checks passed
@noisysocks noisysocks deleted the randerson/fix-omnibar-submit-target branch July 15, 2025 09:48
mallexxx pushed a commit that referenced this pull request Jul 17, 2025
…g Omnibar (#1824)

* Set target to 'new-tab' and 'new-window' properly when submitting
searches and chats

* Simplify omnibar tests to use only cmd (Meta) key modifiers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants