Commit Graph

13 Commits

Author SHA1 Message Date
simoleo89 a776960650 fix(camera): full roll no longer discards the newest photo
When the roll hit CAMERA_ROLL_LIMIT the capture path alerted "full" then did
clone.pop() (dropping the NEWEST photo) and pushed the new one — so once full the
roll was pinned at the limit and every further shot just replaced the most-recent
picture. Block the shot instead (return after the alert).
2026-06-13 18:15:31 +02:00
simoleo89 d6cac249c6 fix(camera): reset selected picture index after deleting a photo
The 'delete' action spliced the selected picture out of the roll but never moved
selectedPictureIndex, so it kept pointing at the slot the deleted photo vacated —
now a different picture (or past the end), making the preview show the wrong
photo or vanish while the UI still thinks one is selected. Move the selection
back one after delete.
2026-06-13 18:15:31 +02:00
simoleo89 a39aa37231 React 19: useRef<T>() -> useRef<T>(null) across 15 sites
React 19 dropped the no-arg useRef overload — the type-only useRef<T>()
form (no initial value) is gone, every call must pass an initial value.
The codebase had 15 occurrences of useRef<HTMLDivElement>() (DOM ref
pattern) all flagged by tsgo as 'Expected 1 arguments, but got 0'.

Mechanical sweep to useRef<HTMLDivElement>(null) — no behavior change,
React still hands out a ref object with .current set to null at mount.

Net tsgo error count: 57 -> 42.
2026-05-11 21:33:58 +02:00
simoleo89 535fa71020 ESLint --fix: auto-fix brace-style, indent, semi, no-trailing-spaces
Run eslint --fix across src/ to clear ~1900 mechanical lint errors
surfaced by the @typescript-eslint v8 + react-hooks v7 + react-compiler
upgrade in the React 19 modernization PR.

Issues fixed automatically:
- brace-style (Allman): try/catch one-liners reformatted to multi-line
- indent: tab-vs-space and depth corrections
- semi: missing trailing semicolons
- no-trailing-spaces

No semantic changes. Remaining 701 errors are real-code issues
(set-state-in-effect, rules-of-hooks, no-unsafe-* type checks) that
need manual per-file review.

https://claude.ai/code/session_01GrR87LAqnAEyKG2ZbmQt5Q
2026-05-11 16:31:50 +00:00
duckietm d1080fafbf 🆙 Fix the save / delete button in the camera editor 2026-03-18 10:23:01 +01:00
duckietm ae7fe4c19c 🆙 Small update to Camera editor 2026-03-18 09:42:15 +01:00
duckietm 9a6638219d 🆙 Camera Fix 2026-03-18 09:17:04 +01:00
duckietm 2973c18ead 🆙 Small Camera Layout fix 2026-03-17 17:21:16 +01:00
duckietm dc82d2cfd5 🆙 WiP Camera 2026-03-02 12:54:31 +01:00
duckietm 1629f63f9b 🆙 Camera preview fix & for archive the org habbo fonts from SWF 2026-02-27 14:23:51 +01:00
duckietm faadd0cf31 🆙 Better way to load the slider 2026-02-25 11:51:03 +01:00
duckietm f2446d232b 🆙 Upgrade to tailwind css 4.2.0 2026-02-20 08:17:17 +01:00
DuckieTM 7feb10ab15 🆙 Init V3 2026-01-31 09:10:52 +01:00