Skip to content

#202 Use Page Filters as URL Query Params#209

Open
tsudhakar87 wants to merge 3 commits into
mainfrom
202-expense-page-filters
Open

#202 Use Page Filters as URL Query Params#209
tsudhakar87 wants to merge 3 commits into
mainfrom
202-expense-page-filters

Conversation

@tsudhakar87
Copy link
Copy Markdown
Contributor

ℹ️ Issue

Closes #202

📝 Description

Write a short summary of what you added. Why is it important? Any member of C4C should be able to read this and understand your contribution -- not just your team members.

  1. Created a reusable useQueryParams hook that stores filter state in the URL
  2. Wired the expenses page filters to use that hook
  3. Added tests for the hook

✔️ Verification

What steps did you take to verify your changes work? These should be clear enough for someone to be able to clone the branch and follow the steps themselves.

Started frontend & backend
Authorized myself by retrieving access token via curl then setting it in local storage
Applied filters in expenses page which then modified the url
Pasted the url into new tab, which loaded the page with filters applied

Screenshot 2026-05-12 at 8 49 46 PM

🏕️ (Optional) Future Work / Notes

Did you notice anything ugly during the course of this ticket? Any bugs, design challenges, or unexpected behavior? Write it down so we can clean it up in a future ticket!

@github-actions github-actions Bot requested a review from shreeyaadhikari May 13, 2026 01:34
github-actions Bot added a commit that referenced this pull request May 13, 2026
Copy link
Copy Markdown
Collaborator

@nourshoreibah nourshoreibah left a comment

Choose a reason for hiding this comment

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

looks good!

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.

Implement expense page filters as query params

2 participants