Skip to content

Introduce an "enhanced" theme selector for user settings#5251

Merged
ch0rizo merged 6 commits into
masterfrom
theme-upgrade
Mar 4, 2026
Merged

Introduce an "enhanced" theme selector for user settings#5251
ch0rizo merged 6 commits into
masterfrom
theme-upgrade

Conversation

@ivarnakken
Copy link
Copy Markdown
Member

Description

Not a fan of the radio buttons

Result

  • Changes look good on both light and dark theme.
  • Changes look good with different viewports (mobile, tablet, etc.).
  • Changes look good with slower Internet connections.
Before After
image image
image image

Testing

  • I have thoroughly tested my changes.

Changing themes works fine, and I've tested that changing it through the navbar updates the form (unlike before).


Resolves ABA-1212

@ivarnakken ivarnakken added enhancement Pull requests that make enhancements, instead of just purely new features review-needed Pull requests that need review new-feature Pull requests that introduce a new feature labels Dec 25, 2024
@ivarnakken ivarnakken requested a review from a team December 25, 2024 09:48
@ivarnakken ivarnakken self-assigned this Dec 25, 2024
@linear
Copy link
Copy Markdown

linear Bot commented Dec 25, 2024

@vercel
Copy link
Copy Markdown

vercel Bot commented Dec 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
lego-bricks-storybook ⬜️ Ignored (Inspect) Visit Preview Jan 6, 2025 7:24pm

Copy link
Copy Markdown
Contributor

@Bestem0r Bestem0r left a comment

Choose a reason for hiding this comment

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

Looks really good! 🤩

@ivarnakken ivarnakken added the approved Pull requests that have been approved label Dec 25, 2024
@ivarnakken ivarnakken changed the title Introduce a "enhanced" theme selector for user settings Introduce an "enhanced" theme selector for user settings Dec 25, 2024
@emillub
Copy link
Copy Markdown
Contributor

emillub commented Jan 7, 2025

Looks very nice! Just curious; do you know why cypress cant save changes? I could do it.

@ivarnakken
Copy link
Copy Markdown
Member Author

Just curious; do you know why cypress cant save changes? I could do it.

nooo idea 😆

@norbye
Copy link
Copy Markdown
Member

norbye commented Jan 7, 2025

Just curious; do you know why cypress cant save changes? I could do it.

nooo idea 😆

Doesn't work for me. I can press the save-button if I change the theme, but if I do not edit it the save button is deactivated :'(

The button is also deactivated if I change it and then change back before I try to save

Hmm upon further inspection what happened to me might be on purpose, in contrast to what happens to cypress

@norbye
Copy link
Copy Markdown
Member

norbye commented Jan 7, 2025

Copy link
Copy Markdown
Contributor

@falbru falbru left a comment

Choose a reason for hiding this comment

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

Looks really good! Great job 😍

@ivarnakken
Copy link
Copy Markdown
Member Author

ivarnakken commented Jan 10, 2025

doesn't happen locally but for some reason it does with cypress

Yes it's impossible to reproduce locally ..

Thanks a lot for looking into it though! ❤️

Copy link
Copy Markdown
Member

@ShaileshS1702 ShaileshS1702 left a comment

Choose a reason for hiding this comment

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

This is really cool!

@ch0rizo
Copy link
Copy Markdown
Contributor

ch0rizo commented Jan 26, 2025

One step closer to looking better than TIHLDEs website😆

Copy link
Copy Markdown
Member

@eikhr eikhr left a comment

Choose a reason for hiding this comment

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

Looks very good!

@ivarnakken
Copy link
Copy Markdown
Member Author

lets go 🔥

@ch0rizo
Copy link
Copy Markdown
Contributor

ch0rizo commented Mar 4, 2026

lets go 🔥

Its time😝

@norbye
Copy link
Copy Markdown
Member

norbye commented Mar 4, 2026

lets go 🔥

Its time😝

Glad to see this is alive 🤘

@ch0rizo
Copy link
Copy Markdown
Contributor

ch0rizo commented Mar 4, 2026

Context for the thread above:

SSR/hydration was reinitializing the profile form, which reset Final Form’s pristine state after field edits, so the "Lagre endringer" submit button stayed disabled in CI even though the Cypress flow worked locally. Impossible to reproduce locally and CI Cypress run is flaky, giving unreliable result when nothing changed😩

@ch0rizo ch0rizo merged commit 2b64a0b into master Mar 4, 2026
7 checks passed
@ch0rizo ch0rizo deleted the theme-upgrade branch March 4, 2026 13:59
@ivarnakken
Copy link
Copy Markdown
Member Author

Context for the thread above:

SSR/hydration was reinitializing the profile form, which reset Final Form’s pristine state after field edits, so the "Lagre endringer" submit button stayed disabled in CI even though the Cypress flow worked locally. Impossible to reproduce locally and CI Cypress run is flaky, giving unreliable result when nothing changed😩

😩 i was before my time then - would've needed claude to resolve that bitch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Pull requests that have been approved enhancement Pull requests that make enhancements, instead of just purely new features new-feature Pull requests that introduce a new feature review-needed Pull requests that need review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants