Commit Graph

49 Commits

Author SHA1 Message Date
c2051c0b72 MSIN-4540 — Prevent discounts from being applied without online registration or payment. Update logic in event link handling and navigation menu. Ensure proper function inclusion for event result checks. 2026-07-30 15:27:48 -04:00
d26124809d MSIN-4482 — Update fxPromoteurHubGetEventLinks function to hide reports section when "Sans inscription en ligne" is active. Increment version code to 4.72.900. 2026-07-29 15:12:25 -04:00
64d6b63937 Add support for total kit access in event link retrieval by introducing grants check. Increment version code to 4.72.882. 2026-07-28 11:39:01 -04:00
22e8e7c486 Hotfix: hub et dossards affichent Plus disponible quand epr_qte=0 (plus de faux infinity illimite).
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-25 22:13:02 -04:00
a62cca6e45 Enhance product display functionality by adding 'pro_date_limite' to the product selection query and updating the rendering logic to include the sale end date. Adjust comments to reflect these changes and improve clarity on the product display section. Increment version code. 2026-07-25 16:46:14 -04:00
8788f22a81 Add functions to handle 'perm_grants_all' column and update permission checks for event kits. Refactor related logic to respect new permission propagation rules. Increment version code. 2026-07-24 19:10:19 -04:00
9143f7a967 MSIN-4473 — Update promoteur hub link styles to align with button design by adding border-radius. Increment version code to 4.72.862. 2026-07-22 11:29:01 -04:00
f9d304484e MSIN-4465 — Refactor report access functions to support V2 permissions and enhance legacy menu handling. Update SQL queries for better data retrieval and add comments for clarity. Increment version code. 2026-07-20 14:54:24 -04:00
f0bdefd805 MSIN-4419 — Update SQL query for participant statistics to count total participations without deduplication by email. Adjust comments for clarity regarding participation counting. Increment version code. 2026-07-20 12:54:44 -04:00
211f1e2638 MSIN-4452 — Update badge styles in promoteur hub for improved visual alignment and reduced alert intensity. Adjust CSS properties for danger, warning, info, and soft badges. Increment version code to 4.72.835. 2026-07-16 11:41:07 -04:00
64ef6c2a8e MSIN-4454 — Update product display in promoteur hub to show sold quantities instead of available. Adjust labels and HTML structure for clarity and consistency in the user interface. Increment version code accordingly. 2026-07-16 11:27:11 -04:00
0ff8299fdc MSIN-4451 — Add participant count under the "entries sold" KPI in the promoteur hub. Introduce new CSS styles for displaying participant information and update SQL queries to calculate unique participants. Increment version code to 4.72.834. 2026-07-16 11:24:11 -04:00
37f8bec215 Update 'promoteur_hub_flash_inscrits' label to reflect total entries sold instead of registered. This change clarifies the terminology used in the interface, aligning it with the intended meaning of the data. Increment version code accordingly. 2026-07-16 11:00:04 -04:00
2e17136f01 Refactor promoteur back URL logic to prioritize new hub structure, enabling event focus functionality. Introduce fxPromoteurHubOrLegacyBackUrl for streamlined navigation based on event ID availability. Update related functions for consistency and clarity. This change enhances user experience by ensuring proper redirection based on session and event context. 2026-07-14 08:35:59 -04:00
19b9369e77 Implement event focus functionality in promoteur hub, allowing automatic scrolling and menu opening based on event ID. Update back URL logic to prioritize the new hub structure and enhance deep-linking capabilities. Increment version code to 4.72.823 to reflect these changes. 2026-07-14 08:29:58 -04:00
b9a8d5ffd2 Implement course status column in inscription management, enhancing the display of race statuses. Update CSS for new status pill styling and adjust grid layout for better responsiveness. Increment version code to 4.72.822 to reflect these changes. 2026-07-14 08:18:27 -04:00
d3bb32eb97 Enhance multi-page AJAX handling by enforcing context for translations in ajax_inscr_gestion and ajax_promoteur_hub. Introduce new language keys for improved user feedback and error messages. Increment version code to 4.72.806 to reflect these changes. 2026-07-13 17:17:53 -04:00
2c11be5796 Refactor permissions for inscriptions management to align with V2 API standards. Remove deprecated permission keys and update related functions for QR scanning access. No version code increment required. 2026-07-13 15:57:57 -04:00
dd33cb6873 Implement access control for dashboard viewing in promoteur hub. Introduce permission checks to restrict access based on user roles, enhancing security and user experience. Update event panel rendering logic to conditionally display features based on available permissions, aligning with MSIN-4401 requirements for improved event management functionality. 2026-07-13 11:43:54 -04:00
4de952967d Refactor fxPromoteurHubGetEventLinks to enhance event access management by distinguishing between legacy and V2 permissions. Update documentation to clarify menu access based on user roles, ensuring a more intuitive experience for super admins and promoters. This aligns with MSIN-4401 requirements for improved event management functionality. 2026-07-13 11:41:25 -04:00
5b87d02d9e Refactor event access management to support V2 features, updating permission checks and enhancing UI elements for better user experience. Remove legacy API keys and streamline access permissions in fxEveAcces functions. This aligns with MSIN-4401 requirements for improved event management functionality. 2026-07-13 11:36:30 -04:00
fdf34afcd3 Refactor promoteur hub integration to support V2 features, including new dashboard links and menu updates. Remove legacy event access checks and streamline menu display for improved user experience. This aligns with MSIN-4401 requirements for a more cohesive event management interface. 2026-07-13 10:02:51 -04:00
c1d730ac98 Refactor hub promoteur access management to support V2 only, removing legacy event handling. Update related functions and documentation to reflect changes in event access permissions and menu integration. This aligns with MSIN-4401 requirements for improved event management. 2026-07-13 09:57:29 -04:00
5f73db0a59 MSIN-4401 Implement event access management features, including team invitation capabilities and menu integration
This commit introduces functions for managing event access, allowing promoters to invite team members and manage permissions. The `fxEveAccesCanTeamInvite` function is added to check if a user can invite others, and the UI is updated to include access management options in the navigation. Additionally, relevant includes are added to ensure the necessary functions are available. These changes enhance the event management experience for promoters.
2026-07-13 09:49:12 -04:00
4cf2ef98d0 Enhance fxPromoteurHubGetEventLinks function to conditionally load access management and update version code to 4.72.746
This commit modifies the `fxPromoteurHubGetEventLinks` function to include a conditional check for the existence of the `fxInscrGestionCanAccess` function. If it does not exist, the `inc_fx_inscriptions_gestion.php` file is loaded to evaluate access rights. This change improves the modularity and functionality of the promoteur hub by ensuring that access management is properly handled in AJAX contexts.
2026-07-08 09:50:09 -04:00
d535f3d9c5 Enhance AJAX promoteur hub functionality with improved language handling and text retrieval
This commit updates the `ajax_promoteur_hub.php` and `inc_fx_promoteur_hub.php` files to improve language handling and text retrieval for the promoteur hub. The language is now determined based on session data, with a fallback to French if the specified language is invalid. New functions are introduced to manage text retrieval from the database, ensuring that legacy entries from `ajax_promoteur_hub.php` are handled correctly. Additionally, the text retrieval logic is streamlined to enhance maintainability and user experience across the promoteur hub.
2026-07-08 09:02:43 -04:00
4522ddde8d Enhance promoteur hub functionality with AJAX loading and access control improvements
This commit introduces significant updates to the promoteur hub, including the addition of a new JavaScript file for AJAX handling of event statistics and links. The PHP file `ajax_promoteur_hub.php` is modified to support new actions for fetching event statistics and links, improving the user experience with better error handling and loading indicators. Additionally, a new batch access control function is implemented in `inc_fx_promoteur_hub.php` to streamline permission checks for events. The version code is incremented to reflect these enhancements, aiming to improve functionality and maintainability across the promoteur hub.
2026-07-08 08:48:23 -04:00
2aed8052d0 Enhance loading indicators and AJAX handling in promoteur hub
This commit updates the loading mechanism for event statistics in the promoteur hub by introducing a new inline loader with an image and message. It also improves the AJAX loading process by adding a wait message and ensuring the loader is displayed during data fetching. Additionally, the error handling for AJAX requests is refined to hide the loader upon completion, enhancing user experience and clarity in the loading process.
2026-07-07 14:33:57 -04:00
2570785030 Refactor account tracing and session handling in compte.php and related files
This commit removes the `fxTraceCompte` functionality from various locations in `compte.php`, `inc_fx_compte.php`, and other related files to streamline the account management flow. The tracing logic is eliminated to enhance performance and reduce complexity. Additionally, the session handling for login redirection is improved by simplifying the logic and removing unnecessary function calls. These changes aim to improve maintainability and clarity in the account management system.
2026-07-07 14:30:53 -04:00
20ab5a8f08 Add event stats rendering and AJAX loading for promoteur hub 2026-07-07 13:48:59 -04:00
316583d108 Enhance account tracing and redirect logic in compte.php and inc_fx_compte.php
This commit introduces comprehensive tracing functionality to the account management flow by adding calls to `fxTraceCompte` and `fxTraceCompteRedirect` at key points in the login and routing processes. The changes improve the tracking of user actions and session states, facilitating better debugging and monitoring of account-related activities. Additionally, the promoteur hub event retrieval function is updated to include tracing, enhancing visibility into hub interactions. These updates aim to improve maintainability and user experience in the account management system.
2026-07-07 13:24:49 -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
5936cdb61c Add legacy promoteur functionality and migration enhancements
This commit introduces several enhancements related to the legacy promoteur system. It adds a new function to check if the legacy promoteur site is enabled and updates various functions to utilize this check, ensuring that legacy features are only accessible when appropriate. Additionally, it refines the migration process for legacy accounts, including improved handling of migration statistics and event access. The admin interface is updated to reflect these changes, enhancing the overall management of legacy promoteur accounts. The version code is updated to reflect these changes.
2026-07-01 14:14:25 -04:00
bcc7d7974e MSIN-4415 Enhance event display in promoteur hub with section title
This commit adds a section title for the events grid in the promoteur hub, improving the visual structure and clarity of the displayed information. The title indicates the availability of events for sale, enhancing user engagement and overall experience within the interface.
2026-06-29 12:01:32 -04:00
50e8fea3e9 MSIN-4415 Add product display functionality in promoteur hub
This commit introduces new features for displaying products available for sale within the promoteur hub. It adds a function to retrieve product data, including quantities available, sold, and in carts, enhancing the event experience by providing users with relevant product information. Additionally, CSS styles are added to improve the visual presentation of the product tiles. The changes ensure that product availability is clearly communicated to users, improving overall engagement and usability in the event management interface.
2026-06-29 11:59:20 -04:00
6ab8c8c61f Enhance promoteur hub functionality by defining a threshold for unlimited events
This commit introduces a new constant, `PHUB_SEUIL_ILLIMITE`, to define the quantity threshold at which an event is considered "unlimited." The `fxPromoteurHubGetEpreuveStats` function has been updated to incorporate this threshold, allowing for better handling of event statistics and improving the accuracy of the sold tickets and remaining quantities display. These changes aim to enhance the clarity and functionality of the promoteur hub.
2026-06-27 17:41:30 -04:00
ca452f9ade Update promoteur hub statistics display and refine CSS for better user experience
This commit enhances the `fxPromoteurHubGetEpreuveStats` function to improve the aggregation and presentation of event statistics, including sold tickets and check-ins. Additionally, it refines the CSS styles for the promoteur hub, ensuring a more cohesive and visually appealing layout for statistics and event tiles. These updates aim to provide users with clearer insights and a more organized interface for event management.
2026-06-27 17:35:37 -04:00
c47d826f8e Refactor promoteur hub rendering and update CSS for improved layout
This commit refines the rendering functions for the promoteur hub, introducing `fxPromoteurHubRenderFlash` and `fxPromoteurHubRenderEpreuvesGrid` to separate the display of the flash summary and the grid of event tiles. The CSS has been updated to enhance the layout, including new styles for the flash section and action buttons, ensuring a more organized and visually appealing interface. Additionally, the version code has been incremented to 4.72.710.
2026-06-27 17:12:59 -04:00
3e8112ec0b Implement statistics and layout enhancements for promoteur hub
This commit introduces a new function, `fxPromoteurHubGetEpreuveStats`, to aggregate and return statistics for events, including sold tickets, check-ins, and waiting list details. Additionally, it adds extensive CSS styles for the promoteur hub, enhancing the layout and visual presentation of statistics, alerts, and event tiles. These changes improve the user experience by providing clearer information and a more organized interface for event management.
2026-06-27 17:03:26 -04:00
4c08938403 Update promoteur hub layout and SQL for gestion integration
This commit modifies the layout of the promoteur hub by swapping the content of the left and right columns, ensuring that the management section is displayed correctly alongside the reports. Additionally, it updates the SQL script to include safety measures for missing labels and redefines the "Gestion" header in the promoteur hub, ensuring a consistent user experience across the interface.
2026-06-27 12:30:43 -04:00
8f428a5c18 Refactor event management system to transition from mobile to gestion
This commit updates the event management system by replacing references to mobile inscriptions with gestion inscriptions. It includes changes to AJAX endpoints, helper functions, and UI elements to reflect this transition. The updates enhance the overall structure and maintainability of the codebase while ensuring that user access and permissions are properly managed for the new gestion interface.
2026-06-27 12:10:19 -04:00
683e2d69d0 Update promoteur hub styles and enhance event section rendering
This commit modifies the CSS for the promoteur hub, introducing new styles for card elements, including updated colors, borders, and shadows for improved aesthetics. It also enhances the event section rendering by adding a specific class to the event title, ensuring consistent styling across the promoteur hub. Additionally, the version code is incremented to reflect these changes.
2026-06-25 17:15:37 -04:00
a45be35d6c Enhance promoteur hub card styling and update event card structure
This commit introduces new CSS styles for the promoteur hub card, including a background color, border, and shadow effects to improve visual presentation. It also updates the HTML structure of the event card, incorporating a new card icon and enhancing the event title styling for better readability. Additionally, it modifies the logic for displaying document triggers in the promoteur hub announcements section, ensuring a more cohesive user experience.
2026-06-25 17:06:21 -04:00
9a0ea70034 Refactor event modal to event panel and enhance UI interactions
This commit renames the `fxPromoteurHubRenderEventModal` function to `fxPromoteurHubRenderEventPanel`, transitioning from a modal to a collapsible panel for event details. It updates the HTML structure accordingly, improving user interaction with a toggle button and a rotating caret icon for better visual feedback. Additionally, the CSS is enhanced to support the new panel design, ensuring a more cohesive user experience in the promoteur hub.
2026-06-25 17:02:48 -04:00
d95f84bff7 Add event management links and enhance SQL entries
This commit introduces a new function, `fxPromoteurHubGetEventLinks`, to generate management and report links for events, improving the event management interface. It also updates the SQL script to include new entries for the 'Gestion' section in both French and English, enhancing the localization of the promoteur hub. These changes aim to streamline event management and improve user navigation within the promoteur hub.
2026-06-25 16:59:01 -04:00
7cee99e8e0 Add legacy event ID retrieval and merge with access events
This commit introduces a new function, `fxPromoteurHubGetLegacyEventIds`, to retrieve legacy event IDs for a given account. It updates the `fxPromoteurHubGetEvents` and `fxShowPromoteurHubMenuLink` functions to merge legacy event IDs with current access event IDs, ensuring comprehensive event access management. Additionally, it modifies SQL insert statements to update participant space labels for clarity. These changes aim to enhance the event management functionality and improve user experience.
2026-06-25 16:54:12 -04:00
ade9608e72 Refactor promoteur hub logic and introduce new checks
This commit refines the promoteur hub integration by replacing the existing function `fxPromoteurHubComUsesV2` with `fxPromoteurHubShouldUse`, which combines access checks and page existence validation. It updates the account management logic to ensure proper redirects based on the new checks, enhancing the user experience for promoteur hub accounts. Additionally, it introduces a new function to verify the existence of the promoteur hub page, streamlining the access management process.
2026-06-25 16:49:03 -04:00
0dcdcfc829 Implement promoteur hub integration and UI enhancements
This commit introduces the promoteur hub functionality by adding new checks and redirects based on the user's account type. It updates the account management logic to handle promoteur hub users, ensuring proper navigation and access. Additionally, it enhances the CSS for promoteur hub elements, improving the visual presentation. These changes aim to streamline user experience for promoteur hub accounts and ensure proper access management.
2026-06-25 16:45:03 -04:00