Skip to content

Improve recipe panel scrolling - #8

Merged
relyen-dev merged 1 commit into
mainfrom
feature/recipe-panel-row-scrolling
Jun 15, 2026
Merged

Improve recipe panel scrolling#8
relyen-dev merged 1 commit into
mainfrom
feature/recipe-panel-row-scrolling

Conversation

@relyen-dev

Copy link
Copy Markdown
Owner

Summary

  • Keep recipe search and tab controls reachable while recipe rows scroll beneath them.
  • Reset the recipe row scroller when switching recipe groups or base recipe subtabs.
  • Preserve page-style scrolling on narrow/mobile layouts.

Impact

This makes the Recipes workbench easier to navigate after scrolling through long recipe lists without changing planner data, persistence, solver behavior, or exported plan formats.

Validation

  • npm.cmd test -- apps/web/src/features/planner/workbench/planner-recipes-section.component.test.ts
  • npm.cmd test
  • npm.cmd run build (passes with existing Angular bundle budget warning)
  • Headless Edge verification for desktop fixed tabs/list scrolling and mobile overflow behavior

@relyen-dev
relyen-dev marked this pull request as ready for review June 15, 2026 14:19
@relyen-dev
relyen-dev requested a review from Copilot June 15, 2026 14:20
@relyen-dev relyen-dev self-assigned this Jun 15, 2026

Copilot AI 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.

Pull request overview

This PR refines the Recipes workbench layout so the search field and tab controls remain accessible while long recipe lists scroll beneath them, and ensures the recipe list scroll position resets when switching recipe groups/subtabs.

Changes:

  • Updated recipes section CSS grid/overflow rules to make only the recipe rows area scroll on desktop while preserving page-style scrolling on narrow/mobile layouts.
  • Added explicit tab-selection handlers that reset the recipe list scroll position after switching panels/subtabs.
  • Refactored and extended unit tests to validate the new scroll-reset behavior.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
apps/web/src/features/planner/workbench/planner-workbench-sections.css Introduces desktop-only nested scrolling for recipe rows and disables section-level scrolling; restores page scrolling on narrow screens.
apps/web/src/features/planner/workbench/planner-recipes-section.component.ts Adds viewChild access to the recipe list element and resets scroll on recipe group/subtab switches.
apps/web/src/features/planner/workbench/planner-recipes-section.component.html Routes tab/subtab clicks through new handlers and adds #recipeList refs for scroll reset targeting.
apps/web/src/features/planner/workbench/planner-recipes-section.component.test.ts Adds coverage for scroll reset and refactors test setup to support the new behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +993 to +997
.planner-shell .work-section--recipes .recipe-list {
min-height: 0;
padding: 0 10px 10px;
overflow: auto;
overscroll-behavior: contain;
@relyen-dev
relyen-dev force-pushed the feature/recipe-panel-row-scrolling branch from 66546d8 to 7988cd9 Compare June 15, 2026 14:35
@relyen-dev
relyen-dev merged commit 5ff24e5 into main Jun 15, 2026
1 check passed
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