From 71e57d6eb170e6f76e21e6cdcd6edb39b4f4c15e Mon Sep 17 00:00:00 2001 From: stephan Date: Tue, 14 Jul 2026 11:53:07 -0400 Subject: [PATCH] Refactor ChronoTrack API push panel to enhance user experience with clearer status messages and improved layout. Update button actions and add collapsible details section for better visibility of synchronization results. This change aims to streamline participant data management and provide more intuitive feedback during the push process. --- php/chronotrack_api/fx_chronotrack_admin.php | 141 ++++++++++++++----- 1 file changed, 109 insertions(+), 32 deletions(-) diff --git a/php/chronotrack_api/fx_chronotrack_admin.php b/php/chronotrack_api/fx_chronotrack_admin.php index 26c69c3..70e1846 100644 --- a/php/chronotrack_api/fx_chronotrack_admin.php +++ b/php/chronotrack_api/fx_chronotrack_admin.php @@ -246,24 +246,42 @@ function fxChronotrackApiAdminRenderRaceMapping($intEveId, $arrConfig, $strLangu function fxChronotrackApiAdminRenderPushPanel($intEveId, $blnClosed = false) { echo '
'; - echo '
Synchronisation manuelle (participants)
'; + echo '
Synchronisation ChronoTrack
'; echo '
'; if ($blnClosed) { - echo '
Événement fermé — push manuel autorisé pour tests ou rattrapage.
'; + echo '
Événement fermé — envoi manuel encore possible.
'; } - echo '

Push différentiel MS1 → ChronoTrack ' - . '(nouveaux / modifiés depuis le dernier push OK). External ID = par_id_original.

'; - echo '
Cliquez Actualiser.
'; - echo '
'; - echo '
'; - echo ' '; - echo ' '; + echo ''; + echo '
'; + echo '

La sync automatique arrivera bientôt — pour l’instant, un clic suffit quand il y a du nouveau.

'; + echo '
'; + + // Détails / debug : sous les boutons, repliés par défaut + echo '
'; + echo ''; + echo '
'; + echo '
'; + echo '
'; echo ''; - echo '
'; - echo '
'; + echo '

Info technique : external ID = par_id_original. ' + . 'Le comptage Live sert aussi à lier les entry_id pour le bouton fiche.

'; + echo '
'; + echo '
'; } @@ -309,6 +327,32 @@ function fxChronotrackApiAdminRenderPageScript($intEveId, $arrConfig, $blnClosed #ct_api_push_summary .ct-api-dash-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; } #ct_api_push_summary .ct-api-dash-push { font-size: 0.85rem; margin-bottom: 0; } #ct_api_config_collapse .card { box-shadow: none; } +.ct-api-push-status { + padding: 12px 14px; + border-radius: 8px; + background: #f8f9fa; + border: 1px solid #e9ecef; +} +.ct-api-push-status--ok { + background: #e8f7ee; + border-color: #b7e4c7; +} +.ct-api-push-status--todo { + background: #fff8e6; + border-color: #ffe1a6; +} +.ct-api-push-status__title { + font-size: 1.15rem; + font-weight: 700; + margin: 0 0 4px; + line-height: 1.3; +} +.ct-api-push-status__hint { + margin: 0; + font-size: 0.9rem; +} +.ct-api-push-actions .btn-lg { font-size: 1.05rem; padding: 0.55rem 1.1rem; } +#ct_api_push_details_card .card-header a { text-decoration: none; }