- Updated error handling to provide clearer messages by casting errors to the Error type.
- Cleaned up imports and improved breadcrumb navigation using the resolve function for better path management.
- Streamlined the rendering of options in select elements by adding unique keys for better performance.
- Enhanced the mapping of document categories and symbols for improved readability and maintainability.
- Removed unnecessary 'btn-square' class from buttons in multiple components to streamline styling.
- Updated button elements in SolicitarFerias, editar, cadastro, and times pages for consistency and improved readability.
- Replaced SVG icons with Lucide icons for better visual consistency in the cadastro page.
- Cleaned up imports in the cadastro page to enhance code clarity.
- Refactored multiple Svelte components, including AprovarAusencias, AprovarFerias, and ErrorModal, to improve code clarity and maintainability.
- Updated modal interactions and error handling messages for better user feedback.
- Cleaned up component structures and standardized formatting for consistency across the codebase.
- Enhanced styling and layout adjustments to align with the new design system.
- Refactored Sidebar, ChatList, ChatWindow, and NewConversationModal components for better readability and maintainability.
- Updated user data handling to utilize the latest API responses, ensuring accurate display of user statuses and notifications.
- Improved modal interactions and user feedback mechanisms across chat components.
- Cleaned up unused code and optimized state management for a smoother user experience.
refactor: improve layout and backend monitoring functionality
- Streamlined the layout component in Svelte for better readability and consistency.
- Enhanced the backend monitoring functions by updating argument structures and improving code clarity.
- Added new query functions for system status and database activity, providing better insights into system performance.
- Cleaned up existing code to ensure maintainability and improved error handling across various functions.
- Streamlined the layout component in Svelte for better readability and consistency.
- Enhanced the backend monitoring functions by updating argument structures and improving code clarity.
- Added new query functions for system status and database activity, providing better insights into system performance.
- Cleaned up existing code to ensure maintainability and improved error handling across various functions.
- Removed the .editorconfig file to simplify project configuration.
- Refactored the ChatWidget component to enhance readability and maintainability, including the integration of current user data and improved notification handling.
- Updated backend functions to utilize the new getCurrentUserFunction for user authentication, ensuring consistent user data retrieval across various modules.
- Cleaned up code in multiple backend files, enhancing clarity and performance while maintaining functionality.
- Improved error handling and user feedback mechanisms in user-related operations.
- Deleted the obsolete biome.json file to streamline project configuration.
- Updated package.json and bun.lock to include new ESLint and Prettier dependencies for improved code quality and consistency.
- Added ESLint configuration package for better linting support across the project.
- Cleaned up various package dependencies to ensure a more maintainable and efficient codebase.
- Deleted multiple markdown files related to authentication analysis, push notifications configuration, and environment variable setup to streamline the documentation.
- Removed outdated scripts and guides that are no longer relevant due to the migration to Better Auth.
- Cleaned up the repository by eliminating unnecessary files, ensuring a more focused and maintainable codebase.
- Replaced instances of `authStore` with `currentUser` to streamline user authentication handling.
- Updated permission checks and user-related data retrieval to utilize the new `useQuery` for better performance and clarity.
- Cleaned up component structures and improved formatting for consistency and readability.
- Enhanced error handling and user feedback mechanisms in various components to improve user experience.
- Refactored multiple Svelte components to enhance code clarity and maintainability.
- Standardized formatting and indentation across various files for consistency.
- Improved error handling messages in the AprovarAusencias component for better user feedback.
- Updated class names in the UI components to align with the new design system.
- Removed unnecessary whitespace and comments to streamline the codebase.
- Replaced the use of `useConvexClient` with `useQuery` for fetching the current user.
- Updated avatar URL retrieval to utilize the current user data from Better Auth.
- Refactored login and logout functions to use the new `authClient` methods for improved authentication flow.
- Cleaned up the component structure and styling for better readability and maintainability.
- Adjusted sidebar and footer styles for consistency with the new design system.
- Deleted the `autenticacao.ts` file to streamline the authentication process.
- Updated the `auth.ts` file to include new functions for user management and password updates.
- Modified the schema to enforce the presence of `authId` for users, ensuring integration with Better Auth.
- Refactored the seed process to create users with Better Auth integration, enhancing user management capabilities.
- Cleaned up the `usuarios.ts` file to utilize the new authentication functions and improve code clarity.
- Changed the version of "better-auth" to use a catalog reference in package.json and bun.lock for better dependency management.
- Removed unnecessary comments and cleaned up the code in various files to enhance readability and maintainability.
- Updated the authentication handling in hooks.server.ts to ensure proper token retrieval.
- Simplified the layout and structure of Svelte components for improved clarity and performance.
- Removed the local schema configuration from the auth component, streamlining the integration with Better Auth.
- Updated the client creation to focus solely on the DataModel, enhancing clarity and maintainability.
- Added Better Auth integration to the web application, allowing for dual login support with both custom and Better Auth systems.
- Updated authentication client configuration to dynamically set the base URL based on the environment.
- Enhanced chat components to utilize user authentication status, improving user experience and security.
- Refactored various components to support Better Auth, including error handling and user identity management.
- Improved notification handling and user feedback mechanisms during authentication processes.
- Updated email status query to execute only when there are email IDs, enhancing performance.
- Ensured URL handling in email sending functions always includes a protocol, improving reliability.
- Added new queries for fetching emails by IDs and listing scheduled emails, enriching email management capabilities.
- Introduced drag threshold and movement detection to prevent unintended clicks during dragging.
- Added reactive window dimensions to ensure proper positioning and resizing of the chat widget.
- Refactored mouse event handlers for better separation of concerns and improved user experience.
- Enhanced position adjustment logic to maintain visibility within the viewport during dragging and resizing.
- Added functionality to clear all notifications and clear unread notifications for improved user control.
- Updated NotificationBell component to support modal display for notifications, enhancing user experience.
- Refactored notification handling to separate read and unread notifications, providing clearer organization.
- Introduced new UI elements for managing notifications, including buttons for clearing notifications directly from the modal.
- Improved backend mutations to handle notification deletion securely, ensuring users can only delete their own notifications.
- Added logic to update user email if it differs from the existing record when updating a funcionario.
- Refactored email sending action to improve code readability and maintainability, including consistent formatting and error handling.
- Enhanced logging for email configuration and sending processes to provide clearer feedback during operations.
- Refactored ErrorModal to utilize a dialog element for better accessibility and user experience, including a close button with an icon.
- Updated chat components to improve participant display and message read status, enhancing user engagement and clarity.
- Introduced loading indicators for user and conversation data in SalaReuniaoManager to improve responsiveness during data fetching.
- Enhanced message handling in MessageList to indicate whether messages have been read, providing users with better feedback on message status.
- Improved overall structure and styling across various components for consistency and maintainability.
- Replaced SVG icons with lucide-svelte components across various files for consistency and improved performance.
- Refactored ActionGuard, ErrorModal, FileUpload, and other components to enhance readability and maintainability.
- Updated the dashboard pages to include new icons and improved layout for better user experience.
- Enhanced StatsCard component to support dynamic icon rendering, allowing for more flexible usage.
- Improved overall styling and structure in multiple components to align with design standards.
- Updated `lucide-svelte` dependency to version 0.552.0 across multiple files for consistency.
- Refactored chat components to enhance structure and readability, including adjustments to the Sidebar, ChatList, and MessageInput components.
- Improved notification handling in chat components to ensure better user experience and responsiveness.
- Added type safety enhancements in various components to ensure better integration with backend data models.
- Implemented global notifications for new messages, allowing users to receive alerts even when the chat is minimized or closed.
- Added functionality for users to leave group conversations and meeting rooms, with appropriate notifications sent to remaining participants.
- Introduced a modal for sending notifications within meeting rooms, enabling admins to communicate important messages to all participants.
- Enhanced the chat components to support mention functionality, allowing users to tag participants in messages for better engagement.
- Updated backend mutations to handle user exit from conversations and sending notifications, ensuring robust data handling and user experience.
- Added support for creating and managing group conversations and meeting rooms, allowing users to initiate discussions with multiple participants.
- Implemented a modal for creating new conversations, including options for individual, group, and meeting room types.
- Enhanced the chat list component to filter and display conversations based on type, improving user navigation.
- Introduced admin functionalities for meeting rooms, enabling user management and role assignments within the chat interface.
- Updated backend schema and API to accommodate new conversation types and related operations, ensuring robust data handling.
- Implemented error handling for unhandled promise rejections related to message channels, improving stability during push notification operations.
- Updated the PushNotificationManager component to manage push subscription registration with timeouts, preventing application hangs.
- Enhanced the sidebar and chat components to display user avatars, improving user experience and visual consistency.
- Refactored email processing logic to support scheduled email sending, integrating new backend functionalities for better email management.
- Improved overall error handling and logging across components to reduce console spam and enhance debugging capabilities.
- Added a new section for monitoring email status, allowing users to track the email queue and identify sending issues.
- Updated the backend to support new internal queries for listing pending emails and retrieving email configurations.
- Refactored email-related mutations to improve error handling and streamline the email sending process.
- Enhanced the overall email management experience by providing clearer feedback and monitoring capabilities.
- Updated type definitions in ChatWindow and MessageList components for better type safety.
- Improved MessageInput to handle message responses, including a preview feature for replying to messages.
- Enhanced the chat message handling logic to support message references and improve user interaction.
- Refactored notification utility functions to support push notifications and rate limiting for email sending.
- Updated backend schema to accommodate new features related to message responses and notifications.
- Reorganized the absence management page to improve navigation and accessibility.
- Introduced a menu structure for better categorization of absence-related options.
- Updated the layout and styling for a more modern and user-friendly interface.
- Enhanced the overall user experience by providing clearer descriptions and visual cues for actions related to absence management.
- Added functionality to check for date overlaps with existing absence requests in the absence calendar.
- Implemented a modal to display error messages when users attempt to create overlapping absence requests.
- Updated the calendar component to visually indicate blocked days due to existing approved or pending absence requests.
- Improved user feedback by providing alerts for unavailable periods and enhancing the overall user experience in absence management.
- Updated user-related queries and mutations to retrieve the matricula from associated funcionario records, improving data accuracy.
- Refactored user creation and listing functionalities to ensure matricula is correctly handled and displayed.
- Enhanced error handling and validation for user operations, ensuring a more robust user management experience.
- Improved the overall structure of user-related code for better maintainability and clarity.
- Added functionality for managing absence requests, including listing, approving, and rejecting requests.
- Enhanced the user interface to display statistics and pending requests for better oversight.
- Updated backend schema to support absence requests and notifications, ensuring data integrity and efficient handling.
- Integrated new components for absence request forms and approval workflows, improving user experience and administrative efficiency.
- Changed the indent size in .editorconfig from 4 to 2 spaces for consistency.
- Updated Node.js version in .tool-versions from 25.0.0 to 22.21.1 to align with project requirements.
- Enhanced the employee registration form by adding checkboxes for "Salário Família" and "Imposto de Renda" for each dependent.
- Updated the backend schema and mutations to include optional fields for salary family and income tax benefits.
- Improved the handling of dependent data to accommodate the new fields, enhancing the overall functionality of the dependents management section.
- Enhanced the employee registration form by adding a dependents management section, allowing users to input details such as relationship, name, CPF, and birth date.
- Updated the layout and styling of the audit page, including improved statistics display and user feedback elements.
- Refined the handling of user actions in the audit logs, providing clearer labels and better organization of information.
- Improved the overall user experience by ensuring consistent design patterns and responsive elements across the registration and audit interfaces.
- Introduced functionality to manage dependents during employee registration, allowing users to add details such as relationship, name, CPF, and birth date.
- Updated the backend schema and mutation to support optional dependents, enhancing the employee data model.
- Enhanced the frontend form to include fields for dependents, improving the user experience in the employee registration process.
- Updated the AlertConfigModal component to provide a more interactive and user-friendly experience for configuring alerts.
- Added options for selecting metrics and conditions, along with a preview of the alert configuration.
- Improved form handling for creating and editing alerts, including better state management and error handling.
- Enhanced the display of configured alerts with clear status indicators and action buttons for editing and deleting alerts.
- Added the CalendarioAfastamentos component to display an interactive calendar for managing absences.
- Removed the previous static calendar placeholder and replaced it with a dynamic query to fetch absence events.
- Enhanced user experience by allowing users to visualize absence events directly in the calendar format.
- Updated the document URL fetching logic in the +page.svelte file to use a new query method, enhancing the retrieval process.
- Added a new query in atestadosLicencas.ts to obtain stored document URLs, improving authentication checks and error handling.
- Streamlined the user experience by ensuring URLs are fetched correctly and opened in a new tab when available.
- Changed the initialization of licencaOriginalId to undefined for better clarity in state management.
- Added logic to ensure licencaOriginalId is cleared when not a prorrogação, enhancing data integrity.
- Improved error handling for document retrieval, providing clearer user feedback when URLs cannot be obtained.
- Refactored document URL fetching to streamline the process and enhance user experience.
- Introduced a `required` prop in the `FileUpload` component to enforce mandatory file uploads.
- Enhanced error handling by implementing a modal for displaying error messages related to missing required fields and upload issues.
- Updated the `+page.svelte` file to integrate the new error modal and improve user feedback during form submissions.
- Ensured that all relevant file upload sections now validate the presence of documents before allowing form submission.