Commit Graph

165 Commits

Author SHA1 Message Date
shibao 084173909e fix bug with public registration 2023-02-04 10:27:57 -05:00
shibao 2cf705c46f add accounts doctests 2023-01-29 15:23:54 -05:00
shibao 3ae890c193 use atoms for role changeset 2023-01-29 12:57:07 -05:00
shibao 45da547f62 add search to range index 2022-12-03 21:27:39 -05:00
shibao 3ea4b77b67 add search to tag index 2022-12-03 20:35:54 -05:00
shibao 95642061db add search to container index 2022-12-03 20:23:12 -05:00
shibao 11ef53d1bf add search to ammo groups index 2022-12-03 19:44:57 -05:00
shibao 7191fe8e4b add search to catalog index 2022-12-03 19:35:00 -05:00
shibao e0ac714681 improve changesets and typespecs 2022-11-23 20:46:41 -05:00
shibao 81e448afc4 improve some wording 2022-11-19 15:11:34 -05:00
shibao dfebad713f replace ammo added on with purchased on 2022-11-19 15:10:15 -05:00
shibao 1fed895b82 display cpr for ammo packs and add original count for ammo packs 2022-11-12 14:33:11 -05:00
shibao 1c7721887f fix moving ammo between containers 2022-11-10 22:14:39 -05:00
shibao 7ef582510e improve ammo context 2022-11-10 20:26:11 -05:00
shibao 53bb0ddb03 add json export in settings
continuous-integration/drone/push Build is passing Details
2022-11-09 23:33:50 -05:00
shibao ba8d7988b3 add graph to range page 2022-11-09 21:04:57 -05:00
shibao cfbec3189c display used-up date on used-up ammo
continuous-integration/drone/push Build is passing Details
2022-11-07 21:01:57 -05:00
shibao 9e386f1631 add used filtering to container show page 2022-11-07 00:40:09 -05:00
shibao 36a0a1c6c8 add used filtering to ammo type show page 2022-11-07 00:40:09 -05:00
shibao dc355fcd8e add ammo count to ammo type index page 2022-11-07 00:40:09 -05:00
shibao f246b9db93 prompt to create first ammo type before trying to create first ammo
continuous-integration/drone/push Build is passing Details
2022-07-04 21:41:07 -04:00
shibao 3adb8c9aae pass invite token in properly 2022-07-04 21:16:09 -04:00
shibao dce04e4d7f harden invite changesets 2022-07-04 21:09:55 -04:00
shibao ee6266be3f harden tag changesets 2022-07-04 21:06:35 -04:00
shibao 6c09261368 use changeset helper 2022-07-04 20:39:21 -04:00
shibao 3593334c85 fix container changeset 2022-07-04 20:30:05 -04:00
shibao 57b5cb432d fix container tag changeset 2022-07-04 20:25:55 -04:00
shibao 5b5fd7173b fix ammo type changesets 2022-07-04 20:22:39 -04:00
shibao 947659b207 fix ammo_group changesets 2022-07-04 20:06:41 -04:00
shibao 9ebca20dc6 add error case for create_changeset 2022-07-04 20:06:31 -04:00
shibao 3cbd62e84c fix shotgroup changesets 2022-07-01 21:39:08 -04:00
shibao 67010640f0 remove unchangeable requirements 2022-07-01 19:53:44 -04:00
shibao 9a1a104c6d add pack and round count to containers 2022-07-01 19:13:54 -04:00
shibao f49fe21da5 remove invalid opts 2022-05-06 23:36:42 -04:00
shibao 4b420f313c add locale as per user setting 2022-05-05 23:26:29 -04:00
shibao 7f9e6f9eff fix tests 2022-04-19 20:08:10 -04:00
shibao 45d905b384 Fix bug with average price per round calculation 2022-04-19 19:42:48 -04:00
shibao 3297130890 Fix not being able to edit ammo group when fully used up 2022-04-19 19:42:48 -04:00
shibao a2d1ff9b89 fix credo 2022-03-28 23:05:12 -04:00
shibao c0179f48bd mix format
continuous-integration/drone/push Build was killed Details
2022-03-04 23:17:53 -05:00
shibao 8bb4aab49c Fix ammo group create form error bug 2022-03-04 23:16:37 -05:00
shibao a6b2c6181e add multiple ammo groups at one time
continuous-integration/drone/push Build is passing Details
2022-02-24 00:17:23 -05:00
shibao ee28de1178 fix not showing 0 if ammo type with 0 rounds 2022-02-23 19:41:21 -05:00
shibao a19ec682e6 add ammo type round totals and total rounds shot 2022-02-19 00:18:24 -05:00
shibao dba53106fb show original count, current value, percentage remaining and shot history for ammo groups 2022-02-19 00:05:22 -05:00
shibao 4ff2f64a22 add tag editing to containers 2022-02-18 23:00:04 -05:00
shibao 9e0e9ea2ae fix ammo group create not handling invalid attrs
continuous-integration/drone/push Build is failing Details
2022-02-18 18:49:11 -05:00
shibao f63aa4c832 tag email jobs 2022-02-18 17:44:18 -05:00
shibao 08f87d38eb mix format 2022-02-16 22:18:05 -05:00
shibao 8f807c2ebc prevent unconfirmed users from logging in 2022-02-16 22:17:26 -05:00
shibao bd964105b4 don't allow reassigning token 2022-02-16 20:52:42 -05:00
shibao e200cf1b84 add email typespec 2022-02-16 20:22:04 -05:00
shibao 1f789c0a8d fix exploit with role 2022-02-16 20:21:55 -05:00
shibao 2f9c08b79f fix bug in mailer 2022-02-16 20:20:17 -05:00
shibao d162a7d5c3 hard create_ammo_group/2 2022-02-16 18:53:49 -05:00
shibao 6c49e6ec4e update deps and format 2022-02-16 18:45:18 -05:00
shibao fb288e4389 change rimfire to firing type
continuous-integration/drone/push Build was killed Details
2022-02-16 00:10:18 -05:00
shibao 2ac379adaf add more ammo type fields, filter index columns 2022-02-15 22:33:36 -05:00
shibao 69eebc82cc calculate shot groups in average cost 2022-02-15 21:56:01 -05:00
shibao 7110a2db21 order in db 2022-02-15 21:52:23 -05:00
shibao e4ef22184e add range mode 2022-02-15 17:33:45 -05:00
shibao 42bc918abc harden changesets 2022-02-14 21:03:56 -05:00
shibao df40f03589 add and delete tags to/from containers 2022-02-13 21:14:48 -05:00
shibao 272f6729c6 - add user management to invite page
continuous-integration/drone/push Build was killed Details
- harden accounts context
2022-02-12 02:34:13 -05:00
shibao 332f92a02f harden account deletion 2022-02-12 02:33:35 -05:00
shibao e5a5b4299c fix registration email 2022-02-12 02:32:52 -05:00
shibao 71397d6b29 harden invites context
continuous-integration/drone/push Build is failing Details
2022-02-11 00:34:29 -05:00
shibao fc75948f4c add Accounts.is_admin?/1 2022-02-11 00:34:02 -05:00
shibao 76d594ca0f improve containers 2022-02-11 00:33:51 -05:00
shibao e9ef44eb53 - harden ammo context
- add user_id to ammo types
2022-02-10 00:58:05 -05:00
shibao bb4e6954eb remove tag_id from ammo group 2022-02-10 00:58:05 -05:00
shibao aa17240c83 harden tags context 2022-02-10 00:58:05 -05:00
shibao f4d67dbeef remove punctuation from error 2022-02-09 00:13:12 -05:00
shibao 455fe354c1 gettext User 2022-02-09 00:13:12 -05:00
shibao 20f49a9a9a credo fixes 2022-02-09 00:13:12 -05:00
shibao c27c162562 improve containers context 2022-02-09 00:13:12 -05:00
shibao a39c3da351 add swoosh and oban 2022-02-09 00:13:12 -05:00
shibao ab9a73769f restrict ammo groups by user_id 2022-02-08 00:21:22 -05:00
shibao 8e4bcf7abd add deletion check for containers
continuous-integration/drone/push Build is failing Details
2022-02-07 23:58:29 -05:00
shibao 22c148e93b - add primer_type to ammo type
- fix ammo type typespec
- remove unused ammo type card
- mix format
2022-02-07 23:42:36 -05:00
shibao c8945607ea show average cost per round for ammo types 2022-02-06 00:40:01 -05:00
shibao 6f6402cf17 add ammo type stuff 2022-02-05 16:22:02 -05:00
shibao 844c8ccdae add has_many relationships 2022-02-05 01:59:09 -05:00
shibao ad3f48ccc9 remove non-mandatory ammo group fields 2022-02-05 00:28:45 -05:00
shibao 3e73f33a6d alias changeset 2022-02-01 00:22:44 -05:00
shibao e20552ce86 fix missing alias 2022-01-31 23:49:22 -05:00
shibao 8f130a7598 add types to ecto changeset specs 2022-01-31 23:45:00 -05:00
shibao 9ca69ae3e4 style ammo type show page 2022-01-31 23:20:57 -05:00
shibao 7015ec5997 - store ammo type grain as integer
- make ammo type desc as text
2022-01-31 22:29:09 -05:00
shibao 7aa353e176 containers index 2022-01-31 21:53:01 -05:00
shibao d549b732e1 typespec out contexts 2022-01-31 20:45:32 -05:00
shibao 616b20e62b typespec out models 2022-01-31 20:08:01 -05:00
shibao e4522e4a89 restyle tags 2022-01-28 21:05:54 -05:00
shibao 04d798aaa7 fix dialyzer, credo and format 2022-01-23 22:51:56 -05:00
shibao 7567281449 only automigrate in prod env 2022-01-23 22:51:56 -05:00
shibao 820ceed6bb fix tests 2022-01-23 22:51:56 -05:00
shibao 16018ae111 mix format 2022-01-23 22:51:54 -05:00
shibao 094e214a55 update to phoenix 1.6 2022-01-22 14:18:29 -05:00
shibao 48691e669e add container tags 2021-09-12 19:27:18 -04:00
shibao f12e71cbe2 typespec some models 2021-09-12 19:27:01 -04:00