From 470a326ca67665dea73eae2b4603a92423b41a79 Mon Sep 17 00:00:00 2001 From: Carlos Tello Date: Wed, 28 Oct 2026 06:05:51 -0300 Subject: [PATCH] style(chat): adjust UdeCi mobile launcher position inward away from screen bezels (v3.8.41) --- CHANGELOG.md | 6 ++++++ MEMORY.md | 7 +++---- backend/app/__init__.py | 2 +- backend/setup.py | 2 +- frontend/package.json | 2 +- frontend/src/app.js | 6 +++--- frontend/views/partials/ai_chat_widget.html | 13 +++++++------ 7 files changed, 22 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5fdaa93..1f55a30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,12 @@ El formato está basado en [Keep a Changelog](https://keepachangelog.com/es-ES/1 - **Sincronización Continua Moodle (Fase 6):** Automatización de workers persistentes en background para el procesamiento continuo de la cola de Web Services Moodle 4.1. - **Pruebas de Carga y Hardening (Fase 6):** Pruebas de estrés de concurrencia y validación final de producción. +## [3.8.41] - 2026-10-28 +### Improved (Ajuste de Posición del Botón Flotante de UdeCi en Móvil) +- **Reposicionamiento Interior del Botón Lanzador (`.ai-chat-launcher`)**: + - Se incrementaron los márgenes inferiores y laterales en la vista móvil (`bottom: calc(32px + env(safe-area-inset-bottom, 0px))`, `right: calc(26px + env(safe-area-inset-right, 0px))`), evitando que las esquinas curvas del cristal físico y las barras de gestos de los dispositivos móviles recorten o tapen el ícono de UdeCi. + - Se añadió soporte dinámico de `safe-area-inset-bottom` y `safe-area-inset-right` tanto en mobile como en desktop para una visualización 100% visible, cómoda al tacto del pulgar y ergonómica. + ## [3.8.40] - 2026-10-28 ### Fixed (Corrección de Plantilla Nunjucks en Barra Lateral y Limpieza de Atributos) - **Corrección de Bloque Condicional en `base.html`**: diff --git a/MEMORY.md b/MEMORY.md index 34e42e0..ceed86e 100644 --- a/MEMORY.md +++ b/MEMORY.md @@ -9,10 +9,9 @@ Memoria del proyecto entre sesiones para la rama `dev`. - Libro de Calificaciones (*Gradebook*) con actas de regularidad inmutables. - Autenticación híbrida (Google OAuth 2.0, Moodle SSO, Local) y Modo Impersonación. - Reinicialización segura del sistema con contraseña de Administrador. -- **Sprint Activo: Club de Beneficios, Convenios Institucionales y Control de Acceso QR / Recepción — SDD-012 (v3.8.40)**: - - **Corrección de Bloque Condicional Nunjucks**: Se reubicó la rama `{% elif user_role == 'recepcion' %}` antes de `{% else %}` en `frontend/views/base.html`, solucionando el error `Template render error: unknown block tag: elif`. - - **Refactorización de Eventos a HTML5 `data-*`**: En `benefits/catalog.html` y `benefits/manage.html`, se eliminaron los JSONs en atributos inline (`onclick`) reemplazándolos con atributos `data-*` y delegación limpia de eventos en JS. - - **Versión Consolidada**: `v3.8.40`. +- **Sprint Activo: Ergonomía Móvil de UdeCi y Beneficios — SDD-012 (v3.8.41)**: + - **Ajuste Móvil de UdeCi**: Se movió el botón lanzador hacia el interior de la pantalla (`bottom: calc(32px + env(safe-area-inset-bottom, 0px))`, `right: calc(26px + env(safe-area-inset-right, 0px))`), garantizando que no sea recortado por la curvatura del cristal ni por las barras de gestos de los smartphones. + - **Versión Consolidada**: `v3.8.41`. ## Decisiones (y por qué) - **Flujo Secuencial de Bedelía (9 Pasos)**: Estandarizar la carga operativa en: 1) Sede -> 2) Aula -> 3) Ciclo Lectivo -> 4) Carrera -> 5) Materia (vinculada a Carrera) -> 6) Comisión (asociada a Materia, Carrera y Ciclo) -> 7) Profesores -> 8) Alumnos -> 9) Reserva de Espacio. Esto asegura consistencia e integridad relacional. diff --git a/backend/app/__init__.py b/backend/app/__init__.py index d159458..672faa6 100644 --- a/backend/app/__init__.py +++ b/backend/app/__init__.py @@ -7,7 +7,7 @@ from typing import Any from database import db, get_db, engine, SessionLocal, session from config.config import Config -__version__ = "3.8.40" +__version__ = "3.8.41" class DummyContext: def __enter__(self): diff --git a/backend/setup.py b/backend/setup.py index e000a94..8d57d76 100644 --- a/backend/setup.py +++ b/backend/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name="edu-space-admin", - version="3.8.40", + version="3.8.41", description="Administrative interface for Edu-Space Classroom Management System (FastAPI ASGI Core)", author="Edu-Space Development Team", author_email="admin@edu-space.com", diff --git a/frontend/package.json b/frontend/package.json index 1905dee..f6924db 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "frontend", - "version": "3.8.40", + "version": "3.8.41", "description": "", "main": "index.js", "scripts": { diff --git a/frontend/src/app.js b/frontend/src/app.js index c68801d..9b32b51 100644 --- a/frontend/src/app.js +++ b/frontend/src/app.js @@ -86,9 +86,9 @@ const env = nunjucks.configure(path.join(__dirname, '../views'), { }); // Versiones institucionales del sistema -const APP_VERSION = '3.8.40'; -const FRONTEND_VERSION = '3.8.40'; -const BACKEND_VERSION = '3.8.40'; +const APP_VERSION = '3.8.41'; +const FRONTEND_VERSION = '3.8.41'; +const BACKEND_VERSION = '3.8.41'; env.addGlobal('app_version', APP_VERSION); env.addGlobal('frontend_version', FRONTEND_VERSION); diff --git a/frontend/views/partials/ai_chat_widget.html b/frontend/views/partials/ai_chat_widget.html index b0adc97..504fdb2 100644 --- a/frontend/views/partials/ai_chat_widget.html +++ b/frontend/views/partials/ai_chat_widget.html @@ -125,8 +125,8 @@ /* Contenedor Flotante Principal */ .ai-chat-container { position: fixed; - bottom: 24px; - right: 24px; + bottom: calc(24px + env(safe-area-inset-bottom, 0px)); + right: calc(24px + env(safe-area-inset-right, 0px)); z-index: 1070; font-family: inherit; } @@ -562,11 +562,12 @@ .ai-chat-launcher { position: fixed !important; - bottom: 20px !important; - right: 20px !important; - width: 54px !important; - height: 54px !important; + bottom: calc(32px + env(safe-area-inset-bottom, 0px)) !important; + right: calc(26px + env(safe-area-inset-right, 0px)) !important; + width: 56px !important; + height: 56px !important; z-index: 1060 !important; + box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), 0 0 0 2px rgba(255, 255, 255, 0.35) !important; } .ai-chat-launcher.chat-open { display: none !important;