Skip to content

Use Params.prototype.toSearchParams() in developer-mode.mjs#511

Merged
camillobruni merged 3 commits into
WebKit:mainfrom
camillobruni:2025-04-30_dev_mode_url_param
May 5, 2025
Merged

Use Params.prototype.toSearchParams() in developer-mode.mjs#511
camillobruni merged 3 commits into
WebKit:mainfrom
camillobruni:2025-04-30_dev_mode_url_param

Conversation

@camillobruni

@camillobruni camillobruni commented Apr 30, 2025

Copy link
Copy Markdown
Contributor

Remove duplicated code and directly use Params.prototype.toSearchParams().
Now the Params class is the centralized place to implement the serialization logic.

@camillobruni camillobruni changed the title Use Params.protype.toSearchParams() in developer-mode.mjs Use Params.prototype.toSearchParams() in developer-mode.mjs Apr 30, 2025
@netlify

netlify Bot commented Apr 30, 2025

Copy link
Copy Markdown

Deploy Preview for webkit-speedometer-preview ready!

Name Link
🔨 Latest commit d3b0683
🔍 Latest deploy log https://app.netlify.com/sites/webkit-speedometer-preview/deploys/6818bf063096f100082e4e69
😎 Deploy Preview https://deploy-preview-511--webkit-speedometer-preview.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 site configuration.

@camillobruni camillobruni requested a review from julienw April 30, 2025 07:49
@camillobruni camillobruni added the trivial change A change that doesn't affect benchmark results label Apr 30, 2025

@julienw julienw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks good to me, thanks

I noticed one small bug (that was present before): after clicking "unselect all", I expect to see the parameter suites=, but instead the parameter disappears completely. So when reloading the page we're back to the default set of suites.

@camillobruni

Copy link
Copy Markdown
Contributor Author
  • Using Params.tags with [ "default"] by default now
  • Ignore single default tag
  • Support no suite selection (will still display a warning)

@camillobruni camillobruni merged commit bb9e3e1 into WebKit:main May 5, 2025
8 checks passed
@camillobruni camillobruni deleted the 2025-04-30_dev_mode_url_param branch May 5, 2025 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

trivial change A change that doesn't affect benchmark results

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants