Skip to content

Fix Andere Kombinationen button - #51

Merged
ScoreSymphony merged 1 commit into
mainfrom
fix/other-combinations-button
Sep 22, 2026
Merged

ScoreSymphony merged 1 commit into
mainfrom
fix/other-combinations-button

Conversation

@ScoreSymphony

Copy link
Copy Markdown
Owner

Der Button Andere Kombinationen hat bisher nur den Generator-Seed verändert. Wenn keine generierten Kandidaten vorhanden waren, blieb die sichtbare Rezeptliste deshalb vollständig unverändert.

Änderungen:

  • gespeicherte Empfehlungen werden seitenweise rotiert;
  • generierte Empfehlungen variieren mit derselben Seite;
  • der Button wird nur angezeigt, wenn die nächste Auswahl tatsächlich anders ist;
  • nach dem Wechsel springt die Liste wieder nach oben;
  • Tests decken den Seitenwechsel und den Button-Flow ab.

@ScoreSymphony
ScoreSymphony force-pushed the fix/other-combinations-button branch from 9a3a9eb to 38036b6 Compare September 22, 2026 22:57

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9a3a9eb00e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +180 to +183
const storedRanked = rankStoredMatchesWithPreferences(
rankStoredRecipes(filtered, { limit: 24 }),
preferences,
)
.slice(0, 4)
.map((match) => recommendationFromStoredMatch(match, pantry.servings));
);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Apply preference filtering before capping stored pages

When a user has marked many highly ranked recipes as do_not_suggest, this limits the matches to 24 before rankStoredMatchesWithPreferences removes those recipes. For example, suppressing the first 20 matches leaves only four entries in storedRanked, even though eligible matches ranked 25 and below still exist; if the generated set is stable, every page is then identical and the screen hides “Andere Kombinationen.” Filter disallowed recipes before applying the limit so pagination can reach the remaining recommendations.

Useful? React with 👍 / 👎.

@ScoreSymphony
ScoreSymphony merged commit 550d6f9 into main Sep 22, 2026
1 check passed
@ScoreSymphony
ScoreSymphony deleted the fix/other-combinations-button branch September 22, 2026 23:01
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.

1 participant