Skip to content

Conversation

olestan
Copy link
Member

@olestan olestan commented Nov 19, 2026

Summary

Addresses usability issues in recipe editing and browsing by making save feedback visible, protecting draft deletion, and providing clearer validation and recovery paths.

Recipe editing and access

  • Replace draft-save messages at the top of the form with toast notifications visible from any scroll position. Success notifications dismiss after five seconds; failures remain until dismissed or the form changes.
  • Require confirmation before discarding a saved draft, preserving protection against deleting newer drafts saved in another tab.
  • Change the servings placeholder to e.g. 4 so it is clearly an example.
  • Focus and scroll to the first invalid field, keeping its label and error visible below the sticky header.
  • Offer login when a recipe is unavailable to a logged-out visitor, then return to the bookmarked recipe URL after authentication.

Search and time filters

  • Validate searches against the 200-character limit and display errors beside the search field.
  • Debounce desktop custom-time updates and retain the mobile Apply workflow.
  • Preserve out-of-range values and show validation errors while using 1 or 20,160 minutes as the effective filter limit.
  • Make clearing custom time remove the applied limit, and preserve malformed bookmarked values so users can correct or clear them.

@olestan olestan requested a review from a team as a code owner November 19, 2026 22:56
Copy link
Member

@oliveror oliveror left a comment

Choose a reason for hiding this comment

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

Please preserve the current maximum when someone taps the already selected Custom maximum chip. On mobile, start with a 30-minute maximum, reopen Filters, tap Custom maximum, then Apply filters. Both Explore and My Cookbook silently drop the 30-minute limit. I reproduced this in component tests on the PR head for both pages.

In both controls, handleDraftCookingTimeChange calls setMobileTime('') even when the selection stays the same. An early return for the current selection would preserve the value while still allowing the user to clear the input deliberately. Please add the reselect-and-apply case to the shared control tests.

The 126 existing focused tests passed locally, including the URL validation, disabled queries and draft feedback cases.

@olestan
Copy link
Member Author

olestan commented Nov 20, 2026

Please preserve the current maximum when someone taps the already selected Custom maximum chip. On mobile, start with a 30-minute maximum, reopen Filters, tap Custom maximum, then Apply filters. Both Explore and My Cookbook silently drop the 30-minute limit. I reproduced this in component tests on the PR head for both pages.

In both controls, handleDraftCookingTimeChange calls setMobileTime('') even when the selection stays the same. An early return for the current selection would preserve the value while still allowing the user to clear the input deliberately. Please add the reselect-and-apply case to the shared control tests.

The 126 existing focused tests passed locally, including the URL validation, disabled queries and draft feedback cases.

Fixed in 76ca347. Both controls now return early when the selected cooking-time option is tapped again, preserving the custom maximum while still allowing deliberate input clearing.

@olestan olestan merged commit d5ab8e6 into dev Nov 20, 2026
2 checks passed
@olestan olestan deleted the fix/recipe-usability-and-filter-validation branch November 20, 2026 12:42
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants