-
Notifications
You must be signed in to change notification settings - Fork 3
Add CSV export functionality #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
13Bytes
commented
Jan 15, 2026
- refactor pagination component
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds CSV export functionality to the transaction list and refactors pagination across multiple pages into a reusable component. The changes also include a file reorganization (moving src/pages/me.tsx to src/pages/me/index.tsx) and configuration updates to the Prisma database client.
Changes:
- Added CSV export functionality to the transaction list with time-based filtering options
- Extracted pagination logic into a reusable
Paginationcomponent - Added
datasourceUrlconfiguration to PrismaClient initialization - Moved
/mepage to/me/index.tsx(file reorganization)
Reviewed changes
Copilot reviewed 11 out of 12 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| src/server/db.ts | Added explicit datasourceUrl configuration to PrismaClient |
| src/server/api/routers/transactions.ts | Added new getAllFixedTimespan endpoint for fetching transactions by time period |
| src/pages/me/index.tsx | Moved from src/pages/me.tsx with indentation changes |
| src/pages/me.tsx | File removed (relocated to subfolder) |
| src/pages/admin/grouporders.tsx | Refactored to use new Pagination component and reorganized imports |
| src/pages/admin/allTransactions.tsx | Replaced inline pagination with reusable Pagination component |
| src/pages/account.tsx | Replaced inline pagination with reusable Pagination component |
| src/helper/generalFunctions.ts | Added toFlatPropertyMap utility function for flattening nested objects |
| src/components/PageComponents/TransactionList.tsx | Added CSV export functionality with dropdown menu and query handling |
| src/components/General/Pagination.tsx | New reusable pagination component |
| package.json | Added papaparse CSV parsing library and its TypeScript types |
| package-lock.json | Updated dependencies for papaparse |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>