40 Commits

Author SHA1 Message Date
55b6ff3248 Find successive Unit according to sort order
This will allow to insert Units into table without refresh of all
items/removal of forms
2024-12-19 03:42:28 +01:00
f3f0b9dc9e Fix UnitsiTest#test_index 2024-12-09 20:00:14 +01:00
0b201606c2 Replace #columns_hash with #type_for_attribute for limits 2024-12-08 13:47:30 +01:00
15a5515c99 Extend NumericalityValidator to check precision and scale
Use new checks on Unit.multiplier
Closes #28
2024-12-07 20:41:19 +01:00
2cbae12fa2 Implement Units default destroy 2024-11-30 16:11:31 +01:00
1fedd70fe5 Fix defaults listing
Base symbol was displayed twice when it existed as default and
non-default and both of them had at least one subunit.
Also: sorting by base_id yielded non-alphabetic order in such case.
2024-11-27 19:54:50 +01:00
f9bd81c6ab Implement Unit defaults export
Disable import_all until implemented
2024-11-26 02:31:25 +01:00
3711251656 Unit: limit symbol length, change name:string -> description:text
Closes #11
Closes #12
2024-11-24 15:13:59 +01:00
d6fdff252a Validate User 'email' and 'unconfirmed_email' lengths
Closes #6
2024-11-24 14:11:54 +01:00
e75391ae18 Display User name using #to_s 2024-11-23 14:55:29 +01:00
76ce2eeedd Display Unit name using #to_s 2024-11-23 02:24:08 +01:00
bdc4ec4644 Specify user modifiable ATTRIBUTES 2024-11-22 15:48:09 +01:00
279f9bd6ac Display Defaults hierarchy including same base Units 2024-11-22 03:10:08 +01:00
6c678b6560 defaults_diff returns base Units where needed 2024-11-21 01:50:29 +01:00
f0e28deea2 Implement 'import' action 2024-11-17 03:39:39 +01:00
41982e9dbc Import portability checks complete 2024-11-16 02:31:53 +01:00
d9e74ed305 Avoid unscoping 2024-11-15 19:45:55 +01:00
4447735dce First part of portability checks 2024-11-15 02:02:19 +01:00
a01c89ce3a Further simplify EXISTS condition with SelectManager 2024-11-14 04:28:20 +01:00
7234d60afc Replace additional joins with NOT EXISTS subquery 2024-11-14 02:50:53 +01:00
51011951f9 Default Units index 2024-11-10 21:30:19 +01:00
846eb6da14 Preliminary support for default Units import 2024-11-09 02:05:04 +01:00
be48d6fd7f Use Arel::FactoryMehods for coalesce() 2024-11-09 02:03:34 +01:00
a5a75233c7 Validate Unit base user 2024-04-02 22:20:45 +02:00
05b0c66216 Change unit base with drag and drop 2024-03-24 17:38:56 +01:00
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
50eedf8b23 Update TODOs 2024-01-17 21:59:28 +01:00
11ecd8eaed Remove awesome_nested_set gem dependency 2024-01-17 05:43:55 +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
98c8fb9346 Validate Unit string lengths 2024-01-05 21:32:59 +01:00
a4745c9cb8 Add Units 2023-07-06 18:34:16 +02:00
cc65b64a4b Move status checking to model 2023-05-02 03:17:41 +02:00
353049a6b2 Set User :confirmable
Renumber statuses to make :disabled == 0
2023-04-14 21:35:32 +02:00
0e72219373 Require authentication 2023-04-01 18:53:30 +02:00
e29c060a39 Add user statuses and seed admin user 2023-04-01 02:29:59 +02:00
16b067a377 Configure User with Devise
bundle exec rails generate devise User
2023-03-11 23:19:37 +01:00
deaf0fa73b Generate User scaffold
bundle exec rails generate scaffold user email:string{64}:uniq
  status:integer
2023-03-11 22:56:32 +01:00
6d2d12a9da rails new
THOR_MERGE=vimdiff bundle exec rails new -d mysql --skip-action-mailbox
  --skip-action-text --skip-active-job --skip-active-storage
  --skip-action-cable --skip-hotwire --skip-jbuilder --skip-bootsnap
  --skip-bundle .
2023-03-05 19:23:29 +01:00