Commit Graph

148 Commits

Author SHA1 Message Date
d6aaa15cf4 feat: enhance point registration and location validation features
- Refactored the RegistroPonto component to improve the layout and user experience, including a new section for displaying standard hours.
- Updated RelogioSincronizado to include GMT offset adjustments for accurate time display.
- Introduced new location validation logic in the backend to ensure point registrations are within allowed geofenced areas.
- Enhanced the device information schema to capture additional GPS data, improving the reliability of location checks.
- Added new endpoints for managing allowed marking addresses, facilitating better control over where points can be registered.
2025-11-21 05:12:27 -03:00
3da364fb02 feat: add statistics visualization and improve data handling in point registration
- Introduced a bar chart to visualize statistics of point registrations, including on-time and late records.
- Enhanced data handling by implementing checks for valid records and improved grouping logic for better data representation.
- Added loading states and error handling for improved user feedback during data retrieval.
- Refactored the layout to include a detailed statistics section, enhancing the overall user experience in the point management interface.
2025-11-20 18:56:16 -03:00
d50760f0db refactor: improve point management UI and query handling
- Updated the logic for handling query parameters in point management, ensuring better state management when no employee is selected.
- Enhanced the UI for editing and adjusting point records with a more modern card layout and improved input fields.
- Introduced loading states for queries to provide better user feedback during data retrieval.
- Refactored the rendering of records and homologations to improve performance and user experience.
2025-11-20 14:25:52 -03:00
e029cd1d6b feat: enhance dispensa management with modal confirmation and time input improvements
- Introduced a modal for confirming the removal of dispensas, improving user interaction and preventing accidental deletions.
- Updated time input fields to use a more user-friendly format, allowing for direct time selection.
- Refactored state management for dispensa creation, ensuring better handling of time and date inputs.
- Enhanced UI elements for better feedback and clarity during the dispensa creation process.
2025-11-20 13:58:12 -03:00
8ea5c0316b feat: implement homologation deletion and detail viewing features
- Added functionality to delete homologations, restricted to users with managerial permissions.
- Introduced modals for viewing details of homologations and confirming deletions, enhancing user interaction.
- Updated the backend to support homologation deletion, including necessary permission checks and data integrity management.
- Enhanced the UI to display alerts for unassociated employees and active dispensas during point registration, improving user feedback and error handling.
2025-11-20 07:01:33 -03:00
57c37fedef feat: unify editing and adjustment forms for point management
- Replaced separate editing and adjustment modes with a unified form that allows users to switch between editing hours and adjusting bank hours.
- Introduced new state management for active tab selection and formatted time input.
- Implemented functions to convert between time formats and calculate periods between dates.
- Enhanced user experience with improved layout and validation for date and time inputs.
- Updated the UI to reflect changes in the form structure, ensuring a more cohesive interaction for users managing point records.
2025-11-19 16:59:26 -03:00
db61df1fb4 feat: add new features for point management and registration
- Introduced "Homologação de Registro" and "Dispensa de Registro" sections in the dashboard for enhanced point management.
- Updated the WidgetGestaoPontos component to include new links and icons for the added features.
- Enhanced backend functionality to support the new features, including querying and managing dispensas and homologações.
- Improved the PDF generation process to include daily balance calculations for employee time records.
- Implemented checks for active dispensas to prevent unauthorized point registrations.
2025-11-19 16:37:31 -03:00
ed5695cf28 refactor: adjust modal dimensions and enhance PDF generation for point registration
- Updated modal height settings in ComprovantePonto and RegistroPonto components for improved layout and user experience.
- Adjusted image display sizes to ensure better visibility and consistency across the application.
- Enhanced PDF generation logic to include a summary of the employee's bank of hours, providing clearer insights into time management.
- Implemented checks for page overflow in PDF generation, ensuring content fits within the document layout.
2025-11-19 06:41:26 -03:00
7cdc726781 feat: implement customizable point registration labels and GMT offset adjustment
- Added functionality to customize labels for point registration types (Entrada, Saída, etc.) in the configuration settings.
- Introduced a GMT offset adjustment feature to account for time zone differences during point registration.
- Updated the backend to ensure default values for custom labels and GMT offset are set correctly.
- Enhanced the UI to allow users to input and save personalized names for each type of point registration.
- Improved the point registration process to utilize the new configuration settings for displaying labels consistently across the application.
2025-11-19 06:22:07 -03:00
f465bd973e refactor: improve layout and functionality of ComprovantePonto modal
- Enhanced the modal layout for better user experience, including fixed header and footer.
- Implemented a scrollable content area for improved visibility of registration details.
- Updated button styles for better interaction feedback.
- Ensured consistent error handling and loading states for data retrieval.
2025-11-19 05:14:28 -03:00
b660d123d4 feat: add PDF receipt generation for point registration
- Implemented a new feature to generate a PDF receipt for point registrations, including employee and registration details.
- Integrated jsPDF for PDF creation and added functionality to include a logo and captured images in the receipt.
- Enhanced the UI with a print button for users to easily access the receipt generation feature.
- Improved the confirmation modal layout for better user experience during point registration.
2025-11-19 05:09:54 -03:00
d16f76daeb feat: update point registration process with mandatory photo capture and location details
- Removed location details from the point receipt, now displayed only in detailed reports.
- Implemented mandatory photo capture during point registration, enhancing accountability.
- Added confirmation modal for users to verify details before finalizing point registration.
- Improved error handling for webcam access and photo capture, ensuring a smoother user experience.
- Enhanced UI components for better feedback and interaction during the registration process.
2025-11-19 04:54:03 -03:00
67d6b3ec72 feat: enhance webcam capture and geolocation functionality
- Improved webcam capture process with multiple constraint strategies for better compatibility and error handling.
- Added loading state management for video readiness, enhancing user experience during webcam access.
- Refactored geolocation retrieval to implement multiple strategies, improving accuracy and reliability in obtaining user location.
- Enhanced error handling for both webcam and geolocation features, providing clearer feedback to users.
2025-11-18 16:20:38 -03:00
b01d2d6786 feat: enhance point registration and management features
- Added functionality to capture and display images during point registration, improving user experience.
- Implemented error handling for image uploads and webcam access, ensuring smoother operation.
- Introduced a justification field for point registration, allowing users to provide context for their entries.
- Enhanced the backend to support new features, including image handling and justification storage.
- Updated UI components for better layout and responsiveness, improving overall usability.
2025-11-18 15:28:26 -03:00
f0c6e4468f feat: integrate point management features into the dashboard
- Added a new "Meu Ponto" section for users to register their work hours, breaks, and attendance.
- Introduced a "Controle de Ponto" category in the Recursos Humanos section for managing employee time records.
- Enhanced the backend schema to support point registration and configuration settings.
- Updated various components to improve UI consistency and user experience across the dashboard.
2025-11-18 11:44:12 -03:00
031c151967 refactor: enhance AprovarAusencias component with improved UI and layout
- Updated card styling and layout for a more modern and user-friendly experience.
- Enhanced visual elements, including updated icons and spacing for better readability.
- Improved responsiveness and hover effects for interactive elements.
- Refined status display and error handling for clearer user feedback.
2025-11-18 10:13:54 -03:00
af6353fa40 refactor: enhance password change page with improved UI and functionality
- Updated the layout and styling of the password change page for a more modern and user-friendly experience.
- Integrated new icons and visual elements to enhance the overall design and accessibility.
- Improved form handling with better loading states and error messages for user feedback.
- Added security tips and password requirements to guide users during the password change process.
2025-11-18 07:09:40 -03:00
22e77d8890 refactor: enhance Sidebar login modal with improved styling and loading state management
- Added loading state management to the login modal for better user feedback during authentication.
- Updated modal styling with a gradient background and improved button interactions for a more modern look.
- Enhanced error message display and form input fields for better accessibility and user experience.
- Refined layout and spacing for a cleaner presentation of the login form and auxiliary links.
2025-11-18 07:02:54 -03:00
db098ceea9 refactor: optimize query handling and state management in perfil page
- Updated query logic to ensure stable data retrieval for user-related information, reducing unnecessary re-creations.
- Implemented derived states to manage loading and error conditions more effectively, enhancing user experience.
- Improved synchronization of query results with stable states, ensuring data consistency during loading phases.
- Refactored existing queries to utilize stable keys based on user IDs, preventing issues with undefined states.
2025-11-18 06:51:22 -03:00
422dc6f022 refactor: enhance ProtectedRoute and dashboard components for improved access control and user experience
- Updated the ProtectedRoute component to optimize access checking logic, preventing unnecessary re-checks and improving authentication flow.
- Enhanced the dashboard page to automatically open the login modal for authentication errors and refined loading states for better user feedback.
- Improved UI elements across various components for consistency and visual appeal, including updated tab styles and enhanced alert messages.
- Removed redundant footer from the vacation management page to streamline the interface.
2025-11-18 06:34:55 -03:00
3420872a37 refactor: enhance Sidebar and dashboard components for improved UI and functionality
- Updated the Sidebar component to change the support link and improve modal styling for better user experience.
- Refined the dashboard page by optimizing data handling for real-time monitoring, ensuring fallback values for activity and distribution data.
- Improved progress bar calculations to prevent division by zero errors, enhancing stability and user feedback.
- Adjusted layout and styling for consistency and better visual appeal across components.
2025-11-18 03:31:54 -03:00
71550874ce feat: update system branding and improve user interface consistency
- Changed all instances of "Sistema de Gerenciamento da Secretaria de Esportes" to "Sistema de Gerenciamento de Secretaria" for a more concise branding.
- Enhanced the PrintModal component with a user-friendly interface for selecting sections to include in PDF generation.
- Improved error handling and user feedback during PDF generation processes.
- Updated various components and routes to reflect the new branding, ensuring consistency across the application.
2025-11-18 03:10:10 -03:00
7c8be8a818 feat: implement response management for tickets in central chamados
- Added functionality to respond to tickets, including text input and file attachment options.
- Implemented methods for handling file uploads and managing response state, including feedback messages for users.
- Enhanced the UI to allow users to select a ticket and provide a response, with options to mark tickets as completed.
- Improved type safety by specifying types for user and ticket data throughout the component.
2025-11-17 19:15:50 -03:00
0e5a26b5fd feat: add 'Cancelado_RH' status to vacation management
- Introduced a new status 'Cancelado_RH' for vacation requests, allowing for better tracking of cancellations by HR.
- Updated the UI components to reflect the new status, including badge colors and alert messages.
- Enhanced backend schema and mutation to support the new status, ensuring consistency across the application.
- Improved logging and state management for better performance and user experience.
2025-11-17 19:07:03 -03:00
2c3d231d20 refactor: enhance authentication and access control in ProtectedRoute component
- Updated the ProtectedRoute component to improve access control logic, including a timeout mechanism for handling authentication checks.
- Refactored the checkAccess function to streamline user access verification based on roles and authentication status.
- Added comments for clarity on the authentication flow and the use of the convexClient plugin in the auth.ts file.
- Improved the overall structure and readability of the code in auth.ts and ProtectedRoute.svelte.
2025-11-17 16:27:15 -03:00
8a613128a5 Merge branch 'master' into feat-cibersecurity 2025-11-17 11:49:18 -03:00
3d9e8ae1f8 Merge remote-tracking branch 'origin/master' into bug-perfil 2025-11-17 11:41:41 -03:00
d173e2a255 feat: improve alert configuration form and user experience
- Added a new input field for alert configuration names, enhancing clarity for users creating or editing configurations.
- Implemented a function to clear the alert configuration form, allowing users to start fresh when creating new settings.
- Updated feedback messages to provide clearer guidance on saving and updating configurations.
- Enhanced the layout of the alert settings section for better usability and organization.
- Introduced smooth scrolling to the alert form when editing configurations, improving navigation experience.
2025-11-17 11:19:51 -03:00
7e3c100fb9 feat: enhance alert configuration management and reporting features
- Integrated jsPDF and autoTable for generating detailed security reports in PDF format, improving report acceapps/web/src/lib/components/ti/CybersecurityWizcard.sveltessibility and presentation.
- Added functionality to clear alert configuration forms, allowing users to easily create new configurations without residual data.
- Updated alert configuration management to include user-friendly input fields for email and chat notifications, enhancing user experience.
- Improved the layout and organization of the alert settings section for better clarity and usability.
- Enhanced feedback messages for saving and updating alert configurations, providing clearer user guidance.
2025-11-17 11:19:03 -03:00
05d3a394da Merge branch 'feat-central-chamados' into feat-cibersecurity 2025-11-17 10:19:10 -03:00
29118d22ce refactor: reorganize and enhance cybersecurity components
- Refactored the CybersecurityWizcard component for improved readability and maintainability, including better formatting of code and comments.
- Moved the Alertas e Notificações section to a more logical position within the layout, enhancing user experience.
- Updated text labels for clarity, changing "Wizcard de Segurança Avançada" to "Segurança Avançada" and "Cibersecurity SGSE" to "Central de segurança cibernética".
- Improved the structure of various elements for better alignment and presentation in the UI.
2025-11-17 10:14:54 -03:00
55847e2a77 feat: add SLA statistics and real-time monitoring to central-chamados
- Introduced new queries to fetch SLA statistics and real-time SLA data for better ticket management insights.
- Enhanced the central-chamados route to display SLA performance metrics, including compliance rates and ticket statuses by priority.
- Implemented fallback logic for statistics calculation to ensure data availability even when queries return undefined.
- Refactored the UI to include a dedicated section for SLA performance, improving user experience and data visibility.
2025-11-17 09:33:33 -03:00
5ef6ef8550 feat: enhance SLA management and authentication handling
- Updated the useConvexWithAuth hook to improve token management and logging for better debugging.
- Integrated automatic authentication handling in the central-chamados route, ensuring seamless user experience.
- Added a new mutation for migrating old SLA configurations to include a priority field, enhancing data consistency.
- Improved the display of SLA configurations in the UI, including detailed views and migration feedback for better user interaction.
- Refactored ticket loading logic to enrich ticket data with responsible user names, improving clarity in ticket management.
2025-11-17 08:44:18 -03:00
fb784d6f7e refactor: simplify ticket form and SLA configuration handling
- Removed SLA configuration selection from the TicketForm component to streamline the ticket creation process.
- Updated the abrir-chamado route to eliminate unnecessary SLA loading logic and directly pass loading state to the TicketForm.
- Enhanced the central-chamados route to support SLA configurations by priority, allowing for better management of SLA settings.
- Introduced new mutations for SLA configuration management, including creation, updating, and deletion of SLA settings.
- Improved email templates for ticket notifications, ensuring better communication with users regarding ticket status and updates.
2025-11-16 15:41:16 -03:00
24b8eb6a14 feat: integrate Convex authentication across ticket management routes
- Added useConvexWithAuth hook to ensure authenticated access for ticket-related pages.
- Updated the perfil and central-chamados routes to include the authentication setup.
- Enhanced user navigation by adding a new "Meus Chamados" tab in the perfil page for better access to ticket management.
2025-11-16 14:19:01 -03:00
60e0bfa69e feat: add report printing and deletion functionality
- Implemented a new feature to print security reports with structured JSON observations, enhancing report accessibility.
- Added a deletion function for reports, allowing users to remove reports with confirmation prompts.
- Updated the CybersecurityWizcard component to include action buttons for printing and deleting reports, improving user interaction.
- Enhanced the backend with a mutation to handle report deletions, ensuring proper cleanup of associated artifacts.
2025-11-16 08:24:58 -03:00
70d405d98d feat: implement alert configuration and recent report features
- Added alert configuration management for email and chat notifications, allowing users to set preferences for severity levels, attack types, and notification channels.
- Introduced functionality to save, edit, and delete alert configurations, enhancing user control over security notifications.
- Implemented a new query to list recent security reports, providing users with quick access to the latest security incidents.
- Enhanced the backend schema to support alert configurations and recent report tracking, improving overall security management capabilities.
2025-11-16 07:37:36 -03:00
88983ea297 feat: integrate rate limiting and enhance security features
- Added @convex-dev/rate-limiter dependency to manage request limits effectively.
- Implemented rate limiting configurations for IPs, users, and endpoints to prevent abuse and enhance security.
- Introduced new security analysis endpoint to detect potential attacks based on incoming requests.
- Updated backend schema to include rate limit configurations and various cyber attack types for improved incident tracking.
- Enhanced existing security functions to incorporate rate limiting checks, ensuring robust protection against brute force and other attacks.
2025-11-16 01:20:57 -03:00
ea01e2401a feat: enhance security features and backend schema
- Added new cron jobs for automatic IP block expiration and threat intelligence synchronization to improve security management.
- Expanded the backend schema to include various types of cyber attack classifications, security event statuses, and incident action types for better incident tracking and response.
- Introduced new tables for network sensors, IP reputation, port rules, threat intelligence feeds, and security events to enhance the overall security infrastructure.
- Updated API definitions to incorporate new security-related modules, ensuring comprehensive access to security functionalities.
2025-11-15 07:25:01 -03:00
118051ad56 refactor: update menu and routing for ticket management
- Replaced references to "Solicitar Acesso" with "Abrir Chamado" across the application for consistency in terminology.
- Updated routing logic to reflect the new ticket management flow, ensuring that the dashboard and sidebar components point to the correct paths.
- Removed the obsolete "Solicitar Acesso" page, streamlining the user experience and reducing unnecessary navigation options.
- Enhanced backend schema to support new ticket functionalities, including ticket creation and management.
2025-11-14 22:50:03 -03:00
9b3b095c01 feat: enhance file upload component and backend schema
- Updated the FileUpload component to improve file handling and state management, including better cancellation logic and input handling.
- Added a new alias in the Svelte configuration for easier backend access.
- Enhanced the backend schema to include a gestorSuperiorId for better team management and query capabilities.
- Refactored queries and mutations in the backend to support the new structure and improve data retrieval for subordinate teams.
2025-11-14 22:11:06 -03:00
d8da7e2a05 refactor: enhance FileUpload component with improved error handling and UI updates
- Refactored the FileUpload component to improve code readability and maintainability.
- Enhanced error handling during file upload and removal processes, providing clearer feedback to users.
- Updated UI elements for better alignment and consistency, including file type previews and action buttons.
- Integrated the resolve function for help URLs to ensure proper linking.
- Streamlined file validation logic for size and type checks, improving user experience.
2025-11-14 21:55:28 -03:00
b503045b41 refactor: integrate ProtectedRoute component across dashboard pages
- Added the ProtectedRoute component to various dashboard pages to enforce authentication and role-based access control.
- Updated allowedRoles and maxLevel parameters for specific routes to align with the new permission management structure.
- Enhanced user experience by ensuring consistent access checks across the application.
2025-11-14 16:15:21 -03:00
3c371bc35c refactor: update permission management and role structure
- Enhanced the permission management system by introducing a new base permissions structure, allowing for better organization and clarity.
- Updated the role creation process to normalize role levels, limiting them to two levels: 0 (maximum access) and 1 (administrative access).
- Improved the UI for permission displays, ensuring users are informed when no permissions are available.
- Added alerts and messages to guide users in creating permissions when none exist.
- Streamlined backend queries for permissions and roles to improve performance and maintainability.
2025-11-14 15:12:54 -03:00
731f95d0b5 refactor: update vacation scheduling button logic and UI
- Modified the vacation scheduling button to enable/disable based on employee ID availability.
- Improved user feedback with dynamic button titles reflecting the validation status of employee data.
- Cleaned up the button's SVG structure for better readability and maintainability.
2025-11-14 11:42:51 -03:00
Kilder Costa
33a9c9e81d Merge pull request #23 from killer-cf/correcao-ferias
Correcao ferias
2025-11-14 09:24:50 -03:00
73d550aa96 refactor: optimize vacation data aggregation and logging
- Updated the logic for aggregating approved vacation requests to streamline data handling and improve performance.
- Enhanced logging to provide detailed insights into vacation periods and requests, aiding in debugging and monitoring.
- Cleaned up code formatting for better readability and maintainability, ensuring a consistent coding style throughout the component.
2025-11-13 16:39:56 -03:00
c058865817 refactor: update vacation management structure and enhance status handling
- Renamed and refactored vacation-related types and components for clarity, transitioning from 'SolicitacaoFerias' to 'PeriodoFerias'.
- Improved the handling of vacation statuses, including the addition of 'EmFérias' to the status options.
- Streamlined the vacation request and approval components to better reflect individual vacation periods.
- Enhanced data handling in backend queries and schema to support the new structure and ensure accurate status updates.
- Improved user experience by refining UI elements related to vacation periods and their statuses.
2025-11-13 15:54:59 -03:00
Kilder Costa
fe68dd9d11 Merge pull request #18 from killer-cf/fix-page-with-lint-errors
Fix page with lint errors
2025-11-13 08:55:09 -03:00
4ae5baffcc refactor: enhance gestor status calculation and stability
- Introduced a more robust calculation for determining if a user is a gestor, considering team membership, roles, and subordinate requests.
- Implemented stable state management to prevent UI flickering during updates.
- Added logging for debugging purposes to track changes in gestor status.
- Improved overall user experience by ensuring consistent visibility of tabs based on gestor status.
2025-11-13 06:51:53 -03:00