feat: e2e follow-ups (password rules, soft delete, phone cards, dashboard notes) #45

Merged
ngqile merged 9 commits from polish-e2e-followups into main 2026-12-02 02:34:10 +00:00
Owner

OpenSpec change polish-e2e-followups.

  • Login: a company hint (blank = super admin only).
  • Password rules: password screens show the rules that are switched on, and a refusal names the rule that failed (PASSWORD_RULE with param and value). The hint is public and rate-limited on the reset screen.
  • Interests and roles: soft delete. A role in use is refused with a user count, and protected roles are refused. Names of deleted items are reserved.
  • Dashboard: figure notes, including "Won in period".
  • Data tables become cards on phones, with a "Sort by" select. The card action buttons wrap.
  • SQL: openspec/changes/polish-e2e-followups/sql/01-soft-delete.sql (rollback in 99-rollback.sql).

Verification:

  • Portal: vitest 1641 passed (exit 0); tsc and lint clean.
  • Backend: per-task verify was green.
  • Live Playwright check on the local stack at 1280 and 360 px; the results are in tasks.md, task 6.

Known follow-up: Leads shows two "Company" labels, one for the tenant and one for the lead's company. The wording is the owner's call.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs

OpenSpec change `polish-e2e-followups`. - Login: a company hint (blank = super admin only). - Password rules: password screens show the rules that are switched on, and a refusal names the rule that failed (`PASSWORD_RULE` with param and value). The hint is public and rate-limited on the reset screen. - Interests and roles: soft delete. A role in use is refused with a user count, and protected roles are refused. Names of deleted items are reserved. - Dashboard: figure notes, including "Won in period". - Data tables become cards on phones, with a "Sort by" select. The card action buttons wrap. - SQL: `openspec/changes/polish-e2e-followups/sql/01-soft-delete.sql` (rollback in `99-rollback.sql`). Verification: - Portal: vitest 1641 passed (exit 0); tsc and lint clean. - Backend: per-task verify was green. - Live Playwright check on the local stack at 1280 and 360 px; the results are in tasks.md, task 6. Known follow-up: Leads shows two "Company" labels, one for the tenant and one for the lead's company. The wording is the owner's call. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
ngqile added 9 commits 2026-12-02 02:32:55 +00:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
A super admin can delete an interest or a role. Deleted rows leave every
list, picker and filter, keep their names on existing leads, and keep
their names reserved. A role held by any user, and the protected roles,
cannot be deleted. Deletes are audited.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
The system exposes the switched-on admin password rules. mobile-api
serves them to signed-in admins and, rate limited, on an exact public
route for the first-login screen. Every admin password path now refuses
with PASSWORD_RULE naming the first rule broken.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
- Login: company-code hint after an invalid-credentials failure with an empty company.
- Password forms show the active rules (label-first, count-safe) and tie hint and refusal to the input.
- Interests and roles: soft delete with confirm dialogs; deactivate now confirms too.
- Dashboard figure explanations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Below md each row is a card: the first column as title, other columns as
labelled values, actions at the bottom. A sort select replaces the hidden
header; paging is unchanged. One DOM, CSS only, like DashTable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Found in the live check: a refused or failed delete showed the list's Retry,
which can only fail again; the phone sort select was blank until used.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
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
ngqile merged commit d9b6bb04c1 into main 2026-12-02 02:34:10 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ngqile/co-lite#45