-
-
Notifications
You must be signed in to change notification settings - Fork 764
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: Added a dedicated cookmode dialog that allows for individual scrolling #4464
feat: Added a dedicated cookmode dialog that allows for individual scrolling #4464
Conversation
please update your title to start with |
For me it would be nice to lock the dialog to landscape mode, but im not sure how others feel about that |
Definitely not, is how I feel about that :) Can you please share screenshots of what this change looks like on a phone in portrait mode? |
I'd probably need to see it in practice to understand the difference (comparing the same recipe side to side). 🤔 |
It would also be a option to make it a separate feature, instead of replacing the existing cook mode, something like Focus mode or something idk. |
I like the direction you are going quite a lot and i feel the layout may might make even more sense than our current cookbook mode when in landscape mode. But there are a few things that could be improved in my opinion:
Happy to have feedback / a discussion around those points 😊 |
Thank you for great feedback!
|
First of all, thanks for your fast turnaround on my feedback 😊 I would suggest having the ingredients on the left column. This is the layout of the normal recipe view and if there is no strong reason to mix it up in cook mode i would prefer to have have this consistent between cook mode and the normal view. I think the compromise of the AppBar only showing on swipe up might be a good compromise on small screens. Might be nice to limit this to mobile screens. #4474 has an screenshot on how tandoor handles ingredients that are linked to steps which i kinda what i was thinking about. This might possibly be out of scope for this PR but i think something like this when linked ingredients are availlable is a nice addition. |
This might not be to much to add, I'm thinking the title of the step is used as a header and ingredients appear under it. Plus a header for "other" items |
I have adjusted the cook mode to be contained in the page the same way the normal view is, making the toolbar always visible. Sadly, i was unable to find a way to hide the toolbar in a conditional way that didn't feel too janky, so I just left it, even on smaller screens. A simple way could be to have a toggle for it in cook mode, but i dont like adding extra buttons. The ingredients section headers feel like i want to make a separate PR. We need to handle cases where ingredients are linked to multiple steps etc |
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.
Seams that first title then summary is a pretty good way to do it
Hey, sorry it took me so long to come back to this. There are still a few things that need improving.
|
Thank you for valuable feedback. When we have linked ingredients you want to remove the ingredients column? The we have a Strage situation where we loose functionality when we link them as we can no longer check the off. What's your suggestion to resolving the duplicate issue? |
Ah there is the missunderstanding, To be on the same page on what my ideas for an optimal cookmode would be i have designed a rough mock up in figma. This does only depict the situation when the user has linked ingredients as i feel your idea on when this is not the case is what i had in mind also 👍 Regarding the duplicate ingredients listing, I'd say we can remove them from directly under the step and have them only shown on the ingredient side. To have them more associated with the step i would remove the individually scrolling part (like in the mock up) One point against this is, that it will hide ingredient sections, but my feeling is that they are usually in line with the steps (which makes sense), so that would often be duplicate info anyways. This could also allow us to check off steps and ingredients at the same time (see step 3) & the same could be done for sections. Just to be clear this doesn't have to be part of this PR. Instead of the lines under the steps we could also have them in individual cards like the instruction steps are right now which might make this more consistent with the rest of the app. Lines were just easier to mock up 😊🙈 |
Looks good! |
yeah 👍 |
Nice i will look at this once i have time. |
i am not really sure what you mean, but we don't need to have an ingredient section and my mockup which includes the ingredients, that would just again have ingredients on display twice. |
Yeah i suggested leaving them out |
frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructions.vue
Outdated
Show resolved
Hide resolved
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.
Hey, first of all thanks for your quick turn around with this and sorry for me taking a bit longer to get back to this. I think we are almost there. Just a few more things.
When i have a recipe with linked ingredients where not all ingredients are linked, the ones that are not linked will not be shown in cookmode.
Recipe Screenshot
Screenshot of Recipe in Cookmode missing one ingredient.
And can we remove the left margin on the ingredient checkboxes in cookbook view.
With the missing title it looks a bit weird to have them indented.
The current cookMode also does not show ingredients if they are not linked, so I didn't know how we wanted to solve that. My suggestion would be to add a row at the top or bottom of the instructions that says "other" or similar |
Oh, I never noticed that, but to be honest I never used it much because I didn't like the ui (not being able to check of ingredients mostly), which your PR solves 😊 Your solution sounds good to me. I think at the bottom should be fine (I don't think most people would only link some ingredients). |
I have adjusted the margins and added a card with the not linked items |
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.
This should be the last round of feedback, almost there 😊
There we go :D |
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.
Let's get this in then 🚀
Really happy with the end result! 😊
Thank you for contributing to mealie and sticking with all the feedback rounds 👍
No problem! Thank you for holding a good standard. |
What type of PR is this?
(REQUIRED)
What this PR does / why we need it:
(REQUIRED)
The cook mode currently only helps if we have linked ingredients to steps, this pr makes the cook mode useful even when no ingredients are linked. I have added a full-screen dialog that only has the ingredients and steps in a side by side view. Both lists are scrolled individual, resulting in both the info always being visible. I have taken insperation from ICA Sweden app, which has a similar view:
Here is a example from mobile in landscape:
Which issue(s) this PR fixes:
(REQUIRED)
I have not created a issue, but had a discord conversation about something like this.
Special notes for your reviewer:
(fill-in or delete this section)
We could add additional things like timer to the dialog, making it more feature complete
Testing
(fill-in or delete this section)
I have tested the layout on mobile and desktop screen sizes, both giving an improved cooking view experience