From ee72b52b13043e014ed0fbfd167c6d270f27277a Mon Sep 17 00:00:00 2001 From: Milton Gonzalez Date: Tue, 22 Sep 2026 12:27:57 -0500 Subject: [PATCH] fix: version 2.2.2 -- build de auto-update y tamanos de logo El script de auto-actualizacion heredaba NODE_ENV=production del backend, lo que hacia que npm saltara devDependencies (vite incluido) al instalar el frontend -- el build fallaba en silencio y el sistema quedaba en la version vieja. Se fuerza --include=dev en ese paso. De paso: logo de la empresa que usa el sistema al doble de tamano, logo de LinkedCorp (desarrollador) a la mitad. Co-Authored-By: Claude Sonnet 5 --- CHANGELOG.md | 10 ++++++++++ VERSION | 2 +- backend/package.json | 2 +- frontend/package.json | 2 +- frontend/src/styles/app.css | 8 ++++---- scripts/apply-update.sh | 6 +++++- 6 files changed, 22 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c9223b..e0414a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog - project.linkedcorp.net +## [2.2.2] - 2026-09-22 +### Fixed +- El botón "Actualizar" fallaba en el build del frontend: heredaba `NODE_ENV=production` del + backend, y con eso `npm install` salta las dependencias de desarrollo (incluida `vite`), asi + que el build nunca corría y el sistema quedaba en la versión vieja sin avisar del error. Se + fuerza `--include=dev` en ese paso puntual. +### Changed +- Tamaño de los logos de la barra lateral: el de la empresa que usa el sistema (arriba) se + duplica; el de LinkedCorp, desarrollador del sistema (abajo), se reduce a la mitad. + ## [2.2.1] - 2026-09-22 ### Changed - Marca de versión sin cambios de código: primer uso real del botón "Actualizar" (auto-update) diff --git a/VERSION b/VERSION index c043eea..b1b25a5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.2.1 +2.2.2 diff --git a/backend/package.json b/backend/package.json index 2404ee6..5d30260 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "project-linkedcorp-backend", - "version": "2.2.1", + "version": "2.2.2", "private": true, "type": "module", "main": "src/server.js", diff --git a/frontend/package.json b/frontend/package.json index a1ca4bb..a710ff3 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "project-linkedcorp-frontend", "private": true, - "version": "2.2.1", + "version": "2.2.2", "type": "module", "scripts": { "dev": "vite", diff --git a/frontend/src/styles/app.css b/frontend/src/styles/app.css index c82ae55..471d3ce 100644 --- a/frontend/src/styles/app.css +++ b/frontend/src/styles/app.css @@ -63,15 +63,15 @@ button { font-family: inherit; } padding: 12px; border-top: 1px solid rgb(var(--line)); font-size: .68rem; color: rgb(var(--muted)); } .nav-view.compact .nav-footer { align-items: center; } -.nav-logo-icon-footer { width: 40px; height: 40px; flex: none; object-fit: contain; } -.nav-logo-full-footer { height: 36px; width: auto; max-width: 100%; object-fit: contain; } +.nav-logo-icon-footer { width: 20px; height: 20px; flex: none; object-fit: contain; } +.nav-logo-full-footer { height: 18px; width: auto; max-width: 100%; object-fit: contain; } .nav-header { display: flex; align-items: center; justify-content: flex-start; padding: 14px 12px; border-bottom: 1px solid rgb(var(--line)); } .nav-view.compact .nav-header { justify-content: center; padding: 14px 8px; } -.nav-logo-icon-header { width: 36px; height: 36px; flex: none; object-fit: contain; } -.nav-logo-full-header { height: 32px; width: auto; max-width: 100%; object-fit: contain; } +.nav-logo-icon-header { width: 72px; height: 72px; flex: none; object-fit: contain; } +.nav-logo-full-header { height: 64px; width: auto; max-width: 100%; object-fit: contain; } .content-column { flex: 1; display: flex; flex-direction: column; min-width: 0; } .topbar { diff --git a/scripts/apply-update.sh b/scripts/apply-update.sh index 20318c5..7755e7c 100755 --- a/scripts/apply-update.sh +++ b/scripts/apply-update.sh @@ -45,7 +45,11 @@ node src/scripts/migrate-db.js echo "-- frontend: npm install + build --" cd "$APP_DIR/source/frontend" -npm install +# --include=dev es necesario a la fuerza: este script hereda NODE_ENV=production del backend +# (via EnvironmentFile), y con eso npm salta devDependencies por defecto -- incluido vite, que +# es la unica forma de hacer el build. Sin esto, "npm install" queda "up to date" sin instalar +# nada realmente y el build falla con "vite: not found". +npm install --include=dev npm run build echo "-- publicando build de frontend --"