diff --git a/CHANGELOG.md b/CHANGELOG.md index 880d2d7..d36a053 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ Format basé sur [Keep a Changelog](https://keepachangelog.com/fr/1.1.0/), et [Semantic Versioning](https://semver.org/spec/v2.0.0.html). > **En cours de développement** : les changements à venir sont listés dans la section -> [Unreleased](#unreleased). La dernière version livrée est **2.95.1**. +> [Unreleased](#unreleased). La dernière version livrée est **2.95.2**. --- @@ -14,6 +14,14 @@ et [Semantic Versioning](https://semver.org/spec/v2.0.0.html). --- +## [2.95.2] — 2026-11-28 + +### Corrigé + +- **Commandes BooksLM mortes dans la palette (résidu D5)** : la palette de commandes importait encore `bookslm.js`, supprimé en D5 — les deux commandes « BooksLM » échouaient au clic. Remplacées par une commande « ✦ Spark : ouvrir le panneau » (clés `palette.spark_open*`, FR/EN). Au passage, la garde du bouton lecture mobile vise le panneau Spark (`.draco-panneau`) au lieu de l'ancien panneau BooksLM, et ses écouteurs d'événements morts sont retirés. Test de garde `test_aucun_residu_bookslm_frontend`. **Redéploiement Docker requis.** + +--- + ## [2.95.1] — 2026-11-28 ### Corrigé diff --git a/README.fr.md b/README.fr.md index 53349c4..c345363 100644 --- a/README.fr.md +++ b/README.fr.md @@ -4,7 +4,7 @@ **Porte d'entrée web ultra-léger pour vos vaults Obsidian** — Accédez, naviguez et recherchez dans toutes vos notes Obsidian depuis n'importe quel appareil via une interface web moderne et responsive. -[![Version](https://img.shields.io/badge/Version-2.95.1-blue.svg)]() +[![Version](https://img.shields.io/badge/Version-2.95.2-blue.svg)]() [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Docker](https://img.shields.io/badge/Docker-Ready-blue.svg)](https://www.docker.com/) [![Python](https://img.shields.io/badge/Python-3.11+-green.svg)](https://www.python.org/) @@ -981,8 +981,8 @@ Ce projet est sous licence **MIT** — voir le fichier [LICENSE](LICENSE) pour l ## 📝 Changelog -Consultez le [CHANGELOG.md](./CHANGELOG.md) pour l'historique complet de toutes les versions (v1.0.0 → v2.95.1). +Consultez le [CHANGELOG.md](./CHANGELOG.md) pour l'historique complet de toutes les versions (v1.0.0 → v2.95.2). --- -*Projet : ObsiGate | Version : 2.95.1 | Dernière mise à jour : Septembre 2026* +*Projet : ObsiGate | Version : 2.95.2 | Dernière mise à jour : Septembre 2026* diff --git a/README.md b/README.md index bbe7818..5dbf717 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ **Ultra-light web gateway for your Obsidian vaults** — Access, browse, and search all your Obsidian notes from any device via a modern, responsive web interface. -[![Version](https://img.shields.io/badge/Version-2.95.1-blue.svg)]() +[![Version](https://img.shields.io/badge/Version-2.95.2-blue.svg)]() [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Docker](https://img.shields.io/badge/Docker-Ready-blue.svg)](https://www.docker.com/) [![Python](https://img.shields.io/badge/Python-3.11+-green.svg)](https://www.python.org/) @@ -1156,8 +1156,8 @@ This project is licensed under the **MIT License** - see the [LICENSE](LICENSE) ## 📝 Changelog -See [CHANGELOG.md](./CHANGELOG.md) for the complete version history (v1.0.0 → v2.95.1). +See [CHANGELOG.md](./CHANGELOG.md) for the complete version history (v1.0.0 → v2.95.2). --- -*Project: ObsiGate | Version: 2.95.1 | Last updated: September 2026* +*Project: ObsiGate | Version: 2.95.2 | Last updated: September 2026* diff --git a/VERSION b/VERSION index 4d066b3..f820281 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.95.1 +2.95.2 diff --git a/desktop/Cargo.lock b/desktop/Cargo.lock index c10bd7a..eb5eee0 100644 --- a/desktop/Cargo.lock +++ b/desktop/Cargo.lock @@ -2626,7 +2626,7 @@ dependencies = [ [[package]] name = "obsigate-desktop" -version = "2.95.1" +version = "2.95.2" dependencies = [ "chrono", "env_logger", diff --git a/desktop/Cargo.toml b/desktop/Cargo.toml index 078eee6..db6d660 100644 --- a/desktop/Cargo.toml +++ b/desktop/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "obsigate-desktop" -version = "2.95.1" +version = "2.95.2" description = "ObsiGate Desktop — Porte d'entrée native pour vos vaults Obsidian" authors = ["Bruno Charest"] edition = "2021" diff --git a/desktop/tauri.conf.json b/desktop/tauri.conf.json index c5f2a9d..19c8f2d 100644 --- a/desktop/tauri.conf.json +++ b/desktop/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://raw.githubusercontent.com/nicedoc/obsigate/main/desktop/tauri.conf.schema.json", "productName": "ObsiGate", - "version": "2.95.1", + "version": "2.95.2", "identifier": "com.obsigate.desktop", "build": { "frontendDist": "../frontend", diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index 808b03e..c0bdc83 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -1,6 +1,6 @@ # ObsiGate — Roadmap -> **Version :** 2.95.1 | **Dernière mise à jour :** 2026-11-28 +> **Version :** 2.95.2 | **Dernière mise à jour :** 2026-11-28 > **Ce fichier ne contient que le travail à venir** (🔵 En cours + ⚪ Backlog) et un index compact > vers les fonctionnalités livrées. > - **Méthode de livraison à appliquer pour toute tâche : [DELIVERY_WORKFLOW.md](./DELIVERY_WORKFLOW.md)** diff --git a/frontend/js/mobile-editor.js b/frontend/js/mobile-editor.js index 240bc74..75e0f23 100644 --- a/frontend/js/mobile-editor.js +++ b/frontend/js/mobile-editor.js @@ -967,10 +967,13 @@ function buildReadingControls() { document.body.appendChild(exit); } -/** True when the BooksLM assistant panel is expanded on screen. */ +/** True when the Spark panel is expanded on screen. */ function isAssistantOpen() { - const panel = document.querySelector('.bookslm-panel'); - return !!(panel && panel.classList.contains('open') && !panel.classList.contains('hidden')); + const panel = document.querySelector('.draco-panneau'); + if (!panel) return false; + return typeof panel.checkVisibility === 'function' + ? panel.checkVisibility() + : !!panel.offsetParent; } /** @@ -1047,8 +1050,6 @@ export function initMobileEditor() { // Keep the reading button in sync with the current view: visible only when // a file is open and the assistant is closed. updateReadingButtonVisibility(); - document.addEventListener('bookslm:opened', updateReadingButtonVisibility); - document.addEventListener('bookslm:closed', updateReadingButtonVisibility); const readingArea = document.getElementById('content-area'); if (readingArea && typeof MutationObserver !== 'undefined') { new MutationObserver(updateReadingButtonVisibility).observe(readingArea, { diff --git a/frontend/js/palette.js b/frontend/js/palette.js index 9db2de9..a0adec5 100644 --- a/frontend/js/palette.js +++ b/frontend/js/palette.js @@ -67,9 +67,8 @@ function getCMDS() { { id:'focus-next', label:'→ Panneau suivant', desc:'Active le panneau suivant (Ctrl+Alt+→)', cat:'Panneaux', act:()=>{close();if(window.PaneManager&&window.PaneManager.isSplit()){const n=(window.PaneManager.activePaneId+1)%window.PaneManager.panes.length;window.PaneManager.setActivePane(n);}} }, { id:'focus-prev', label:'← Panneau précédent', desc:'Active le panneau précédent (Ctrl+Alt+←)', cat:'Panneaux', act:()=>{close();if(window.PaneManager&&window.PaneManager.isSplit()){const n=(window.PaneManager.activePaneId-1+window.PaneManager.panes.length)%window.PaneManager.panes.length;window.PaneManager.setActivePane(n);}} }, { id:'reset-panes', label:'🔄 Réinitialiser les panneaux', desc:'Ferme tous les panneaux et revient au mode single-pane', cat:'Panneaux', act:()=>{close();if(window.PaneManager){while(window.PaneManager.isSplit()){window.PaneManager.closePane(window.PaneManager.panes.length-1);}localStorage.removeItem('obsigate-panes');}} }, - // AI Assistant commands - { id:'bookslm-open', label:t('palette.bookslm_open'), desc:t('palette.bookslm_open_desc'), cat:'AI', act:async()=>{close();const m=await import('./bookslm.js');m.default.openForCurrentContext();} }, - { id:'bookslm-new', label:t('palette.bookslm_new'), desc:t('palette.bookslm_new_desc'), cat:'AI', act:async()=>{close();const m=await import('./bookslm.js');m.default.newConversation();m.default.openForCurrentContext();} }, + // Assistant Spark (l'assistant intégré et BooksLM ont été retirés, D5) + { id:'spark-open', label:t('palette.spark_open'), desc:t('palette.spark_open_desc'), cat:'AI', act:async()=>{close();const m=await import('./spark-panneau.js');m.ouvrirSparkOuMessage();} }, ]; return _cmdsCache; } diff --git a/frontend/locales/en.json b/frontend/locales/en.json index 358d511..d93415b 100644 --- a/frontend/locales/en.json +++ b/frontend/locales/en.json @@ -2249,10 +2249,8 @@ "mfa.password_mismatch": "The two passwords do not match.", "mfa.password_changed": "Password updated.", "mfa.challenge_unavailable": "Verification screen unavailable — please reload the page.", - "palette.bookslm_open": "BooksLM: Open for current directory", - "palette.bookslm_open_desc": "Opens the AI assistant for the current context (open documents or general)", - "palette.bookslm_new": "BooksLM: New conversation", - "palette.bookslm_new_desc": "Resets the AI assistant conversation", + "palette.spark_open": "✦ Spark: open the panel", + "palette.spark_open_desc": "Opens the Spark panel for the current context (open document, directory or general)", "mfa.webauthn_title": "Security keys (WebAuthn)", "mfa.webauthn_desc": "Authenticate with a physical key (YubiKey) or your device biometrics (Windows Hello, Touch ID).", "mfa.webauthn_none": "No registered keys.", diff --git a/frontend/locales/fr.json b/frontend/locales/fr.json index 9afe81c..0a994fc 100644 --- a/frontend/locales/fr.json +++ b/frontend/locales/fr.json @@ -2249,10 +2249,8 @@ "mfa.password_mismatch": "Les deux mots de passe ne correspondent pas.", "mfa.password_changed": "Mot de passe mis à jour.", "mfa.challenge_unavailable": "Écran de vérification indisponible — veuillez recharger la page.", - "palette.bookslm_open": "BooksLM: Ouvrir pour le répertoire courant", - "palette.bookslm_open_desc": "Ouvre l'assistant AI pour le contexte courant (documents ouverts ou général)", - "palette.bookslm_new": "BooksLM: Nouvelle conversation", - "palette.bookslm_new_desc": "Réinitialise la conversation de l'assistant AI", + "palette.spark_open": "✦ Spark : ouvrir le panneau", + "palette.spark_open_desc": "Ouvre le panneau Spark pour le contexte courant (document ouvert, répertoire ou général)", "mfa.webauthn_title": "Clés de sécurité (WebAuthn)", "mfa.webauthn_desc": "Authentifiez-vous avec une clé physique (YubiKey) ou la biométrie de votre appareil (Windows Hello, Touch ID).", "mfa.webauthn_none": "Aucune clé enregistrée.", diff --git a/package.json b/package.json index d0a79c6..82ed169 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsigate", - "version": "2.95.1", + "version": "2.95.2", "description": "**Porte d'entr\u00e9e web ultra-l\u00e9ger pour vos vaults Obsidian** \u2014 Acc\u00e9dez, naviguez et recherchez dans toutes vos notes Obsidian depuis n'importe quel appareil via une interface web moderne et responsive.", "main": "patch.js", "directories": { diff --git a/tests/test_draco_barre.py b/tests/test_draco_barre.py index 5010ac5..6723ec1 100644 --- a/tests/test_draco_barre.py +++ b/tests/test_draco_barre.py @@ -545,3 +545,16 @@ def test_aucun_appel_ia_residuel_sync(): assert "_renderAIStatusSection" not in sync css = (FRONTEND / "style.css").read_text(encoding="utf-8") assert ".sync-panel__ai" not in css + + +def test_aucun_residu_bookslm_frontend(): + """Correctif 2.95.2 — la palette importait encore bookslm.js + (module supprimé en D5) : commandes mortes au clic. Aucun module + du frontend ne doit référencer les modules supprimés.""" + interdits = ("bookslm.js", "./ai.js", "ai-fab.js", "ai-quick-actions.js") + for fichier in (FRONTEND / "js").glob("*.js"): + contenu = fichier.read_text(encoding="utf-8") + for motif in interdits: + assert motif not in contenu, f"{fichier.name} référence {motif}" + palette = (FRONTEND / "js" / "palette.js").read_text(encoding="utf-8") + assert "spark-open" in palette and "ouvrirSparkOuMessage" in palette