fix(rag-pe): supprimer toggle inutile + chatbot global tous onglets
- pensees-ecologiques.vue : supprime toggle Familiale/Graphe, une seule CartePensees - agences.vue : ChatbotPensees accessible depuis tous les onglets (desktop) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -414,6 +414,11 @@
|
|||||||
@update:modelValue="chatbotOpen = $event"
|
@update:modelValue="chatbotOpen = $event"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<!-- ═══════════════════════════════════════ CHATBOT PENSEES (desktop, tous onglets) -->
|
||||||
|
<ClientOnly>
|
||||||
|
<ChatbotPensees />
|
||||||
|
</ClientOnly>
|
||||||
|
|
||||||
<!-- ═══════════════════════════════════════ POP-UP MISSION RÉSEAUX AEP -->
|
<!-- ═══════════════════════════════════════ POP-UP MISSION RÉSEAUX AEP -->
|
||||||
<button
|
<button
|
||||||
class="reseaux-info-btn"
|
class="reseaux-info-btn"
|
||||||
|
|||||||
@@ -4,40 +4,21 @@
|
|||||||
<!-- ZONE PRINCIPALE (pleine largeur, pas de sidebar) -->
|
<!-- ZONE PRINCIPALE (pleine largeur, pas de sidebar) -->
|
||||||
<main class="flex-1 flex flex-col overflow-hidden relative">
|
<main class="flex-1 flex flex-col overflow-hidden relative">
|
||||||
|
|
||||||
<!-- Header onglet -->
|
<!-- Header onglet -->
|
||||||
<div class="shrink-0 flex items-center justify-between px-5 py-3"
|
<div class="shrink-0 px-5 py-3"
|
||||||
style="background: var(--nav-surface); border-bottom: 1px solid var(--nav-bg-alt);">
|
style="background: var(--nav-surface); border-bottom: 1px solid var(--nav-bg-alt);">
|
||||||
<div>
|
<h1 class="font-bold text-base" style="color: var(--nav-text);">Pensees Ecologiques</h1>
|
||||||
<h1 class="font-bold text-base" style="color: var(--nav-text);">Pensees Ecologiques</h1>
|
<p class="text-xs mt-0.5" style="color: var(--nav-text-muted);">
|
||||||
<p class="text-xs mt-0.5" style="color: var(--nav-text-muted);">
|
{{ corpusCount }} auteurs ingeres dans le RAG - carte FRACAS Bonpote V2
|
||||||
{{ corpusCount }} auteurs ingeres dans le RAG - carte FRACAS Bonpote V2
|
</p>
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<!-- Toggle vue -->
|
|
||||||
<div class="flex items-center gap-1 p-1 rounded-lg" style="background: var(--nav-bg-alt);">
|
|
||||||
<button
|
|
||||||
@click="vue = 'familiale'"
|
|
||||||
class="px-3 py-1.5 rounded-md text-xs font-semibold transition-all"
|
|
||||||
:style="vue === 'familiale'
|
|
||||||
? 'background: var(--nav-surface); color: var(--nav-text); box-shadow: 0 1px 3px rgba(0,0,0,0.12);'
|
|
||||||
: 'color: var(--nav-text-muted);'"
|
|
||||||
>Familiale</button>
|
|
||||||
<button
|
|
||||||
@click="vue = 'graphe'"
|
|
||||||
class="px-3 py-1.5 rounded-md text-xs font-semibold transition-all"
|
|
||||||
:style="vue === 'graphe'
|
|
||||||
? 'background: var(--nav-surface); color: var(--nav-text); box-shadow: 0 1px 3px rgba(0,0,0,0.12);'
|
|
||||||
: 'color: var(--nav-text-muted);'"
|
|
||||||
>Graphe</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Vue Familiale (CartePensees D3 force-directed) -->
|
<!-- Carte pensees (D3 force-directed) -->
|
||||||
<div v-show="vue === 'familiale'" class="flex-1 overflow-hidden relative">
|
<div class="flex-1 overflow-hidden relative">
|
||||||
<ClientOnly>
|
<ClientOnly>
|
||||||
<CartePensees
|
<CartePensees
|
||||||
:data="penseesData"
|
:data="penseesData"
|
||||||
:active="vue === 'familiale'"
|
:active="true"
|
||||||
@select-auteur="onSelectAuteur"
|
@select-auteur="onSelectAuteur"
|
||||||
/>
|
/>
|
||||||
<template #fallback>
|
<template #fallback>
|
||||||
@@ -48,22 +29,6 @@
|
|||||||
</ClientOnly>
|
</ClientOnly>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Vue Graphe (GraphView existant adapte) -->
|
|
||||||
<div v-show="vue === 'graphe'" class="flex-1 overflow-hidden relative">
|
|
||||||
<ClientOnly>
|
|
||||||
<CartePensees
|
|
||||||
:data="penseesData"
|
|
||||||
:active="vue === 'graphe'"
|
|
||||||
@select-auteur="onSelectAuteur"
|
|
||||||
/>
|
|
||||||
<template #fallback>
|
|
||||||
<div class="w-full h-full flex items-center justify-center" style="color: var(--nav-text-muted);">
|
|
||||||
Chargement du graphe...
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
</ClientOnly>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<!-- Fiche auteur modal -->
|
<!-- Fiche auteur modal -->
|
||||||
@@ -87,7 +52,6 @@ interface LivreRag { slug: string; titre: string; annee: number; couches: string
|
|||||||
interface AuteurData { id: string; nom: string; dates: string; ecoles: string[]; ecole_principale: string; livres_rag: LivreRag[]; theses_cles: string[]; bio_courte: string }
|
interface AuteurData { id: string; nom: string; dates: string; ecoles: string[]; ecole_principale: string; livres_rag: LivreRag[]; theses_cles: string[]; bio_courte: string }
|
||||||
interface PenseesData { meta: any; ecoles: EcoleData[]; auteurs: AuteurData[] }
|
interface PenseesData { meta: any; ecoles: EcoleData[]; auteurs: AuteurData[] }
|
||||||
|
|
||||||
const vue = ref<'familiale' | 'graphe'>('familiale')
|
|
||||||
const ficheOpen = ref(false)
|
const ficheOpen = ref(false)
|
||||||
const ficheAuteurId = ref<string | null>(null)
|
const ficheAuteurId = ref<string | null>(null)
|
||||||
const chatbotAuteur = ref<string | null>(null)
|
const chatbotAuteur = ref<string | null>(null)
|
||||||
|
|||||||
Reference in New Issue
Block a user