feat(FN-316): update design spec to reflect ≤7 day trial banner threshold
Some checks failed
Sync dev → Gitea / Mirror dev to Gitea (push) Has been cancelled

Commits merged:
- docs(FN-316): update design spec to reflect ≤7 day trial banner threshold

Files changed:
docs/design-specs/post-p0-subscription-audit.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Fusion-Task-Id: FN-316
This commit is contained in:
Fusion
2026-05-13 11:59:30 +00:00
parent e5201b2846
commit 2240689602

View File

@@ -216,7 +216,7 @@ Also consider adding skeleton placeholders for the title, billing toggle, Separa
### What was verified:
1. **Component exists and is implemented:** Full component at `components/trial-urgency-banner.tsx` with proper React patterns.
2. **Rendered in dashboard layout:** `<TrialUrgencyBanner />` at top of `<main>` in `dashboard.tsx` — visible on all dashboard pages including subscription.
3. **Display logic:** Shows only when `status === "trial"`, `endDate` exists, and `≤ 3 days` remain.
3. **Display logic:** Shows only when `status === "trial"`, `endDate` exists, and `≤ 7 days` remain.
4. **Dismiss mechanism:** Stores dismissal in `localStorage` keyed by endDate (`trialBannerDismissed-{endDate}`) — persists across sessions until trial end date changes.
5. **i18n keys:** Uses `subscription.trialBanner.title`, `.description`, `.cta` — all present in both `tr.json` and `en.json`.
6. **Visual design:** Amber colorway (`bg-amber-50`, `border-amber-200`, `text-amber-900`) with `AlertTriangle` icon — consistent urgency signaling.