feat(activities): hide past events by default + "Past events" filter chip #77
No reviewers
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!77
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "past-events-filter"
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?
Closes #72.
Summary
endDate < now, falling back tostartDate).ActivitiesPage(next to "My tickets" / "Hosting"). Toggle ON to include past activities; OFF by default. Always visible — works for logged-out users too.ActivityCards get a smallPastbadge with the lucideHistoryicon, bottom-left. Suppressed only when a Pending/Rejected status badge is already taking that slot.ActivityDetailPagereplaces the Buy ticket CTA with a muted "This event has already happened" notice when the event is past, so the buy flow is unambiguous if a user lands on a past event by direct link. The owned-tickets pill above still renders so past attendees can find their tickets.pastEvents,past,pastEventkeys added to en/es/fr.Design notes
useActivityFilters.applyFilters, inside theelsebranch of the existingselectedDateguard — so date-pick on a specific past date bypasses the hide (per issue test plan).showPastcounts as an active filter and resets viaresetFilters.Test plan
Pastbadge.changed behavior so that Date-picker, e.g.,
this monthcombined withpast eventsfilter would only show past events this month.