forked from yvv/decision
v2 : les 14 écrans — le tour complet de la démocratie d'exercice
- Aujourd'hui (Fil 13 sections + capture sticky) + Le chemin (tunnel 2 gestes, Q0 inline, 3 chips, dérogation asymétrique, alternatives réglage/consignation) - Registre + fiche décision (timeline, périmètre premier/second lieu auditable, affluence non-ignorable, S'instruire condensé, éléments + cartographie de clôture, épreuve du réel, Remettre en question, PV A4, gravure) - Salle de vote 5 modalités (consentement, nuancé+histogramme, binaire hérité avec jauge inertielle, Réglage collectif complet — faisceau, médiane basse, Pour moi, Explorer, cristallisation-geste —, élection à départage humain) - Textes (Pacte en clair, document vivant, diff, vue projetée, Atelier des formules porté du v1 sur le moteur unique) + Mandats (faits comptés, feux de la rampe, wizard 3 étapes) + Observatoire (consigner→observer→protocoliser) - Onboarding 7 gabarits + Données locales (export/import, attributs, atelier) - voting→framing gardé (Reformuler d'un réglage figé non cristallisé) - Pages v1 supprimées (login, documents, mandates, protocols, sanctuary, tools, decisions/new) — 342 tests verts, build zéro erreur Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
<script setup lang="ts">
|
||||
// One line of the collective's activity — route icon, title → fiche, status pill.
|
||||
import type { Decision } from '~/types/domain'
|
||||
import { ROUTE_ICONS, STATUS_LABELS } from '~/lexicon'
|
||||
|
||||
const props = defineProps<{ decision: Decision }>()
|
||||
|
||||
const when = computed(() =>
|
||||
new Date(props.decision.updatedAt).toLocaleDateString('fr-FR', {
|
||||
day: 'numeric',
|
||||
month: 'short',
|
||||
}),
|
||||
)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<!-- ld-v2 -->
|
||||
<NuxtLink :to="`/decisions/${decision.id}`" class="ld-card ld-card--hover fac">
|
||||
<UIcon
|
||||
:name="ROUTE_ICONS[decision.route]"
|
||||
class="fac__icon"
|
||||
:style="{ color: `var(--route-${decision.route})` }"
|
||||
/>
|
||||
<span class="fac__title">{{ decision.title }}</span>
|
||||
<span class="status-pill fac__pill" :class="`status-${decision.status}`">
|
||||
{{ STATUS_LABELS[decision.status] }}
|
||||
</span>
|
||||
<span class="fac__when">{{ when }}</span>
|
||||
</NuxtLink>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.fac {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.625rem;
|
||||
padding: 0.625rem 0.875rem;
|
||||
text-decoration: none;
|
||||
color: var(--mood-text);
|
||||
}
|
||||
.fac__icon { font-size: 1rem; flex-shrink: 0; }
|
||||
.fac__title {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
font-size: 0.9063rem;
|
||||
font-weight: 600;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.fac__pill { flex-shrink: 0; }
|
||||
.fac__when {
|
||||
flex-shrink: 0;
|
||||
font-size: 0.75rem;
|
||||
color: var(--mood-text-muted);
|
||||
display: none;
|
||||
}
|
||||
@media (min-width: 480px) {
|
||||
.fac__when { display: inline; }
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user