Commit Graph

97 Commits

Author SHA1 Message Date
90eee27ba7 feat: enhance alert configuration modal with improved user interface and functionality
- 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.
2025-11-04 04:35:03 -03:00
0fee0cfd35 feat: integrate interactive absence calendar in atestados-licencas page
- 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.
2025-11-04 04:02:07 -03:00
bc3c7df00f feat: refactor document URL retrieval for atestados and licencas
- 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.
2025-11-04 03:46:50 -03:00
ccc8c5d5f4 fix: update licencaOriginalId handling and improve error feedback in document retrieval
- 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.
2025-11-04 03:45:09 -03:00
6d613fe618 feat: add required field validation and error handling in file upload component
- 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.
2025-11-04 03:37:22 -03:00
c6c88f85a7 feat: enhance login process with IP capture and improved error handling
- Implemented an internal mutation for login that captures the user's IP address and user agent for better security and tracking.
- Enhanced the HTTP login endpoint to extract and log client IP, improving the overall authentication process.
- Added validation for IP addresses to ensure only valid formats are recorded, enhancing data integrity.
- Updated the login mutation to handle rate limiting and user status checks more effectively, providing clearer feedback on login attempts.
2025-11-04 03:26:34 -03:00
f278ad4d17 feat: capture and log browser information during user login
- Integrated browser information capture in the login process, including user agent and IP address.
- Enhanced device and browser detection logic to provide more detailed insights into user environments.
- Improved system detection for various operating systems and devices, ensuring accurate reporting during authentication.
2025-11-04 02:27:56 -03:00
372b2b5bf9 feat: add statistics and filtering options for user roles in dashboard
- Introduced a new `StatsCard` component to display statistics related to user roles, including total profiles and access levels.
- Implemented filtering options for user roles based on access level, enhancing the user experience in the dashboard.
- Improved the layout and styling of the dashboard, including adjustments to the filters and role display cards for better usability.
- Added derived state for active filters and statistics, ensuring real-time updates in the UI.
2025-11-04 02:19:09 -03:00
e6105ae8ea fix: update email configuration handling and improve type safety
- Changed the mutation for testing SMTP connection to use an action for better handling.
- Introduced an internal mutation to update the test timestamp for email configurations.
- Enhanced type safety by specifying document types for user and session queries.
- Improved error handling in the SMTP connection test to provide clearer feedback on failures.
2025-11-04 01:59:08 -03:00
3b89c496c6 feat: enhance scheduling and management of email notifications
- Added functionality to cancel scheduled email notifications, improving user control over their email management.
- Implemented a query to list all scheduled emails for the current user, providing better visibility into upcoming notifications.
- Enhanced the email schema to support scheduling features, including a timestamp for scheduled delivery.
- Improved error handling and user feedback for email scheduling actions, ensuring a smoother user experience.
2025-11-04 00:43:13 -03:00
7fb1693717 feat: enhance email notification system with tracking and feedback
- Introduced a new feature to track email statuses by implementing a mapping of email IDs.
- Added a query to fetch email statuses based on tracked IDs, improving the monitoring of email delivery.
- Enhanced the logging system for email and chat notifications, providing detailed feedback on the sending process.
- Implemented user feedback messages for various actions, improving the overall user experience.
- Refactored the notification sending logic to support better error handling and status updates.
2025-11-04 00:19:35 -03:00
ce24190b1a feat: enhance email configuration and validation features
- Implemented mutual exclusivity for SSL and TLS options in the email configuration.
- Added comprehensive validation for required fields, port range, email format, and password requirements.
- Updated the backend to support reversible encryption for SMTP passwords, ensuring secure handling of sensitive data.
- Introduced loading states and improved user feedback in the email configuration UI for better user experience.
2025-11-03 23:51:57 -03:00
3d8f907fa5 feat: implement scheduling for notifications with enhanced validation
- Added functionality to schedule notifications for future delivery, including date and time selection in the UI.
- Implemented validation to ensure scheduled times are in the future and correctly formatted.
- Updated backend email handling to support scheduled sending, with appropriate checks for agendamentos.
- Enhanced user feedback for both immediate and scheduled notifications, improving overall user experience.
2025-11-03 23:11:27 -03:00
e59d96735a refactor: enhance notification management UI and improve data handling
- Refactored the notification management component to improve data extraction from queries, ensuring robust handling of loading states and errors.
- Introduced a modal for creating new templates, including validation and user authentication checks.
- Enhanced the notification sending logic to support bulk sending and provide detailed feedback on the sending process.
- Improved UI elements for better user experience, including loading indicators and dynamic user selection options.
2025-11-03 23:04:31 -03:00
35ff55822d login broken usuario 2025-11-03 17:01:19 -03:00
0d011b8f42 refactor: enhance role management UI and integrate profile management features
- Introduced a modal for managing user profiles, allowing for the creation and editing of profiles with improved state management.
- Updated the role filtering logic to enhance type safety and readability.
- Refactored UI components for better user experience, including improved button states and loading indicators.
- Removed outdated code related to permissions and streamlined the overall structure for maintainability.
2025-11-03 15:14:33 -03:00
c1d9958c9f refactor: update user role management and enhance UI components
- Updated the user role management logic to improve type safety and error handling, including better handling of role permissions and user associations.
- Refactored the UI components for user management, enhancing the layout and styling for better user experience.
- Removed outdated code related to menu permissions and streamlined the database schema for roles and profiles.
- Improved the overall structure and readability of the codebase, ensuring consistency across components.
2025-11-03 15:12:10 -03:00
5cb63f9437 refactor: improve type safety and error handling in vacation management components
- Updated the `AprovarFerias.svelte` component to use specific types for `solicitacao` and `gestorId`, enhancing type safety.
- Improved error handling by refining catch blocks to handle errors more accurately.
- Made minor adjustments to ensure consistent code formatting and readability across the component.
2025-10-31 13:39:41 -03:00
f1b9860310 change dependencies 2025-10-31 08:44:11 -03:00
5469c50d90 feat: add svelte-sonner dependency and enhance NotificationBell component
- Added `svelte-sonner` to dependencies for improved notification handling.
- Refactored the `NotificationBell.svelte` component for better readability and maintainability, including code formatting and structure improvements.
- Updated `package.json` and `bun.lock` to reflect the new dependency.
2025-10-30 14:55:51 -03:00
ff9ca523cd Merge remote-tracking branch 'origin/master' into feat-ajuste-acesso 2025-10-30 14:01:08 -03:00
23bdaa184a Add monitoring features and alert configurations
- Introduced new system metrics tracking with the ability to save and retrieve metrics such as CPU usage, memory usage, and network latency.
- Added alert configuration functionality, allowing users to set thresholds for metrics and receive notifications via email or chat.
- Updated the sidebar component to include a new "Monitorar SGSE" card for real-time system monitoring.
- Enhanced the package dependencies with `papaparse` and `svelte-chartjs` for improved data handling and charting capabilities.
- Updated the schema to support new tables for system metrics and alert configurations.
2025-10-30 13:36:29 -03:00
2841a2349d refactor: remove unused authentication module and related dependencies; update package.json and bun.lock for improved dependency management; enhance access control UI with expanded resource management features 2025-10-30 12:34:14 -03:00
fd445e8246 feat: enhance vacation management system with new employee association functionality, improved email notification handling, and comprehensive documentation; update dependencies and UI components for better user experience 2025-10-30 09:27:10 -03:00
21b41121db refactor: remove outdated avatar and chat update documentation files; streamline project structure for improved maintainability 2025-10-30 09:25:53 -03:00
ef20d599eb feat: implement professional avatar system with 30 3D realistic avatars inspired by cinema; enhance upload functionality and user experience with instant updates and improved UI components 2025-10-30 02:16:50 -03:00
16bcd2ac25 feat: implement vacation management system with request approval, notification handling, and employee training tracking; enhance UI components for improved user experience 2025-10-29 22:05:29 -03:00
1058375a90 refactor: remove unused authentication files and dependencies; update package.json to streamline dependencies and improve project structure 2025-10-29 18:57:05 -03:00
6b14059fde feat: implement advanced access control system with user blocking, rate limiting, and enhanced login security; update UI components for improved user experience and documentation 2025-10-29 09:07:37 -03:00
d41a7cea1b feat: enhance employee management UI with state management, responsive chart dimensions, and duplicate symbol removal functionality in backend 2025-10-28 11:58:45 -03:00
ee2c9c3ae0 feat: implement comprehensive chat system with user presence management, notification handling, and avatar integration; enhance UI components for improved user experience 2025-10-28 11:57:54 -03:00
81e6eb4a42 feat: integrate jsPDF and jsPDF-autotable for document generation; enhance employee management with print functionality and improved data handling in employee forms 2025-10-27 23:36:04 -03:00
3a1956f83b refactor: remove countdown timer and redirect logic from MenuProtection component to streamline access denial handling 2025-10-27 11:47:36 -03:00
42cb78e779 feat: add countdown timer and redirect functionality on access denial in MenuProtection component; enhance Sidebar menu item styling and active state handling 2025-10-27 11:21:23 -03:00
929633492d chore: remove bun.lock file, update package.json for workspace configuration, and adjust dependencies across apps and packages 2025-10-27 11:06:59 -03:00
6bfc0c2ced fix: improve role assignment logic and permission handling in dashboard components 2025-10-27 08:41:53 -03:00
2c2b792b4a feat: enhance employee and symbol management with new features, improved UI components, and backend schema updates 2025-10-26 22:21:53 -03:00
5dd00b63e1 refactor: update Sidebar and layout styles for improved responsiveness, adjust chart dimensions and remove tooltip functionality in employee reports 2025-10-25 07:53:08 -03:00
f0d3625045 feat: add employee management features including filtering, deletion, and improved layout 2025-10-25 01:24:40 -03:00
be3522ae74 feat: implement employee registration form with validation and data handling 2025-10-24 17:25:46 -03:00
d8996b8d5a refactor: enhance Sidebar layout with fixed header and footer, improve dashboard layout, and implement symbol management features including deletion and data display 2025-10-24 15:17:49 -03:00
441cda4246 fix: tipo state not change 2025-10-24 10:02:35 -03:00
1f9467acd4 update .env.em=xample 2025-10-24 09:58:52 -03:00
aafee4b654 adiciona funcionarios pagina 2025-10-24 08:53:15 -03:00
9d17ad1271 Add daisyui integration, remove Header and page components, and update layout structure 2025-10-23 11:20:55 -03:00
577261bf67 Add better-auth integration and update dependencies in package.json and bun.lock 2025-10-22 15:13:34 -03:00
d00e0cd676 initial commit 2025-10-21 11:06:46 -03:00