-
Notifications
You must be signed in to change notification settings - Fork 0
feat(reports): add filters, export options, and timestamps #144
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
Add spec for implementing functional filter dropdowns on the Current Locations tab: - Location filter (populated from locations API) - Time range filter (Live, Today, Week, Stale) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Plan for adding functional filter dropdowns to Reports: - Location filter (searchable dropdown, server-side filtering) - Time range filter (simple select, client-side filtering) - 7 tasks, complexity 2/10, confidence 9/10 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Implement functional filter dropdowns for Current Locations tab: - Location filter: searchable dropdown with server-side filtering - Time range filter: client-side freshness filtering (Live, Today, Week, Stale) - Filter-aware empty state with "Clear filters" action Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add PDF, CSV, Excel export for Current Locations tab - Add PDF, CSV, Excel export for Asset History tab - Show actual timestamps (Jan 30, 2026 10:30 AM) with relative time - Remove stale assets tab - Clean up unused ExportCsvButton and related code Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
🚀 Preview Deployment Update ✅ This PR has been successfully merged into the preview branch. The preview environment will update shortly at: https://app.preview.trakrf.id |
- Show results count (e.g., "Showing 25 results (filtered)")
- Share button is icon-only on mobile, full button on desktop
- Search and filter inputs fill width on mobile
- Date range inputs are full width on mobile
- Add hint for infinite scroll ("scroll to load more")
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
🚀 Preview Deployment Update ✅ This PR has been successfully merged into the preview branch. The preview environment will update shortly at: https://app.preview.trakrf.id |
Move empty states outside the card container to match the Asset History tab pattern. Empty states now use flex-1 to fill available space consistently. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
🚀 Preview Deployment Update ✅ This PR has been successfully merged into the preview branch. The preview environment will update shortly at: https://app.preview.trakrf.id |
- All inputs on same line with flex-wrap (wraps on mobile) - Consistent h-[42px] height for all inputs, dropdowns, and buttons - Search, filters, and share button align properly - Works on both Current Locations and Asset History tabs Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
🚀 Preview Deployment Update ✅ This PR has been successfully merged into the preview branch. The preview environment will update shortly at: https://app.preview.trakrf.id |
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
🚀 Preview Deployment Update ✅ This PR has been successfully merged into the preview branch. The preview environment will update shortly at: https://app.preview.trakrf.id |
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
🚀 Preview Deployment Update ✅ This PR has been successfully merged into the preview branch. The preview environment will update shortly at: https://app.preview.trakrf.id |
Summary
Implements TRA-322: Reports Filters - Adding filtering, export, and UX improvements to the Reports page.
Features
Filtering
location_idquery param)Export Options
Timestamps
UX Improvements
Implementation Details
New Files
src/utils/export/reportsExport.ts- Export generators (CSV, Excel, PDF)src/components/reports/LocationFilter.tsx- Searchable location dropdownsrc/components/reports/TimeRangeFilter.tsx- Time range selectsrc/hooks/reports/useReportsFilters.ts- Combined filter state managementModified Files
ReportsScreen.tsx- Main page with filters, export, flex-wrap layoutAssetHistoryTab.tsx- Export options, unified layoutCurrentLocationsTable.tsx- Timestamp displayCurrentLocationCard.tsx- Timestamp display for mobileShareButton.tsx- Consistent h-[42px] heightDateRangeInputs.tsx- Consistent h-[42px] heightAssetSelector.tsx- Consistent h-[42px] heightAPI Integration
/api/v1/reports/current-locations?location_id=Xlast_seentimestamp)Validation
Screenshots
Test on preview environment after deployment.
🤖 Generated with Claude Code