v2.0.5 #141
Reference in New Issue
Block a user
Delete Branch "staging"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request introduces significant improvements to the filtering and search capabilities of various admin tables in the application, standardizing the use of Prisma's type-safe filtering and enhancing the user experience with more flexible and powerful search options. Additionally, it includes some UI consistency tweaks and a few bug fixes.
Key changes:
Filtering and Search Improvements
filterandsearchFieldsprops with dynamicgetFilterfunctions using Prisma types across multiple admin tables (PaginatedTable), enabling more flexible, type-safe, and case-insensitive search and filtering. This affects components for changelog, heliport, keyword, station, user, event, participant, appointment, report, and connected aircraft. [1] [2] [3] [4] [5] apps/hub/app/(app)/admin/user/[id]/_components/forms.tsxL269-R296, apps/hub/app/(app)/admin/user/[id]/_components/forms.tsxL331-R367, [6] [7] [8] [9] [10] [11]showSearchprop to relevant tables to enable the search UI where appropriate. [1] [2] [3] [4] [5] [6]API and Data Fetching Adjustments
AircraftLayerto use a direct API call with filtering for connected simulators, replacing the previoususeQueryapproach.UI and UX Enhancements
initialOrderByto connection history tables for users, sorting byloginTimedescending. (apps/hub/app/(app)/admin/user/[id]/_components/forms.tsxL269-R296, apps/hub/app/(app)/admin/user/[id]/_components/forms.tsxL331-R367)Permissions and Validation
Minor Fixes and Cleanups
AircraftMarkercomponent to import and use thecheckSimulatorConnectedutility.filterprop tosupressQuerywhere needed in appointment-related tables for clarity and correctness. [1] [2]These changes collectively modernize the admin interface, making it more robust, user-friendly, and maintainable.