Repository navigation
feat(frontend): align management page headers and controls - #1269
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
|
@greptileai review this at apex |
[Low impact] This PR appears safe to merge.
|
|
@greptileai review this at apex |
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
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.
customers keeps the title, add action and search visible while the rows scrollPipeline
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.
customers keeps the title, add action and search visible while the rows scrollnpm run buildnpm run build:frontendcd 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.