From 64a453e4fb5bc520a9b1721ad554ce599fdc10c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?POL=20Micka=C3=ABl?= Date: Mon, 6 Apr 2026 08:43:20 +0200 Subject: [PATCH] fix: double cercle blanc inventaire + nettoyage projet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix images inventaire : style carré arrondi comme accouplement/réappro - Suppression build.bat et build.ps1 (npm run build suffit) - Mise à jour icônes + README changelog Co-Authored-By: Claude Opus 4.6 --- README.md | 9 +++- build.bat | 50 ------------------ build.ps1 | 71 -------------------------- src/presentation/styles/obsidienne.css | 5 +- 4 files changed, 10 insertions(+), 125 deletions(-) delete mode 100755 build.bat delete mode 100755 build.ps1 diff --git a/README.md b/README.md index 955d6ec..ed3a4a9 100755 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ npm run test:e2e # Tests E2E (Playwright + Electron) npm run build # Build (Vite + electron-builder → NSIS installer) ``` -Ou double-cliquer sur `build.bat` (admin auto). L'installeur est généré dans `dist/`. +L'installeur est généré dans `dist/`. ### Tests @@ -236,12 +236,19 @@ src/ - 🛡 **Nettoyage Ctrl+Z listener** — `removeEventListener` dans `destroy()` pour éviter les memory leaks - 🛡 **Toast stale container** — protection `isConnected` contre les conteneurs DOM détachés +#### UI +- 🐛 **Double cercle blanc inventaire** — les images de dragodindes dans l'inventaire utilisent maintenant le même style carré arrondi que l'accouplement et le réappro + #### Renommage - 🏷 **Renommage "Minuteur Dragodinde" → "Obsidienne"** — nouveau nom d'application, raccourcis, titre, tray, notifications - 🔄 **Migration automatique des données** — copie transparente du fichier de sauvegarde depuis l'ancien dossier `%APPDATA%\Minuteur Dragodinde\` au premier lancement - 🔄 **GUID NSIS fixe** — l'installeur reconnaît l'ancienne version et la remplace proprement (pas de doublon) - 🔄 **Rétrocompatibilité import** — les backups exportés avec `app: 'minuteur-dragodinde'` restent importables +#### Nettoyage +- 🗑 **Suppression scripts build.bat / build.ps1** — `npm run build` suffit +- 🗑 **Suppression maquettes graphiques** du suivi Git (refonte_graphique/) + #### Technique - ⬆ **Migration electron-updater** — vérification sha512 via `latest.yml`, installation NSIS native, restart auto - 🎨 **Icône Windows native** — migration `icon.png` → `icon.ico` diff --git a/build.bat b/build.bat deleted file mode 100755 index aeb7f19..0000000 --- a/build.bat +++ /dev/null @@ -1,50 +0,0 @@ -@echo off -net session >nul 2>&1 -if %errorlevel% neq 0 ( - powershell -Command "Start-Process -FilePath '%~f0' -Verb RunAs -Wait" - exit /b -) -cd /d "%~dp0" -set CSC_IDENTITY_AUTO_DISCOVERY=false -set CSC_LINK= -set WIN_CSC_LINK= -echo. -echo ================================================ -echo MINUTEUR DRAGODINDE - Construction du .exe -echo ================================================ -echo. -node -v >nul 2>&1 -if %errorlevel% neq 0 ( - echo [ERREUR] Node.js introuvable. - echo Installez depuis https://nodejs.org - start https://nodejs.org - pause - exit /b 1 -) -for /f "tokens=*" %%v in ('node -v') do echo [OK] Node.js %%v - -echo Nettoyage cache... -if exist "%LOCALAPPDATA%\electron-builder\Cache\winCodeSign" rmdir /s /q "%LOCALAPPDATA%\electron-builder\Cache\winCodeSign" -echo [OK] Cache nettoye -echo. - -echo [1/3] Installation des dependances... -call npm install -if %errorlevel% neq 0 ( echo [ERREUR] npm install & pause & exit /b 1 ) -echo [OK] Dependances OK -echo. - -echo [2/3] Construction du setup .exe (2-5 minutes)... -call npm run build -if %errorlevel% neq 0 ( echo [ERREUR] Build echoue & pause & exit /b 1 ) - -echo. -echo [3/3] Termine ! -echo. -echo ================================================ -echo Installeur pret dans le dossier dist\ -echo Fichier : Minuteur Dragodinde Setup 1.0.0.exe -echo ================================================ -echo. -if exist dist explorer dist -pause diff --git a/build.ps1 b/build.ps1 deleted file mode 100755 index 94cd46c..0000000 --- a/build.ps1 +++ /dev/null @@ -1,71 +0,0 @@ -# Minuteur Dragodinde - Script de construction -$ErrorActionPreference = 'Stop' -$Host.UI.RawUI.WindowTitle = 'Minuteur Dragodinde - Construction' - -Write-Host '' -Write-Host '================================================' -ForegroundColor Cyan -Write-Host ' MINUTEUR DRAGODINDE - Construction du .exe' -ForegroundColor Cyan -Write-Host '================================================' -ForegroundColor Cyan -Write-Host '' - -Set-Location $PSScriptRoot - -# Verification Node.js -try { - $nodeVer = node -v 2>&1 - Write-Host "[OK] Node.js : $nodeVer" -ForegroundColor Green -} catch { - Write-Host '[ERREUR] Node.js introuvable. Installez depuis https://nodejs.org' -ForegroundColor Red - Start-Process 'https://nodejs.org' - Read-Host 'Appuyez sur Entree pour fermer' - exit 1 -} - -# Verification npm -try { - $npmVer = npm -v 2>&1 - Write-Host "[OK] npm : $npmVer" -ForegroundColor Green -} catch { - Write-Host '[ERREUR] npm introuvable.' -ForegroundColor Red - Read-Host 'Appuyez sur Entree pour fermer' - exit 1 -} - -Write-Host '' -Write-Host '[1/3] Installation des dependances (~150 Mo, premiere fois)...' -ForegroundColor Yellow -Write-Host '' - -npm install -if ($LASTEXITCODE -ne 0) { - Write-Host '[ERREUR] npm install a echoue.' -ForegroundColor Red - Read-Host 'Appuyez sur Entree pour fermer' - exit 1 -} - -Write-Host '' -Write-Host '[OK] Dependances installees' -ForegroundColor Green -Write-Host '' -Write-Host '[2/3] Construction du logiciel Windows (2-5 minutes)...' -ForegroundColor Yellow -Write-Host '' - -npm run build -if ($LASTEXITCODE -ne 0) { - Write-Host '[ERREUR] Build echoue - voir messages ci-dessus.' -ForegroundColor Red - Read-Host 'Appuyez sur Entree pour fermer' - exit 1 -} - -Write-Host '' -Write-Host '[3/3] Termine !' -ForegroundColor Green -Write-Host '' -Write-Host '================================================' -ForegroundColor Cyan -Write-Host ' Installeur pret dans le dossier dist' -ForegroundColor Cyan -Write-Host ' Minuteur Dragodinde Setup 1.0.0.exe' -ForegroundColor Cyan -Write-Host '================================================' -ForegroundColor Cyan -Write-Host '' - -if (Test-Path 'dist') { - Invoke-Item 'dist' -} - -Read-Host 'Appuyez sur Entree pour fermer' diff --git a/src/presentation/styles/obsidienne.css b/src/presentation/styles/obsidienne.css index 2c9782b..8b50206 100644 --- a/src/presentation/styles/obsidienne.css +++ b/src/presentation/styles/obsidienne.css @@ -2775,10 +2775,9 @@ body { .inv-avatar { width: 96px; height: 96px; - border-radius: 50%; - border: 3px solid #fff; + border-radius: 12px; + background: rgba(255, 255, 255, 0.05); overflow: hidden; - box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); display: flex; align-items: center; justify-content: center;