Activities feed shows past events with no indication — hide by default + add a "Past events" filter chip #72
Labels
No labels
app:activities
app:chat
app:events
app:forum
app:libra
app:market
app:restaurant
app:tasks
app:wallet
app:webapp
bug
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aiolabs/webapp#72
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The activity feed renders every activity from the Nostr subscription
regardless of whether it's already happened. Past events show up
alongside upcoming ones with nothing on the card distinguishing them,
so the user has to read the date on each card to figure out what
they're actually able to attend.
Proposed fix
Two pieces:
"past" when
endDate < now(fall back tostartDate < nowwhenendDateis absent). Implementation goes inuseActivityFilters.applyFilters— sits cleanly next to theexisting temporal pills (Today/Tomorrow/This Week/etc.) and
composes with category filters via the same intersection.
ActivitiesPage(next to the "My tickets" chip from #71). Togglingit ON includes past events in the feed; OFF (default) hides them.
When ON, each past
ActivityCardgets a smallPastbadge so theuser can spot at a glance which ones already happened. Use the
same lucide icon language we already lean on (a clock or
History-style glyph).Out of scope
arrive over the wire from the NIP-52 subscription — filtering is
purely client-side). Fine; the wire volume is tiny.
ActivityDetailPagealready renders the date prominently so nodetail-page-side change is strictly required, but landing a "this
event already happened" hint above the buy CTA would be a nice
follow-up if we want the buy flow to be 100% unambiguous.
Test plan
a
Pastbadge.past activities in the selected categories).
show regardless of the chip state (date-pick overrides the
past-events hide, mirroring how the existing date-pick
overrides the temporal pills).