Skip to content

feat: remove dark blue theme #14890

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
Oct 2, 2024
Merged

feat: remove dark blue theme #14890

merged 2 commits into from
Oct 2, 2024

Conversation

zxt-tzx
Copy link
Contributor

@zxt-tzx zxt-tzx commented Oct 1, 2024

saw this issue #14811, looks like an easy change

considered trying to modify the type exported from UpdateUserAppearanceSettingsRequest in typesGenerated.ts to be "light" | "dark", but not super sure how to generate types from the Go codebase, so have left this as it is

@cdr-bot cdr-bot bot added the community Pull Requests and issues created by the community. label Oct 1, 2024
Copy link

github-actions bot commented Oct 1, 2024

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@zxt-tzx
Copy link
Contributor Author

zxt-tzx commented Oct 1, 2024

I have read the CLA Document and I hereby sign the CLA

cdrcommunity added a commit to coder/cla that referenced this pull request Oct 1, 2024
@matifali matifali requested review from aslilac and chrifro October 1, 2024 13:21
@zxt-tzx
Copy link
Contributor Author

zxt-tzx commented Oct 1, 2024

the test-e2e test failed, can't tell if it's just a flaky test or something with the changes I've made

[stderr] [WebServer] 2024-10-01 13:26:12.993 [info]  coderd.agentrpc.yamux.stdlib: [ERR] yamux: Failed to read header: failed to get reader: failed to read frame header: EOF  owner=admin  workspace_name=43111e0b  agent_name=dev  request_id=108bea26-2d26-46a3-9a22-c675f4e09fa4

@aslilac
Copy link
Member

aslilac commented Oct 1, 2024

pardon our messy e2e test output. that line you're looking at is unrelated, the real error was:

==> Finished test external auth device: failed

with no extra details. 🙃 I'm assuming it's a flake and just started a re-run. I'll be back in a bit to check on it and give you a review.

Copy link
Member

@aslilac aslilac left a comment

Choose a reason for hiding this comment

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

we'll also want to add a db migration that sets the theme of any users currently using the dark blue theme back to the default, otherwise they won't see anything selected on the appearance settings page.

it should just look like:

UPDATE users SET theme_preference = '' WHERE theme_preference = 'darkBlue';

and the down migration can just be an empty file with a comment saying something like

-- Nothing to restore

You can create the migration files by running...

./coderd/database/migrations/create_migration.sh remove-dark-blue-theme

@zxt-tzx zxt-tzx force-pushed the feat/rm-dark-blue branch from 85c93a5 to 5f78f57 Compare October 2, 2024 10:17
@zxt-tzx zxt-tzx requested a review from aslilac October 2, 2024 10:17
@zxt-tzx zxt-tzx force-pushed the feat/rm-dark-blue branch from 5f78f57 to a9274ee Compare October 2, 2024 10:18
@zxt-tzx zxt-tzx force-pushed the feat/rm-dark-blue branch from a9274ee to f68e15e Compare October 2, 2024 10:19
Copy link
Member

@aslilac aslilac left a comment

Choose a reason for hiding this comment

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

looks great! thank you!

@aslilac aslilac merged commit d0a8424 into coder:main Oct 2, 2024
29 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community Pull Requests and issues created by the community.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants