Skip to content

Conversation

oliveror
Copy link
Member

Group feedback identified a navigation bug after publishing or editing a recipe. The detail page chose its Back label from the recipe, but could send the user to the previous history entry. That entry could be the editor or the same recipe.

  • “Back to My Cookbook” now links to the cookbook after publishing. Editing carries the original list URL through the save, including filters, page and fragment. A recipe opened from Explore keeps its Explore return link.
  • Explore and My Cookbook search after a 300 ms pause. Enter and the Search button still submit immediately.
  • Searching for cake includes titles such as cupcakes after ordinary word-start matches. The API ranks before pagination and applies the selected sort within each match group. Migration 0006 backfills existing recipes using the current PostgreSQL search index. Title fragments participate from three characters.
  • The cookbook labels its existing timestamp sort “Newest by creation date.”

Regression coverage includes both browser return paths, editing from filtered list URLs, debounced request counts on both browse pages, and PostgreSQL ranking across a page boundary.

This targets dev independently of #132. The mobile custom-time issue is tracked in that PR’s review.

@oliveror oliveror requested a review from a team as a code owner November 20, 2026 12:19
Copy link
Member

@olestan olestan left a comment

Choose a reason for hiding this comment

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

Found one issue on both Explore and My Cookbook:

  1. Type cake in the search field.
  2. Before the 300 ms debounce finishes, change the sort to “Shortest cooking time”.
  3. The search field clears, and only the sort is applied.

useDebouncedRecipeSearch.ts resets the input and cancels the pending search whenever the URL changes. Could we keep the typed search when changing sort or filters?

Otherwise, the navigation fixes look good.

@oliveror oliveror requested a review from olestan November 20, 2026 14:40
@oliveror oliveror merged commit e88f5f5 into dev Nov 20, 2026
2 checks passed
@oliveror oliveror deleted the fix/cookbook-navigation-and-search branch November 20, 2026 15:31
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