monkeytype/frontend
Biplav Barua 9896c1816e
refactor: move event handlers from simple-modals to respective files (@biplavbarua) (#7333)
This PR addresses the `TODO` in `simple-modals.ts` by moving event
handlers to their respective page controller files
(`account-settings.ts` and `settings.ts`).

**Key Changes:**
1.  Moved `.pageAccountSettings` handlers to `account-settings.ts`.
2.  Moved `.pageSettings` handlers to `settings.ts`.
3. Extracted `PopupKey`, `list`, and `showPopup` to
`simple-modals-base.ts` to resolve circular dependencies introduced by
importing page controllers in `simple-modals.ts` (which now import
`showPopup` from base).

**Testing:**
- Verified no circular dependencies with `madge`.
- Verified type safety with `tsc`.
- Verified build success.

---------

Co-authored-by: Jack <jack@monkeytype.com>
2026-01-15 16:16:50 +01:00
..
__tests__ refactor: restructure the components folder 2026-01-14 22:21:25 +01:00
docker chore: use oxfmt for formatting (@miodec) (#7187) 2025-12-15 16:53:50 +01:00
scripts chore: move main linting to oxlint (@miodec) (#7144) 2025-12-15 22:16:16 +01:00
src refactor: move event handlers from simple-modals to respective files (@biplavbarua) (#7333) 2026-01-15 16:16:50 +01:00
static refactor: convert footer to a component (@fehmer, @miodec) (#7346) 2026-01-14 16:19:51 +01:00
vite-plugins fix: disable oxlint-overlay on production (@fehmer) (#7348) 2026-01-12 13:02:04 +01:00
.firebaserc_example chore: add missing example file 2023-08-21 11:16:10 +02:00
.oxlintrc-plugin.json chore: add minimal solidjs integration (@fehmer, @miodec) (#7341) 2026-01-10 21:35:29 +01:00
.oxlintrc.json chore: move main linting to oxlint (@miodec) (#7144) 2025-12-15 22:16:16 +01:00
eslint.config.js chore: move main linting to oxlint (@miodec) (#7144) 2025-12-15 22:16:16 +01:00
firebase.json
package.json chore: upgrade oxc 2026-01-12 13:02:58 +01:00
tsconfig.json chore: add minimal solidjs integration (@fehmer, @miodec) (#7341) 2026-01-10 21:35:29 +01:00
vite.config.ts fix: disable oxlint-overlay on production (@fehmer) (#7348) 2026-01-12 13:02:04 +01:00
vitest.config.ts refactor: covert version button and version history modal to a component (@miodec, @fehmer) (#7343) 2026-01-11 22:15:54 +01:00