Skip to content

feat(frontend): align management page headers and controls - #1269

Merged
khaira777 merged 3 commits into
mainfrom
fm/ship-1154-management-headers
Oct 21, 2026
Merged

khaira777 merged 3 commits into
mainfrom
fm/ship-1154-management-headers

Conversation

@khaira777

@khaira777 khaira777 commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #1154

Intent

Resolve FreeOpenSourcePOS/FloCafe GitHub issue #1154 (feat(backoffice): align management page headers and controls). Give Products, Inventory, and Customers pages a consistent, compact hierarchy for page actions and list controls: Row 1 has the page title (h1) on the left and the primary Add action on the right; Row 2 has the page tabs () below that heading when tabs exist; Row 3 has search, filters, and contextual secondary actions (Assign Tax Category, CSV, Print Menu, or filter checkboxes) below the tabs. Adapt rows cleanly to narrow screens (1024x768, 1366x768, 1440x900) without horizontal overflow, preserve the #993 scroll-region contracts (keeping page headers, tabs, and list controls pinned above the scrollable table region on standard viewports while falling back to page flow on short viewports), follow the Ponytail approach (no new shared page-layout abstraction), verify with Playwright E2E tests and screenshots, run through /no-mistakes to open the PR linked to #1154 (Fixes #1154), and do not merge the PR.

What Changed

  • Restructured the Products page header and control layout into a three-row hierarchy: page title and primary creation action in Row 1, navigation tabs in Row 2, and search with contextual secondary actions (tax category assignment, CSV, and print menu) in Row 3 pinned above scrollable content panes.
  • Added flex wrapping and gap spacing to the header containers on Customers and Inventory pages to prevent horizontal overflow on narrower desktop viewports.
  • Expanded layout integrity Playwright tests across desktop viewports (1024x768, 1366x768, and 1440x900) to verify row positioning, scroll pinning, and absence of horizontal overflow across Products, Inventory, and Customers pages.

Risk Assessment

✅ Low: The header and control alignments across Products, Inventory, and Customers pages follow the required compact three-row hierarchy and preserve scroll-region and narrow-viewport invariants without adding unneeded abstractions.

Testing

Exercised the full backoffice management header hierarchy and scroll-pinning layout across Products, Inventory, and Customers routes under viewports 1024x768, 1366x768, 1440x900, 1024x500 (fallback), and 683x384 (200% zoom) against a live isolated server instance; all 5 derived scenarios passed and 9 visual screenshots were captured into the evidence directory.

  • Live validation: ✅ go - 5 of 5 scenarios driven live against the product
Scenario Result Live Evidence
Products page renders compact 3-row hierarchy (Row 1: title + Add Product; Row 2: tabs; Row 3: search + secondary actions) and pins controls above scrollable table across viewports (1024x768, 1366x768… ✅ pass live ~/.no-mistakes/evidence/01M5FT0XN19K77TEWD70PNKGEV/products-1024x768.png, ~/.no-mistakes/evidence/01M5FT0XN19K77TEWD70PNKGEV/products-1440x900.png, and Playwrig…
Products sub-tabs (Categories and Addon Groups) show context-sensitive primary Add action on Row 1, contextual CSV actions on Row 3, and keep controls pinned while tables scroll ✅ pass live ~/.no-mistakes/evidence/01M5FT0XN19K77TEWD70PNKGEV/products-categories-1024x768.png, ~/.no-mistakes/evidence/01M5FT0XN19K77TEWD70PNKGEV/products-addons-1024x768…
Inventory page renders Row 1 (title + Add Supply/Recipe CTA), Row 2 (tabs: Supplies, Recipes, Movements), and keeps controls pinned above scrollable records without horizontal overflow across 1024x768… ✅ pass live ~/.no-mistakes/evidence/01M5FT0XN19K77TEWD70PNKGEV/inventory-supplies-1024x768.png, ~/.no-mistakes/evidence/01M5FT0XN19K77TEWD70PNKGEV/inventory-recipes-1024x76…
Customers page renders Row 1 (title + Add Customer CTA) and Row 2/3 search input pinned above scrollable records without horizontal overflow across standard viewports ✅ pass live ~/.no-mistakes/evidence/01M5FT0XN19K77TEWD70PNKGEV/customers-1024x768.png and Playwright test customers keeps the title, add action and search visible while the rows scroll
Management lists cleanly fall back to natural page flow on short landscape viewports (1024x500) and preserve full reachability at effective 200% zoom (683x384) without clipping or locking controls off… ✅ pass live ~/.no-mistakes/evidence/01M5FT0XN19K77TEWD70PNKGEV/fallback-short-viewport-1024x500.png, ~/.no-mistakes/evidence/01M5FT0XN19K77TEWD70PNKGEV/zoom-200pct-683x384.…

Products page at 1024x768 (Row 1 title & Add Product, Row 2 tabs, Row 3 search & actions)
Products page at 1440x900 standard desktop viewport
Categories tab with Row 1 Add Category and Row 3 CSV action
Addon Groups tab with Row 1 Add Addon Group and Row 3 CSV action
Inventory Supplies tab with Row 1 Add Supply and pinned controls
Inventory Recipes tab with Row 1 Create Recipe and pinned controls
Customers page with Row 1 Add Customer and pinned search bar
Short viewport (1024x500) fallback to natural page flow
200% zoom emulation (683x384) with fully reachable controls and rows

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 5 of 5 scenarios driven live against the product
Scenario Result Live Evidence
Products page renders compact 3-row hierarchy (Row 1: title + Add Product; Row 2: tabs; Row 3: search + secondary actions) and pins controls above scrollable table across viewports (1024x768, 1366x768… ✅ pass live ~/.no-mistakes/evidence/01M5FT0XN19K77TEWD70PNKGEV/products-1024x768.png, ~/.no-mistakes/evidence/01M5FT0XN19K77TEWD70PNKGEV/products-1440x900.png, and Playwrig…
Products sub-tabs (Categories and Addon Groups) show context-sensitive primary Add action on Row 1, contextual CSV actions on Row 3, and keep controls pinned while tables scroll ✅ pass live ~/.no-mistakes/evidence/01M5FT0XN19K77TEWD70PNKGEV/products-categories-1024x768.png, ~/.no-mistakes/evidence/01M5FT0XN19K77TEWD70PNKGEV/products-addons-1024x768…
Inventory page renders Row 1 (title + Add Supply/Recipe CTA), Row 2 (tabs: Supplies, Recipes, Movements), and keeps controls pinned above scrollable records without horizontal overflow across 1024x768… ✅ pass live ~/.no-mistakes/evidence/01M5FT0XN19K77TEWD70PNKGEV/inventory-supplies-1024x768.png, ~/.no-mistakes/evidence/01M5FT0XN19K77TEWD70PNKGEV/inventory-recipes-1024x76…
Customers page renders Row 1 (title + Add Customer CTA) and Row 2/3 search input pinned above scrollable records without horizontal overflow across standard viewports ✅ pass live ~/.no-mistakes/evidence/01M5FT0XN19K77TEWD70PNKGEV/customers-1024x768.png and Playwright test customers keeps the title, add action and search visible while the rows scroll
Management lists cleanly fall back to natural page flow on short landscape viewports (1024x500) and preserve full reachability at effective 200% zoom (683x384) without clipping or locking controls off… ✅ pass live ~/.no-mistakes/evidence/01M5FT0XN19K77TEWD70PNKGEV/fallback-short-viewport-1024x500.png, ~/.no-mistakes/evidence/01M5FT0XN19K77TEWD70PNKGEV/zoom-200pct-683x384.…
  • npm run build
  • npm run build:frontend
  • cd frontend && CI=1 E2E_BASE_URL=http://127.0.0.1:4001 E2E_KDS_BASE_URL=http://127.0.0.1:4002 E2E_SERVER_APP_BASE_URL=http://127.0.0.1:4003 npx playwright test e2e/layout-integrity.spec.ts -g "products keeps the title, tabs and product actions visible while the rows scroll"
  • cd frontend && CI=1 E2E_BASE_URL=http://127.0.0.1:4001 E2E_KDS_BASE_URL=http://127.0.0.1:4002 E2E_SERVER_APP_BASE_URL=http://127.0.0.1:4003 npx playwright test e2e/layout-integrity.spec.ts -g "products keeps each tab’s own actions visible while that tab’s rows scroll"
  • cd frontend && CI=1 E2E_BASE_URL=http://127.0.0.1:4001 E2E_KDS_BASE_URL=http://127.0.0.1:4002 E2E_SERVER_APP_BASE_URL=http://127.0.0.1:4003 npx playwright test e2e/layout-integrity.spec.ts -g "inventory keeps the title, tabs and active filters visible across its tabs"
  • cd frontend && CI=1 E2E_BASE_URL=http://127.0.0.1:4001 E2E_KDS_BASE_URL=http://127.0.0.1:4002 E2E_SERVER_APP_BASE_URL=http://127.0.0.1:4003 npx playwright test e2e/layout-integrity.spec.ts -g "inventory actions stay functional after the rows scroll"
  • cd frontend && CI=1 E2E_BASE_URL=http://127.0.0.1:4001 E2E_KDS_BASE_URL=http://127.0.0.1:4002 E2E_SERVER_APP_BASE_URL=http://127.0.0.1:4003 npx playwright test e2e/layout-integrity.spec.ts -g "customers keeps the title, add action and search visible while the rows scroll"
  • cd frontend && CI=1 E2E_BASE_URL=http://127.0.0.1:4001 E2E_KDS_BASE_URL=http://127.0.0.1:4002 E2E_SERVER_APP_BASE_URL=http://127.0.0.1:4003 npx playwright test e2e/layout-integrity.spec.ts -g "management lists fall back to page flow on a short landscape viewport"
  • cd frontend && CI=1 E2E_BASE_URL=http://127.0.0.1:4001 E2E_KDS_BASE_URL=http://127.0.0.1:4002 E2E_SERVER_APP_BASE_URL=http://127.0.0.1:4003 npx playwright test e2e/layout-integrity.spec.ts -g "management lists stay reachable at an effective 200% zoom viewport"
  • node scratch/drive_scenarios.cjs (automated end-to-end browser driver against live e2e server capturing 9 viewport screenshots across all 5 scenarios)
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: FreeOpenSourcePOS/FloCafe/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0abc0b76-5f0f-4fca-9719-0efeb278bdca

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@khaira777

Copy link
Copy Markdown
Contributor Author

@greptileai review this at apex

@greptile-apps

greptile-apps Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: apex

[Low impact] This PR appears safe to merge.

Summary

Aligns the Products, Inventory, and Customers headers and expands desktop layout checks.

  • Products keeps each tab’s actions above its list.
  • Inventory lets its heading and Add action wrap.
  • Customers lets its heading controls wrap on narrow screens.

Reviews (2) · Last reviewed commit: "test(e2e): verify scroll-pinning across ..." · Reviewed by Greptile

Comment thread frontend/e2e/layout-integrity.spec.ts Resolved
@khaira777

Copy link
Copy Markdown
Contributor Author

@greptileai review this at apex

@khaira777
khaira777 merged commit 1e49123 into main Oct 21, 2026
23 checks passed
@khaira777
khaira777 deleted the fm/ship-1154-management-headers branch October 21, 2026 19:04
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.

feat(backoffice): align management page headers and controls

1 participant