fix(home): hide the 'No pick yet' nudge once the user has any pick

The Now/Next cards fall back to a concurrent-session list when the user
has no pick for that specific slot, and always appended a 'No pick yet —
tap a session in the Agenda to choose.' hint. With picks on other slots
this contradicted the 'My picks today' list right below (screenshot).
ConcurrentList now takes hasPicks and renders the hint only while the
user has no picks at all.

e2e: two new 'Home session picks' cases (hint hidden with a pick on the
other slot; still shown with none, asserted per card). 43/43 local.
Docs: screens.md nudge rule, tests.md regression note.
This commit is contained in:
Lago committed 2026-10-17 10:36:58 +02:00
1 parent 7733af7625
commit 999527b188
4 files changed
+63 -8

No files matched your search

+4
View File
@@ -194,6 +194,10 @@ CONVIVO_BASE_URL=http://127.0.0.1:3000 npm test --prefix e2e -- convivo-admin-en
level pill, and the "Remove my pick" control) and leaves the active tab on
Home; closing the sheet returns to the pick list. This replaces the old
behavior of routing to the Agenda tab.
- **Pick nudge suppression** — with a pick on the *other* slot, the Now card's
concurrent list must **not** show "No pick yet — tap a session in the Agenda
to choose."; with no picks at all the nudge is still shown. Asserted per card
(`.now-card`), since Now and Next each render their own copy.
# Session Persistence Regression