MSIN-4470 — Implement functionality to position the PDF tool detail dynamically based on the selected tool. Update race label handling in production XML generation to avoid repetition. Add default slot for tool detail in the UI. Increment version code to 4.72.860.

This commit is contained in:
2026-07-21 15:30:04 -04:00
parent f29ed77969
commit f74fbc3092
4 changed files with 27 additions and 3 deletions

View File

@ -635,6 +635,25 @@
: '';
}
// MSIN-4470 — Le panneau PDF s'ouvre immédiatement sous la barre supérieure.
function bibPositionToolDetail(toolId) {
var detail = document.getElementById('bib-tool-detail');
var defaultSlot = document.getElementById('bib-tool-detail-default-slot');
if (!detail || !defaultSlot || !defaultSlot.parentNode) {
return;
}
if (toolId === 'dist_print') {
var firstWorkspacePanel = moduleBib.querySelector('[data-bib-workspace-panel]');
if (firstWorkspacePanel && firstWorkspacePanel.parentNode) {
firstWorkspacePanel.parentNode.insertBefore(detail, firstWorkspacePanel);
}
return;
}
defaultSlot.parentNode.insertBefore(detail, defaultSlot.nextSibling);
}
function bibCloseTool() {
if (!bibActiveTool) {
return;
@ -655,6 +674,7 @@
if (detail) {
detail.classList.add('bib-ui-hidden');
}
bibPositionToolDetail(null);
}
function bibSyncToolNavBadges(toolId) {
@ -795,6 +815,7 @@
bibActiveTool = toolId;
bibSetActiveToolButton(toolId);
bibSetToolDetailTitle(toolId);
bibPositionToolDetail(toolId);
var detail = document.getElementById('bib-tool-detail');
if (detail) {

View File

@ -450,9 +450,11 @@ function fxBibProductionBuildOrderXml($strXml, array $tabSnapshot, array $tabLab
$tabOrderRows = [];
foreach ($tabSnapshot['races'] as $tabRace) {
foreach ($tabRace['ranges'] as $tabRange) {
foreach ($tabRace['ranges'] as $intRangeIndex => $tabRange) {
$tabOrderRows[] = [
'label' => $tabRace['label'],
// MSIN-4470 — Une ligne reste réservée à chaque séquence,
// mais le nom de l'épreuve n'est répété que sur la première.
'label' => $intRangeIndex === 0 ? $tabRace['label'] : '',
'start' => (int)$tabRange['start'],
'finish' => (int)$tabRange['finish'],
'quantity' => (int)$tabRange['quantity'],

View File

@ -5223,6 +5223,7 @@ function renderBibToolNav($int_eve_id, $tabEpreuves, $strLangue = 'fr') {
</nav>
</section>
<div id="bib-tool-detail-default-slot" aria-hidden="true"></div>
<div id="bib-tool-detail" class="bib-tool-detail bib-ui-hidden" aria-live="polite">
<div class="bib-tool-detail__header epr-header">
<span id="bib-tool-detail-title" class="bib-tool-detail__title"></span>

View File

@ -7,7 +7,7 @@
* Constantes *
*
**************/
define('_VERSION_CODE', '4.72.858'); // MSIN-4470
define('_VERSION_CODE', '4.72.860'); // MSIN-4470
define('_DATE_CODE', '2026-07-21');
//MSIN-4290
define('QR_SECRET_KEY', 'ms1_qr_2026_cle_secrete_longue_et_fixe');