Skip to content
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

Fix record board export not taking filters into account #8505

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

charlesBochet
Copy link
Member

@charlesBochet charlesBochet commented Nov 14, 2024

Fix Export CSV action not taking into account the filters applied on the Kanban index view

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR refactors the record export functionality to properly handle filters when exporting records from the record board view, with improved organization of export-related hooks and components.

  • Added filter support in useExportFetchRecords by integrating with contextStoreFilters and contextStoreTargetedRecordsRule
  • Moved export hooks to dedicated /export directory for better code organization
  • Added handling of hidden kanban fields in exports when using kanban view
  • Added comprehensive test coverage for both table and kanban view exports in useExportFetchRecords.test.ts
  • Improved currency field handling in useExportProcessRecordsForCSV with proper type safety

8 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

Copy link
Member

@Weiko Weiko left a comment

Choose a reason for hiding this comment

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

LGTM

@charlesBochet charlesBochet merged commit 5384b4a into main Nov 14, 2024
17 of 19 checks passed
@charlesBochet charlesBochet deleted the fix-kanban-not-taking-filters branch November 14, 2024 22:28
charlesBochet added a commit that referenced this pull request Nov 15, 2024
Fix Export CSV action not taking into account the filters applied on the
Kanban index view
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.

2 participants