fix(portal): wrap card action buttons on phones; record live check
The Companies card clipped its Edit button at 360 px: the page's own button group did not wrap inside the shared actions cell. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
This commit is contained in:
1 parent
7533163931
commit
a9f647589f
3 files changed
+18
-2
No files matched your search
@@ -42,7 +42,7 @@ Verify commands:
|
||||
- Depends on: 4
|
||||
- Scope: `solvway-admin-portal/app/components/ui/data-table*`, and pages only where a column needs a card label or actions marker
|
||||
- Verify: portal verify
|
||||
- [ ] 6. Live check on the local stack with Playwright at 1280 and 360 px:
|
||||
- [x] 6. Live check on the local stack with Playwright at 1280 and 360 px:
|
||||
- login without a company as staff;
|
||||
- the hint with the symbol rule on and off;
|
||||
- a named refusal;
|
||||
@@ -51,3 +51,11 @@ Verify commands:
|
||||
- cards on Users, Leads, Events, Interests, Roles, Emails, Audit log, Companies and Login security.
|
||||
|
||||
Record the result here.
|
||||
|
||||
Result (2026-12-02, port 3011, local stack):
|
||||
- Passed: the login company hint; the dashboard figure notes; deleting an e2e interest (soft-deleted); deleting a throwaway role `e2e-DelRole` (row gone, `deleted_at` set); the refusal for `e2e-Role`, which `e2e-sales1@INS` still holds ("Users holding this role: 1. Remove it from them first.").
|
||||
- Password hint on New user: with the symbol rule off it lists capital, small and length; with "Minimum symbols 1" on it adds "Symbols: at least 1". The rule was put back to off afterwards.
|
||||
- Named refusal: `abcdefgh1` gets a server 400 shown under the field as `Password does not meet the rule "Capital letters: at least 1"`.
|
||||
- Cards at 360 px with no sideways scroll: Users, Roles, Interests, Leads, Events, Emails, Audit log, Companies and Login security.
|
||||
- Fixed during the check: on a refused delete there is no Retry, and phones show a "Sort by" placeholder (7533163). The Companies action buttons were clipped at 360 px because the page's own `flex gap-2` button group did not wrap; the shared actions cell now wraps its button group.
|
||||
- Left open: Leads shows two "Company" labels, one for the tenant code and one for the lead's own company (keys `Company` and `LeadCompany`). This is a wording decision for the owner.
|
||||
@@ -53,6 +53,14 @@ describe("DataTable phone cards", () => {
|
||||
expect(title.className).toContain("max-md:[overflow-wrap:anywhere]");
|
||||
expect(company.className).toContain("max-md:[overflow-wrap:anywhere]");
|
||||
});
|
||||
|
||||
// Pages wrap their buttons in one `flex gap-2` div; that div must wrap too, or the row clips at 360 px.
|
||||
it("wraps the page's own button group inside the actions cell", () => {
|
||||
renderTable();
|
||||
const actions = cells()[3];
|
||||
expect(actions.className).toContain("max-md:[&>div]:flex-wrap");
|
||||
expect(actions.className).toContain("max-md:[&>div]:justify-end");
|
||||
});
|
||||
});
|
||||
|
||||
describe("DataTable phone sort select", () => {
|
||||
|
||||
@@ -55,7 +55,7 @@ const CARD_CELL =
|
||||
'max-md:flex max-md:justify-between max-md:gap-4 max-md:whitespace-normal max-md:[overflow-wrap:anywhere] max-md:px-1 max-md:py-1 max-md:before:shrink-0 max-md:before:font-medium max-md:before:text-muted-foreground max-md:before:content-[attr(data-label)]'
|
||||
// The title cell is the pinned one; below md it is a plain block, not pinned.
|
||||
const CARD_TITLE = 'max-md:static max-md:bg-transparent max-md:shadow-none max-md:block max-md:whitespace-normal max-md:[overflow-wrap:anywhere] max-md:px-1 max-md:py-1 max-md:text-base max-md:font-semibold'
|
||||
const CARD_ACTIONS = 'max-md:order-last max-md:flex max-md:flex-wrap max-md:justify-end max-md:gap-2 max-md:px-1 max-md:pt-2'
|
||||
const CARD_ACTIONS = 'max-md:order-last max-md:flex max-md:flex-wrap max-md:justify-end max-md:gap-2 max-md:px-1 max-md:pt-2 max-md:[&>div]:flex-wrap max-md:[&>div]:justify-end'
|
||||
|
||||
/**
|
||||
* Data table for server-paginated, server-sorted result sets — which is what
|
||||
|
||||
Reference in new issue
Block a user