Commit Graph

66 Commits

Author SHA1 Message Date
cryptogopher 9c51887024 Improve index tables
Stretch inputs to column width in place of fixed sizing.
Set minimum column widths for columns with form inputs.
Simplify table operations by removing `thead` and adding sentinel.
Manage empty table display with CSS only.
2026-10-17 19:25:46 +02:00
cryptogopher 2c845f3528 Replace patched #dom_id with #dom_target 2026-10-17 05:06:09 +02:00
cryptogopher eae0ee9d20 Improve controllers and views 2026-07-28 00:46:33 +02:00
cryptogopher b05523dcd6 Change Unit.multiplier type from decimal to float
Remove remnants related to BigDecimal.
2026-07-12 17:16:43 +02:00
cryptogopher d002ae0f2c Clean up and improve items-table styling
Closes #9
2026-04-25 04:13:47 +02:00
cryptogopher f87aa9fd3d Improve Measurement form layout and styling 2026-04-25 04:13:47 +02:00
cryptogopher 84945fa4b4 Simplify and improve labeled form 2026-02-22 00:53:18 +01:00
cryptogopher bd1a664caa Measurement form based on select-styled <details> 2026-01-31 17:22:09 +01:00
cryptogopher dada29d5e6 Fix table row indentation for hierarchy
Closes #57
2025-01-16 21:19:01 +01:00
cryptogopher 7962cdf169 Simplify object and association checks
* check for <object> instead of <object>.nil?
* check for <association>_id? instead of <association>.nil? (avoids
  record loading)
2025-01-16 20:42:18 +01:00
cryptogopher 2c0d5af022 Merge Unit and Quantity drag&drop js
Closes #55
2025-01-13 02:23:51 +01:00
cryptogopher 23e2f6a062 Move :base_id hidden field to form tag 2025-01-08 14:36:32 +01:00
cryptogopher d86e38a3ec Hide input[type=number] spin buttons and fix text alignment 2025-01-04 16:54:27 +01:00
cryptogopher ed0234f158 Allow only positive Unit multiplier
Closes #51
2025-01-04 15:32:07 +01:00
cryptogopher af152c5e8b Disable links instead of hiding
Closes #49
2025-01-03 14:41:18 +01:00
cryptogopher 42aaf39f14 Remove unused turbo_stream index 2025-01-02 19:21:01 +01:00
cryptogopher a6e3833fd0 Extend custom FormBuilder to DRY in forms
Closes #8
Closes #45
2025-01-01 16:26:58 +01:00
cryptogopher 8552571526 Disable Unit destuction for base units with subunits
Closes #40
2024-12-28 23:57:47 +01:00
cryptogopher a9307ad455 Form uses button instead of input to display SVG 2024-12-23 00:47:44 +01:00
cryptogopher 0659c1e1c1 Don't render index on Unit actions 2024-12-22 01:31:14 +01:00
cryptogopher d726e92445 Allow opening multiple new/edit forms
Closes #30
2024-12-21 17:52:45 +01:00
cryptogopher e5cf3dc0ae Avoid refreshing whole index on create 2024-12-19 03:46:29 +01:00
cryptogopher ba8ac5d2fa Remove unnecessary link_id 2024-12-17 02:44:52 +01:00
cryptogopher f0dab7a5f9 Fix Units new/edit display on validation errors
Add test_new_and_edit_on_validation_error
Closes #41
2024-12-17 01:53:25 +01:00
cryptogopher d5719b1e9d Fill multiplier field, confirm Add button disabled 2024-12-12 00:44:26 +01:00
cryptogopher 0b201606c2 Replace #columns_hash with #type_for_attribute for limits 2024-12-08 13:47:30 +01:00
cryptogopher 15a5515c99 Extend NumericalityValidator to check precision and scale
Use new checks on Unit.multiplier
Closes #28
2024-12-07 20:41:19 +01:00
cryptogopher 7e5f873cde Change helper into BigDecimal method 2024-12-06 15:24:25 +01:00
cryptogopher 3711251656 Unit: limit symbol length, change name:string -> description:text
Closes #11
Closes #12
2024-11-24 15:13:59 +01:00
cryptogopher 76ce2eeedd Display Unit name using #to_s 2024-11-23 02:24:08 +01:00
cryptogopher 9a02f0b0ae Fix quotes and translations 2024-11-10 21:46:00 +01:00
cryptogopher 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
cryptogopher f899fed910 Prefer icons without circle 2024-11-09 15:56:22 +01:00
cryptogopher 846eb6da14 Preliminary support for default Units import 2024-11-09 02:05:04 +01:00
cryptogopher 965cb76f1d Generate Units::Defaults controller
bin/rails g controller Units/Defaults index
2024-05-04 01:53:57 +02:00
cryptogopher b4212298df Add Unit defaults import link 2024-05-04 01:47:53 +02:00
cryptogopher ceea65cfa8 Refine styling and scripts 2024-04-05 02:20:12 +02:00
cryptogopher 175ccf6eae Allow Unit rebase to top-level
Outline base Unit row during drag
Closes #25
2024-04-05 02:18:05 +02:00
cryptogopher 1966c782bc Unit rebase as a separate action 2024-04-02 22:16:27 +02:00
cryptogopher 05b0c66216 Change unit base with drag and drop 2024-03-24 17:38:56 +01:00
cryptogopher 7387e7b1c1 Refine Unit table display 2024-03-23 15:45:39 +01:00
cryptogopher aa4a8193ce Set multiplier to 1 for base units 2024-03-15 17:16:14 +01:00
cryptogopher f298acd726 Display errors for table-embedeed forms 2024-03-15 02:40:17 +01:00
cryptogopher 3a3ae71320 Fix layout rendering for turbo_streams
Closes #22
2024-02-13 20:48:00 +01:00
cryptogopher 8b81ae2dc5 Test Unit form opening/closing 2024-02-13 01:04:27 +01:00
cryptogopher 1198add901 Rewrite stream rendering to avoid client-side expanding
* adding streams in client breaks things (e.g. autofocus)
* some tasks need to be performed in one stream action to avoid
  flickering (e.g. table row substitution)
2024-02-11 18:31:06 +01:00
cryptogopher 759a0b31b7 Disable only form-opening link
Close other forms on new form open
2024-02-04 20:11:44 +01:00
cryptogopher 76aae56ed5 Allow stream action to expand into multiple actions
e.g. by including 'onclick()' event handler
2024-02-04 20:05:36 +01:00
cryptogopher c1643030a2 Avoid re-rendering form on errors 2024-01-22 02:34:13 +01:00
cryptogopher 5ea1f87824 Unit#edit action 2024-01-22 02:33:23 +01:00