feat: new layout phase B, the Site tab as on the canvas

Roadmap Novo Layout, phase B (canvas S1 to S6): tabs Produtos e preços,
Cupons, Nota da arte and Vídeos; the products table with the on/off
switch, bands and next change; the price dialog with Agora/Agendar on
the Kanban calendar (calendar() takes options, Números unchanged), bands
and the live "O cliente vê" line; coupons, grade rules and videos in
tables with their dialogs; stacked rows and full-screen dialogs on the
phone. Same API calls and rules as before. Built by Prensa.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-13 16:39:06 -03:00
parent 8fa76b7819
commit 70bdaf1a8d
5 changed files with 697 additions and 382 deletions

View File

@@ -249,21 +249,31 @@
<table class="table"><thead><tr><th scope="col">Etapa</th><th scope="col" class="r">Média</th><th scope="col" class="r">p95</th><th scope="col" class="r">Amostras</th></tr></thead><tbody id="stats-speed"></tbody></table></section>
</section>
<section id="tab-site" class="page" hidden>
<section class="panel clip">
<div class="phead"><h2>Produtos</h2></div>
<p class="phint">O que o Site mostra e vende agora. Um produto desligado some do Site e o servidor recusa novos pedidos com ele.</p>
<div class="scrollx"><table class="table"><thead><tr><th scope="col">Produto</th><th scope="col">Situação</th><th scope="col">Preço atual</th></tr></thead><tbody id="site-products"></tbody></table></div>
</section>
<section class="panel clip">
<div class="phead"><h2>Preços</h2></div>
<p class="phint">Cada preço vale a partir da data escolhida. Um preço que já começou não muda mais: o histórico fica abaixo. Só um preço agendado pode ser cancelado.</p>
<div id="site-prices"></div>
</section>
<section class="panel clip" id="site-videos-panel" hidden>
<div class="phead"><h2>Vídeos do Site</h2></div>
<p class="phint">Envie o vídeo em MP4 ou WebM (até 500 MB). A legenda VTT é opcional. Escolha o produto para o vídeo flutuante e publique quando estiver pronto.</p>
<div id="site-videos-list" class="siteVideoList"></div>
</section>
<div class="site-sub" id="site-sub"></div>
<div class="site-bar">
<div class="seg" id="site-tabs" role="tablist" aria-label="Partes do Site"></div>
<span class="site-note" id="site-note"></span>
</div>
<div class="site-pane" id="site-pane-products" role="tabpanel">
<section class="panel clip">
<table class="dtable site-table site-products"><thead><tr><th scope="col">Produto</th><th scope="col">À venda</th><th scope="col" class="r">Preço atual</th><th scope="col">Faixas</th><th scope="col">Próxima mudança</th><th scope="col"><span class="vh">Ações</span></th></tr></thead><tbody id="site-products"></tbody></table>
</section>
</div>
<div class="site-pane" id="site-pane-coupons" role="tabpanel" hidden>
<div id="site-coupons"></div>
</div>
<div class="site-pane" id="site-pane-grade" role="tabpanel" hidden>
<section class="panel clip" id="site-grade-panel">
<div class="phead"><h2>Regras pela nota da arte</h2></div>
<p class="phint">A menor nota entre os itens do pedido decide. Desligada, a regra não muda nada.</p>
<div id="site-grade-body"></div>
</section>
</div>
<div class="site-pane" id="site-pane-videos" role="tabpanel" hidden>
<section class="panel clip" id="site-videos-panel">
<table class="dtable site-table"><thead><tr><th scope="col">Vídeo</th><th scope="col">Arquivo</th><th scope="col">Legenda</th><th scope="col">Onde aparece</th><th scope="col">Situação</th><th scope="col"><span class="vh">Ações</span></th></tr></thead><tbody id="site-videos-list"></tbody></table>
</section>
</div>
</section>
<section id="tab-users" class="page" hidden>
<section class="panel clip">