From 51ef5b9611bf2635a637fb751b0cb435160b1c71 Mon Sep 17 00:00:00 2001 From: ngqile Date: Wed, 2 Dec 2026 20:34:02 +0800 Subject: [PATCH] fix(notifications): fit the header at 360 px and recount the bell after Mark all read The bell pushed the user menu off a 360 px screen; the right-hand controls now use smaller gaps and a capped company picker on phones. Mark all read on the page now tells the bell to recount at once instead of on its next poll. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs --- openspec/changes/add-lead-notifications/tasks.md | 2 +- .../app/components/app/CompanyPicker.tsx | 2 +- solvway-admin-portal/app/components/app/Header.tsx | 2 +- .../app/components/app/NotificationsBell.test.tsx | 10 ++++++++++ .../app/components/app/NotificationsBell.tsx | 3 ++- solvway-admin-portal/app/lib/services/notifications.ts | 3 +++ solvway-admin-portal/app/notifications/page.test.tsx | 4 ++++ solvway-admin-portal/app/notifications/page.tsx | 2 ++ 8 files changed, 24 insertions(+), 4 deletions(-) diff --git a/openspec/changes/add-lead-notifications/tasks.md b/openspec/changes/add-lead-notifications/tasks.md index b260e2e..14e00d3 100644 --- a/openspec/changes/add-lead-notifications/tasks.md +++ b/openspec/changes/add-lead-notifications/tasks.md @@ -30,7 +30,7 @@ Design: `design.md` and `docs/superpowers/specs/2026-12-02-lead-notifications-de ## 4. Release - [x] 4.1 `docs/deployment.md`: the SQL rows and the follow-up job's cron property. -- [ ] 4.2 Live Playwright check on the local stack, signed in as two users of different companies: +- [x] 4.2 Live Playwright check on the local stack, signed in as two users of different companies: - assigning a lead notifies the salesperson and not the other company; - a landing-page sign-up notifies the event's sales team; - a WhatsApp message (mock) on an owned chat shows one notification per chat; diff --git a/solvway-admin-portal/app/components/app/CompanyPicker.tsx b/solvway-admin-portal/app/components/app/CompanyPicker.tsx index 23290e7..60754a3 100644 --- a/solvway-admin-portal/app/components/app/CompanyPicker.tsx +++ b/solvway-admin-portal/app/components/app/CompanyPicker.tsx @@ -16,7 +16,7 @@ export default function CompanyPicker() { if (!isSuper) return null; return (