Files
romm/frontend/src/v2/lib
Georges-Antoine Assi d248df8623 refactor(v2): merge reduced-effects into useReducedMotion
Two hooks modelled overlapping concerns and useReducedEffects imported
useReducedMotion for its default, coupling them. Collapse to a single
useReducedMotion that owns the whole "reduce motion / effects" axis:

  enabled = override ?? OS prefers-reduced-motion   (+ toggle())

It drives the one r-v2-reduced-motion root class (background blur, cover
blur-up, the global animation/transition neutralize) and the JS motion
gates (cover CD-spin, view-transition morphs, RExpandTransition, RBox3D).
One hook, one Settings toggle, one source of truth.

- Delete useReducedEffects; move its override tests onto useReducedMotion.
- Rename the class r-v2-reduced-effects -> r-v2-reduced-motion and the
  localStorage key to settings.v2.reducedMotion.
- Rename the i18n keys reduced-effects(-desc) -> reduced-motion(-desc)
  across all locales; title is now "Reduced motion" (the description
  already covered both blur and animation).

Generated-By: PostHog Code
Task-Id: 6690877a-9c32-4c91-a78b-3d6fd3851fb7
2026-07-16 11:25:27 -04:00
..
2026-07-16 07:57:32 -04:00