diff --git a/frontend/src/html/pages/account.html b/frontend/src/html/pages/account.html index b51c2723a..b1d7a856c 100644 --- a/frontend/src/html/pages/account.html +++ b/frontend/src/html/pages/account.html @@ -80,10 +80,6 @@ -
- Your speed style is: -
-
All-Time English Leaderboards
diff --git a/frontend/src/ts/pages/account.ts b/frontend/src/ts/pages/account.ts index b3076facb..a4d72418d 100644 --- a/frontend/src/ts/pages/account.ts +++ b/frontend/src/ts/pages/account.ts @@ -36,7 +36,6 @@ import Ape from "../ape"; import { AccountChart } from "@monkeytype/schemas/configs"; import { SortedTableWithLimit } from "../utils/sorted-table"; import { qs, qsa, qsr, onWindowLoad, ElementWithUtils } from "../utils/dom"; -import { mountAccountPage } from "../test/live-states"; let filterDebug = false; //toggle filterdebug export function toggleFilterDebug(): void { @@ -51,8 +50,6 @@ let visibleTableLines = 0; let testActivityEl: HTMLElement | null; let historyTable: SortedTableWithLimit>; -let accountDispose: () => void; - function loadMoreLines(lineIndex?: number): void { if (filteredResults === undefined || filteredResults.length === 0) return; let newVisibleLines; @@ -1245,12 +1242,10 @@ export const page = new Page({ afterHide: async (): Promise => { reset(); Skeleton.remove("pageAccount"); - accountDispose?.(); }, beforeShow: async (): Promise => { Skeleton.append("pageAccount", "main"); const snapshot = DB.getSnapshot(); - accountDispose = mountAccountPage(); await ResultFilters.appendDropdowns(update); ResultFilters.updateActive(); await Misc.sleep(0); diff --git a/frontend/src/ts/test/live-states.tsx b/frontend/src/ts/test/live-states.tsx index bfa0ed241..bb7dce51c 100644 --- a/frontend/src/ts/test/live-states.tsx +++ b/frontend/src/ts/test/live-states.tsx @@ -61,14 +61,3 @@ export function mountLiveCounters(): void { miniWrapper.native, ); } - -export function mountAccountPage(): () => void { - const wrapper = qsr("#accountSpeedStyle").setText(""); - const speedStyleDispose = render( - () => , - wrapper.native, - ); - return () => { - speedStyleDispose(); - }; -} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bf42a7053..bf3f19e0c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -224,7 +224,7 @@ importers: version: 10.0.0 '@vitest/coverage-v8': specifier: 4.0.15 - version: 4.0.15(vitest@4.0.15(@opentelemetry/api@1.8.0)(@types/node@24.9.1)(happy-dom@20.0.10)(jsdom@27.4.0)(sass@1.70.0)(terser@5.44.1)(tsx@4.16.2)(yaml@2.8.1)) + version: 4.0.15(vitest@4.0.15(@types/node@24.9.1)(happy-dom@20.0.10)(jsdom@27.4.0)(sass@1.70.0)(terser@5.44.1)(tsx@4.16.2)(yaml@2.8.1)) concurrently: specifier: 8.2.2 version: 8.2.2 @@ -411,7 +411,7 @@ importers: version: 5.0.2 '@vitest/coverage-v8': specifier: 4.0.15 - version: 4.0.15(vitest@4.0.15(@opentelemetry/api@1.8.0)(@types/node@24.9.1)(happy-dom@20.0.10)(jsdom@27.4.0)(sass@1.70.0)(terser@5.44.1)(tsx@4.16.2)(yaml@2.8.1)) + version: 4.0.15(vitest@4.0.15(@types/node@24.9.1)(happy-dom@20.0.10)(jsdom@27.4.0)(sass@1.70.0)(terser@5.44.1)(tsx@4.16.2)(yaml@2.8.1)) autoprefixer: specifier: 10.4.20 version: 10.4.20(postcss@8.4.31) @@ -433,9 +433,6 @@ importers: happy-dom: specifier: 20.0.10 version: 20.0.10 - jsdom: - specifier: 27.4.0 - version: 27.4.0 madge: specifier: 8.0.0 version: 8.0.0(typescript@5.9.3) @@ -9811,7 +9808,8 @@ packages: snapshots: - '@acemir/cssom@0.9.30': {} + '@acemir/cssom@0.9.30': + optional: true '@adobe/css-tools@4.4.4': {} @@ -9847,6 +9845,7 @@ snapshots: '@csstools/css-parser-algorithms': 3.0.5(@csstools/css-tokenizer@3.0.4) '@csstools/css-tokenizer': 3.0.4 lru-cache: 11.2.4 + optional: true '@asamuzakjp/dom-selector@6.7.6': dependencies: @@ -9855,8 +9854,10 @@ snapshots: css-tree: 3.1.0 is-potential-custom-element-name: 1.0.1 lru-cache: 11.2.4 + optional: true - '@asamuzakjp/nwsapi@2.3.9': {} + '@asamuzakjp/nwsapi@2.3.9': + optional: true '@babel/code-frame@7.27.1': dependencies: @@ -10747,12 +10748,14 @@ snapshots: dependencies: '@jridgewell/trace-mapping': 0.3.9 - '@csstools/color-helpers@5.1.0': {} + '@csstools/color-helpers@5.1.0': + optional: true '@csstools/css-calc@2.1.4(@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4))(@csstools/css-tokenizer@3.0.4)': dependencies: '@csstools/css-parser-algorithms': 3.0.5(@csstools/css-tokenizer@3.0.4) '@csstools/css-tokenizer': 3.0.4 + optional: true '@csstools/css-color-parser@3.1.0(@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4))(@csstools/css-tokenizer@3.0.4)': dependencies: @@ -10760,14 +10763,18 @@ snapshots: '@csstools/css-calc': 2.1.4(@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4))(@csstools/css-tokenizer@3.0.4) '@csstools/css-parser-algorithms': 3.0.5(@csstools/css-tokenizer@3.0.4) '@csstools/css-tokenizer': 3.0.4 + optional: true '@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4)': dependencies: '@csstools/css-tokenizer': 3.0.4 + optional: true - '@csstools/css-syntax-patches-for-csstree@1.0.23': {} + '@csstools/css-syntax-patches-for-csstree@1.0.23': + optional: true - '@csstools/css-tokenizer@3.0.4': {} + '@csstools/css-tokenizer@3.0.4': + optional: true '@dabh/diagnostics@2.0.3': dependencies: @@ -11085,7 +11092,8 @@ snapshots: '@eslint/core': 0.17.0 levn: 0.4.1 - '@exodus/bytes@1.8.0': {} + '@exodus/bytes@1.8.0': + optional: true '@exodus/schemasafe@1.3.0': {} @@ -12913,23 +12921,6 @@ snapshots: '@typescript-eslint/types': 7.18.0 eslint-visitor-keys: 3.4.3 - '@vitest/coverage-v8@4.0.15(vitest@4.0.15(@opentelemetry/api@1.8.0)(@types/node@24.9.1)(happy-dom@20.0.10)(jsdom@27.4.0)(sass@1.70.0)(terser@5.44.1)(tsx@4.16.2)(yaml@2.8.1))': - dependencies: - '@bcoe/v8-coverage': 1.0.2 - '@vitest/utils': 4.0.15 - ast-v8-to-istanbul: 0.3.8 - istanbul-lib-coverage: 3.2.2 - istanbul-lib-report: 3.0.1 - istanbul-lib-source-maps: 5.0.6 - istanbul-reports: 3.2.0 - magicast: 0.5.1 - obug: 2.1.1 - std-env: 3.10.0 - tinyrainbow: 3.0.3 - vitest: 4.0.15(@opentelemetry/api@1.8.0)(@types/node@24.9.1)(happy-dom@20.0.10)(jsdom@27.4.0)(sass@1.70.0)(terser@5.44.1)(tsx@4.16.2)(yaml@2.8.1) - transitivePeerDependencies: - - supports-color - '@vitest/coverage-v8@4.0.15(vitest@4.0.15(@types/node@20.5.1)(happy-dom@20.0.10)(jsdom@27.4.0)(sass@1.70.0)(terser@5.44.1)(tsx@4.16.2)(yaml@2.8.1))': dependencies: '@bcoe/v8-coverage': 1.0.2 @@ -12947,6 +12938,23 @@ snapshots: transitivePeerDependencies: - supports-color + '@vitest/coverage-v8@4.0.15(vitest@4.0.15(@types/node@24.9.1)(happy-dom@20.0.10)(jsdom@27.4.0)(sass@1.70.0)(terser@5.44.1)(tsx@4.16.2)(yaml@2.8.1))': + dependencies: + '@bcoe/v8-coverage': 1.0.2 + '@vitest/utils': 4.0.15 + ast-v8-to-istanbul: 0.3.8 + istanbul-lib-coverage: 3.2.2 + istanbul-lib-report: 3.0.1 + istanbul-lib-source-maps: 5.0.6 + istanbul-reports: 3.2.0 + magicast: 0.5.1 + obug: 2.1.1 + std-env: 3.10.0 + tinyrainbow: 3.0.3 + vitest: 4.0.15(@opentelemetry/api@1.8.0)(@types/node@24.9.1)(happy-dom@20.0.10)(jsdom@27.4.0)(sass@1.70.0)(terser@5.44.1)(tsx@4.16.2)(yaml@2.8.1) + transitivePeerDependencies: + - supports-color + '@vitest/expect@4.0.15': dependencies: '@standard-schema/spec': 1.0.0 @@ -13415,6 +13423,7 @@ snapshots: bidi-js@1.0.3: dependencies: require-from-string: 2.0.2 + optional: true bignumber.js@9.1.2: {} @@ -14140,6 +14149,7 @@ snapshots: dependencies: mdn-data: 2.12.2 source-map-js: 1.2.1 + optional: true css-what@6.1.0: {} @@ -14151,6 +14161,7 @@ snapshots: '@csstools/css-syntax-patches-for-csstree': 1.0.23 css-tree: 3.1.0 lru-cache: 11.2.4 + optional: true csstype@3.1.3: {} @@ -14166,6 +14177,7 @@ snapshots: dependencies: whatwg-mimetype: 4.0.0 whatwg-url: 15.1.0 + optional: true data-view-buffer@1.0.2: dependencies: @@ -14224,7 +14236,8 @@ snapshots: decamelize@1.2.0: {} - decimal.js@10.6.0: {} + decimal.js@10.6.0: + optional: true decko@1.2.0: {} @@ -14533,7 +14546,8 @@ snapshots: entities@5.0.0: {} - entities@6.0.1: {} + entities@6.0.1: + optional: true env-paths@2.2.1: optional: true @@ -15740,6 +15754,7 @@ snapshots: '@exodus/bytes': 1.8.0 transitivePeerDependencies: - '@exodus/crypto' + optional: true html-entities@2.3.3: {} @@ -16100,7 +16115,8 @@ snapshots: is-plain-obj@1.1.0: {} - is-potential-custom-element-name@1.0.1: {} + is-potential-custom-element-name@1.0.1: + optional: true is-promise@4.0.0: {} @@ -16333,6 +16349,7 @@ snapshots: - bufferutil - supports-color - utf-8-validate + optional: true jsep@1.4.0: {} @@ -16777,7 +16794,8 @@ snapshots: math-intrinsics@1.1.0: {} - mdn-data@2.12.2: {} + mdn-data@2.12.2: + optional: true media-typer@0.3.0: {} @@ -17785,6 +17803,7 @@ snapshots: parse5@8.0.0: dependencies: entities: 6.0.1 + optional: true parseurl@1.3.3: {} @@ -18579,6 +18598,7 @@ snapshots: saxes@6.0.0: dependencies: xmlchars: 2.2.0 + optional: true scheduler@0.23.2: dependencies: @@ -19268,7 +19288,8 @@ snapshots: transitivePeerDependencies: - encoding - symbol-tree@3.2.4: {} + symbol-tree@3.2.4: + optional: true tapable@2.2.1: {} @@ -19426,11 +19447,13 @@ snapshots: tinyrainbow@3.0.3: {} - tldts-core@7.0.19: {} + tldts-core@7.0.19: + optional: true tldts@7.0.19: dependencies: tldts-core: 7.0.19 + optional: true tmp@0.0.33: dependencies: @@ -19463,6 +19486,7 @@ snapshots: tough-cookie@6.0.0: dependencies: tldts: 7.0.19 + optional: true toxic@1.0.1: dependencies: @@ -19481,6 +19505,7 @@ snapshots: tr46@6.0.0: dependencies: punycode: 2.3.1 + optional: true tree-kill@1.2.2: {} @@ -20032,6 +20057,7 @@ snapshots: w3c-xmlserializer@5.0.0: dependencies: xml-name-validator: 5.0.0 + optional: true walkdir@0.4.1: {} @@ -20062,7 +20088,8 @@ snapshots: webidl-conversions@7.0.0: {} - webidl-conversions@8.0.1: {} + webidl-conversions@8.0.1: + optional: true webpack-sources@3.2.3: {} @@ -20082,7 +20109,8 @@ snapshots: whatwg-mimetype@3.0.0: {} - whatwg-mimetype@4.0.0: {} + whatwg-mimetype@4.0.0: + optional: true whatwg-url@13.0.0: dependencies: @@ -20093,6 +20121,7 @@ snapshots: dependencies: tr46: 6.0.0 webidl-conversions: 8.0.1 + optional: true whatwg-url@5.0.0: dependencies: @@ -20343,7 +20372,8 @@ snapshots: ws@7.5.10: {} - ws@8.19.0: {} + ws@8.19.0: + optional: true wsl-utils@0.1.0: dependencies: @@ -20351,9 +20381,11 @@ snapshots: xdg-basedir@4.0.0: {} - xml-name-validator@5.0.0: {} + xml-name-validator@5.0.0: + optional: true - xmlchars@2.2.0: {} + xmlchars@2.2.0: + optional: true xtend@4.0.2: {}