feat: the Kanban's frame, a rail of sections and a new top bar (redesign, step 1)
All checks were successful
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 54s
Build and deploy / Validate source (push) Successful in 4s
Build and deploy / Integration suite on a real stack (push) Successful in 3m54s
All checks were successful
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 54s
Build and deploy / Validate source (push) Successful in 4s
Build and deploy / Integration suite on a real stack (push) Successful in 3m54s
The sections move from tabs in the top bar to a rail on the left, with an icon each, the counters for Cotações, Pagamentos and Integrações, the light/dark switch and the account button at the bottom. Its menu holds "Trocar de máquina", the theme, "Minha senha" and "Sair". The machine of the session shows in the rail and as a chip in the top bar, both opening the machine question. The top bar carries the page's name (Produção also says what is open: "13 pedidos, 17,40 m em produção"), the search, Tiny only when it needs attention, and "Atualizado às 09:18": a click there sets how often it updates by itself, over the same remembered setting, or updates now. The pages' own headings are gone; on narrow screens the rail lies along the top until their own layout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -15,49 +15,58 @@
|
||||
<p id="login-status" class="hint" role="alert"></p>
|
||||
</form>
|
||||
|
||||
<div id="app" hidden>
|
||||
<div id="app" class="app" hidden>
|
||||
<nav class="rail" aria-label="Seções">
|
||||
<svg class="mark" viewBox="0 0 40 40" role="img" aria-label="Kanban DTF"><path d="M8 5h24a2 2 0 0 1 2 2v19l-9 9H8a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2z" fill="currentColor"></path><path class="cut" d="M16 9v22 M24 9v14" fill="none" stroke-width="2"></path><path d="M34 26l-9 9v-7a2 2 0 0 1 2-2z" fill="var(--acc)"></path></svg>
|
||||
<button class="nav" type="button" data-tab="board" aria-selected="true"><svg class="i" viewBox="0 0 20 20" aria-hidden="true"><path d="M3 3.75h4v12.5H3z M8 3.75h4v8.5H8z M13 3.75h4v10.5h-4z"></path></svg><span>Produção</span></button>
|
||||
<button class="nav" type="button" data-tab="quotes" aria-selected="false"><svg class="i" viewBox="0 0 20 20" aria-hidden="true"><path d="M5 2.75h7l3 3v11.5H5z M12 2.75v3h3 M7.5 9.5h5 M7.5 12.5h5 M7.5 15h3"></path></svg><span>Cotações</span><span class="pip" id="badge-quotes"></span></button>
|
||||
<button class="nav" type="button" data-tab="payments" aria-selected="false"><svg class="i" viewBox="0 0 20 20" aria-hidden="true"><path d="M2.75 5h14.5v10H2.75z M2.75 8.25h14.5 M5.5 12.25h3"></path></svg><span>Pagamentos</span><span class="pip" id="badge-payments"></span></button>
|
||||
<button class="nav" type="button" data-tab="stats" aria-selected="false"><svg class="i" viewBox="0 0 20 20" aria-hidden="true"><path d="M3 16.75h14 M4.75 14V9.5 M8.5 14V4.5 M12.25 14V7.5 M16 14v-3.5"></path></svg><span>Números</span></button>
|
||||
<button class="nav" type="button" data-tab="integrations" aria-selected="false"><svg class="i" viewBox="0 0 20 20" aria-hidden="true"><path d="M8.5 6.5H6a3.25 3.25 0 0 0 0 6.5h2.5 M11.5 6.5H14a3.25 3.25 0 0 1 0 6.5h-2.5 M7 9.75h6"></path></svg><span>Integrações</span><span class="pip" id="badge-integrations" title="A pasta da fila precisa de atenção"></span></button>
|
||||
<button class="nav" type="button" data-tab="users" aria-selected="false" hidden><svg class="i" viewBox="0 0 20 20" aria-hidden="true"><path d="M6.75 6.25a3.25 3.25 0 1 0 6.5 0a3.25 3.25 0 1 0 -6.5 0 M3.75 17c.6-3.2 3.1-5 6.25-5s5.65 1.8 6.25 5"></path></svg><span>Usuários</span></button>
|
||||
<span class="grow"></span>
|
||||
<button class="railmachine" id="rail-machine" type="button" hidden><small>Máquina</small><b></b></button>
|
||||
<button class="rbtn" id="theme-rail" type="button"><svg class="i" viewBox="0 0 20 20" aria-hidden="true"><path></path></svg></button>
|
||||
<div class="account">
|
||||
<button class="avatar" id="account" type="button" aria-haspopup="menu" aria-label="Minha conta"><span id="initials">·</span></button>
|
||||
<div class="menu acct" id="account-menu" role="menu" hidden>
|
||||
<div class="menu-head"><b id="who"></b><span id="who-role"></span></div>
|
||||
<button class="menuitem" id="account-machine" type="button" role="menuitem" hidden><svg class="i m" viewBox="0 0 20 20" aria-hidden="true"><path d="M5.75 7.5V3h8.5v4.5 M5.75 14H3V7.5h14V14h-2.75 M5.75 11.25h8.5v5.75h-8.5z"></path></svg>Trocar de máquina<span class="lbl"></span></button>
|
||||
<button class="menuitem" id="theme-toggle" type="button" role="menuitem"><svg class="i m" viewBox="0 0 20 20" aria-hidden="true"><path></path></svg><span>Modo claro</span></button>
|
||||
<button class="menuitem" id="my-password" type="button" role="menuitem"><svg class="i m" viewBox="0 0 20 20" aria-hidden="true"><path d="M3.25 13.5a3.25 3.25 0 1 0 6.5 0a3.25 3.25 0 1 0 -6.5 0 M8.8 11.2L16 4 M13.5 6.5l2 2"></path></svg>Minha senha</button>
|
||||
<div class="menusep"></div>
|
||||
<button class="menuitem" id="logout" type="button" role="menuitem"><svg class="i m" viewBox="0 0 20 20" aria-hidden="true"><path d="M8 3.25H3.75v13.5H8 M12 6.5l3.5 3.5-3.5 3.5 M15.5 10H7.5"></path></svg>Sair</button>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="shell">
|
||||
<header class="top">
|
||||
<div class="brand"><svg class="mark" viewBox="0 0 40 40" aria-hidden="true"><path d="M8 5h24a2 2 0 0 1 2 2v19l-9 9H8a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2z" fill="currentColor"></path><path class="cut" d="M16 9v22 M24 9v14" fill="none" stroke-width="2"></path><path d="M34 26l-9 9v-7a2 2 0 0 1 2-2z" fill="var(--acc)"></path></svg>Kanban DTF</div>
|
||||
<nav class="tabs" aria-label="Seções">
|
||||
<button type="button" data-tab="board" aria-selected="true">Produção <span class="count" id="count-board"></span></button>
|
||||
<button type="button" data-tab="quotes" aria-selected="false">Cotações <span class="badge" id="badge-quotes"></span></button>
|
||||
<button type="button" data-tab="payments" aria-selected="false">Pagamentos <span class="badge warn" id="badge-payments"></span></button>
|
||||
<button type="button" data-tab="stats" aria-selected="false">Números</button>
|
||||
<button type="button" data-tab="integrations" aria-selected="false">Integrações <span class="badge warn" id="badge-integrations" title="A pasta da fila precisa de atenção"></span></button>
|
||||
<button type="button" data-tab="users" aria-selected="false" hidden>Usuários</button>
|
||||
</nav>
|
||||
<div class="ptitle"><h1 id="page-title">Produção</h1><span id="board-summary"></span></div>
|
||||
<div class="searchbox">
|
||||
<label class="search">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><circle cx="11" cy="11" r="7"></circle><path d="M20 20l-3.5-3.5"></path></svg>
|
||||
<input id="search" type="search" placeholder="Buscar em pedidos e cotações: cliente, CPF/CNPJ, nº" aria-label="Buscar em pedidos e cotações" autocomplete="off" role="combobox" aria-expanded="false" aria-controls="search-results">
|
||||
<svg class="i m" viewBox="0 0 20 20" aria-hidden="true"><path d="M3.0 8.75a5.75 5.75 0 1 0 11.5 0a5.75 5.75 0 1 0 -11.5 0 M13 13l4.25 4.25"></path></svg>
|
||||
<input id="search" type="search" placeholder="Buscar cliente, CPF/CNPJ ou pedido" aria-label="Buscar em pedidos e cotações" autocomplete="off" role="combobox" aria-expanded="false" aria-controls="search-results">
|
||||
<kbd>/</kbd>
|
||||
</label>
|
||||
<div id="search-results" class="results" role="listbox" aria-label="Resultados da busca" hidden></div>
|
||||
</div>
|
||||
<span id="tiny" class="tinydot"></span>
|
||||
|
||||
<div class="refresh">
|
||||
<button class="btn ghost" id="refresh" type="button"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 12a9 9 0 1 1-2.64-6.36"></path><path d="M21 3v6h-6"></path></svg>Atualizar</button>
|
||||
<select id="refresh-every" aria-label="Atualizar sozinho a cada">
|
||||
<option value="0">Desligado</option><option value="10">10 s</option><option value="30">30 s</option>
|
||||
<option value="60">1 min</option><option value="300">5 min</option><option value="900">15 min</option>
|
||||
</select>
|
||||
</div>
|
||||
<button class="mymachine" id="my-machine" type="button" hidden></button>
|
||||
<div class="morewrap account">
|
||||
<button class="btn ghost" id="account" type="button" aria-haspopup="menu" aria-label="Minha conta"><span id="initials">·</span></button>
|
||||
<div class="menu" id="account-menu" role="menu" hidden>
|
||||
<div class="menu-head"><b id="who"></b><span id="who-role"></span></div>
|
||||
<button class="menuitem" id="theme-toggle" type="button">Tema claro</button>
|
||||
<button class="menuitem" id="my-password" type="button">Minha senha</button>
|
||||
<button class="menuitem" id="logout" type="button">Sair</button>
|
||||
<div class="syncwrap">
|
||||
<button class="sync" id="sync" type="button" aria-haspopup="menu" aria-expanded="false"><span class="livedot" aria-hidden="true"></span><span id="sync-at">Atualizar</span></button>
|
||||
<div class="menu syncmenu" id="sync-menu" role="menu" hidden>
|
||||
<div class="menu-label">Atualizar sozinho</div>
|
||||
<div id="sync-every"></div>
|
||||
<div class="menusep"></div>
|
||||
<button class="menuitem" id="refresh" type="button" role="menuitem"><svg class="i m" viewBox="0 0 20 20" aria-hidden="true"><path d="M16.25 10a6.25 6.25 0 1 1-1.83-4.42 M16.5 3.25V6.5h-3.25"></path></svg>Atualizar agora</button>
|
||||
</div>
|
||||
<select id="refresh-every" aria-label="Atualizar sozinho a cada" hidden><option value="0">Desligado</option><option value="10">A cada 10 s</option><option value="30">A cada 30 s</option><option value="60">A cada 1 min</option><option value="300">A cada 5 min</option><option value="900">A cada 15 min</option></select>
|
||||
</div>
|
||||
</header>
|
||||
<p id="status" role="status"></p>
|
||||
<main>
|
||||
<section id="tab-board">
|
||||
<div class="bar"><h1>Produção</h1><span class="muted" id="board-summary"></span>
|
||||
<div class="bar">
|
||||
<div class="filterbar">
|
||||
<div class="filtertags" id="filter-tags"></div>
|
||||
<div class="filterwrap">
|
||||
@@ -71,7 +80,7 @@
|
||||
<section id="tab-quotes" hidden>
|
||||
<div class="split">
|
||||
<div class="list">
|
||||
<div class="lhead"><h1>Cotações</h1><span>pedidos ainda não pagos</span></div>
|
||||
<div class="lhead"><span>Pedidos ainda não pagos</span></div>
|
||||
<div class="chips" id="quote-filters"></div>
|
||||
<label class="qsearch">
|
||||
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><circle cx="11" cy="11" r="7"></circle><path d="M20 20l-3.5-3.5"></path></svg>
|
||||
@@ -85,11 +94,10 @@
|
||||
</div>
|
||||
</section>
|
||||
<section id="tab-payments" class="page" hidden>
|
||||
<h1>Pagamentos</h1>
|
||||
<section id="payments"></section>
|
||||
</section>
|
||||
<section id="tab-stats" class="page" hidden>
|
||||
<div class="pagehead"><h1>Números</h1><div class="statchips" id="stats-period"></div></div>
|
||||
<div class="pagehead"><div class="statchips" id="stats-period"></div></div>
|
||||
<p class="faint stats-note" id="stats-note">Pedidos pagos no período. Pedidos de teste e cancelados ficam de fora.</p>
|
||||
<div class="kpis" id="stats-kpis"></div>
|
||||
<section class="statbox"><h2>Metros por dia</h2><div class="chart" id="stats-chart"></div></section>
|
||||
@@ -117,7 +125,7 @@
|
||||
</section>
|
||||
</section>
|
||||
<section id="tab-users" class="page" hidden>
|
||||
<div class="pagehead"><h1>Usuários</h1><button class="btn primary" id="new-user" type="button">Novo usuário</button></div>
|
||||
<div class="pagehead"><button class="btn primary" id="new-user" type="button">Novo usuário</button></div>
|
||||
<p class="faint stats-note">Quem entra no Kanban e o que cada perfil pode fazer. Administrador: tudo, inclusive esta página.
|
||||
Gestão: tudo, menos usuários; no quadro só puxa para trás, com motivo (Correção ou voltar uma etapa). Designer: vê todos os pedidos, aprova e recusa o arquivo final, pede correção.
|
||||
Operador: escolhe a máquina ao entrar; vê o quadro todo, puxa da fila para a máquina dele, imprime e passa para a Revisão, e só move os cards da máquina dele. Revisor: confere a folha impressa e libera para Finalizado; o Administrador também pode liberar.
|
||||
@@ -129,7 +137,6 @@
|
||||
<div class="mtiles" id="machines-list"></div>
|
||||
</section>
|
||||
<section id="tab-integrations" class="page" hidden>
|
||||
<h1>Integrações</h1>
|
||||
<section><div class="integ-list" id="integrations"></div></section>
|
||||
<section id="event-log"><h2>Envios ao Tiny</h2>
|
||||
<div class="filters" id="event-filters"></div>
|
||||
@@ -138,6 +145,7 @@
|
||||
</section>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="drawer" id="drawer" hidden>
|
||||
|
||||
Reference in New Issue
Block a user