Files
co-lite/docs/superpowers/specs/2026-12-02-e2e-followups-design.md
T

2.1 KiB

E2E follow-ups: login hint, password hint, soft delete, dashboard labels, phone cards

Date: 2026-12-02. Source: the owner's manual click-every-button e2e of the production build, and the owner's answers the same day.

Decisions (owner)

  1. Login: say a company is needed. Done without leaking whether a username exists: the hint is chosen from the empty company field, not from the server's answer.
  2. Password: follow the Login security rules, which are already enforced, and make sure admins have screens to set them (they do, under Login security, Settings). What changes is that the hint is built from the switched-on rules instead of a fixed sentence, and a refusal names the failed rule.
  3. Attended default on staff-added leads: follow my recommendation and keep it. The event-attendance spec already says a staff capture during the event days is attended, and outside the event days it is not.
  4. Dashboard "Won in period" against the funnel: checked first. Both follow the lead-dashboard spec (wins in the period whenever captured, against the period's captures by current stage). Fix by explaining each figure on screen.
  5. Soft delete for interests and roles. Guests already have removal for invited-only guests; registered guests stay, per event-invitations.
  6. Phone cards: every shared-table listing becomes cards below md.
  7. Translations: a separate change (add-zh-cn-messages).

Approaches

  • Phone cards: generic cards inside DataTable (chosen: one place, every listing) against hand-made cards per page (nicer but nine pages of work, and new pages would forget them).
  • Soft delete: deleted_at column (chosen: keeps history and audit names) against hard delete with checks (loses lead tag names) or reusing active (already means "not offered" and stays listed).
  • Password hint: rules read from the server (chosen: the hint can never disagree with the check) against a portal copy of the rules.

Non-goals

Hard delete, undelete in the UI, per-company password rules, changing attendance or guest-removal rules.

OpenSpec: openspec/changes/polish-e2e-followups/.