monkeytype/frontend
Seif Soliman e5b0978d4e
fix(settings): ensure themes UI is always up-to-date when renavigating (@byseif21) (#6581)
### Description
When (changing / adding or removing themes from favorite ) via command
line or from the current theme button "in page e.g test page" and then
navigating to Settings > Themes, the UI does not immediately reflect the
current theme changes . The user has to manually refresh the page to see
these changes.

**Now**
 UI automatically refreshes
to reflect the current theme selection and favorites without requiring
a manual page refresh.

- Added refreshThemeUI function in theme-picker.ts that updates all
  theme-related UI components
- Called this refresh function in the settings page's beforeShow
lifecycle hook to ensure the theme UI is always up-to-date when the page
is displayed.


**FOR TESTING BEFORE & AFTER:**
keep changing themes then navigate to the settings and check and keep
doing those things again to verify that the active theme and favorites
update.

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2025-07-27 19:43:43 +02:00
..
__tests__ refactor(schema): move font config to schema (@fehmer) (#6780) 2025-07-26 13:34:03 +02:00
docker fix: local development using docker not working with pnpm (@fehmer) (#6401) 2025-03-26 13:11:02 +01:00
scripts refactor(schema): move font config to schema (@fehmer) (#6780) 2025-07-26 13:34:03 +02:00
src fix(settings): ensure themes UI is always up-to-date when renavigating (@byseif21) (#6581) 2025-07-27 19:43:43 +02:00
static feat(language): add ABAP programming language (@hottek) (#6784) 2025-07-27 19:37:30 +02:00
.eslintrc.cjs chore: add eslint compat plugin (@fehmer) (#6542) 2025-05-12 16:52:01 +02:00
.firebaserc_example chore: add missing example file 2023-08-21 11:16:10 +02:00
.oxlintrc.json chore(deps): upgrade oxlint to 1.8.0, fix errors (@camc314) (#6776) 2025-07-24 14:32:12 +02:00
firebase.json chore: output version to version.json 2024-07-26 18:17:08 +02:00
gulpfile.js chore: add oxlint (@miodec) (#6455) 2025-04-16 17:18:50 +02:00
knip.json added knip to find unused exports 2023-08-10 18:32:33 +02:00
package.json chore(deps): upgrade oxlint to 1.8.0, fix errors (@camc314) (#6776) 2025-07-24 14:32:12 +02:00
tsconfig.json refactor: remove global type namespaces (@miodec) (#5907) 2024-09-23 15:34:16 +02:00
vite.config.dev.js refactor(schema): move font config to schema (@fehmer) (#6780) 2025-07-26 13:34:03 +02:00
vite.config.js refactor(schema): move font config to schema (@fehmer) (#6780) 2025-07-26 13:34:03 +02:00
vite.config.prod.js refactor(schema): move font config to schema (@fehmer) (#6780) 2025-07-26 13:34:03 +02:00
vitest.config.js refactor: move funboxes to a shared package (@miodec) (#6063) 2024-12-04 16:11:07 +01:00