-
-
Notifications
You must be signed in to change notification settings - Fork 643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vault weapon grouping/separators #9883
Vault weapon grouping/separators #9883
Conversation
It's a nice start! Code looks like it's going in the right direction. Some stuff to think about:
|
Thank you. 😊
I'm happy to remove the best fit view. I'm not a fan either.
All the groupings are based on the existing sort options, so as to maintain consistency with the sorts. I believe weapon types are alphabetical?
Agreed.
I agree that rarity is fairly obvious (due to the colorings), but I personally wanted to implement this feature to distinguish between the tags (failing a way to manually group items). As all the tag icons are very small and the same color it's hard to see where one ends and another begins.
The tile was basically a result of the best fit view. More code and harder to maintain if one view has icons and another didn't, or that one was flat and another nested. Happy to remove them if we're just going with the separated view. |
Yeah, I don't use sort by weapon type, and the grouping makes it even more obvious that it's not a particularly useful sort. I'm not sure what would be more useful though - ordering them by ammo type is just including another sort.
That's interesting - I find their shapes quite distinctive, but I could see the argument. |
I was actually going to suggest (as a separate issue) that the tag icons each receive a unique color, but I understand that this is more work than it sounds due to the theming. |
They're also all the same color on purpose - that green is the only thing we can use that stands out against all the different item icons. |
Ah, I had not considered that. 😕 |
Looks good, definitely works as advertised. A couple things I noticed:
API types are updated here: https://github.com/DestinyItemManager/dim-api/blob/master/api/shapes/settings.ts - it's OK to just update |
We're so close, I can taste it! I love the way this looks and works now. A couple last bits:
|
c313193
to
7da5495
Compare
That's my bad, I was testing a different character who doesn't actually have any items in the vault 😅 |
@bhollis have made all suggested changes. 😁 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Let's get this merged!
src/app/inventory/dim-item-info.ts
Outdated
@@ -115,6 +116,8 @@ export interface TagInfo { | |||
// populate tag list from tag config info | |||
export const itemTagList: TagInfo[] = Object.values(tagConfig); | |||
|
|||
export const vaultGroupTagOrder = itemTagList.map((tag) => tag.type).filter(isDefined); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We generally use this:
export const vaultGroupTagOrder = itemTagList.map((tag) => tag.type).filter(isDefined); | |
export const vaultGroupTagOrder = _.compact(itemTagList.map((tag) => tag.type)); |
This is a work in progress. At the bottom is a checklist of items that still need to be completed/considered.Fixes #7206
Fixes #3613
This PR adds
21 option (dropdown) to the settings page,oneallowing the user to define a property by which to group vault items,and another that allows them to tweak how the groupings are displayed. I've limited the properties by which items can be grouped as many were not appropriate for displaying (e.g. power level and acquired date end up with far too many groups).I've opted to use dropdown for these options as opposed to adding checkboxes or other inputs to the sort options (as mentioned in some issues), as this keep the UI a lot cleaner and doesn't involve the need to enforce only a single grouping (which would be required if the option was added to custom sort items).
In any grouping display setting the groups will be prefixed with an icon (yet to be implemented), much like how class armor has the class icon. In the "Separated" view groups are all displayed on separate rows with horizontal lines between each, whereas the "Best Fit" view will display groups without the horizontal lines, and will include multiple groups in a single row if there is enough space.All groups except for rarity are prefixed with an icon, much like the class specific armor groups.
See comments for discussion and updated screenshots.
Screenshots
To consider:
TODO:
Extract conditional grouping within StoreBucket to its own component- only groups weaponsAdd icons for each grouping type (including an "unknown"/"ungrouped" icon)- removed icons/tilesRemove grouping from armor/inventory items?- only groups weaponsImprove grouping display of armor/inventory items?- only groups weapons