Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Svelte rollout: add toggles for svelte-enabled pages#63960

Merged
camdencheek merged 6 commits into
mainfrom
cc/svelte-opt-in-out
Jul 19, 2024
Merged

Svelte rollout: add toggles for svelte-enabled pages#63960
camdencheek merged 6 commits into
mainfrom
cc/svelte-opt-in-out

Conversation

@camdencheek

@camdencheek camdencheek commented Jul 19, 2024

Copy link
Copy Markdown
Member

This is the last bit of work before flipping the switch on dotcom. Implemented based on the behavior @taiyab and I aligned on this morning. Can definitely still use a little sparkle, but I'll let others follow up on that.

It adds a toggle button to all pages that we have a svelte version of. The toggle is off when you're in the react webapp and on when you're in the svelte webapp. It also updates the copy of the popover to be more appropriate for the dotcom crowd.

On a React page:
screenshot-2024-07-19_16-03-39@2x

On a Svelte page:
screenshot-2024-07-19_16-03-06@2x

Test plan

Tested locally that I can enable/disable the toggle to switch between pages, that it is persistent, and that it looks relatively consistent between the versions.

@cla-bot cla-bot Bot added the cla-signed label Jul 19, 2024
@camdencheek camdencheek marked this pull request as ready for review July 19, 2024 22:01

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Had to add a toggle to the svelte version. Copied the minimal amount from the wildcard toggle.

@camdencheek camdencheek requested a review from a team July 19, 2024 22:04

@peterguy peterguy 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.

Lookin' good!

@camdencheek camdencheek force-pushed the cc/svelte-opt-in-out branch from 928ddff to 884c6de Compare July 19, 2024 22:25
@camdencheek camdencheek force-pushed the cc/svelte-opt-in-out branch from ecf4b10 to edf633b Compare July 19, 2024 22:44
@camdencheek camdencheek merged commit 781aebb into main Jul 19, 2024
@camdencheek camdencheek deleted the cc/svelte-opt-in-out branch July 19, 2024 22:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants