Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ac1d42e600 | ||
|
|
ea1fd115e5 | ||
|
|
3d9d36119a | ||
|
|
4695d3d0cd | ||
|
|
f096277d76 | ||
|
|
0cace688e2 |
+25
-1
@@ -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.0**.
|
||||
> [Unreleased](#unreleased). La dernière version livrée est **2.95.3**.
|
||||
|
||||
---
|
||||
|
||||
@@ -14,6 +14,30 @@ et [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
---
|
||||
|
||||
## [2.95.3] — 2026-11-28
|
||||
|
||||
### Corrigé
|
||||
|
||||
- **Zone de visualisation sous la barre latérale (BUG-130)** : le retrait du panneau « Historique IA » (D5) avait laissé un fragment `<div` orphelin qui absorbait l'ouverture du panneau de discussion ; `.content-wrapper` sortait de `.main-body` et s'affichait sous la sidebar au lieu d'à sa droite. Ouverture du panneau de discussion restaurée ; arbre DOM vérifié identique à l'état pré-D5 (jsdom) ; test de garde `test_structure_main_body_content_wrapper`. **Redéploiement Docker requis.**
|
||||
|
||||
---
|
||||
|
||||
## [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é
|
||||
|
||||
- **Toast 410 au chargement (résidu D5)** : le panneau de synchronisation interrogeait encore l'ancien endpoint `/api/ai/status` au démarrage et affichait le message « L'assistant intégré d'ObsiGate a été retiré » en toast d'erreur. La section « statut IA » du panneau sync, son appel de démarrage et ses styles sont retirés ; test de garde `test_aucun_appel_ia_residuel_sync`. **Redéploiement Docker requis.**
|
||||
|
||||
---
|
||||
|
||||
## [2.95.0] — 2026-11-28
|
||||
|
||||
### Ajouté
|
||||
|
||||
+3
-3
@@ -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.
|
||||
|
||||
[]()
|
||||
[]()
|
||||
[](https://opensource.org/licenses/MIT)
|
||||
[](https://www.docker.com/)
|
||||
[](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.0).
|
||||
Consultez le [CHANGELOG.md](./CHANGELOG.md) pour l'historique complet de toutes les versions (v1.0.0 → v2.95.3).
|
||||
|
||||
---
|
||||
|
||||
*Projet : ObsiGate | Version : 2.95.0 | Dernière mise à jour : Septembre 2026*
|
||||
*Projet : ObsiGate | Version : 2.95.3 | Dernière mise à jour : Septembre 2026*
|
||||
|
||||
@@ -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.
|
||||
|
||||
[]()
|
||||
[]()
|
||||
[](https://opensource.org/licenses/MIT)
|
||||
[](https://www.docker.com/)
|
||||
[](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.0).
|
||||
See [CHANGELOG.md](./CHANGELOG.md) for the complete version history (v1.0.0 → v2.95.3).
|
||||
|
||||
---
|
||||
|
||||
*Project: ObsiGate | Version: 2.95.0 | Last updated: September 2026*
|
||||
*Project: ObsiGate | Version: 2.95.3 | Last updated: September 2026*
|
||||
|
||||
Generated
+1
-1
@@ -2626,7 +2626,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "obsigate-desktop"
|
||||
version = "2.95.0"
|
||||
version = "2.95.3"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"env_logger",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "obsigate-desktop"
|
||||
version = "2.95.0"
|
||||
version = "2.95.3"
|
||||
description = "ObsiGate Desktop — Porte d'entrée native pour vos vaults Obsidian"
|
||||
authors = ["Bruno Charest"]
|
||||
edition = "2021"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/nicedoc/obsigate/main/desktop/tauri.conf.schema.json",
|
||||
"productName": "ObsiGate",
|
||||
"version": "2.95.0",
|
||||
"version": "2.95.3",
|
||||
"identifier": "com.obsigate.desktop",
|
||||
"build": {
|
||||
"frontendDist": "../frontend",
|
||||
|
||||
@@ -371,6 +371,7 @@ Avant de corriger quoi que ce soit, un agent IA doit :
|
||||
| 2026-11-19 | BUG-126 | Correction build desktop Windows | `desktop/build-windows.bat`, `desktop/build-linux.sh`, `tests/test_desktop_build_scripts.py`, `README.md`, `README.fr.md`, `desktop/README.md`, `docs/DEVELOPMENT_AND_RELEASES.md`, `docs/GUIDES/DESKTOP.md`, `CHANGELOG.md`, `docs/ISSUES_TODOLIST.md` | **BUG-126 — l'exe Windows s'ouvrait comme « sans CSS » et le build demandait deux fois un mot de passe.** Cause racine : `desktop\python-embed\python311._pth` ne contenait plus que `import site` + `..` (ni `python311.zip` ni `.`) → `ModuleNotFoundError: No module named 'encodings'`, backend mort avant le health check, fenêtre bloquée sur le HTML embarqué Tauri dont `/static/*` ne résout pas (d'où l'apparence non stylée). Reproduction : `python-embed\python.exe -c "import encodings"` échoue ; après réécriture explicite du `_pth`, le backend servi par le runtime release répond `/api/health` 200 et `/static/style.css` 200 (`text/css`, 363 860 octets). Correctif : `_pth` écrit explicitement (`python311.zip`, `.`, `import site`, `..`), contrôles d'échec sur download/extraction/get-pip/pip + sanity `import encodings, uvicorn, fastapi, pyotp`, copie du runtime complet (`python-embed`, `backend`, `frontend`) à côté de l'exe, exécution depuis `%~dp0`, arrêt limité au python embarqué. Invite de mot de passe : la clé updater n'est utilisée que si `TAURI_SIGNING_PRIVATE_KEY_PASSWORD` est défini, sinon `createUpdaterArtifacts:false` + `--ci` (aucune invite, build sans `.sig`). | 🟢 corrigé (en attente vérif utilisateur) |
|
||||
| 2026-11-19 | #230 + BUG-127 | Fonctionnalité desktop + correction | `desktop/src/main.rs`, `desktop/permissions/commands.toml`, `backend/routers/desktop_sso.py`, `backend/main.py`, `frontend/js/{auth,desktop,config}.js`, `frontend/index.html`, `frontend/style.css`, `frontend/locales/{fr,en}.json`, `tests/test_desktop_sso.py`, `tests/test_desktop_sso_ui.py`, `tests/frontend/desktop.test.mjs`, `tests/test_draco_barre.py`, `docs/features/desktop-sso-environnement-230.md`, `docs/ROADMAP.md`, `CHANGELOG.md`, `docs/ISSUES_TODOLIST.md` | **#230 — l'app desktop peut se connecter avec le compte central et choisir prod/dev.** Constat : le backend desktop sert `127.0.0.1`, le cookie `draco_session` (`Domain=.dracodev.net`) ne lui parvient jamais ; le premier lancement générait un mot de passe admin aléatoire visible seulement dans les logs. Livré : liaison d'appareil sur le central choisi (`/api/v1/liaison`), validation du jeton draco via `/api/auth/me` du central, ouverture de la session de l'admin local par défaut ; login local conservé (admin/chab30 à la création). Sélecteur d'environnement en Configuration + premier lancement, injecté au backend embarqué (`OBSIGATE_DESKTOP*`, `DRACO_AGENT_URL`, `DRACO_OBSIGATE_URL` ; sœurs/Hub `-dev` dérivés). Routes `/api/desktop/sso/*` = 404 hors desktop, UI conditionnée par `isTauriEnv()` : application web Docker inchangée. **BUG-127** : `/liaison` même hôte honoré après login (`return_to`), sinon l'approbation desktop restait bloquée. Vérifié : `test_desktop_sso.py` 9 passed, 32 tests Rust (ACL incluse), `desktop.test.mjs` 30, `test_draco_barre`/`test_desktop_sso_ui`/i18n parity verts. | 🟢 corrigé/livré (en attente vérif utilisateur) |
|
||||
| 2026-11-20 | BUG-128 + BUG-129 | Correction CI | `backend/requirements.txt`, `tests/test_ci_workflow.py`, `frontend/js/i18n.js`, `CHANGELOG.md`, `docs/ISSUES_TODOLIST.md` | **BUG-128 — `security` rouge : `pip-audit` signale mistune 3.3.3 (CVE-2026-97698/97699, fix 3.3.4)**. Plancher porté à `mistune>=3.3.4`, ajouté à `TestDependencySecurityFloors` ; runtime desktop reconstruit. **BUG-129 — `lint` rouge : `desktop-roots.test.mjs` importe `desktop.js` → `i18n.js`, qui écrivait `window.t/...` au chargement en Node** (`ReferenceError: window is not defined`). Exports globaux protégés par `typeof window !== "undefined"`. Vérifié : `node tests/frontend/desktop-roots.test.mjs` 4/4, suite pytest complète avec mistune 3.4.0, ruff/mypy 0. | 🟢 corrigé (en attente vérif utilisateur) |
|
||||
| 2026-11-28 | BUG-130 | Correction affichage | `frontend/index.html`, `tests/test_draco_barre.py`, `CHANGELOG.md`, `docs/ISSUES_TODOLIST.md` | **BUG-130 — la zone de visualisation/édition s'affichait SOUS la barre latérale au lieu d'à sa droite.** Cause racine : le retrait du panneau « Historique IA » (transition D5, #235) avait laissé un fragment `<div` orphelin qui absorbait l'ouverture du panneau de discussion (`#sidebar-panel-chat` et sa rangée de canaux) ; le parseur HTML5 fermait alors `.main-body` dès la fin de la sidebar, et `.content-wrapper` devenait sa sœur au lieu de son enfant (flex perdu). Correctif : ouverture du panneau de discussion restaurée à l'identique. Vérifié : arbre DOM (jsdom) redevenu identique à l'état pré-D5 (`main-body` contient overlay, sidebar, poignée, context bar, content-wrapper, right sidebar), test de garde `test_structure_main_body_content_wrapper`. | 🟢 corrigé (en attente vérif utilisateur) |
|
||||
|
||||
---
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
# ObsiGate — Roadmap
|
||||
|
||||
> **Version :** 2.95.0 | **Dernière mise à jour :** 2026-11-28
|
||||
> **Version :** 2.95.3 | **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)**
|
||||
|
||||
+13
-1
@@ -1165,8 +1165,20 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- AI history panel -->
|
||||
<!-- General chat panel (#190 B) -->
|
||||
<div
|
||||
class="sidebar-tab-panel sidebar-chat-panel"
|
||||
id="sidebar-panel-chat"
|
||||
role="tabpanel"
|
||||
aria-labelledby="sidebar-tab-chat"
|
||||
>
|
||||
<!-- #191 : rangée de canaux (Général + utilisateurs) -->
|
||||
<div
|
||||
id="sidebar-panel-chat-channels"
|
||||
class="chat-channels"
|
||||
role="tablist"
|
||||
aria-label="Canaux de discussion"
|
||||
></div>
|
||||
<div
|
||||
id="sidebar-panel-chat-list"
|
||||
class="file-chat-list sidebar-chat-list"
|
||||
|
||||
@@ -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, {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -286,9 +286,6 @@ function initSyncStatus() {
|
||||
});
|
||||
|
||||
IndexUpdateManager.connect();
|
||||
|
||||
// Initialize AI status tracking
|
||||
_initAIStatus();
|
||||
}
|
||||
|
||||
function toggleSyncPanel() {
|
||||
@@ -366,159 +363,10 @@ function _renderSyncPanel(panel) {
|
||||
}
|
||||
|
||||
panel.innerHTML = html;
|
||||
|
||||
// ── AI Status section ──
|
||||
_renderAIStatusSection(panel);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// AI Status Indicator (inside sync panel + header badge animation)
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
let _aiProcessing = false;
|
||||
let _aiConfigured = null; // null = unknown, true/false
|
||||
let _aiAutocomplete = null; // null = unknown, {available, server_ok, model_loaded, model, error}
|
||||
|
||||
/** Check if AI is configured by calling the /api/ai/status endpoint.
|
||||
* Updates _aiConfigured, _aiAutocomplete and refreshes the panel if open. */
|
||||
async function _checkAIStatus() {
|
||||
try {
|
||||
const status = await api('/api/ai/status');
|
||||
_aiConfigured = status.configured === true;
|
||||
_aiAutocomplete = status.autocomplete || null;
|
||||
} catch {
|
||||
_aiConfigured = false;
|
||||
_aiAutocomplete = null;
|
||||
}
|
||||
_updateAIStatusInPanel();
|
||||
}
|
||||
|
||||
function _renderAIStatusSection(panel) {
|
||||
const section = document.createElement('div');
|
||||
section.className = 'sync-panel__ai-section';
|
||||
section.id = 'sync-panel-ai';
|
||||
|
||||
// ---- External provider status ----
|
||||
let extIcon, extText, extClass;
|
||||
if (_aiProcessing) {
|
||||
extIcon = 'loader';
|
||||
extText = t('sync.processing');
|
||||
extClass = 'sync-panel__ai--processing';
|
||||
} else if (_aiConfigured === true) {
|
||||
extIcon = 'check-circle';
|
||||
extText = 'Fournisseur externe actif';
|
||||
extClass = 'sync-panel__ai--active';
|
||||
} else if (_aiConfigured === false) {
|
||||
extIcon = 'x-circle';
|
||||
extText = t('sync.no_provider');
|
||||
extClass = 'sync-panel__ai--inactive';
|
||||
} else {
|
||||
extIcon = 'help-circle';
|
||||
extText = t('sync.verifying');
|
||||
extClass = 'sync-panel__ai--unknown';
|
||||
}
|
||||
|
||||
// ---- Autocomplete (Ollama) status ----
|
||||
let acIcon, acText, acClass;
|
||||
if (_aiAutocomplete && _aiAutocomplete.available) {
|
||||
acIcon = 'check-circle';
|
||||
acText = t('sync.autocomplete_active');
|
||||
acClass = 'sync-panel__ai--active';
|
||||
} else if (_aiAutocomplete && _aiAutocomplete.server_ok && !_aiAutocomplete.model_loaded) {
|
||||
acIcon = 'alert-triangle';
|
||||
acText = t('sync.model_not_loaded');
|
||||
acClass = 'sync-panel__ai--inactive';
|
||||
} else if (_aiAutocomplete && _aiAutocomplete.error) {
|
||||
acIcon = 'x-circle';
|
||||
acText = 'Serveur Ollama injoignable';
|
||||
acClass = 'sync-panel__ai--inactive';
|
||||
} else if (_aiAutocomplete === null) {
|
||||
acIcon = 'help-circle';
|
||||
acText = t('sync.verifying');
|
||||
acClass = 'sync-panel__ai--unknown';
|
||||
} else {
|
||||
acIcon = 'x-circle';
|
||||
acText = t('sync.not_configured');
|
||||
acClass = 'sync-panel__ai--inactive';
|
||||
}
|
||||
|
||||
section.innerHTML = '' +
|
||||
'<div class="sync-panel__ai-title">Intelligence Artificielle</div>' +
|
||||
'<div class="sync-panel__ai-row">' +
|
||||
'<span class="sync-panel__ai-label">Fournisseur</span>' +
|
||||
'<span class="sync-panel__ai-state ' + extClass + '" data-lucide-icon="' + extIcon + '">' +
|
||||
'<i data-lucide="' + extIcon + '" style="width:14px;height:14px"></i>' +
|
||||
extText +
|
||||
'</span>' +
|
||||
'</div>' +
|
||||
'<div class="sync-panel__ai-row">' +
|
||||
'<span class="sync-panel__ai-label">' + t('sync.autocomplete') + '</span>' +
|
||||
'<span class="sync-panel__ai-state ' + acClass + '" data-lucide-icon="' + acIcon + '">' +
|
||||
'<i data-lucide="' + acIcon + '" style="width:14px;height:14px"></i>' +
|
||||
acText +
|
||||
'</span>' +
|
||||
'</div>';
|
||||
|
||||
panel.appendChild(section);
|
||||
// Trigger icon refresh via global
|
||||
if (window._obsigateRefreshIcons) window._obsigateRefreshIcons();
|
||||
}
|
||||
|
||||
/** Update the AI section in the open sync panel. */
|
||||
function _updateAIStatusInPanel() {
|
||||
const section = document.getElementById('sync-panel-ai');
|
||||
if (!section) return;
|
||||
section.innerHTML = '';
|
||||
const panel = document.getElementById('sync-panel');
|
||||
if (panel) {
|
||||
// Re-render just the AI section
|
||||
const oldSection = panel.querySelector('.sync-panel__ai-section');
|
||||
if (oldSection) oldSection.remove();
|
||||
_renderAIStatusSection(panel);
|
||||
}
|
||||
}
|
||||
|
||||
/** Flash the sync badge white during AI processing.
|
||||
* NOTE: now handled via CSS class on #sync-badge.
|
||||
* The visual flash in the editor itself is handled by ai.js
|
||||
* which adds a processing indicator inline. */
|
||||
function _setBadgeAIProcessing(active) {
|
||||
const badge = document.getElementById('sync-badge');
|
||||
if (!badge) return;
|
||||
if (active) {
|
||||
badge.classList.add('sync-badge--ai-processing');
|
||||
} else {
|
||||
badge.classList.remove('sync-badge--ai-processing');
|
||||
}
|
||||
}
|
||||
|
||||
/** Initialize AI status tracking. */
|
||||
function _initAIStatus() {
|
||||
// Check AI status immediately at startup
|
||||
_checkAIStatus();
|
||||
|
||||
// Listen for AI processing events from ai.js
|
||||
document.addEventListener('ai-processing-start', () => {
|
||||
_aiProcessing = true;
|
||||
_setBadgeAIProcessing(true);
|
||||
_updateAIStatusInPanel();
|
||||
});
|
||||
|
||||
document.addEventListener('ai-processing-end', () => {
|
||||
_aiProcessing = false;
|
||||
_setBadgeAIProcessing(false);
|
||||
_updateAIStatusInPanel();
|
||||
});
|
||||
|
||||
// Re-check AI status when sync panel opens (in case config changed)
|
||||
const badge = document.getElementById('sync-badge');
|
||||
if (badge) {
|
||||
badge.addEventListener('click', () => {
|
||||
_checkAIStatus();
|
||||
}, { once: false });
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// PWA Service Worker Registration
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
@@ -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.",
|
||||
|
||||
@@ -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.",
|
||||
|
||||
@@ -5417,11 +5417,6 @@ body.resizing-v {
|
||||
}
|
||||
|
||||
/* AI processing — white flash on the sync badge */
|
||||
.sync-badge--ai-processing {
|
||||
background: #ffffff !important;
|
||||
box-shadow: 0 0 6px 3px rgba(255, 255, 255, 0.6) !important;
|
||||
animation: ai-flash 0.6s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes ai-flash {
|
||||
0%, 100% { opacity: 1; box-shadow: 0 0 6px 3px rgba(255,255,255,0.6); }
|
||||
@@ -5430,63 +5425,15 @@ body.resizing-v {
|
||||
|
||||
/* ── AI Status section inside sync panel ── */
|
||||
|
||||
.sync-panel__ai-section {
|
||||
border-top: 1px solid var(--border);
|
||||
padding: 10px 14px;
|
||||
}
|
||||
|
||||
.sync-panel__ai-title {
|
||||
font-size: 0.78rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.sync-panel__ai-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.sync-panel__ai-label {
|
||||
font-size: 0.72rem;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.sync-panel__ai-state {
|
||||
font-size: 0.75rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 2px 8px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.sync-panel__ai-state i {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.sync-panel__ai--active {
|
||||
color: #22c55e;
|
||||
background: rgba(34, 197, 94, 0.1);
|
||||
}
|
||||
|
||||
.sync-panel__ai--inactive {
|
||||
color: #f59e0b;
|
||||
background: rgba(245, 158, 11, 0.1);
|
||||
}
|
||||
|
||||
.sync-panel__ai--processing {
|
||||
color: #ffffff;
|
||||
background: rgba(59, 130, 246, 0.2);
|
||||
animation: ai-status-pulse 1s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.sync-panel__ai--unknown {
|
||||
color: var(--text-muted);
|
||||
background: var(--bg-tertiary);
|
||||
}
|
||||
|
||||
@keyframes ai-status-pulse {
|
||||
0%, 100% { opacity: 1; }
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "obsigate",
|
||||
"version": "2.95.0",
|
||||
"version": "2.95.3",
|
||||
"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": {
|
||||
|
||||
@@ -532,3 +532,47 @@ def test_finition_transition_d7_237():
|
||||
assert doc.exists()
|
||||
viewer = (FRONTEND / "js" / "viewer.js").read_text(encoding="utf-8")
|
||||
assert 't("viewer.popout")' in viewer and "forge.popout" not in viewer
|
||||
|
||||
|
||||
def test_aucun_appel_ia_residuel_sync():
|
||||
"""Correctif 2.95.1 — le panneau de synchronisation ne doit plus
|
||||
interroger l'ancien statut IA : l'appel à /api/ai/status au
|
||||
démarrage affichait le message 410 en toast d'erreur (retour
|
||||
terrain de Bruno, 2026-11-28)."""
|
||||
sync = (FRONTEND / "js" / "sync.js").read_text(encoding="utf-8")
|
||||
assert "/api/ai" not in sync
|
||||
assert "_checkAIStatus" not in 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
|
||||
|
||||
|
||||
def test_structure_main_body_content_wrapper():
|
||||
"""BUG-130 — le retrait du panneau Historique IA (D5) avait laissé
|
||||
un fragment `<div` orphelin qui mangeait l'ouverture du panneau
|
||||
de discussion : `.content-wrapper` sortait de `.main-body` et la
|
||||
zone de visualisation passait SOUS la barre latérale. La structure
|
||||
doit rester : panneau chat complet (canaux + liste) dans la
|
||||
sidebar, et content-wrapper après le context bar, dans main-body.
|
||||
"""
|
||||
index = (FRONTEND / "index.html").read_text(encoding="utf-8")
|
||||
assert 'id="sidebar-panel-chat"' in index
|
||||
assert 'id="sidebar-panel-chat-channels"' in index
|
||||
assert "<!-- AI history panel -->" not in index
|
||||
i_main = index.index('<div class="main-body">')
|
||||
i_wrap = index.index('<div class="content-wrapper">')
|
||||
i_aside_fin = index.index("</aside>", i_main)
|
||||
assert i_main < i_aside_fin < i_wrap
|
||||
|
||||
Reference in New Issue
Block a user