Commit Graph

320 Commits

Author SHA1 Message Date
fb278bfdd6 Refactor session handling and redirect logic for login flow
This commit enhances the session management and redirect behavior in the login process. It introduces a new function, `fxCompteRedirectAfterLoginConsume`, to streamline the handling of post-login redirects while preventing loops for login-related pages. Additionally, comments are updated for clarity regarding the session's role in protecting access to certain pages. These changes aim to improve user experience and maintainability of the authentication flow.
2026-07-07 10:57:03 -04:00
138448212e Refactor promoteur hub access logic and update comments for clarity
This commit simplifies the `fxPromoteurHubShouldUse` function by directly returning the result of `fxPromoteurHubIsAvailable`, enhancing code readability. Additionally, comments in `compte.php` are updated to clarify the landing behavior for the promoteur hub and participant home, improving understanding of the session handling logic. These changes aim to streamline the promoteur hub functionality and improve maintainability.
2026-07-07 10:50:57 -04:00
762ac838b6 Refactor promoteur hub logic and enhance session handling
This commit updates the promoteur hub functionality by introducing a new function, `fxPromoteurHubIsAvailable`, to streamline the logic for determining hub access. The existing `fxPromoteurHubShouldUse` function is modified to incorporate this new check, improving clarity and maintainability. Additionally, comments are added to clarify session handling in the `fxLoginCompte` function, ensuring better understanding of public login behavior. These changes aim to enhance the robustness of the promoteur hub interface and improve code readability.
2026-07-07 10:45:03 -04:00
4c9725b282 Enhance error handling and user feedback in static synchronization process
This commit updates the connection timeout for MySQL operations and introduces new functions for managing connection errors and flash messages. The `fxStaticSyncConnectError` and `fxStaticSyncFormatConnectionError` functions provide clearer error reporting during synchronization. Additionally, the user interface is improved to display relevant flash messages, enhancing the overall user experience and robustness of the synchronization workflow.
2026-07-06 15:38:32 -04:00
a8274dd640 Update key column references and enhance error handling in static synchronization functions
This commit modifies key column references in the `fxStaticSyncTableDefinitions` function to align with updated database schema identifiers. Additionally, it introduces a new utility function, `fxStaticSyncKeyColumnsValid`, to validate key columns before executing queries, improving error handling in the `fxStaticSyncFetchRowsByKey` and `fxStaticSyncLoadKeyedRows` functions. The changes aim to enhance the robustness of the synchronization process and provide clearer error feedback during data operations.
2026-07-06 15:34:20 -04:00
2792b06d79 Enhance static synchronization functions with new utilities and improved error handling
This commit introduces several new functions to enhance the static synchronization process, including `fxStaticSyncNormalizeCellValue`, `fxStaticSyncSqlOrderByKeys`, and `fxStaticSyncGetTableRowCount`. These additions improve data handling and error reporting during synchronization. The `fxStaticSyncLoadKeyedRows` function is updated to provide more detailed feedback on physical and duplicate row counts, while the user interface is enhanced to display duplicate key counts in the source data. Overall, these changes aim to improve the robustness and clarity of the database synchronization workflow.
2026-07-06 15:29:44 -04:00
3c0188fba4 Remove database confirmation requirement for client environments in synchronization process
This commit eliminates the need for database name confirmation when syncing to client environments, simplifying the user experience. The `fxStaticSyncRequiresDbConfirm` function is removed, and related logic is adjusted in the synchronization workflow. Additionally, the user interface is updated to reflect these changes, providing clearer messaging about the synchronization process and reinforcing the read-only nature of the client production environment.
2026-07-06 15:24:07 -04:00
5f65e1a339 Refactor data synchronization functions for improved clarity and status reporting
This commit renames and refines several functions related to data synchronization, enhancing the clarity of status reporting. The `fxStaticSyncResolveDataStatus` function is replaced with `fxStaticSyncFinalizeCompareResult`, which consolidates status determination logic. Additionally, user feedback is improved in the synchronization process, with clearer messages regarding data discrepancies and alignment. These changes aim to streamline the synchronization workflow and enhance overall user experience.
2026-07-06 15:17:04 -04:00
709044efef Add enhanced data synchronization functions and improve user feedback
This commit introduces new functions for confirming database names during synchronization, enhancing safety when syncing to production environments. The `fxStaticSyncResolveDataStatus` and `fxStaticSyncFormatDataDiffSummary` functions are added to provide clearer status reporting and summaries of data discrepancies. Additionally, the synchronization process is refined to improve user feedback, including clearer messages regarding data alignment and discrepancies. These changes aim to enhance the robustness and clarity of the database synchronization workflow.
2026-07-06 14:58:59 -04:00
bac8ed2be0 Enhance database synchronization functions and improve schema validation
This commit introduces new functions for resolving and comparing database schema columns, allowing for better handling of structural discrepancies during synchronization. The `fxStaticSyncCopyTable` function is updated to check for schema alignment before proceeding with data copying, providing clearer error messages when structures do not match. Additionally, the synchronization process is refined to allow for read-only operations towards production environments, enhancing safety and user feedback. Overall, these changes aim to improve the robustness and clarity of the database synchronization workflow.
2026-07-06 14:33:05 -04:00
7c7bea3666 Add database synchronization utility functions and enhance error handling
This commit introduces several utility functions for database synchronization, including error handling for MySQL operations and retrieval of table metadata. The `fxStaticSyncDbLastError`, `fxStaticSyncExecQuery`, `fxStaticSyncGetTableColumnNames`, and `fxStaticSyncGetTableEngine` functions are added to improve the robustness of the synchronization process. Additionally, the `fxStaticSyncCopyTable` function is updated to handle column mismatches more gracefully and to provide clearer feedback on the synchronization results, enhancing overall user experience and error reporting in the database synchronization workflow.
2026-07-06 14:23:27 -04:00
338f5ed6f6 Refine ChronoTrack API configuration and enhance error handling
This commit updates the ChronoTrack API configuration by introducing a variable for the base URL, allowing for easier management of test and production environments. It also improves the admin interface to display the API endpoint status, indicating whether the test or production API is in use. Additionally, error handling in the OAuth token fetching process is enhanced to provide clearer messages when access tokens are absent or when errors occur, improving overall user feedback and robustness of the API.
2026-07-03 20:58:43 -04:00
53d406ae74 Enhance ChronoTrack API configuration and improve base URL handling
This commit refines the configuration of the ChronoTrack API by introducing a variable for the base URL, allowing for easier adjustments. It also adds a conditional definition for the token key based on the environment, ensuring appropriate settings for both test and production environments. Additionally, the admin interface is updated to display the API endpoint when configured, enhancing user feedback and clarity. These changes aim to improve the overall configuration management and user experience within the API.
2026-07-03 20:56:28 -04:00
29f836e615 Implement orphan management functionality in ChronoTrack API
This commit introduces new features for handling orphan entries within the ChronoTrack API. It adds a new endpoint for syncing orphan entries, enhancing the ability to identify and manage entries that are present in the system but not eligible for transfer. The user interface is updated to include a dedicated section for displaying orphan entries, improving clarity and user interaction. Additionally, the synchronization logic is refined to compute and report orphan entries effectively, aiming to enhance overall data management and user experience in the API.
2026-07-03 20:49:19 -04:00
38b7e9b72c Enhance ChronoTrack API functionality with new PUT methods and payload management
This commit introduces new functions for handling PUT requests within the ChronoTrack API, improving the management of entry updates. It includes the implementation of payload processing functions for both POST and PUT requests, ensuring that entry IDs are appropriately excluded from the payloads. Additionally, the synchronization logic is refined to differentiate between creating and updating entries, enhancing the overall clarity and efficiency of the API. These changes aim to streamline entry management and improve user experience in the API.
2026-07-03 20:41:59 -04:00
f2519dc987 Enhance ChronoTrack API push functionality and improve user feedback
This commit updates the ChronoTrack API push process by refining the user interface messaging for manual pushes, clarifying the status of participants, and improving the confirmation prompts. Key changes include the introduction of new variables for tracking eligible participants and orphans, as well as enhanced HTML output for better clarity on the current state of entries. These improvements aim to streamline the push process and enhance the overall user experience in managing participant data.
2026-07-03 20:35:43 -04:00
8c7f3e13ed Refactor superadmin UI components and enhance ChronoTrack API integration
This commit introduces a new UI structure for the superadmin interface by implementing the fxSuperadmV2Panel functions, which improve the organization and presentation of event access and ChronoTrack API sections. The changes include the addition of collapsible panels for better user interaction and visual clarity. Additionally, the versioning in the settings file is updated to reflect the latest changes. These enhancements aim to streamline the user experience and improve the overall functionality of the superadmin interface.
2026-07-03 20:27:30 -04:00
0343a8e4a7 Refactor session management and enhance user feedback in superadmin interface
This commit improves session management within the superadmin interface by introducing a new session validation function that ensures active sessions are maintained and provides JSON responses for session expiration. Additionally, the session timeout duration is standardized, and user feedback is enhanced with alerts for expired sessions. The codebase is streamlined by removing deprecated session handling logic, improving overall clarity and maintainability. These changes aim to enhance user experience and ensure robust session handling across the application.
2026-07-03 20:06:59 -04:00
57912b60ae Refactor ChronoTrack API entry management and remove deprecated functions
This commit streamlines the entry management process within the ChronoTrack API by removing deprecated functions related to entry withdrawal and deletion. The admin interface is updated to eliminate unused actions, enhancing clarity and usability. Additionally, comments are refined to improve code readability. These changes aim to simplify the codebase and improve the overall user experience in managing entries.
2026-07-03 12:47:49 -04:00
2370a2b344 Implement withdraw functionality and enhance entry management in ChronoTrack API
This commit introduces new functions for managing entry withdrawal within the ChronoTrack API, including the ability to probe and withdraw entries based on their status. The admin interface is updated to include buttons for testing withdrawal actions, providing clearer user feedback. Additionally, the synchronization logic is enhanced to summarize entry statuses and handle batch withdrawals more effectively. These changes aim to improve the overall management of entries and enhance user experience in the API.
2026-07-03 12:41:30 -04:00
f065eb5cb6 Enhance ChronoTrack API entry deletion and session management
This commit improves the entry deletion process within the ChronoTrack API by introducing a new function to handle deletion attempts with context requirements. It also enhances session management by implementing a session validation function that provides JSON responses for session expiration, improving user feedback during AJAX calls. Additionally, the synchronization logic is updated to utilize the new deletion function, ensuring better error handling and reporting. These changes aim to streamline entry management and enhance the overall user experience within the API.
2026-07-03 12:28:38 -04:00
3a0161a0bb Update ChronoTrack API entry wipe functionality and enhance user feedback
This commit modifies the entry wipe functionality in the ChronoTrack API admin interface. The wipe button is now disabled when there are no entries to delete, and the confirmation prompt has been updated to clarify the action's scope. Additionally, the API response for the wipe action now returns a warning state when no entries are found, providing clearer messaging about the visibility of entries. These changes aim to improve user experience and ensure accurate communication regarding entry management.
2026-07-03 12:16:48 -04:00
88f0e8138e Enhance ChronoTrack API entry synchronization and reporting
This commit introduces improvements to the entry synchronization process within the ChronoTrack API. Key changes include the renaming of functions for clarity, the implementation of pagination for fetching entries, and enhanced reporting of entry counts before and after synchronization actions. Additionally, the admin interface is updated to provide clearer feedback regarding the state of entries, including details on entries found before a wipe and remaining entries after synchronization. These enhancements aim to improve the overall user experience and data management capabilities of the API.
2026-07-03 12:13:02 -04:00
7071b3792a Implement ChronoTrack Live entry wipe functionality and enhance synchronization logic
This commit introduces a new feature to wipe all entries from ChronoTrack Live for a specific event, including user confirmation prompts and error handling. Additionally, it enhances the participant synchronization process by refining the handling of entry data and improving the reporting of synchronization results. The admin interface is updated to include a new button for the wipe action, providing clearer user feedback and control over event data management. These changes aim to streamline the management of ChronoTrack entries and improve the overall user experience within the API.
2026-07-03 10:33:11 -04:00
cef2e672cb Enhance participant synchronization and team handling in ChronoTrack API
This commit introduces new functions to better manage team-related data during participant synchronization. Key updates include the addition of team identification and role labeling, as well as improved handling of blocked team registrations. The participant summary now includes team-specific fields, enhancing the clarity of participant data. Additionally, the admin interface is updated to provide clearer messaging regarding blocked team registrations, improving user feedback during synchronization processes. These changes aim to streamline participant management and enhance the overall user experience within the ChronoTrack API.
2026-07-03 10:04:11 -04:00
ec1e98d898 Enhance participant synchronization and error handling in ChronoTrack API
This commit introduces a new function to classify blocked participants by type, improving the handling of synchronization errors related to missing or invalid data. The changes include updates to the participant classification logic, allowing for better reporting of issues such as duplicate bibs, missing external IDs, and unmapped races. Additionally, the push preview functionality is enhanced to display blocked participants clearly, improving user feedback during the synchronization process. These updates aim to streamline participant management and enhance the overall user experience within the ChronoTrack API.
2026-07-03 09:56:48 -04:00
338734db7a Enhance MS1 loader functionality and integrate loading indicators in ChronoTrack API
This commit updates the MS1 loader to include a message parameter for inline HTML usage, ensuring consistent messaging during AJAX operations. Additionally, new functions are introduced to render loading indicators and assets, improving user feedback during data synchronization processes. The integration of these features aims to enhance the overall user experience and clarity within the ChronoTrack API admin interface.
2026-07-03 09:46:32 -04:00
411f2a4d8f Add probe push functionality and enhance error handling in ChronoTrack API
This commit introduces a new 'sync_probe_push' action to the ChronoTrack API, allowing for the probing of participant data synchronization. It includes a new button in the admin interface for initiating probe pushes, along with improved error handling in the API response messages. Additionally, the batch size for synchronization is adjusted, and the entry payload building process is refined to include event IDs and registration choices, enhancing the overall synchronization capabilities and user experience.
2026-07-03 09:21:40 -04:00
9ea4dd2ecf Refactor ChronoTrack API event handling and synchronization logic
This commit updates the ChronoTrack API to improve event handling and synchronization features. Changes include enhanced messaging for closed events, adjustments to the push panel functionality, and refined status handling for event synchronization. The logic for managing event states is streamlined, allowing for clearer user interactions and better management of synchronization processes. These improvements aim to enhance the overall usability and effectiveness of the ChronoTrack API in event management.
2026-07-03 09:14:47 -04:00
903feebcdb Add synchronization functionality to ChronoTrack API
This commit introduces new synchronization features to the ChronoTrack API, including the ability to preview and push participant data to ChronoTrack. A new push panel is added to the admin interface, allowing users to view eligible participants and initiate synchronization. Additionally, backend functions are implemented to handle synchronization requests, enhancing the overall data management capabilities of the API. These changes aim to streamline the process of updating participant information within the ChronoTrack system.
2026-07-03 09:10:57 -04:00
2037b27c4c Enhance ChronoTrack API with entry handling and diagnostic improvements
This commit introduces several enhancements to the ChronoTrack API, focusing on entry handling and diagnostic capabilities. New functions are added to normalize and summarize entry data, improving the management of entry-related information. Additionally, the diagnostic functionality is updated to include entry endpoints, providing more comprehensive insights during API diagnostics. These changes aim to enhance the overall usability and effectiveness of the ChronoTrack API for event management.
2026-07-03 09:03:03 -04:00
beb84339e2 Add new table definitions for 'inscriptions_pays' and 'inscriptions_provinces' in static sync configuration
This commit introduces new entries for the 'inscriptions_pays' and 'inscriptions_provinces' tables in the fxStaticSyncTableDefinitions function. Each entry includes a label, keys, and columns to ignore, enhancing the static synchronization configuration for better data management.
2026-07-02 20:22:22 -04:00
df9f964f11 Refactor ChronoTrack API functions for improved race and registration choice handling
This commit enhances the ChronoTrack API by refining functions related to race and registration choice entities. Key updates include the introduction of new functions for collecting race and registration choice entities, improved normalization logic, and adjustments to existing functions for better clarity and functionality. Additionally, terminology is updated to ensure consistency across the API, enhancing overall usability and integration with the ChronoTrack system.
2026-07-02 19:51:35 -04:00
3aea111392 Add diagnostic functionality to ChronoTrack API for event management
This commit introduces a new diagnostic feature in the ChronoTrack API, allowing users to run diagnostics on events and retrieve detailed reports. The functionality includes a new diagnostic panel in the admin interface, which displays API diagnostic results, including OAuth status and endpoint responses. Additionally, the backend is updated to handle diagnostic requests, ensuring comprehensive error handling and reporting. This enhancement aims to improve troubleshooting and support for event management within the ChronoTrack system.
2026-07-02 19:46:57 -04:00
55b7ce7061 Enhance ChronoTrack API admin interface with registration choice support and improved race terminology
This commit updates the ChronoTrack API admin interface to incorporate support for registration choices, enhancing the functionality of race mapping. Terminology is refined throughout the interface, replacing "race" with "course" where appropriate to improve clarity. New functions are added to handle registration choices, ensuring a more comprehensive integration with the ChronoTrack API. Additionally, existing functions are modified to accommodate these changes, improving overall user experience and interaction.
2026-07-02 19:29:00 -04:00
f826a0e409 Implement event link picker and enhance race mapping display in ChronoTrack API admin interface
This commit introduces a new function to render an event link picker in the ChronoTrack API admin interface, allowing users to search and select events more efficiently. The event page rendering logic is updated to conditionally display the link picker based on event status. Additionally, the race mapping display is enhanced to show saved mappings more clearly, improving user interaction and overall experience when managing events.
2026-07-02 19:24:51 -04:00
00ee7484df Add race status display and reload functionality in ChronoTrack API admin interface
This commit enhances the ChronoTrack API admin interface by adding a status display for race loading and a button to reload races. The status updates provide user feedback during the loading process, indicating success or failure. Additionally, the race loading logic is improved to handle network errors gracefully, ensuring a better user experience when interacting with the API.
2026-07-02 19:20:23 -04:00
6728a541a8 Enhance documentation and clarify ChronoTrack API credentials usage in settings file
This commit adds comments in the `inc_settings.php` file to clarify the default values for ChronoTrack API credentials and their intended usage. It also notes that the credentials can be overridden by other switch blocks, improving the understanding of the configuration process for developers.
2026-07-02 19:11:28 -04:00
c3aed5e9fe Fix syntax error in ChronoTrack API credentials in settings file
This commit corrects a syntax error in the `inc_settings.php` file by adding a missing quotation mark to the `service_pass` entry. This change ensures proper parsing of the credentials, maintaining the integrity of the ChronoTrack API configuration.
2026-07-02 18:46:48 -04:00
2e691df76b Update ChronoTrack API credentials in settings file
This commit updates the ChronoTrack API configuration in the `inc_settings.php` file by adding the client ID, client secret, service user, and service password. These changes are essential for establishing a connection with the ChronoTrack API, ensuring proper functionality and access to its features.
2026-07-02 18:45:10 -04:00
89d389c76d Update version code to 4.72.726 and enhance superadmin sidebar layout
This commit increments the version code to 4.72.726 and introduces structural improvements to the superadmin sidebar. The HTML layout is refined with the addition of a dedicated body section for the V2 panel, while CSS adjustments enhance padding, margins, and overall styling for a more cohesive user experience. These changes aim to improve accessibility and visual organization within the sidebar.
2026-07-02 18:40:11 -04:00
fee6f5c69d Refactor ChronoTrack API integration in event modification form
This commit updates the event modification form to conditionally display the ChronoTrack API section with a toggle button for better user interaction. The rendering function is adjusted to improve layout and heading levels, ensuring a consistent and user-friendly experience. Additionally, the inline rendering logic is refined to enhance the overall integration of ChronoTrack features.
2026-07-02 18:26:26 -04:00
2b4060770a Enhance ChronoTrack API event page rendering and form integration
This commit updates the `fxChronotrackApiAdminRenderEventPage` function to include an optional parameter for inline rendering, allowing for a more flexible display of the ChronoTrack API section. The event modification form is also adjusted to conditionally render the ChronoTrack API section based on the event ID, improving user experience and navigation. Additionally, the layout is refined to ensure proper heading levels based on the inline status.
2026-07-02 18:20:34 -04:00
121186a0b9 Update version code and integrate MSIN API ChronoTrack functionality
This commit updates the version code to 4.72.725 and introduces the `fxSettingsApplyChronotrackApi` function to manage ChronoTrack API credentials based on the environment. It also adds relevant UI elements in the sidebar and form sections for ChronoTrack configuration, enhancing the integration of ChronoTrack features within the application.
2026-07-02 18:10:51 -04:00
841fea5103 Add bib anomaly detection for unconfigured sequences
This commit introduces a new function, `fxBibSqlEpreuveHasBibRanges`, to check for the presence of bib ranges in events. It enhances the existing anomaly detection by adding support for cases where no bib ranges are configured, allowing for better reporting of duplicate bibs. Additionally, relevant language strings are added for both French and English to support multilingual reporting. The version code is incremented to reflect these changes.
2026-07-02 12:46:21 -04:00
81e55ea0ec Add out-of-range bib anomaly detection and reporting
This commit introduces a new function, `fxBibAnomalyOutOfRangeBibs`, to identify and report bibs assigned outside of configured sequences for events. It enhances the existing anomaly collection by including this new category and updates the rendering logic to display out-of-range anomalies in the user interface. Additionally, relevant language strings are added for multilingual support. The version code is incremented to reflect these changes.
2026-07-02 12:34:45 -04:00
3ee8ec05be Implement loader functionality for AJAX calls and enhance user feedback
This commit introduces a new loader mechanism for AJAX requests, improving user experience by providing visual feedback during data fetching processes. The `bibFetch` function is created to manage loader visibility, ensuring a consistent loading experience across various AJAX calls. Additionally, a new language string for the loading message is added to support multilingual feedback. The version code is incremented to reflect these changes.
2026-07-02 11:47:47 -04:00
a5ad7a0ec6 Refactor gestion fiche card layout and update rendering functions
This commit enhances the CSS styles for the gestion fiche card layout, transitioning from a rolodex to a grid format for improved organization and readability. The PHP rendering functions are updated to support this new layout, including logic for full-width value display. The version code is incremented to reflect these changes.
2026-07-02 10:27:57 -04:00
011aa65d19 Refactor gestion fiche styling and update PHP rendering logic
This commit refines the CSS styles for gestion fiche sections, introducing a new rolodex layout for improved visual presentation and mobile responsiveness. The PHP function for rendering key-value lists is updated to support the new layout. Additionally, the version code is incremented to reflect these changes.
2026-07-02 10:14:14 -04:00
6e386d95ee Enhance styling and functionality for gestion fiche sections
This commit introduces new CSS styles for the gestion fiche sections, improving the layout and visual presentation of details. It adds background colors and flexbox layouts for better readability on mobile devices. Additionally, the PHP file is updated to ensure specific sections are collapsed or expanded based on user interactions, enhancing the user experience. The version code is incremented to reflect these changes.
2026-07-02 10:09:37 -04:00