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
62 lines
4.6 KiB
Markdown
62 lines
4.6 KiB
Markdown
# Tasks: polish-e2e-followups
|
|
|
|
Every task is TDD, followed by the review gate. Tasks run serially (the WhatsApp change holds the other worker slot).
|
|
|
|
Verify commands:
|
|
- **Backend:** `mvn -T 1C -q -pl <modules> verify`
|
|
- **Portal:** `cd solvway-admin-portal && npx vitest run; echo VITEST=$? && npx tsc --noEmit && npm run lint`
|
|
|
|
- [x] 1. SQL: `sql/01-soft-delete.sql` and `sql/99-rollback.sql`, mirrored into `local/seed/` and applied to the running local database.
|
|
- Depends on: none
|
|
- Scope: `openspec/changes/polish-e2e-followups/sql/**`, `local/seed/**`
|
|
- Verify: seed load in a throwaway MySQL with the compose flags; `SHOW COLUMNS` lists `deleted_at` on both tables.
|
|
- [x] 2. Soft delete backend:
|
|
- Interest delete in counter. Lists, capture options and filters exclude deleted rows. Lead views keep the name. The deleted-name duplicate error is a distinct reason.
|
|
- Role delete in system, refused with `ROLE_IN_USE` and a count while any user holds the role. The role list and user role picker exclude deleted rows. Deleted-name reason.
|
|
- mobile-api admin endpoints `DELETE /api/admin/interests/{id}` and `DELETE /api/admin/roles/{id}`, super admin only, audited.
|
|
- Depends on: 1
|
|
- Scope: `solvway-services-counter/**`, `solvway-services-system/**`, `solvway-mobile-api/**`
|
|
- Verify: `mvn -T 1C -q -pl solvway-services-counter,solvway-services-system,solvway-mobile-api verify`
|
|
- [x] 3. Password rules backend:
|
|
- Switched-on admin rules `[{param, value}]` from system.
|
|
- mobile-api `GET /api/admin/password-rules/active` (any signed-in admin) and `GET /api/public/password-rules` (public, per-IP limited, gateway and public-path exemptions exact).
|
|
- The named refusal: `PASSWORD_RULE` with `param` and `value` on every admin password path (create user, set temporary, change own, first login, reset by link).
|
|
- Depends on: 2
|
|
- Scope: `solvway-services-system/**`, `solvway-mobile-api/**`, `solvway-api-gateway/**` (security: controller reads the whole diff)
|
|
- Verify: `mvn -T 1C -q -pl solvway-services-system,solvway-mobile-api,solvway-api-gateway verify`
|
|
- [x] 4. Portal behaviour:
|
|
- the login hint when the company is empty;
|
|
- `PasswordRulesHint`, built from the rules, on the four password screens, with the named refusal message;
|
|
- interest Delete and Deactivate confirmations;
|
|
- role Delete with the in-use message;
|
|
- Cancel buttons in the add and edit dialogs;
|
|
- the dashboard explanation lines;
|
|
- the message keys.
|
|
- Depends on: 3
|
|
- Scope: `solvway-admin-portal/**` except `app/components/ui/data-table*`
|
|
- Verify: portal verify
|
|
- [x] 5. Phone cards in `DataTable` below `md`:
|
|
- title from the first column, labelled values, actions at the bottom;
|
|
- a sort select when columns sort, and shared paging;
|
|
- opt-out for pages with their own cards.
|
|
- 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
|
|
- [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;
|
|
- delete an e2e interest and an e2e role (and the refusal for a role in use);
|
|
- the dashboard lines;
|
|
- 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.
|