Commit Graph

9 Commits

Author SHA1 Message Date
Kalle
806207d34e Fix SecurityError from comp-analyzer slider replaceState spam
Dragging the enemy SubDef / RES sliders on the comp-analyzer page
fired `useSearchParamState`'s setter on every intermediate value,
which calls `window.history.replaceState`. Browsers cap that at
100 calls per 10 seconds, so any sustained drag tripped:

    SecurityError: Attempt to use history.replaceState()
    more than 100 times per 10 seconds

Split the slider state into two cells: a local `useState` that drives
the slider thumb, label, and damage calculations on every change, and
the URL-backed hook value, which is only written on drag-end events
(`onPointerUp`, `onKeyUp`, `onBlur`). The URL now updates once per
interaction instead of once per pixel.
2026-05-13 21:24:02 +03:00
Kalle
ab5cb9d91e Drag to reorder weapons in comp analyzer
Some checks failed
E2E Tests / e2e (push) Has been cancelled
Tests and checks on push / run-checks-and-tests (push) Has been cancelled
Updates translation progress / update-translation-progress-issue (push) Has been cancelled
2026-04-21 08:59:58 +03:00
Kalle
dfa95bd92d Migrate to nested CSS 2026-03-28 16:30:28 +02:00
Kalle
fef1ffc955
Design refresh + a bunch of stuff (#2864)
Co-authored-by: hfcRed <hfcred@gmx.net>
2026-03-19 17:51:42 +02:00
Kalle
3ec5af1128 Filter out excessive combos in comp analyzer 2026-01-26 20:28:43 +02:00
Kalle
fce481982a Handle filtered damages showing damage types of weapons that were removed 2026-01-21 19:18:35 +02:00
Kalle
6009832864 Add remove all/add all to damage combo filtering 2026-01-20 20:41:28 +02:00
Kalle
593e3d1fa5 Add hit multiplier indicator to comp analyzer 2026-01-20 20:22:14 +02:00
Kalle
0e89ee7bb7
Comp Analyzer (#2759)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 17:58:50 +02:00