5051122bcd
Refactor charts: dedicated nav tab, JSON data transport, tests
...
Replace the toggle-view approach and hidden DOM data carrier with a
proper dedicated Charts page:
- Move Charts out of Measurements view toggles into its own nav tab
and route (GET /charts)
- ChartsController serializes readout data as JSON (ordered by
taken_at); the view embeds it in a <script type="application/json">
element instead of rendering a hidden copy of the measurements
partial just to ferry data attributes to JS
- buildCharts() reads from the JSON element directly — no DOM parsing,
no sorting in JS (server already orders the data)
- Turbo load handler detects the charts page via #charts-data presence
- Add controller tests (authentication, data shape, ordering,
data isolation between users) and system tests
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-04 09:55:31 +00:00
71c22f2280
Add Plotly line charts view to Measurements page
...
Users can now switch to a Charts view that renders a separate
time-series line chart for each tracked quantity, using Plotly.js
loaded via CDN. Charts are sorted chronologically and styled to
match the app palette. A dedicated toggle button and matching
CSS visibility rules mirror the existing Compact/Wide view pattern.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-03 22:36:24 +00:00
bfd427c9b2
Add wide view and inline editing to Measurements page
...
The Measurements page gains a compact/wide view toggle (persisted in
localStorage). The wide view is a pivot table: rows = time points,
columns = quantity names (alphabetical), cells = value + delete button.
Clicking a value in either view opens an inline edit panel (Turbo Stream)
without leaving the page. The panel shows the quantity name, value input,
unit selector, taken_at picker, and Update/Cancel buttons.
Changes:
- MeasurementsController: add edit/update actions; order by taken_at desc
- measurements/index: compact table + wide container, view-toggle buttons
- measurements/_readout: data-* attributes for JS pivot builder; edit link
- measurements/_edit_panel, _edit_form, _edit_form_close,
edit.turbo_stream, update.turbo_stream: inline edit views
- application.js: groupMeasurements, buildWideTable (alphabetical cols),
getMeasurementsView / setMeasurementsView, editMeasurementWide,
readoutUnitChanged, setDefaultUnit
- application.css: compact/wide visibility rules, .wide-cell flex layout,
button.link reset, .items-table .form td alignment
- Pictograms: view-rows.svg, view-columns.svg (view-toggle icons)
- Locale: view_compact/view_wide toggle labels, edit link, update.success
- Tests: system tests for compact inline edit and wide view edit panel
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-03 22:03:10 +00:00
d893e59293
Clean up and improve items-table styling
...
Closes #9
2026-03-25 18:42:24 +01:00
33004f62bd
Improve Measurement form layout and styling
2026-03-22 01:06:38 +01:00
5ed066ad18
Unify border/outline parameters order
2026-03-06 01:42:32 +01:00
dde4e52f1b
Fix form elements styling on hover
2026-03-06 01:33:23 +01:00
a9091d76a8
Merge styles of <a>.button/<button>/<input type="submit"> into .button
...
Remove flash button
Fix some multi-selector specificity differences
2026-03-04 17:13:11 +01:00
4175d31b9d
Update and format comments
2026-03-03 01:31:44 +01:00
c659201904
Make [disabled] and [hidden] styles !important
2026-03-03 01:14:12 +01: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
675eb0aad8
Optimize styles; clean up <fieldset>
2026-02-03 15:33:37 +01:00
bd1a664caa
Measurement form based on select-styled <details>
2026-01-31 17:22:09 +01:00
0fb7f9946a
Create alternative, spreadsheet-like style
2025-07-29 15:43:49 +02:00
e12369cea1
Measurements#new form improvements
2025-05-13 22:30:58 +02:00
9dbcfddf98
Merge corrections provided by Bambuch, cont.
2025-04-26 19:12:56 +02:00
c48bf290fd
Implement Measurements#new
2025-02-18 11:25:32 +01:00
9d60eee16b
Add Measurements tab and #new form
2025-01-25 16:34:04 +01:00
2fdd770457
Center images in 'icon only' table columns
2025-01-16 21:29:10 +01:00
dada29d5e6
Fix table row indentation for hierarchy
...
Closes #57
2025-01-16 21:19:01 +01:00
fa7918f0e3
Set row indentation based on depth
2025-01-08 13:55:40 +01:00
b3aea97087
Add Quantities tab
2025-01-05 03:18:39 +01:00
d86e38a3ec
Hide input[type=number] spin buttons and fix text alignment
2025-01-04 16:54:27 +01:00
a6e3833fd0
Extend custom FormBuilder to DRY in forms
...
Closes #8
Closes #45
2025-01-01 16:26:58 +01:00
3379794c6b
Use variables for remaining colors
2024-12-31 19:29:01 +01:00
c8c8d8cd70
Hide actions for restricted users
...
Closes #43
2024-12-30 00:44:21 +01:00
7759021ba1
Make inputs and buttons in table form equal height
...
Closes #38
2024-12-24 02:02:10 +01:00
a9307ad455
Form uses button instead of input to display SVG
2024-12-23 00:47:44 +01:00
3711251656
Unit: limit symbol length, change name:string -> description:text
...
Closes #11
Closes #12
2024-11-24 15:13:59 +01:00
41982e9dbc
Import portability checks complete
2024-11-16 02:31:53 +01:00
51011951f9
Default Units index
2024-11-10 21:30:19 +01:00
537cd18336
Change namespace for defaults controllers
...
To allow proper path prefix for view partials when using
config.action_view.prefix_partial_path_with_controller_namespace
2024-11-09 21:50:50 +01:00
f899fed910
Prefer icons without circle
2024-11-09 15:56:22 +01:00
927a8330bc
Add souce code and issue tracker links
...
Closes #3
2024-05-12 23:21:30 +02:00
b4212298df
Add Unit defaults import link
2024-05-04 01:47:53 +02:00
ceea65cfa8
Refine styling and scripts
2024-04-05 02:20:12 +02:00
175ccf6eae
Allow Unit rebase to top-level
...
Outline base Unit row during drag
Closes #25
2024-04-05 02:18:05 +02:00
8d7f53be10
Fix display of positioned elements
2024-04-05 02:14:43 +02:00
05b0c66216
Change unit base with drag and drop
2024-03-24 17:38:56 +01:00
7387e7b1c1
Refine Unit table display
2024-03-23 15:45:39 +01:00
f2088ea39f
Align table form inputs with non-input text
...
Closes #20
2024-03-18 00:27:47 +01:00
2c0466b51a
Allow display of multiple flash messages
2024-03-15 02:29:58 +01:00
917764fd71
Unify table button styling
2024-01-22 02:02:15 +01:00
0e85a21d2c
Button disabling/enabling
...
Closes #10
2024-01-20 15:02:45 +01:00
1ae5658ebe
Move color definitions to variables
2024-01-20 14:56:10 +01:00
50eedf8b23
Update TODOs
2024-01-17 21:59:28 +01:00
1227c54e0e
Fix flashes display after grid introduction
...
Closes #5
2024-01-17 21:57:18 +01:00
50c1be4647
Refine table styling
2024-01-15 18:47:37 +01:00
5047d4909f
Render units from collection, without redirects
2024-01-15 18:45:30 +01:00