Commit Graph

494 Commits

Author SHA1 Message Date
5b2c682870 lixo 2025-11-14 10:47:41 -03:00
Kilder Costa
33a9c9e81d Merge pull request #23 from killer-cf/correcao-ferias
Correcao ferias
2025-11-14 09:24:50 -03:00
aa0b03ed3f feat: implement immediate email processing for unscheduled emails
- Added logic to process emails immediately if no scheduling is provided or if the scheduled time has passed.
- Introduced error handling for immediate email scheduling to ensure the mutation does not fail if scheduling encounters an error.
- Updated comments for clarity on email processing behavior.
2025-11-13 16:46:08 -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
1fea5f1f26 Merge remote-tracking branch 'origin' into fix-page-with-lint-errors 2025-11-13 08:52:38 -03:00
Kilder Costa
b65cf5b4a6 Merge pull request #17 from killer-cf/correcao-ferias
Correcao ferias
2025-11-13 08:51:34 -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
fd7d3729c1 feat: add validation for vacation request approval and adjustments
- Implemented validation checks to ensure employee and vacation period data are valid before approval.
- Enhanced error handling to provide specific feedback for invalid requests.
- Added checks for adjusted vacation periods to ensure all required dates are present.
- Improved overall user experience by ensuring only valid requests can be processed.
2025-11-13 06:25:22 -03:00
ebde59c6d2 refactor: enhance vacation management components and add status update functionality
- Improved the vacation request component with better loading states and error handling.
- Added a new mutation to update the status of vacation requests, allowing transitions between different states.
- Enhanced the calendar display for vacation periods and integrated a 3D bar chart for visualizing vacation data.
- Refactored the code for better readability and maintainability, ensuring a smoother user experience.
2025-11-13 05:51:55 -03:00
0b7f1ad621 chore: update dependencies and enhance vacation request component
- Updated convex-svelte to version 0.0.12 and convex to version 1.28.2 for improved functionality.
- Refactored the vacation request component to enhance loading states and error handling.
- Implemented derived states for better management of loading and error states.
- Improved calendar initialization logic and cleanup processes for better performance and reliability.
2025-11-13 03:28:39 -03:00
4ffa403c46 Refactor FileUpload component and improve type safety
- Rename imported File icon to FileIcon to avoid naming conflicts
- Update onUpload type to use globalThis.File
- Reformat loadExistingFile and related code for better readability
- Add stricter typing for funcionarioId and related data in documentos
  and editar pages
- Improve error handling and response validation in file upload logic
- Add keyed each blocks for better Svelte list rendering stability
- Fix minor formatting issues in breadcrumb links
2025-11-13 00:12:16 -03:00
bd574aedc0 Use resolve() for all internal hrefs and goto paths to ensure correct
routing
2025-11-12 23:18:41 -03:00
a2451baafc Use $app/paths resolve for internal URLs and clean code``` 2025-11-12 20:00:01 -03:00
34e4835c81 chore: update convex and convex-svelte dependencies
- Bumped convex version from 1.28.0 to 1.28.2 for improved functionality.
- Updated convex-svelte version from 0.0.11 to 0.0.12 to incorporate the latest features and fixes.
2025-11-12 19:03:36 -03:00
Kilder Costa
9822343561 Merge pull request #16 from killer-cf/fix-page-with-lint-errors
Fix page with lint errors
2025-11-12 16:37:31 -03:00
11eef4aa2a refactor: improve Svelte components and enhance user experience
- Updated various Svelte components to improve code readability and maintainability.
- Standardized button classes across components for a consistent user interface.
- Enhanced error handling and user feedback in modals and forms.
- Cleaned up unnecessary imports and optimized component structure for better performance.
2025-11-12 16:36:29 -03:00
94f4b23a39 refactor: enhance employee registration form and backend validation
- Updated the employee registration form in Svelte to include additional fields for personal and banking information.
- Improved validation logic for required fields and document uploads, ensuring better user feedback.
- Refactored the backend mutation to streamline argument handling and added new fields for document storage.
- Enhanced the overall structure and readability of the code, maintaining existing functionality while improving maintainability.
2025-11-12 16:29:18 -03:00
3a783727dc refactor: enhance vacation request component and improve error handling
- Updated the SolicitarFerias component to improve the user interface and experience.
- Added validation for overlapping vacation periods and ensured proper error messages are displayed.
- Refactored the logic for adding and removing vacation periods, enhancing code readability and maintainability.
- Improved the handling of form submission and error states for better user feedback.
2025-11-12 14:38:08 -03:00
553fc578a6 fix: foto perfil url 2025-11-12 14:26:51 -03:00
87b59af8da Merge remote-tracking branch 'origin' into fix-page-with-lint-errors 2025-11-12 12:16:43 -03:00
6087990eaf refactor: improve user retrieval and formatting in auth component
- Enhanced the getCurrentUser function to include the user's profile picture URL.
- Cleaned up formatting for better readability and consistency across the auth.ts file.
- Maintained existing functionality while improving code organization.
2025-11-12 12:15:43 -03:00
Kilder Costa
67ea8bd695 Merge pull request #15 from killer-cf/fix-page-with-lint-errors
Fix page with lint errors
2025-11-12 12:00:40 -03:00
da26a21f7e refactor: update permissions and clean up Svelte component
- Removed outdated information about the permissions system from the Svelte component.
- Added new actions for resource management in the backend, including 'aprovar_ausencias' and 'aprovar_ferias'.
- Cleaned up console logs in the user retrieval function for better performance and security.
2025-11-12 11:59:53 -03:00
90bc5771ae refactor: enhance role management and permissions handling
- Introduced a new mutation for creating roles with validation and slugification of names.
- Updated existing queries to improve role retrieval and error handling.
- Enhanced permission copying functionality when creating new roles.
- Improved code organization and readability by restructuring functions and adding type annotations.
2025-11-12 10:24:56 -03:00
1c56d71d43 refactor: update Svelte and TypeScript rules for improved application behavior
- Set Svelte rules to always apply for consistent usage.
- Adjust TypeScript rules to exclude .tsx files and ensure clarity in type safety guidelines.
- Cleaned up formatting and examples for better readability and understanding.
2025-11-12 10:24:45 -03:00
9bb13b486e add sevelt rules 2025-11-12 09:11:48 -03:00
349a7bb1e4 add project mcps 2025-11-12 09:06:43 -03:00
Kilder Costa
c6e6ec4823 Merge pull request #14 from killer-cf/feat-many-fixes
refactor: update ESLint configuration and improve Svelte component st…
2025-11-12 08:52:31 -03:00
Kilder Costa
11543db953 Merge branch 'master' into feat-many-fixes 2025-11-12 08:51:59 -03:00
2fb934ba18 refactor: update ESLint configuration and improve Svelte component structure
- Added .eslintcache to .gitignore for better cache management.
- Enhanced ESLint configuration to ignore specific directories and files for cleaner linting.
- Updated Svelte components to use unique keys in loops for improved performance and maintainability.
- Cleaned up imports and standardized formatting across various components for better code clarity.
- Resolved merge conflicts in multiple Svelte files to ensure consistent functionality.
2025-11-12 08:45:40 -03:00
Kilder Costa
81d96b8d88 Merge pull request #13 from killer-cf/revert-12-feat-many-fixes
Revert "Feat many fixes"
2025-11-11 16:41:58 -03:00
Kilder Costa
caff7035f7 Revert "Feat many fixes" 2025-11-11 16:41:40 -03:00
Kilder Costa
1c197a7534 Merge pull request #12 from killer-cf/feat-many-fixes
Feat many fixes
2025-11-11 16:26:47 -03:00
dab4754e47 Merge remote-tracking branch 'origin' into feat-many-fixes 2025-11-11 16:25:29 -03:00
Kilder Costa
3886dbd3ba Merge pull request #11 from killer-cf/ferias-ausencia
refactor: enhance employee management with regime de trabalho integra…
2025-11-11 16:11:39 -03:00
8a0a4552f7 refactor: enhance employee management with regime de trabalho integration
- Added regime de trabalho selection to employee forms for better categorization.
- Updated backend validation to include regime de trabalho options for employees.
- Enhanced employee data handling by integrating regime de trabalho into various components.
- Removed the print modal for financial data to streamline the employee profile interface.
- Improved overall code clarity and maintainability across multiple files.
2025-11-11 16:10:08 -03:00
d3d7744402 Refactor backend code style and improve user profile handling
- Standardize import formatting and indentation in auth and funcionarios
  modules
- Enhance getCurrentUser query to include photo URL retrieval from
  storage
- Add getCurrent funcionario query based on authenticated user
- Update controller logic to avoid redundant local state for profile
  photos
- Upgrade dependencies: convex 1.28.2, svelte 5.43.6, vite 7.2.2, rollup
  4.53.2, tailwindcss 4.1.17, and others
2025-11-11 16:01:18 -03:00
e09d03ceb8 refactor: enhance error handling and improve component structure in cadastro page
- 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.
2025-11-11 10:24:01 -03:00
2772aa3112 refactor: simplify button styles across Svelte components
- 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.
2025-11-10 17:01:38 -03:00
c7479222da refactor: streamline Svelte components and enhance user feedback
- 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.
2025-11-10 16:34:15 -03:00
ed00739b30 refactor: enhance chat components and improve user interaction
- 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.
2025-11-10 15:03:16 -03:00
Kilder Costa
3cc774d7df Merge pull request #10 from killer-cf/feat-better-auth
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.
2025-11-08 19:27:29 -03:00
4ed90d380d 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.
2025-11-08 18:30:27 -03:00
5d76c375c2 refactor: streamline chat widget and backend user management
- 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.
2025-11-08 17:46:10 -03:00
57b5f6821b refactor: remove biome configuration and update dependencies
- 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.
2025-11-08 17:16:43 -03:00
4e30d6a2ba refactor: remove obsolete authentication documentation and files
- 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.
2025-11-08 17:16:29 -03:00
9a5f2b294d refactor: integrate current user data across components
- 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.
2025-11-08 10:52:33 -03:00
01138b3e1c refactor: clean up Svelte components and improve code readability
- 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.
2025-11-08 10:11:40 -03:00