Integra la fila de tarjetas para la cuenta técnica

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jorem JuárezandClaude Opus 5 committed 2026-08-20 10:38:59 -06:00
commit 4a3722d341
2 files changed
+101 -12

No files matched your search

@@ -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 <a.dropdown-item>, 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;
}
}
@@ -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 @@
</t>
</div>
<!-- Catch-all. Nothing designed goes here: the six blocks above
are the screen. Anything else the user can see lands here
with its native icon so it stays reachable. -->
<div class="beyond_launcher_band beyond_launcher_tiles">
<t t-set="beyondBlocks"
t-value="['point_of_sale.menu_point_root', 'beyond_branch.menu_beyond_root', 'beyond_attendance_qr.menu_kiosco_app', 'stock.menu_stock_root', 'contacts.menu_contacts', 'spreadsheet_dashboard.spreadsheet_dashboard_menu_root']"/>
<t t-foreach="apps" t-as="app" t-key="app.id">
<DropdownItem
t-if="!beyondBlocks.includes(app.xmlid)"
class="{ 'o_app': true, 'beyond_tile': true }"
onSelected="() => this.onNavBarDropdownItemSelection(app)"
attrs="{ href: getMenuItemHref(app), 'data-menu-xmlid': app.xmlid, 'data-section': app.id }"
>
<img t-if="app.webIconData" class="beyond_tile_icon" t-att-src="app.webIconData" alt=""/>
<span class="beyond_tile_name" t-esc="app.name"/>
</DropdownItem>
</t>
</div>
<div class="beyond_launcher_brand">
<span>Powered by Collina Systems</span>
</div>