Bugfixes + Manuelle reports #127
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 several updates across multiple files, focusing on improving user experience, optimizing performance, and adding new features. The most significant changes include reducing the refetch interval for live data queries, introducing a new "Create Report" feature, and cleaning up unnecessary code for better maintainability.
Performance Improvements:
refetchIntervalforlivekitRoomsqueries from 10 seconds to 5 seconds in multiple components to improve real-time updates (StationStatusToast.tsx[1]AircraftMarkerTabs.tsx[2]AdminPanel.tsx[3]).New Features:
NewReportFormcomponent that allows admins to create reports with user search and role selection capabilities (NewReport.tsx[1]actions.ts[2]new/page.tsx[3]).UserReportssection to include a button for creating a new report pre-filled with the selected user's ID (forms.tsx(apps/hub/app/(app)/admin/user/[id]/_components/forms.tsxL487-R497)).Code Cleanup and UI Adjustments:
useStateandsetDeleteLoadinglogic in theKeywordFormcomponent to simplify the code (Form.tsx[1] [2] [3]).Form.tsx[1] [2]).ReportSenderInfo[1]ReportAdmin[2]ReportPenalties[3]).Backend Enhancements:
createReportfunction to the backend for handling new report submissions (actions.ts).getUserfunction to fetch users based on search criteria (action.ts).Configuration Updates:
command_timeoutin the deployment workflow from 30 minutes to 60 minutes to accommodate longer-running commands (deploy-staging.yml).