Card Protocoles: count fixe + section opérationnelle toujours visible
- Home: card Protocoles affiche "2 protocoles" (count fixe) + modalités dynamiques - Protocols: section "Protocoles opérationnels" déplacée hors template conditionnel Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -59,9 +59,9 @@ const entryCards = computed(() => [
|
||||
title: 'Protocoles et fonctionnement',
|
||||
icon: 'i-lucide-settings',
|
||||
to: '/protocols',
|
||||
count: protocols.protocols.length,
|
||||
countLabel: `${protocols.protocols.length} modalité${protocols.protocols.length > 1 ? 's' : ''}`,
|
||||
totalLabel: 'Boîte à outils de vote + workflows',
|
||||
count: 2,
|
||||
countLabel: '2 protocoles',
|
||||
totalLabel: `${protocols.protocols.length} modalités de vote`,
|
||||
description: 'Modalités de vote, formules, workflows',
|
||||
color: 'var(--mood-tertiary, var(--mood-accent))',
|
||||
},
|
||||
|
||||
@@ -294,7 +294,43 @@ const n8nWorkflows = [
|
||||
</NuxtLink>
|
||||
</div>
|
||||
|
||||
<!-- Operational protocols (workflow templates) -->
|
||||
<!-- Formulas table -->
|
||||
<div class="proto-formulas">
|
||||
<h3 class="proto-formulas__title">
|
||||
<UIcon name="i-lucide-calculator" class="text-sm" />
|
||||
Configurations de formule
|
||||
<span class="proto-formulas__count">{{ protocols.formulas.length }}</span>
|
||||
</h3>
|
||||
<div class="proto-formulas__table-wrap">
|
||||
<table class="proto-formulas__table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Durée</th>
|
||||
<th>Majorité</th>
|
||||
<th>B</th>
|
||||
<th>G</th>
|
||||
<th>Smith</th>
|
||||
<th>TechComm</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="formula in protocols.formulas" :key="formula.id">
|
||||
<td class="proto-formulas__name">{{ formula.name }}</td>
|
||||
<td>{{ formula.duration_days }}j</td>
|
||||
<td>{{ formula.majority_pct }}%</td>
|
||||
<td>{{ formula.base_exponent }}</td>
|
||||
<td>{{ formula.gradient_exponent }}</td>
|
||||
<td>{{ formula.smith_exponent ?? '-' }}</td>
|
||||
<td>{{ formula.techcomm_exponent ?? '-' }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<!-- Operational protocols (always visible, frontend-only data) -->
|
||||
<div class="proto-ops">
|
||||
<h3 class="proto-ops__title">
|
||||
<UIcon name="i-lucide-git-branch" class="text-sm" />
|
||||
@@ -353,42 +389,6 @@ const n8nWorkflows = [
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Formulas table -->
|
||||
<div class="proto-formulas">
|
||||
<h3 class="proto-formulas__title">
|
||||
<UIcon name="i-lucide-calculator" class="text-sm" />
|
||||
Configurations de formule
|
||||
<span class="proto-formulas__count">{{ protocols.formulas.length }}</span>
|
||||
</h3>
|
||||
<div class="proto-formulas__table-wrap">
|
||||
<table class="proto-formulas__table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Durée</th>
|
||||
<th>Majorité</th>
|
||||
<th>B</th>
|
||||
<th>G</th>
|
||||
<th>Smith</th>
|
||||
<th>TechComm</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="formula in protocols.formulas" :key="formula.id">
|
||||
<td class="proto-formulas__name">{{ formula.name }}</td>
|
||||
<td>{{ formula.duration_days }}j</td>
|
||||
<td>{{ formula.majority_pct }}%</td>
|
||||
<td>{{ formula.base_exponent }}</td>
|
||||
<td>{{ formula.gradient_exponent }}</td>
|
||||
<td>{{ formula.smith_exponent ?? '-' }}</td>
|
||||
<td>{{ formula.techcomm_exponent ?? '-' }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<!-- Toolbox sidebar -->
|
||||
<template #toolbox>
|
||||
<!-- Simulateur -->
|
||||
|
||||
Reference in New Issue
Block a user