Commit Graph

38 Commits

Author SHA1 Message Date
shibao 03f8a2e8a7 remove all n+1 queries for real this time 2023-03-19 15:05:09 -04:00
shibao 213dcca973 fix duplicate entries showing up 2023-03-19 13:28:56 -04:00
shibao a54cf8b87d use strict context boundaries and remove all n+1 queries
continuous-integration/drone/push Build is passing Details
2023-03-18 21:06:50 -04: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 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 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 6c09261368 use changeset helper 2022-07-04 20:39:21 -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 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 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 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 d162a7d5c3 hard create_ammo_group/2 2022-02-16 18:53:49 -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 e9ef44eb53 - harden ammo context
- add user_id to ammo types
2022-02-10 00:58:05 -05:00
shibao ab9a73769f restrict ammo groups by user_id 2022-02-08 00:21:22 -05:00
shibao c8945607ea show average cost per round for ammo types 2022-02-06 00:40:01 -05:00
shibao 3e73f33a6d alias changeset 2022-02-01 00:22:44 -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 d6ddf2a9bb add models, context and liveviews 2021-09-02 23:31:14 -04:00