Skip to content

feat: add recipe sorting by name, modified date, and created date#356

Merged
dubadub merged 3 commits into
cooklang:mainfrom
romainhild:feature/sort-recipes
Jun 12, 2026
Merged

feat: add recipe sorting by name, modified date, and created date#356
dubadub merged 3 commits into
cooklang:mainfrom
romainhild:feature/sort-recipes

Conversation

@romainhild

Copy link
Copy Markdown
Contributor

Overview

Add client-side sorting to the recipes list page. Users can sort by name, last modified date, or creation date. The sort controls must scale gracefully to future sort options without consuming excessive space.
This implement #355.

image

Scope

  • Recipes list page (/ and /directory/*)
  • Sorting applies to recipe cards only; directories always stay pinned at the top
  • No changes to the recipe detail page, API, or search

Not in scope

  • Persisting the selected sort across page loads (no localStorage)
  • Sorting inside subdirectories independently (same controls apply to all levels)
  • Server-side sort (URL params)
  • Sorting the search results dropdown

Disclaimer: The implementation has been done using Claude Code. I made the designs decisions and have reviewed the code.
Specs and implementation plans have been added in docs/

@dubadub

dubadub commented Jun 12, 2026

Copy link
Copy Markdown
Member

Awesome! Looks great!

@dubadub

dubadub commented Jun 12, 2026

Copy link
Copy Markdown
Member

Could you please run cargo fmt and fix clippy issues?

@romainhild

Copy link
Copy Markdown
Contributor Author

@dubadub I ran cargo fmt the code and there was no clippy issue.

@romainhild

Copy link
Copy Markdown
Contributor Author

ok @dubadub I fixed the CI, there is just the claude review that is still failing, but I think I can not do anything about that on my end.

@dubadub dubadub merged commit 633de0b into cooklang:main Jun 12, 2026
5 of 6 checks passed
@dubadub

dubadub commented Jun 12, 2026

Copy link
Copy Markdown
Member

Thanks @romainhild! Merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants