fix(extension): sync robuste content/sidepanel, diagnostic panel, preview propre v0.4.4
Some checks failed
CI / Deploy production (on server) (push) Has been cancelled
CI / Lint, Unit Tests & Build (push) Has been cancelled

- content.js : écrit la sélection dans chrome.storage.session/local en plus du message runtime
- sidepanel.js : lit le storage en fallback, loggue chaque étape, affiche un diagnostic panel
- sidepanel.js : avertissement explicite si le content script n'est pas détecté
- sidepanel.js : sépare le rendu Markdown du résumé et l'affichage texte brut de l'extrait
- sidepanel.css : agrandit la zone de prévisualisation
- i18n : nouvelles clés contentScriptMissing, diagnosticsTitle, copyDiagnostics
- locales : correction FR (Retour, Enregistrement, Note, etc.) + version 0.4.4 partout
- extract-article.ts : nettoie textContent des métadonnées (dates, temps de lecture, sources)
- analyze/route.ts : excerpt propre via makeExcerpt
- builds Chrome Store et Firefox regénérés en 0.4.4
This commit is contained in:
Antigravity
2026-07-18 16:56:51 +00:00
parent bff060ad20
commit 0ee2afbd62
67 changed files with 1794 additions and 640 deletions

View File

@@ -519,12 +519,23 @@ input[type="text"]:focus,
overflow-wrap: anywhere;
}
.excerpt-block .preview-block-body {
min-height: 180px;
max-height: 360px;
min-height: 220px;
max-height: 520px;
overflow-y: auto;
background: #fcfbf9;
font-size: 14px;
line-height: 1.75;
padding: 16px 18px;
}
.excerpt-plain {
white-space: normal;
}
.summary-block .preview-block-body {
min-height: 120px;
max-height: 360px;
overflow-y: auto;
font-style: normal;
color: rgba(28, 28, 28, 0.78);
background: rgba(2, 132, 199, 0.04);
@@ -639,6 +650,77 @@ html[dir="rtl"] .sub {
.page-row .title { font-size: 14px; }
}
/* Avertissement content script */
.cs-warning {
padding: 10px 12px;
border-radius: var(--radius-sm);
background: #fff7ed;
border: 1px solid #fdba74;
color: #9a3412;
font-size: 11px;
line-height: 1.5;
margin-bottom: 8px;
}
/* Panneau de diagnostic */
.diag-panel {
border-top: 1px solid var(--border);
background: #1c1c1c;
color: #e5e5e5;
font-family: ui-monospace, 'SF Mono', Menlo, monospace;
font-size: 10px;
line-height: 1.5;
}
.diag-panel[hidden] { display: none !important; }
.diag-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 8px 12px;
background: #2a2a2a;
}
.diag-title {
font-weight: 700;
color: #a3a3a3;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.diag-copy {
background: transparent;
border: 1px solid #525252;
color: #d4d4d4;
border-radius: 6px;
padding: 4px 8px;
font-size: 10px;
cursor: pointer;
}
.diag-copy:hover { background: #404040; }
.diag-body {
max-height: 160px;
overflow-y: auto;
padding: 8px 12px;
}
.diag-line {
padding: 2px 0;
border-bottom: 1px solid #333;
white-space: pre-wrap;
word-break: break-word;
}
.diag-line:last-child { border-bottom: none; }
.diag-toggle {
background: none;
border: none;
color: var(--muted);
cursor: pointer;
padding: 4px;
display: flex;
align-items: center;
justify-content: center;
}
.diag-toggle:hover { color: var(--ink); }
/* Très petits écrans (mobile debug, fenetres étirées) */
@media (max-width: 320px) {
.brand-text { display: none; }