Support for ammunition type selection #32
Labels
No Label
big feature
bug
duplicate
enhancement
help wanted
high priority
invalid
low priority
question
tech debt
ui/ux
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: shibao/cannery#32
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When adding a new ammo type, at present we are presented a default screen with all fields
Can we have a drop down for example that lets us choose from the following;
Shotgun
Rifle/pistol
Air rifle/pistol
For example
Depending on which ammo type has been selected, depends on what fields can be filled in, so more types of ammunition can be added to the database with better accuracy?
When it comes to disaplying them on the Catalog page, you are then presented with sections and in those sections the ammunition types and fields related to the specific ammunition?
I'll see if i can get a draft up of some visuals / code to help explain the above a little further.
Example schema for the shotgun ammo types. Im not familiar with elicir and ecto, so unsure on integrating with the rest of the configuration around refernces with AmmoType
https://gitea.bubbletea.dev/shibao/cannery/src/branch/dev/lib/cannery/ammo.ex
https://gitea.bubbletea.dev/shibao/cannery/src/branch/stable/lib/cannery/ammo/ammo_group.ex#L73
let alone cannery-web 😅
AmmoType represents a type of ammo, and then AmmoGroup represents a single box or pack of ammo, but these are kind of internal application names.
what shotgun or air rifle-specific ammo stuff would you like to record? i think hiding/showing certain fields based on an ammo type type (god i need to get better at naming things) is a great idea 😄
I was thinking something along the lines of below for shotgun specific ammo
I somehow totally forgot about this for a long time >_> but I'll do my best to get this in soon! This shouldn't be a difficult change, since the ammo type table already filters out unused columns, I think I'll just add them into the main table so you can sort/search on the individual fields
After some discussion with friends, I think these will be the fields I'll be going with. Please let me know if there's anything that's missing from these fields! I'm trying to only add fields for things that someone would theoretically need to sort the tables on, and other information can go into the catch all
Notes
if it has some specifics (which won't be shown on the tables unfortunately)Just wanted to post some progress :)
Example rifle/pistol type:
Example shotgun type:
This will be implemented in v0.9.0!