8000 feat: check for classic flow on the create workspace page by jaaydenh · Pull Request #17852 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: check for classic flow on the create workspace page #17852

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 2 commits into from
May 16, 2025

Conversation

jaaydenh
Copy link
Contributor
@jaaydenh jaaydenh commented May 15, 2025

the local storage key is only set when a user presses the opt-in or opt-out buttons

Overall, this feels less annoying for users to have to opt-in/opt-out on every visit to the create workspace page. Maybe less of a concern for end users but more of a concern while dogfooding.

Pros:

  • User gets the admin setting value for the template as long as they didn't opt-in or opt-out
  • User can choose to opt-in/out-out at will and their preference is saved

@jaaydenh jaaydenh self-assigned this May 15, 2025
@jaaydenh jaaydenh requested review from aslilac and Emyrk May 15, 2025 13:04
Copy link
Member
@Emyrk Emyrk left a comment

Choose a reason for hiding this comment

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

I will stamp when my PR gets merged, this LG 👍

Base automatically changed from stevenmasley/template_dyn_param_toggle to main May 15, 2025 22:55
@jaaydenh jaaydenh force-pushed the jaaydenh/check-for-classic-flow branch from a7619b6 to e948305 Compare May 16, 2025 09:50
@jaaydenh jaaydenh force-pushed the jaaydenh/check-for-classic-flow branch from e948305 to 411925a Compare May 16, 2025 14:06
@jaaydenh jaaydenh requested a review from Emyrk May 16, 2025 15:44
const localStorageKey = optOutKey(templateId);
const storedOptOutString = localStorage.getItem(localStorageKey);

let optOutResult: boolean;
Copy link
Member

Choose a reason for hiding this comment

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

could we use a ternary here?

Copy link
Member
@Emyrk Emyrk 8000 left a comment

Choose a reason for hiding this comment

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

Tested manually! 👍

@jaaydenh jaaydenh merged commit f8f4dc6 into main May 16, 2025
29 checks passed
@jaaydenh jaaydenh deleted the jaaydenh/check-for-classic-flow branch May 16, 2025 17:41
@github-actions github-actions bot locked and limited conversation to collaborators May 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0