From 9a13eb4e66a8796cfce44d52e7c87456128257df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorem=20Ju=C3=A1rez?= Date: Thu, 20 Aug 2026 10:38:59 -0600 Subject: [PATCH] =?UTF-8?q?Devuelve=20la=20fila=20de=20tarjetas=20bajo=20l?= =?UTF-8?q?os=20bloques=20para=20la=20cuenta=20t=C3=A9cnica?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit El Menú Principal v3 quitó la fila chica y con ella el catch-all, y eso dejó sin puerta a Facturación, Empleados, Asistencias, Aplicaciones y Ajustes: están escondidas de los roles a propósito, pero la cuenta técnica de Collina sí las ve y el lanzador es el único conmutador de apps que tiene el cliente web. Sin la fila, esa cuenta solo llegaba escribiendo la URL. Vuelve tal como estaba: tarjetas con su ícono nativo, en una banda fija debajo de los seis bloques. Para cualquier rol Beyond la banda queda VACÍA —los seis bloques cubren todo lo que ven— y la hoja de estilos la esconde, así que su pantalla sigue siendo la del diseño y nada más. Co-Authored-By: Claude Opus 5 (1M context) --- .../static/src/webclient/beyond_launcher.scss | 73 ++++++++++++++++++- .../static/src/webclient/beyond_launcher.xml | 40 ++++++++-- 2 files changed, 101 insertions(+), 12 deletions(-) diff --git a/addons/beyond_base/static/src/webclient/beyond_launcher.scss b/addons/beyond_base/static/src/webclient/beyond_launcher.scss index a6439ef..a7f09d9 100644 --- a/addons/beyond_base/static/src/webclient/beyond_launcher.scss +++ b/addons/beyond_base/static/src/webclient/beyond_launcher.scss @@ -167,30 +167,60 @@ $beyond-font-family: Manrope, ui-sans-serif, system-ui, sans-serif; // ENGINEERING — a row with no apps for this role must not leave a ghost // strip. :has() rather than :empty so template whitespace cannot fool it. - .beyond_launcher_band:not(:has(.beyond_block)) { + // The catch-all row is empty for every Beyond role, so this is what keeps + // the screen down to the design's six blocks. + .beyond_launcher_band:not(:has(.beyond_block)):not(:has(.beyond_tile)) { display: none; } // Two rows of three. Both grow, so the blocks split the height evenly. .beyond_launcher_band { - flex: 1; - min-height: 0; display: flex; gap: 6px; } + .beyond_launcher_row1, + .beyond_launcher_row2 { + flex: 1; + min-height: 0; + } + .beyond_launcher_row1 { padding: 8px 6px 0; } .beyond_launcher_row2 { padding: 6px 6px 8px; } + // Catch-all row: fixed height under the blocks, so the six blocks keep + // splitting whatever is left. + .beyond_launcher_tiles { + flex: none; + height: 128px; + align-items: center; + gap: 8px; + padding: 0 6px; + // ENGINEERING — the row catches every unmapped app, so it can grow + // past the viewport. Scrolling sideways keeps them reachable without + // breaking the fixed band. Centring is done with auto margins rather + // than justify-content on purpose: centred flex content overflows in + // BOTH directions, pushing the first tiles off the left edge where + // scrolling cannot reach them. Auto margins collapse to 0 once there + // is no free space, so the row simply starts at the left. + justify-content: flex-start; + overflow-x: auto; + + .beyond_tile:first-child { margin-inline-start: auto; } + .beyond_tile:last-child { margin-inline-end: auto; } + } + // Reset: DropdownItem renders an , so Bootstrap's block // layout, padding, colour and nowrap have to go before the design's own // box takes over. - .beyond_block { + .beyond_block, + .beyond_tile { box-sizing: border-box; display: flex !important; flex-direction: column; align-items: center; width: auto; + background: none; border: 0; text-align: center; text-decoration: none; @@ -272,4 +302,39 @@ $beyond-font-family: Manrope, ui-sans-serif, system-ui, sans-serif; &:hover { background: $beyond-launcher-tableros-hover; } &:active { background: $beyond-launcher-tableros-active; } } + + // ------------------------------------------------------------------------- + // Catch-all tiles (~132x98, well over the 48px touch floor) + // ------------------------------------------------------------------------- + .beyond_tile { + flex: none; + width: 132px; + padding: 14px 0; + gap: 10px; + border-radius: 20px; + transition: background 140ms ease; + + &:hover, + &:focus-visible { + background: $beyond-surface-hover; + } + } + + .beyond_tile_name { + font-size: 13px; + font-weight: 700; + color: $beyond-ink-soft; + // ENGINEERING — these names are whatever the app is called; clip them + // rather than let a long one wrap and push the tile out of the band. + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + + .beyond_tile_icon { + width: 42px; + height: 42px; + object-fit: contain; + } } diff --git a/addons/beyond_base/static/src/webclient/beyond_launcher.xml b/addons/beyond_base/static/src/webclient/beyond_launcher.xml index f011932..76efac8 100644 --- a/addons/beyond_base/static/src/webclient/beyond_launcher.xml +++ b/addons/beyond_base/static/src/webclient/beyond_launcher.xml @@ -14,14 +14,19 @@ written out one by one rather than looped because each carries its own inline SVG and its own colour. - The row of small tiles is GONE, and with it the catch-all that swept - every unmapped app into it. Six blocks now cover everything a Beyond - role can see: Punto de venta, Panel General, Kiosco, Inventario, - Contactos y Tableros. What is not a block lives inside Panel General - (Sucursales, Clientes, Catálogo, Precios por sucursal, Captura, - Personal, Checador), and what a Beyond role never sees is hidden by - the menu cleanups — Empleados y Asistencias nativos, Discuss, Ajustes - y Aplicaciones. A catch-all would only have brought those back. + Six blocks cover everything a Beyond role can see: Punto de venta, + Panel General, Kiosco, Inventario, Contactos y Tableros. What is not a + block lives inside Panel General (Sucursales, Clientes, Catálogo, + Precios por sucursal, Captura, Personal, Checador). + + Under them the row of small tiles stays as a catch-all, and for a + Beyond role it is always EMPTY — the stylesheet then hides it and the + screen is the design's six blocks, nothing else. It only fills up for + Collina's technical account (base.group_system), which is the one that + still sees Facturación, Empleados, Asistencias, Aplicaciones y + Ajustes: those are hidden from the roles by the menu cleanups, and the + launcher is the only app switcher the web client has, so without this + row that account would have no way in but typing the URL. Apps are matched by xmlid string, never imported: a module that is not installed simply never matches (no hard dependency). @@ -160,6 +165,25 @@ + +
+ + + + + + + +
+
Powered by Collina Systems