114 Commits

Author SHA1 Message Date
59db1fef17 Set multiplier default in db, not model 2024-03-15 19:36:05 +01:00
aa4a8193ce Set multiplier to 1 for base units 2024-03-15 17:16:14 +01:00
f298acd726 Display errors for table-embedeed forms 2024-03-15 02:40:17 +01:00
2c0466b51a Allow display of multiple flash messages 2024-03-15 02:29:58 +01:00
3a3ae71320 Fix layout rendering for turbo_streams
Closes #22
2024-02-13 20:48:00 +01:00
8b81ae2dc5 Test Unit form opening/closing 2024-02-13 01:04:27 +01:00
10f866d40b Remove unused code kept only as reference 2024-02-11 18:37:35 +01:00
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
759a0b31b7 Disable only form-opening link
Close other forms on new form open
2024-02-04 20:11:44 +01:00
76aae56ed5 Allow stream action to expand into multiple actions
e.g. by including 'onclick()' event handler
2024-02-04 20:05:36 +01:00
0dffde414e Fix class assignment 2024-01-23 17:22:09 +01:00
13c1d5684b Don't wrap form labels 2024-01-22 02:35:14 +01:00
c1643030a2 Avoid re-rendering form on errors 2024-01-22 02:34:13 +01:00
5ea1f87824 Unit#edit action 2024-01-22 02:33:23 +01:00
a7f80a575c Manage client-side js with turbo_stream actions 2024-01-22 02:14:01 +01:00
0e8bc18620 Enable creation of subunits 2024-01-22 02:09:46 +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
11ecd8eaed Remove awesome_nested_set gem dependency 2024-01-17 05:43:55 +01:00
dec3af27bf Migrate Users views to grid layout + turbo_stream
Closes #7
2024-01-17 03:30:04 +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
de995aa586 Testing environment updates 2024-01-15 02:05:08 +01:00
91b9886172 Disable turbo cache instead of forcing reload 2024-01-15 02:01:07 +01:00
9a9a139aa7 Handle exceptions during TURBO_STREAM requests 2024-01-15 01:59:30 +01:00
8d63ed62ea Render flash messages for html and turbo_stream 2024-01-14 03:19:20 +01:00
4e91c89153 List units ordered, not using nested_set 2024-01-09 00:11:26 +01:00
92132768fa Multiplier in nil for toplevel units 2024-01-09 00:08:53 +01:00
0801e8059c Close form on Esc key. Localize submit button. 2024-01-06 18:06:36 +01:00
ce4770a25c Run #create action 2024-01-06 03:59:09 +01:00
9404ec8d17 Enable Drive to send TURBO_STREAM form POSTs
Disable Turbo caching for whole site
2024-01-06 03:39:52 +01:00
b91776e9c4 Expand some selectors 2024-01-06 02:24:14 +01:00
5c70736a91 Reword comments/descriptions 2024-01-05 21:56:57 +01:00
98c8fb9346 Validate Unit string lengths 2024-01-05 21:32:59 +01:00
d28ef26dc5 Manage focus on form show/hide 2024-01-05 21:07:12 +01:00
6d9f4918f1 Change 'Add unit' link to turbo_stream 2024-01-04 23:11:33 +01:00
c96b646087 Hide page content until turbo:load event
To avoid cases when Turbo links are processed as normal HTTP requests
2024-01-04 23:06:47 +01:00
92350ac3f2 Display new form with turbo frame 2024-01-03 01:02:29 +01:00
18089c316e Refine link styling 2024-01-03 00:51:30 +01:00
588bc01911 Fill <td> with <a> link using ::after pseudoelement 2023-12-05 23:36:56 +01:00
16c24f65ca Fix input/button focus/hover styling 2023-12-05 23:18:26 +01:00
bad64c5dbf Expand link to whole table cell 2023-12-05 19:10:36 +01:00
3127c72288 Fixed display of table links and buttons 2023-12-05 16:16:14 +01:00
d98057caad Upgrade layout to grid+flex 2023-12-04 20:36:03 +01:00
8c6d296021 Enable turbo (without Drive) 2023-12-03 23:27:10 +01:00
761aad358a Print multiplier in scientific notation 2023-11-18 19:19:28 +01:00
0620d18391 Remove default BigDecimal formatting 2023-07-06 18:36:23 +02:00