[Feature request]: Improvement to custody automatic logging on asset page
Contact Details
No response
Is your feature request related to a problem? Please describe?
I have an admin and a user that have similar names. I want to be able to see the role of the user on the automatically logged mutation change.
Describe the solution you'd like
Can we show the user type somehow whenever a name is mentioned?
Describe alternatives you've considered
No response
Additional context
No response
Thoughts @jurrejansen @DonKoko
Yes we can. Do we do it just for the person who gave the custody?
Yeah maybe as a quick fix put (admin) behind the name is user is admin or account owner. Can imagine some workspaces mostly have admins which will not look very nice / cluttered.
More long term solution would be the new design in which we can use badge with avatars and perhaps even a little icon on the avatar indicating admins.
But I agree with the (admin) behind name as a quick way to address this request
Yeah I think both those are kinda temp solutions. We would need to create something more powerful that solves this and many other issues related to identities. Like we also had a request from a user to actually show the email of the person. I think the best solution that is encompassing everything and will make it handle all cases is to create a popover badge for team members. So if you hover a team member anywhere(with some small exceptions) inside shelf you can see some relevant data like their role, email etc.
A little preview of important team member info when hovering would indeed be nice and perhaps more realistic to build in the short term. Not ideal for mobile though.
Eventually we should work towards a dedicated team member page that can (also) be visited by clicking a team members badge.
Popovers work on mobile as well, just on tap rather than hover. Here is what we use, maybe you can give it a test: https://www.radix-ui.com/primitives/docs/components/popover
Works pretty well yeah. Just not a fan of the device UI pushing around drop downs / popovers and stuff. But in this particular case we wont have that problem as we wont have fields that trigger the keyboard.
https://github.com/Shelf-nu/shelf.nu/assets/76112272/842d24bc-4456-4a16-a7fc-5080268d3762
I would prioritize improving the front-end of Notes though. https://github.com/Shelf-nu/shelf.nu/issues/721
Keep in mind shadcn also has this specific component. I imagine it something like this: https://ui.shadcn.com/docs/components/hover-card
@DonKoko @carlosvirreira any comments?
https://www.figma.com/file/ykvc0MhPeNLsrJ4tJsKosQ/Shelf-%7C-UX-Scenarios?type=design&node-id=4669-30400&mode=design
I very much like it - would work great on demos to show also the user type as part of our automatic logging of asset mutations on shelf