Skip to content
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

feat: Shopping list UI overhaul - three dot menu #4415

Merged
merged 9 commits into from
Jan 26, 2025

Conversation

Wetzel402
Copy link
Contributor

What type of PR is this?

  • feature

What this PR does / why we need it:

Moved shopping list action bar into a three dot menu to clean up the UI/UX.

Which issue(s) this PR fixes:

None

Testing

Tested in docker container

@Kuchenpirat
Copy link
Collaborator

This has been marked as draft for quite some time without progress, anything you need from us to get this over the finish line?

@Wetzel402
Copy link
Contributor Author

This has been marked as draft for quite some time without progress, anything you need from us to get this over the finish line?

I know there was some discussion among the core team regarding what should be in the menu vs what should be exposed as a separate button. I posted in the Discord asking for feedback and then honestly forgot about it.

Copy link
Collaborator

@Kuchenpirat Kuchenpirat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, so I finally made some free time and looked at your proposal, I think it is a good idea to tidy up the interface, but I think putting absolutely everything into the three dot menu is a bit too much.
So, I tried to move stuff around a bit and add it to its relevant places.

Delete & Uncheck All Icon

The delete icon (to delete all checked items) as well as the box to uncheck all items should be where the checked items are. Especially with the delete items people will assume that it deletes the shopping list instead of the checked items.
I’d suggest something like this:
image

Owner Menu

I would move the “owner” menu to the shopping lists overview page. I’d say it makes much more sense over there.
Something like this should be pretty intuitive

image

Copy & Check All

I'd think the copy and check all buttons are use pretty frequently so i would like them to not be hidden. I think a slimmed down version of the old button group is fine.
image

Remaing Buttons

The remaining buttons should be moved into the three dot menu since those will not be used on a super regular basis and don't need to take up prime real estate.
The result should look something like this which should be pretty clean.
The three dot menu contains Toggle Label Sort, Reorder Labels and Manage Labels

Miscellaneous

  • I would also rename the button to the shopping lists overview to “All Lists” because it is not a back button since it does not go back where the user came from.
  • The image on the top should be only shown on desktop view. On mobile it takes up to much of the most important space and makes the top section look crammed.
  • I think we can remove the manage labels button from the shopping list overview page. There is nothing there happening with labels, so it is a bit confusing to have it over there.

I hope you like where i am going with this. As always happy for feedback from you or other members of the community. Always happy to have better ideas suggested.

@Kuchenpirat Kuchenpirat self-assigned this Nov 26, 2024
Copy link
Contributor

This PR is stale because it has been open 45 days with no activity.

@github-actions github-actions bot added the stale label Jan 13, 2025
@Kuchenpirat
Copy link
Collaborator

hey @Wetzel402 any progress on this one?
Happy to lend a helping hand.

@github-actions github-actions bot removed the stale label Jan 14, 2025
@Wetzel402
Copy link
Contributor Author

hey @Wetzel402 any progress on this one? Happy to lend a helping hand.

Sorry, between the holidays and work I haven't had any time to work on it. I will try to find some time to work on this.

@Wetzel402 Wetzel402 marked this pull request as ready for review January 15, 2025 21:55
@Wetzel402
Copy link
Contributor Author

This is ready for review and I love how it all came together. So much cleaner. Thanks!

Copy link
Collaborator

@Kuchenpirat Kuchenpirat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick work.

There is one major problem with updating the shopping list owner.
The list items are deleted if an api call is made (every time you click confirm on that dialog). You probably have to get the full list(including its items) and send that to the api instead of the summary that is used by the shoping list overview page.
You probably can also skip the api call if the owner has not been updated.

Besides that some minor comments for the first feedback round.

frontend/pages/shopping-lists/_id.vue Outdated Show resolved Hide resolved
frontend/pages/shopping-lists/_id.vue Show resolved Hide resolved
	modified:   frontend/pages/shopping-lists/index.vue
@Wetzel402
Copy link
Contributor Author

Hopefully this one is ready to pull now.

Copy link
Collaborator

@Kuchenpirat Kuchenpirat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

99% there, just a few nitpicky things that are mostly about naming stuff correctly.

frontend/pages/shopping-lists/index.vue Outdated Show resolved Hide resolved
frontend/pages/shopping-lists/index.vue Outdated Show resolved Hide resolved
frontend/pages/shopping-lists/index.vue Outdated Show resolved Hide resolved
frontend/pages/shopping-lists/index.vue Outdated Show resolved Hide resolved
Copy link
Collaborator

@Kuchenpirat Kuchenpirat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking all good now :)
This really is a big UI improvement, thanks for your work on this 😊

@Kuchenpirat Kuchenpirat enabled auto-merge (squash) January 26, 2025 13:59
@Kuchenpirat Kuchenpirat merged commit 93c2df4 into mealie-recipes:mealie-next Jan 26, 2025
13 checks passed
@Wetzel402
Copy link
Contributor Author

@Kuchenpirat, Thank you as well. Excited to see Mealie improve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants