Commit Graph

15 Commits

Author SHA1 Message Date
fee3ce8627 Migrate all inline JS to Stimulus controllers
Add stimulus-rails gem and wire up 7 controllers:
- measurements_view_controller: view toggle (compact/wide) via localStorage
- measurements_controller: grouped rows MutationObserver
- charts_controller: Plotly chart rendering
- form_controller: keyboard shortcuts (Escape/Enter) and submit validation
- details_controller: quantity picker state, focusout close, MutationObserver
- readout_unit_controller: default unit button enable/disable + PATCH submission
- drag_controller: drag-and-drop for quantity reparenting and unit rebasing

Remove all inline onclick/onkeydown/ondrag*/onsubmit handlers from templates.
Remove all window.* global exports from application.js.
Remove bare <script> block from measurements/_form.html.erb.
Remove turbo:load listeners for behavior now in controller connect().

application.js now only contains: Turbo Stream custom action definitions
and the showPage visibility listener.

Document Stimulus conventions in CLAUDE.md.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 13:44:44 +00:00
83b064ef3c Merge recover password/resend confirmation forms into sign in/register
Closes #65, #66
2026-03-01 20:04:42 +01:00
84945fa4b4 Simplify and improve labeled form 2026-02-22 00:53:18 +01:00
f298acd726 Display errors for table-embedeed forms 2024-03-15 02:40:17 +01:00
0dffde414e Fix class assignment 2024-01-23 17:22:09 +01:00
dec3af27bf Migrate Users views to grid layout + turbo_stream
Closes #7
2024-01-17 03:30:04 +01:00
d98057caad Upgrade layout to grid+flex 2023-12-04 20:36:03 +01:00
e4f595a329 Fix translations and enable i18n testing 2023-05-14 16:37:53 +02:00
7dabbd3036 Update and test password recovery forms 2023-04-19 19:29:12 +02:00
894c21f322 Move reset buttons to corresponding forms 2023-04-19 01:32:06 +02:00
bd2557d261 Add registration form 2023-04-13 19:52:23 +02:00
3f2a92a6e5 Test "sign in" 2023-04-12 23:23:37 +02:00
d9943752e8 Style form as table 2023-04-07 17:37:17 +02:00
74381494ea Style 'Sign in' view 2023-04-07 00:09:20 +02:00
201cb109d8 Generate Devise scoped views
bin/rails generate devise:views users
2023-04-05 23:40:31 +02:00