fix: Kanban panels keep their size; their lists scroll inside
All checks were successful
Build and deploy / Validate source (push) Successful in 4s
Build and deploy / Integration suite on a real stack (push) Successful in 3m35s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m1s
All checks were successful
Build and deploy / Validate source (push) Successful in 4s
Build and deploy / Integration suite on a real stack (push) Successful in 3m35s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m1s
Creating users, machines or orders no longer changes the screen: Pessoas and the Tiny log have a fixed height, Máquinas shows two and scrolls, Pagamentos fills the window, Números' machines and treated art scroll in their panels, and the board fills the window with each column scrolling under its head. On the phone the pages scroll as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -591,7 +591,7 @@ label.fopt{cursor:pointer;user-select:none}
|
||||
.phead h2{margin:0;font-size:15px;font-weight:650}
|
||||
.phead .n{font-size:13px;color:var(--tx3)}
|
||||
.phead .hint{color:var(--tx3);display:flex;cursor:help}
|
||||
.phint{margin:0;padding:12px 18px 0;font-size:13px;color:var(--tx2)}
|
||||
.phint{margin:0;padding:12px 18px;font-size:13px;color:var(--tx2)}
|
||||
.pfilters{margin-left:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
|
||||
.inp.sm{height:34px;width:auto;font-size:13px}
|
||||
.inp.num{width:110px}
|
||||
@@ -771,7 +771,7 @@ select.inp{appearance:none;-webkit-appearance:none;padding-right:32px;background
|
||||
.pill.info,.pill.accent,.pill.muted{color:var(--tx2)}
|
||||
|
||||
/* Máquinas: one tile each, its metres open, its orders by stage, who is on it. */
|
||||
.mtiles{display:grid;grid-template-columns:1fr;gap:1px;background:var(--ln);border-top:1px solid var(--ln);margin-top:12px}
|
||||
.mtiles{display:grid;grid-template-columns:1fr;gap:1px;background:var(--ln)}
|
||||
.mtile{padding:18px;display:flex;flex-direction:column;gap:12px;background:var(--sf)}
|
||||
.mtile.off>*:not(.row:first-child){opacity:.6}
|
||||
.mtile .row{display:flex;align-items:center;gap:10px}
|
||||
@@ -788,6 +788,28 @@ select.inp{appearance:none;-webkit-appearance:none;padding-right:32px;background
|
||||
.mtile ul b{margin-left:auto;font-weight:600;color:var(--tx)}
|
||||
.mtiles .emptystate{background:var(--sf)}
|
||||
|
||||
/* Lists never change the page's size: a panel keeps its height and its
|
||||
list scrolls inside, however many users, machines or orders there are. */
|
||||
.scrollbox{overflow:auto;min-height:0}
|
||||
.scrollbox thead th,.scrollin thead th{position:sticky;top:0;z-index:1;background:var(--sf)}
|
||||
.scrollbox.people{height:366px}
|
||||
.scrollbox.log{height:440px}
|
||||
.paypanel{display:flex;flex-direction:column;height:calc(100vh - 72px - 24px - 36px - 20px - 40px);min-height:360px}
|
||||
.paypanel .scrollbox{flex:1}
|
||||
/* A list that takes the panel's leftover height and scrolls in it, without
|
||||
making the row taller: the row's other panels set its height. */
|
||||
.fill{position:relative;flex:1 1 auto;min-height:460px}
|
||||
.fill.short{min-height:186px}
|
||||
.fill>.mtiles,.fill>.scrollin{position:absolute;inset:0;overflow:auto;margin:0}
|
||||
.fill>.mtiles{border-top:1px solid var(--ln);align-content:start}
|
||||
.panel:has(> .fill){display:flex;flex-direction:column}
|
||||
.cols2.lean{align-items:stretch}
|
||||
/* The board fills the window; each column scrolls on its own, its head stays. */
|
||||
#tab-board:not([hidden]){display:flex;flex-direction:column;height:calc(100vh - 72px)}
|
||||
#tab-board .board{flex:1;min-height:0;align-items:stretch;overflow-y:hidden}
|
||||
#tab-board .col{min-height:0;overflow-y:auto;padding-top:0;overscroll-behavior:contain}
|
||||
#tab-board .colhead{position:sticky;top:0;z-index:3;background:var(--lane);margin:0 -8px;padding:14px 16px 8px}
|
||||
|
||||
/* Phone (redesign, step 8): the sections in a bar at the bottom, the
|
||||
search behind a button, one stage of the board at a time, the order and
|
||||
the dialogs over the whole screen. */
|
||||
@@ -885,5 +907,11 @@ select.inp{appearance:none;-webkit-appearance:none;padding-right:32px;background
|
||||
.tall{width:100%;max-height:60vh}
|
||||
.plegend{margin-left:0;flex-basis:100%;order:3}
|
||||
.mchoices{grid-template-columns:1fr}
|
||||
#tab-board:not([hidden]){display:block;height:auto}
|
||||
#tab-board .col{overflow:visible}
|
||||
#tab-board .colhead{position:static;margin:0;padding:2px 2px 4px}
|
||||
.scrollbox.people,.scrollbox.log,.paypanel{height:auto}
|
||||
.fill{min-height:0}
|
||||
.fill>.mtiles,.fill>.scrollin{position:static}
|
||||
}
|
||||
@keyframes sheetUp{from{transform:translateY(40px);opacity:.4}}
|
||||
|
||||
@@ -122,11 +122,11 @@
|
||||
<section class="panel"><div class="phead"><h2>Metros por dia</h2><span class="legend right" id="stats-legend"></span></div><div id="stats-chart"></div></section>
|
||||
<div class="g12">
|
||||
<section class="panel clip s4"><div class="phead"><h2>Por máquina</h2><span class="hint tip-r" tabindex="0" data-tip="Pedidos que chegaram a Finalizado no período, na máquina em que estavam. Impresso: o filme da folha, não o metro cobrado. Por hora: sobre o tempo em Imprimindo; pedidos imprimindo juntos na mesma máquina contam esse tempo uma vez."><svg class="i s" viewBox="0 0 20 20" aria-hidden="true"><path d="M2.75 10a7.25 7.25 0 1 0 14.5 0a7.25 7.25 0 1 0 -14.5 0 M10 9v4.5 M10 6.25v.75"></path></svg></span></div>
|
||||
<table class="table"><thead><tr><th scope="col">Máquina</th><th scope="col" class="r">Impresso</th><th scope="col" class="r">Por hora</th><th scope="col">Agora</th></tr></thead><tbody id="stats-machines"></tbody></table></section>
|
||||
<div class="fill short"><div class="scrollin"><table class="table"><thead><tr><th scope="col">Máquina</th><th scope="col" class="r">Impresso</th><th scope="col" class="r">Por hora</th><th scope="col">Agora</th></tr></thead><tbody id="stats-machines"></tbody></table></div></div></section>
|
||||
<section class="panel clip s4"><div class="phead"><h2>Por origem</h2><span class="hint" tabindex="0" data-tip="Por onde o pedido entrou: o Site, os lotes do Dropflow ou a equipe, em Atendimento. Até Finalizado: do pagamento ao Finalizado, mediana, sem o tempo em Aguardando contato."><svg class="i s" viewBox="0 0 20 20" aria-hidden="true"><path d="M2.75 10a7.25 7.25 0 1 0 14.5 0a7.25 7.25 0 1 0 -14.5 0 M10 9v4.5 M10 6.25v.75"></path></svg></span></div>
|
||||
<table class="table"><thead><tr><th scope="col">Origem</th><th scope="col" class="r">Pedidos</th><th scope="col" class="r">Metros</th><th scope="col" class="r">Recebido</th><th scope="col" class="r">Até Finalizado</th></tr></thead><tbody id="stats-origins"></tbody></table></section>
|
||||
<section class="panel s4"><div class="phead"><h2>Artes tratadas, por quem aprovou</h2><span class="hint tip-l" tabindex="0" data-tip="Pedidos do período em que o arquivo final aprovado não é a arte do cliente: alguém da equipe preparou."><svg class="i s" viewBox="0 0 20 20" aria-hidden="true"><path d="M2.75 10a7.25 7.25 0 1 0 14.5 0a7.25 7.25 0 1 0 -14.5 0 M10 9v4.5 M10 6.25v.75"></path></svg></span></div>
|
||||
<div class="bylist" id="stats-treated"></div></section>
|
||||
<div class="fill short"><div class="scrollin bylist" id="stats-treated"></div></div></section>
|
||||
</div>
|
||||
<div class="g12">
|
||||
<section class="panel clip s6"><div class="phead"><h2>Retrabalho</h2><span class="hint" tabindex="0" data-tip="Metros refeitos sobre o filme impresso no período, só os autorizados, pela data em que foram abertos. Arte ruim aprovada pelo cliente fica fora da meta."><svg class="i s" viewBox="0 0 20 20" aria-hidden="true"><path d="M2.75 10a7.25 7.25 0 1 0 14.5 0a7.25 7.25 0 1 0 -14.5 0 M10 9v4.5 M10 6.25v.75"></path></svg></span><span class="pill warn right" id="stats-rework-pending-pill" hidden></span></div>
|
||||
@@ -144,21 +144,21 @@
|
||||
<div class="phead"><h2>Pessoas</h2><span class="n" id="users-count"></span>
|
||||
<span class="plegend"><span title="Usou o sistema nos últimos 15 minutos"><i class="pres on"></i>Ativo agora</span><span><i class="pres away"></i>Inativo</span><span><i class="pres never"></i>Nunca entrou</span><span><i class="pres off"></i>Desativado</span></span>
|
||||
<button class="btn right" id="new-user" type="button"><svg class="i m" viewBox="0 0 20 20" aria-hidden="true"><path d="M10 4v12 M4 10h12"></path></svg>Novo usuário</button></div>
|
||||
<table class="table"><thead><tr><th scope="col">Nome</th><th scope="col">Perfil</th><th scope="col">Máquina agora</th><th scope="col">Último acesso</th><th scope="col"><span class="vh">Editar</span></th></tr></thead><tbody id="users-list"></tbody></table>
|
||||
<div class="scrollbox people"><table class="table"><thead><tr><th scope="col">Nome</th><th scope="col">Perfil</th><th scope="col">Máquina agora</th><th scope="col">Último acesso</th><th scope="col"><span class="vh">Editar</span></th></tr></thead><tbody id="users-list"></tbody></table></div>
|
||||
</section>
|
||||
<div class="cols2 lean">
|
||||
<section class="panel clip"><div class="phead"><h2>O que cada perfil faz</h2><span class="canlegend right"><span><i class="can"></i>faz</span><span><i class="can view"></i>só consulta</span></span></div>
|
||||
<div class="scrollx"><table class="table matrix" id="roles-matrix"></table></div></section>
|
||||
<section class="panel clip"><div class="phead"><h2>Máquinas</h2><span class="n" id="machines-count"></span><button class="btn right" id="new-machine" type="button"><svg class="i m" viewBox="0 0 20 20" aria-hidden="true"><path d="M10 4v12 M4 10h12"></path></svg>Nova máquina</button></div>
|
||||
<p class="phint">Cada pedido vai para a máquina do produto com menos metros em aberto, dentro do limite. No pedido dá para trocar.</p>
|
||||
<div class="mtiles" id="machines-list"></div></section>
|
||||
<div class="fill"><div class="mtiles" id="machines-list"></div></div></section>
|
||||
</div>
|
||||
</section>
|
||||
<section id="tab-integrations" class="page" hidden>
|
||||
<div class="panel" id="integrations"></div>
|
||||
<section class="panel clip" id="event-log">
|
||||
<div class="phead"><h2>Envios ao Tiny</h2><div class="pfilters" id="event-filters"></div></div>
|
||||
<table class="table"><thead><tr><th scope="col">Quando</th><th scope="col">Pedido</th><th scope="col">Evento</th><th scope="col">Resultado</th></tr></thead><tbody id="events"></tbody></table>
|
||||
<div class="scrollbox log"><table class="table"><thead><tr><th scope="col">Quando</th><th scope="col">Pedido</th><th scope="col">Evento</th><th scope="col">Resultado</th></tr></thead><tbody id="events"></tbody></table></div>
|
||||
<div id="events-more"></div>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
@@ -2592,8 +2592,8 @@ function renderIssues(){
|
||||
tbody.append(tr);
|
||||
}
|
||||
table.append(thead,tbody);
|
||||
const panel=node('div',undefined,'panel clip');
|
||||
panel.append(table,pager({page:issuePage,size:issueSize,total:issueTotal,noun:'pagamentos',
|
||||
const panel=node('div',undefined,'panel clip paypanel'),scroll=node('div',undefined,'scrollbox');scroll.append(table);
|
||||
panel.append(scroll,pager({page:issuePage,size:issueSize,total:issueTotal,noun:'pagamentos',
|
||||
onPage:n=>{issuePage=n;loadIssues().catch(e=>say(e.message,true));},
|
||||
onSize:n=>{issueSize=n;issuePage=1;loadIssues().catch(e=>say(e.message,true));}}));
|
||||
$('payments').replaceChildren(tools,panel);
|
||||
|
||||
Reference in New Issue
Block a user