Skip to content

fix: keep list and customer controls visible - #997

Merged
khaira777 merged 1 commit into
mainfrom
codex/management-scroll-controls
Oct 8, 2026
Merged

khaira777 merged 1 commit into
mainfrom
codex/management-scroll-controls

Conversation

@khaira777

@khaira777 khaira777 commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Addresses #993: Keep management (Products, Inventory, Customers) and customer view controls visible on scroll.

  • Products: Page root bounded flex shell with min-h-0. Headers, tabs, and action toolbar are shrink-0. Table cards are bounded scrollers.
  • Inventory: Title/add row, tabs, and active tab search/filters pinned above bounded scrollers for supplies, recipes, and movements.
  • Customers: Title/add row and search field pinned above bounded list scroller.
  • Customer-facing display: Viewport-bounded column; business/connection header is shrink-0, section headings stay fixed while order tile grids scroll independently at md+.
  • Short viewports: Fallback to standard block flow on @media (max-height: 560px) to avoid unusable strip trapping.
  • E2E layout specs: Added 11 new tests in layout-integrity.spec.ts validating pinning and reachability on desktop, mobile, short landscape, and 200% zoom equivalents.

Summary by CodeRabbit

  • Improvements
    • Management lists now scroll within their panels, keeping headers and controls in place while making the final items reachable.
    • The customer display now keeps preparing and ready orders independently scrollable on wider screens, with a single vertical flow on smaller screens.
    • Short screens have more flexible dashboard layouts.
  • Testing
    • Added coverage for scrolling, filtering, keyboard focus, narrow and zoomed layouts, and customer-display loading and connection states.

@khaira777

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: FreeOpenSourcePOS/FloCafe/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 930842c7-67f6-4a94-82e2-2d1d6f56ef38
📥 Commits

Reviewing files that changed from the base of the PR and between 4736602 and 857411f.

📒 Files selected for processing (6)
  • frontend/e2e/layout-integrity.spec.ts
  • frontend/src/app/(dashboard)/customers/page.tsx
  • frontend/src/app/(dashboard)/inventory/page.tsx
  • frontend/src/app/(dashboard)/products/page.tsx
  • frontend/src/app/customer-display/page.tsx
  • frontend/src/app/globals.css

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.


Walkthrough

Dashboard lists and customer-display panels now use constrained layouts with scrollable regions. E2E tests add synthetic data setup and verify scrolling, control visibility, filtering, actions, and behavior across viewport sizes and display states.

Changes

Responsive layouts

Layer / File(s) Summary
Dashboard list scroll layouts
frontend/src/app/(dashboard)/customers/page.tsx, frontend/src/app/(dashboard)/inventory/page.tsx, frontend/src/app/(dashboard)/products/page.tsx, frontend/src/app/globals.css
Customer, inventory, and product pages use constrained flex layouts with scrollable list regions. A short-viewport rule adjusts dashboard scroll containers.
Management-list fixtures and checks
frontend/e2e/layout-integrity.spec.ts
E2E fixtures seed and clean up synthetic management data. Tests check list scrolling, pinned controls, filtering, actions, keyboard focus, and short or zoomed viewports.
Customer-display panels and checks
frontend/src/app/customer-display/page.tsx, frontend/e2e/layout-integrity.spec.ts
Preparing and ready order grids scroll independently on wider screens, while the combined grid scrolls on smaller screens. E2E tests cover refresh, narrow viewports, and loading, empty, and connection-error states.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 85741

This change keeps list controls and customer display headings visible while content scrolls. No actionable merge-blocking risk was identified.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description clearly summarizes the main UI changes and added E2E coverage, but it omits most required template sections, including related work, scope, exact verification commands and results, com… Complete the required pull request template sections. Add the related issue or state that none applies; define the out-of-scope items; list exact commands and results; document database, migration, user-visible, and network impact; provide …
Docstring Coverage ⚠️ Warning Docstring coverage is 30.77% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 13 functions across 5 files. (1 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately describes the primary change: keeping list and customer controls visible while content scrolls.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description clearly summarizes the main UI changes and added E2E coverage, but it omits most required template sections, including related work, scope, exact verification commands and results, compatibility and data safety, cross-cutting surfaces, screenshots status, developer documentation status, and the contributor checklist.

Resolution

Complete the required pull request template sections. Add the related issue or state that none applies; define the out-of-scope items; list exact commands and results; document database, migration, user-visible, and network impact; provide screenshots or state that they are not applicable; complete the cross-cutting surface table; select the applicable developer documentation option; and complete the contributor checklist.

Full details: Docstring Coverage

Explanation

Docstring coverage is 30.77% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 13 functions across 5 files. (1 skipped: 1 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

frontend/e2e/layout-integrity.spec.ts

ESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox.

frontend/src/app/(dashboard)/customers/page.tsx

ESLint skipped: the matched ESLint configuration already failed (missing-dependency).

frontend/src/app/(dashboard)/inventory/page.tsx

ESLint skipped: the matched ESLint configuration already failed (missing-dependency).

  • 3 others

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@khaira777
khaira777 merged commit 0017192 into main Oct 8, 2026
16 checks passed
@khaira777
khaira777 deleted the codex/management-scroll-controls branch October 8, 2026 04:00
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