Skip to content

feat: add date-range filter to group activity feed#138

Merged
Sendi0011 merged 2 commits into
JointSave-org:mainfrom
Yasir-TechGuy:improve/activity-feed-date-filter
Jun 27, 2026
Merged

feat: add date-range filter to group activity feed#138
Sendi0011 merged 2 commits into
JointSave-org:mainfrom
Yasir-TechGuy:improve/activity-feed-date-filter

Conversation

@Yasir-TechGuy

Copy link
Copy Markdown
  • Description

Adds a From/To date-range picker above the activity list in group-activity.tsx so users can filter the feed to a specific period without paging through everything chronologically.

  • Add From/To date inputs above the activity list
  • Filter displayed activities to the selected date range (inclusive, full-day bounds) covering both on-chain and Supabase-sourced events
  • Clearing the filter restores the full unfiltered feed
  • Pagination resets to page 1 on every filter change so "Load more" always works correctly within the filtered result set
  • Empty state message distinguishes "no activity yet" from "no results in range"
  • applyDateFilter is a pure function for easy unit testing

Closes #129

Type of Change

  • feat: new feature

How Has This Been Tested?

  • pnpm build succeeds (frontend) — pre-existing papaparse error confirmed unrelated to this PR
  • pnpm lint passes (frontend) — no errors on changed file
  • Manual testing (describe below)

Manual testing performed:

  • Selecting a from/to date range correctly hides activities outside the range
  • Clearing the filter via the Clear button restores all activities
  • "Load more" pagination works correctly within the filtered result set
  • Empty state shows correct message when no activity falls in selected range
  • Works for both on-chain and off-chain activity sources

Checklist

  • My code follows the coding conventions of this project
  • I have added/updated tests if needed
  • I have updated documentation if needed
  • My changes generate no new warnings or errors

closes #129

- Add From/To date inputs above the activity list in group-activity.tsx
- Filter displayed activities to the selected date range (inclusive,
  full-day bounds) covering both on-chain and Supabase-sourced events
- Clearing the filter restores the full unfiltered feed
- Pagination resets to page 1 on every filter change so Load more
  always works correctly within the filtered result set
- Empty state message distinguishes no-activity from no-results-in-range
- applyDateFilter is a pure function for easy unit testing

Closes JointSave-org#129
@Yasir-TechGuy

Copy link
Copy Markdown
Author

Hi Maintainer Please check the PR out

@Sendi0011 Sendi0011 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Yasir-TechGuy I Love the date filter logic — the end-of-day bound on the "to" date and resetting pagination on filter change are both really thoughtful touches. Found one small thing: around the transaction link rendering further down in the file, the <a tag itself seems to have gotten dropped (the attributes — href, target, etc. — are all there, just missing the opening tag). Easy fix, just needs that line restored. Once that's in, this looks great.

@Yasir-TechGuy

Copy link
Copy Markdown
Author

@Sendi0011 Thanks, i will solve it ASAP

@Yasir-TechGuy

Copy link
Copy Markdown
Author

@Sendi0011 Done!

@Sendi0011

Copy link
Copy Markdown
Contributor

@Sendi0011 Done!

Thanks for swift response 👍

@Sendi0011 Sendi0011 self-requested a review June 27, 2026 11:16

@Sendi0011 Sendi0011 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! Merging right away

@Sendi0011 Sendi0011 merged commit 442c6d1 into JointSave-org:main Jun 27, 2026
1 of 2 checks passed
@Yasir-TechGuy

Copy link
Copy Markdown
Author

@Sendi0011 Nice Workig with u!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement] Add a date-range filter to the group activity feed

2 participants