Commit Graph

430 Commits

Author SHA1 Message Date
86ae2a1084 modify docker file 2025-11-26 11:40:33 -03:00
e1bd6fa61a config docker pre mod 2025-11-26 11:08:36 -03:00
Kilder Costa
edd8d1edca Merge pull request #47 from killer-cf/config-self-convex
refactor: update Dockerfile for improved workspace structure and buil…
2025-11-26 10:48:52 -03:00
75989b0546 refactor: update Dockerfile for improved workspace structure and build process
- Adjusted the Dockerfile to copy package.json files from workspace packages, ensuring proper dependency resolution.
- Modified the build context in the deploy workflow to streamline the Docker image build process.
- Enhanced the build steps to navigate to the web app directory before building, ensuring correct application setup.
2025-11-26 10:48:01 -03:00
Kilder Costa
085502d71e Merge pull request #46 from killer-cf/config-self-convex
feat: add Bun setup step to deploy workflow
2025-11-26 10:43:24 -03:00
08869fe5da feat: add Bun setup step to deploy workflow
- Introduced a new step to set up Bun in the GitHub Actions deploy workflow, enhancing the build process for JavaScript applications.
2025-11-26 10:42:41 -03:00
Kilder Costa
3e1026343e Merge pull request #45 from killer-cf/config-self-convex
fix: update Docker image context and tags in deploy workflow
2025-11-26 10:29:47 -03:00
71959f6553 fix: update branch name in deploy workflow configuration
- Changed the branch name from 'main' to 'master' in the GitHub Actions deploy workflow to align with repository conventions.
2025-11-26 10:28:11 -03:00
de694ed665 fix: update Docker image context and tags in deploy workflow
- Changed the Docker build context to './apps/web' for better organization.
- Updated the image tag from 'namespace/example:latest' to 'killercf/sgc:latest' to reflect the correct repository.
2025-11-26 10:25:30 -03:00
Kilder Costa
5aad901254 Merge pull request #44 from killer-cf/config-self-convex
Config self convex
2025-11-26 10:22:38 -03:00
daee99191c feat: extend getInstanceWithSteps query to include notes metadata
- Added new fields for tracking who updated notes, their names, and the timestamp of the update.
- Refactored the retrieval of the updater's name to improve code clarity and efficiency.
- Enhanced the data structure returned by the query to support additional notes-related information.
2025-11-26 10:21:13 -03:00
6128c20da0 feat: implement sub-steps management in workflow editor
- Added functionality for creating, updating, and deleting sub-steps within the workflow editor.
- Introduced a modal for adding new sub-steps, including fields for name and description.
- Enhanced the UI to display sub-steps with status indicators and options for updating their status.
- Updated navigation links to reflect changes in the workflow structure, ensuring consistency across the application.
- Refactored related components to accommodate the new sub-steps feature, improving overall workflow management.
2025-11-25 14:14:43 -03:00
f8d9c17f63 feat: add Svelte DnD action and enhance flow management features
- Added "svelte-dnd-action" dependency to facilitate drag-and-drop functionality.
- Introduced new "Fluxos de Trabalho" section in the dashboard for managing workflow templates and instances.
- Updated permission handling for sectors and flow templates in the backend.
- Enhanced schema definitions to support flow templates, instances, and associated documents.
- Improved UI components to include new workflow management features across various dashboard pages.
2025-11-25 00:21:35 -03:00
409872352c docs: Create guidelines for integrating Convex with Svelte/SvelteKit. 2025-11-24 14:48:04 -03:00
Kilder Costa
d8361769e4 Merge pull request #43 from killer-cf/refinament-1
Refinament 1
2025-11-24 12:28:10 -03:00
d4a3214451 Merge remote-tracking branch 'origin' into refinament-1 2025-11-24 09:01:00 -03:00
649b9b145c Merge pull request #42 from killer-cf/call-audio-video-jitsi
Call audio video jitsi
2025-11-23 16:29:55 -03:00
1089a4fdab refactor: update modal positioning logic in ErrorModal, ComprovantePonto, and RegistroPonto components
- Refactored modal positioning to align with the synchronized clock element, enhancing user experience by ensuring modals are positioned below the clock with appropriate spacing.
- Replaced timeout-based DOM updates with requestAnimationFrame for improved rendering performance and responsiveness.
- Added logic to clear modal position when modals are closed, ensuring a clean state for future interactions.
2025-11-23 16:28:48 -03:00
a3eab60fcd feat: enhance modal positioning and styling across components
- Implemented dynamic positioning for modals in ErrorModal, ComprovantePonto, and RegistroPonto components to ensure they are centered based on the viewport and container dimensions.
- Updated modal styles to improve visual consistency, including backdrop opacity adjustments and enhanced animations.
- Refactored modal handling logic to include scroll and resize event listeners for better responsiveness during user interactions.
2025-11-23 16:24:58 -03:00
ae4fc1c4d5 Merge pull request #41 from killer-cf/call-audio-video-jitsi
Call audio video jitsi
2025-11-23 15:11:29 -03:00
51096e7aff refactor: improve filtering logic for employee time records in registro-pontos page
- Enhanced the filtering mechanism to apply location and status filters more effectively, ensuring only relevant records are displayed.
- Added checks to exclude records without location information when filters are active, improving data accuracy.
- Implemented a final filtering step to ensure only groups with valid records are shown, enhancing user experience in reviewing time records.
2025-11-23 15:10:23 -03:00
00e18e79ec feat: add date range filters for employee time records in homologacao page
- Introduced date range filters for selecting start and end dates, defaulting to the last 30 days for improved user experience.
- Enhanced the UI layout to include form controls for selecting employees and date ranges, ensuring better accessibility and usability.
- Updated data handling logic to utilize the new date filters for querying employee time records.
2025-11-23 14:58:04 -03:00
1ad0ee91cb refactor: enhance saldo calculation and display in registro-pontos page
- Updated the logic for calculating daily and period saldo differences to ensure accuracy by directly computing the difference between worked and expected hours.
- Improved the display of saldo differences in the UI, including formatting adjustments for better readability.
- Refactored the rendering logic to ensure consistent styling and user experience across the registro-pontos page.
2025-11-23 14:29:49 -03:00
35e7c10ed0 refactor: update ErrorModal and RegistroPonto components for improved UI and functionality
- Refactored ErrorModal to use a div-based layout with enhanced animations and accessibility features.
- Updated RegistroPonto to include a new loading state and improved modal handling for webcam capture.
- Enhanced styling for better visual consistency and user experience across modals and registration cards.
- Introduced comparative balance calculations in RegistroPonto for better visibility of time discrepancies.
2025-11-23 13:13:24 -03:00
db2daacdad refactor: improve table rendering and layout in registro-pontos page
- Enhanced the rendering of tables for employee time records, consolidating data into structured formats for better readability.
- Updated the logic for displaying various sections, including employee information, GPS validation, and geofencing, to utilize tables for clarity.
- Improved styling and layout consistency across the page, ensuring a more user-friendly experience when reviewing time records and validation statuses.
2025-11-23 09:06:15 -03:00
e0b01cff0a feat: implement comparative balance calculation for entry/exit pairs in registro-pontos page
- Added a new function `calcularSaldoComparativoPorPar` to compute comparative balances for entry and exit pairs, enhancing the accuracy of time management.
- Updated the logic to handle expected and actual records, allowing for better visibility of discrepancies in worked hours.
- Enhanced the table rendering to display comparative balances, improving user experience and clarity in time tracking.
2025-11-23 08:29:38 -03:00
dfc975cb8f feat: enhance registro-pontos page with date range handling and expected record generation
- Introduced functions to generate all dates within a selected period and to create expected records based on user configuration.
- Updated the logic to process daily records, combining real and expected entries, and calculating daily balances.
- Enhanced table rendering to visually distinguish between marked and unmarked records, improving user experience and clarity in time management.
2025-11-23 06:06:22 -03:00
ac8e8f56b8 feat: implement saldo calculation for entry/exit pairs in registro-pontos page
- Added a new function `calcularSaldosPorPar` to compute balances for entry and exit pairs, returning a map of balances indexed by record.
- Updated the table data generation to display daily balances per pair, enhancing visibility of time management.
- Implemented logic to handle incomplete pairs and display appropriate messages in the UI, improving user experience.
2025-11-23 05:52:01 -03:00
095f041891 feat: update CSS theming and enhance variable application for improved UI consistency
- Refactored CSS styles to utilize HSL color values for better theme adaptability.
- Added custom light and dark themes with comprehensive variable definitions to ensure consistent styling across the application.
- Implemented a mechanism to force CSS variable updates, ensuring that custom themes are applied correctly during runtime.
2025-11-23 04:58:38 -03:00
467e04b605 feat: enhance RegistroPonto and WebcamCapture components for improved data handling and user experience
- Added a refresh mechanism in the RegistroPonto component to ensure queries are updated after point registration, improving data accuracy.
- Expanded the WebcamCapture component to prevent multiple simultaneous play calls, enhancing video playback reliability.
- Updated the registro-pontos page to default the date range to the last 30 days for better visibility and user convenience.
- Introduced debug logging for queries and data handling to assist in development and troubleshooting.
2025-11-22 23:57:05 -03:00
2d7761ee94 Merge pull request #40 from killer-cf/call-audio-video-jitsi
Call audio video jitsi
2025-11-22 22:41:20 -03:00
90e81e4667 feat: add "Controle de Ponto" section with management options for employee time records
- Introduced a new section for "Controle de Ponto" in the recursos-humanos page, allowing users to manage employee time records.
- Added options for viewing and managing point records, editing records, and handling dispensations, enhancing functionality for HR management.
2025-11-22 22:40:30 -03:00
5b41d35b6f feat: add user authentication and validation checks in query handlers
- Implemented user authentication checks in the `getAll` and `listarRegistrosPeriodo` query handlers, returning empty arrays for unauthenticated users.
- Enhanced date validation in `listarRegistrosPeriodo` to ensure correct date formats before processing.
- Updated the `obterEstatisticas` query to return zeroed statistics for unauthenticated users, improving data security and user experience.
2025-11-22 22:33:44 -03:00
aeaa3c903f feat: implement user authentication checks in PresenceManager and perfil pages
- Added authentication verification in the PresenceManager component to manage user presence status based on authentication state.
- Updated the perfil page to conditionally execute queries only if the user is authenticated, enhancing security and performance.
- Introduced derived variables to track user authentication status, ensuring that presence management and data fetching are only performed for logged-in users.
2025-11-22 22:25:40 -03:00
031552c836 feat: enhance sidebar and theme utilities for improved UI consistency
- Updated the Sidebar component styles to utilize theme-based classes for better visual consistency.
- Added new utility functions to retrieve and convert theme colors for use in components, enhancing theming capabilities.
- Improved layout logic to ensure the default theme is applied correctly based on user preferences and document readiness.
2025-11-22 22:10:52 -03:00
37d7318d5a feat: implement theme customization and user preferences
- Added support for user-selected themes, allowing users to customize the appearance of the application.
- Introduced a new `temaPreferido` field in the user schema to store the preferred theme.
- Updated various components to apply the selected theme dynamically based on user preferences.
- Enhanced the UI to include a theme selection interface, enabling users to preview and save their theme choices.
- Implemented a polyfill for BlobBuilder to ensure compatibility across browsers, improving the functionality of the application.
2025-11-22 22:05:52 -03:00
58ac3a4f1b feat: implement user authentication checks for queries in registro-pontos page
- Added authentication verification to conditionally execute queries for fetching employees, point records, statistics, and configuration settings based on user authentication status.
- Introduced a derived variable to manage the authenticated state of the user, enhancing security and ensuring that data is only accessible to logged-in users.
2025-11-22 21:01:27 -03:00
dc799504f6 fix: correct layout issue in registro-pontos page
- Added a missing closing div tag to ensure proper structure and rendering of the UI elements in the registro-pontos page.
2025-11-22 20:58:12 -03:00
80fc8bc82c feat: implement partial balance calculation and enhance UI for point registration
- Added a new function `calcularSaldosParciais` to compute partial balances between entry and exit records, returning a map of balances indexed by record.
- Improved the UI to display partial balances in the registro-pontos table, enhancing user visibility of time management.
- Updated the header section for better layout and information presentation regarding employee details.
2025-11-22 20:55:03 -03:00
f818756efc feat: enhance call and point registration features with sensor data integration
- Updated the CallWindow component to include connection quality states and reconnection attempts, improving user experience during calls.
- Enhanced the ChatWindow to allow starting audio and video calls in a new window, providing users with more flexibility.
- Integrated accelerometer and gyroscope data collection in the RegistroPonto component, enabling validation of point registration authenticity.
- Improved error handling and user feedback for sensor permissions and data validation, ensuring a smoother registration process.
- Updated backend logic to validate sensor data and adjust confidence scores for point registration, enhancing security against spoofing.
2025-11-22 20:49:52 -03:00
fc4b5c5ba5 feat: add date formatting utility and enhance filtering in registro-pontos
- Introduced a new utility function `formatarDataDDMMAAAA` to format dates in DD/MM/AAAA format, supporting various input types.
- Updated the `registro-pontos` page to utilize the new date formatting function for displaying dates consistently.
- Implemented advanced filtering options for status and location, allowing users to filter records based on their criteria.
- Enhanced CSV export functionality to include formatted dates and additional filtering capabilities, improving data management for users.
2025-11-22 19:32:05 -03:00
9dc816977d Merge pull request #39 from killer-cf/call-audio-video-jitsi
Call audio video jitsi
2025-11-22 18:40:54 -03:00
c056506ce5 feat: enhance time synchronization and Jitsi configuration handling
- Implemented a comprehensive time synchronization mechanism that applies GMT offsets based on user configuration, ensuring accurate timestamps across the application.
- Updated the Jitsi configuration to include SSH settings, allowing for better integration with Docker setups.
- Refactored the backend queries and mutations to handle the new SSH configuration fields, ensuring secure and flexible server management.
- Enhanced error handling and logging for time synchronization processes, providing clearer feedback for users and developers.
2025-11-22 18:18:16 -03:00
3cc35d3a1e feat: Add explicit TypeScript types and improve error handling for employee reports. 2025-11-22 16:52:31 -03:00
Kilder Costa
7871b87bb9 Merge pull request #38 from killer-cf/refinament-1
Refinament 1
2025-11-22 10:26:24 -03:00
b8a2e67f3a refactor: Update email configuration page to load data once and improve error handling, and add Svelte agent rules documentation. 2025-11-22 10:25:43 -03:00
54089f5eca fix: update Jitsi configuration handling for default values
- Refactored the Jitsi configuration logic to use nullish coalescing for default values in the frontend.
- Added a condition to reset configuration values to defaults when no configuration is available.
- Adjusted backend mutation to ensure consistent handling of the acceptSelfSignedCert parameter.
2025-11-21 22:09:30 -03:00
52823a9fac feat: integrate Jitsi configuration and dynamic loading in CallWindow
- Added support for Jitsi configuration retrieval from the backend, allowing for dynamic room name generation based on the active configuration.
- Implemented a polyfill for BlobBuilder to ensure compatibility with the lib-jitsi-meet library across different browsers.
- Enhanced error handling during the loading of the Jitsi library, providing clearer feedback for missing modules and connection issues.
- Updated Vite configuration to exclude lib-jitsi-meet from SSR and allow dynamic loading in the browser.
- Introduced a new route for Jitsi settings in the dashboard for user configuration of Jitsi Meet parameters.
2025-11-21 22:03:01 -03:00
41f7942dd1 feat: add avatar field to user profile schema and update related mutations and queries
- Introduced an optional avatar field in the user profile schema to store the URL of the generated avatar.
- Updated the atualizarPerfil mutation to handle the new avatar field.
- Modified the obterPerfil and listarParaChat queries to include the avatar field in the returned user data.
2025-11-21 20:34:04 -03:00
f167996a9f Merge pull request #37 from killer-cf/feat-controle-ponto
fix: restore enderecosMarcacao import in API definition
2025-11-21 20:11:08 -03:00