From c76d2fa7f354db68bbfcc1833882669a32b943b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Sat, 31 Oct 2026 09:19:45 -0300 Subject: [PATCH] feat: the Kanban's frame, a rail of sections and a new top bar (redesign, step 1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- web/kanban.css | 107 ++++++++++++++++++++++++++++++++++-------------- web/kanban.html | 74 ++++++++++++++++++--------------- web/kanban.js | 64 +++++++++++++++++++++-------- 3 files changed, 165 insertions(+), 80 deletions(-) diff --git a/web/kanban.css b/web/kanban.css index 75da4e5..846d5da 100644 --- a/web/kanban.css +++ b/web/kanban.css @@ -67,25 +67,47 @@ input[type=file]{font-size:14px;color:var(--muted);max-width:100%} .login{max-width:380px;margin:12vh auto 0;padding:32px;border:1px solid var(--line2);border-radius:14px;background:var(--panel);display:flex;flex-direction:column;gap:14px} .login label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;color:var(--muted)} .login .hint{font-size:13.5px;color:var(--faint);margin:0} - -/* Top bar */ -.top{height:64px;padding:0 24px;display:flex;align-items:center;gap:22px;border-bottom:1px solid var(--line);background:var(--bar);position:sticky;top:0;z-index:5} -.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:16px;letter-spacing:-.01em;white-space:nowrap} +.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:16px;letter-spacing:-.01em;white-space:nowrap} .brand .mark{width:28px;height:28px;flex:none;color:var(--ink)} -.brand .mark .cut{stroke:var(--top)} -.login .brand .mark .cut{stroke:var(--panel)} -.tabs{display:flex;gap:4px;align-self:stretch} -.tabs button{display:flex;align-items:center;gap:8px;padding:0 14px;border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);font-weight:600;font-size:14.5px} -.tabs button[aria-selected=true]{color:var(--tx);font-weight:700;border-bottom-color:var(--accent)} -.tabs .count{font-family:var(--mono);font-size:13.5px;color:var(--muted)} -.searchbox{position:relative;margin-left:auto;flex:0 1 380px;min-width:200px} -.search{display:flex;align-items:center;gap:8px;width:100%;box-sizing:border-box;height:38px;padding:0 12px;border:1px solid var(--line2);border-radius:9px;background:var(--card);color:var(--faint)} -.search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--acc) 18%,transparent)} -.search input{flex:1;min-width:0;border:0;background:transparent;height:auto;padding:0;outline:none} -.search kbd{font:inherit;font-size:12px;padding:0 6px;border:1px solid var(--line3);border-radius:5px;color:var(--faint)} +.brand .mark .cut{stroke:var(--panel)} + +/* The frame (redesign, step 1): the rail of sections on the left; the top + bar with the page's name, the search, the machine and the refresh. */ +#app:not([hidden]){display:flex;min-height:100vh} +.shell{flex:1;min-width:0;display:flex;flex-direction:column} +.i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:square;stroke-linejoin:miter;flex:none;display:block} +.i.m{width:16px;height:16px;stroke-width:1.6} +.i.s{width:14px;height:14px;stroke-width:1.7} +.rail{width:84px;flex:none;background:var(--rail);border-right:1px solid var(--railln);display:flex;flex-direction:column;align-items:center;gap:6px;padding:18px 0 16px;position:sticky;top:0;height:100vh;z-index:6} +.rail .mark{width:38px;height:38px;margin-bottom:22px;flex:none;color:var(--railon)} +.rail .mark .cut{stroke:var(--rail)} +.nav{width:76px;height:64px;border:0;border-radius:12px;background:transparent;color:var(--railtx);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;font-size:11.5px;font-weight:550;position:relative;transition:background .15s,color .15s} +.nav:hover,.nav[aria-selected=true]{color:var(--railon);background:var(--railsel)} +.nav .pip{position:absolute;top:6px;right:14px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--ink);color:var(--onink);font-size:10.5px;font-weight:650;line-height:18px;text-align:center;box-shadow:0 0 0 2px var(--rail)} +.nav .pip:empty{display:none} +.rail .grow{flex:1} +.railmachine{width:70px;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 0;margin-bottom:8px;border-radius:10px;border:1px solid var(--ln2);background:transparent;color:var(--railtx)} +.railmachine.on{border-color:color-mix(in srgb,var(--mine) 45%,transparent);background:color-mix(in srgb,var(--mine) 8%,transparent);color:var(--mine)} +.railmachine small{font-size:10px;font-weight:500;color:var(--railtx)} +.railmachine b{max-width:62px;font-size:12.5px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} +.rbtn{width:40px;height:40px;border-radius:10px;border:0;background:transparent;color:var(--railtx);display:flex;align-items:center;justify-content:center} +.rbtn:hover{color:var(--railon);background:var(--railsel)} +.account{position:relative} +.avatar{width:38px;height:38px;margin-top:4px;border-radius:50%;border:0;background:var(--sf3);color:var(--tx);font-size:12.5px;font-weight:650} +.menu.acct{position:fixed;left:96px;right:auto;top:auto;bottom:16px;width:290px} +.top{height:72px;display:flex;align-items:center;gap:16px;padding:0 24px;border-bottom:1px solid var(--ln);background:var(--top);position:sticky;top:0;z-index:5} +.ptitle{display:flex;align-items:baseline;gap:14px;min-width:0} +.ptitle h1{margin:0;font-size:24px;font-weight:650;letter-spacing:-.02em;line-height:1;white-space:nowrap} +.ptitle span{font-size:13.5px;color:var(--tx2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis} +.searchbox{position:relative;margin-left:auto;flex:0 1 360px;min-width:200px} +.search{display:flex;align-items:center;gap:10px;width:100%;height:40px;padding:0 10px 0 13px;border:1px solid var(--ln2);border-radius:10px;background:var(--sf);color:var(--tx3)} +.search:focus-within{border-color:var(--acc);box-shadow:0 0 0 3px color-mix(in srgb,var(--acc) 18%,transparent)} +.search input{flex:1;min-width:0;height:auto;padding:0;border:0;background:transparent;outline:none;font-size:14px;color:var(--tx)} +.search input::placeholder{color:var(--tx3)} +.search kbd{font:inherit;font-size:11.5px;line-height:20px;padding:0 7px;border:1px solid var(--ln2);border-radius:6px;color:var(--tx3)} .search:focus-within kbd{display:none} /* The search results: orders and unpaid quotes, grouped. */ -.results{position:absolute;top:calc(100% + 8px);right:0;width:580px;max-height:min(70vh,580px);overflow:auto;z-index:8;padding:6px 0;border:1px solid var(--line3);border-radius:12px;background:var(--card);box-shadow:var(--pop)} +.results{position:absolute;top:calc(100% + 8px);right:0;width:520px;max-height:min(70vh,580px);overflow:auto;z-index:8;padding:6px 0;border:1px solid var(--ln2);border-radius:12px;background:var(--sf);box-shadow:var(--pop)} .rgroup{padding:8px 14px 4px;font-size:12.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--faint)} .rhit{display:flex;align-items:center;gap:12px;width:100%;padding:8px 14px;border:0;background:transparent;text-align:left} .rhit:hover,.rhit[aria-selected=true]{background:color-mix(in srgb,var(--acc) 8%,transparent)} @@ -97,23 +119,32 @@ input[type=file]{font-size:14px;color:var(--muted);max-width:100%} .rbadge{flex-shrink:0;font-size:12.5px;font-weight:700;padding:2px 9px;border-radius:999px;background:color-mix(in srgb,var(--c,var(--tx3)) 18%,transparent);color:var(--c,var(--tx2))} .rempty{margin:0;padding:14px;font-size:14px;color:var(--muted)} .rhelp{margin-top:6px;padding:8px 14px 4px;border-top:1px solid var(--line);font-size:12.5px;color:var(--faint)} -.tinydot{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted);white-space:nowrap} -.tinydot::before{content:"";width:8px;height:8px;border-radius:999px;background:var(--dot,var(--tx3))} +/* Tiny, in the top bar only when something is wrong; Integrações has the rest. */ +.tinydot{display:flex;align-items:center;gap:8px;height:30px;padding:0 10px;border-radius:8px;font-size:13px;font-weight:600;color:var(--warn);background:color-mix(in srgb,var(--warn) 12%,transparent);white-space:nowrap} +.tinydot::before{content:"";width:7px;height:7px;border-radius:999px;background:var(--dot,var(--warn))} .tinydot:empty{display:none} -/* .morewrap pushes the panel's menu right; here the search box already does. */ -.morewrap.account{margin-left:0} -/* The session's machine (item 12): green when on one; a click changes it. */ -.mymachine{flex-shrink:0;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;border:1px solid var(--line2);border-radius:8px;background:transparent;color:var(--muted);font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;white-space:nowrap} -.mymachine.on{border-color:var(--ok);color:var(--ok);background:color-mix(in srgb,var(--mine) 8%,transparent)} -.mymachine[hidden]{display:none} +/* The session's machine (item 12): a click changes it. */ +.mymachine{flex-shrink:0;display:flex;align-items:center;gap:7px;height:40px;padding:0 10px;border:0;border-radius:10px;background:transparent;color:var(--tx2);font-size:13px;white-space:nowrap} +.mymachine b{color:var(--tx);font-weight:650} +.mymachine i{width:8px;height:8px;border-radius:50%;background:var(--tx3)} +.mymachine.on i{background:var(--mine)} +.mymachine:hover{background:var(--sf3)} +/* "Atualizado às": a click sets how often it updates by itself, or updates now. */ +.syncwrap{position:relative;flex-shrink:0} +.sync{display:flex;align-items:center;gap:8px;height:40px;padding:0 4px 0 2px;border:0;background:transparent;color:var(--tx2);font-size:13px;white-space:nowrap} +.sync:hover{color:var(--tx)} +.livedot{width:7px;height:7px;border-radius:50%;background:var(--tx2);animation:breathe 2.4s ease-in-out infinite} +.sync.off .livedot{animation:none;background:var(--tx3);opacity:.5} +.syncmenu{width:250px} +.menu-label{padding:8px 10px 6px;font-size:12.5px;font-weight:600;color:var(--tx3)} +.menusep{height:1px;margin:6px 4px;background:var(--ln)} +@keyframes breathe{50%{opacity:.35}} .card.mine{border-color:var(--ok);box-shadow:inset 0 0 0 1px var(--ok)} .col-head .slot-row.mine{margin:0 -6px;padding:3px 6px;border:1px solid var(--ok);border-radius:8px} .machine-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin:14px 0} .machine-choice{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:14px;border:1px solid var(--line2);border-radius:10px;background:var(--card2);color:var(--tx);font:inherit;text-align:left;cursor:pointer} .machine-choice b{font-size:15px} .machine-choice:hover,.machine-choice.on{border-color:var(--ok)} -.account .btn{min-width:38px;padding:0 10px;font-weight:800;letter-spacing:.02em} -.account .menu{min-width:240px} .menu-head{display:flex;flex-direction:column;gap:2px;padding:8px 10px 10px;border-bottom:1px solid var(--line2);margin-bottom:4px} .menu-head b{font-size:14.5px} .menu-head span{font-size:12.5px;color:var(--faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap} @@ -210,11 +241,14 @@ button.slot:focus-visible{outline:2px solid var(--accent);outline-offset:1px} .linkbtn:hover{color:var(--tx)} .morewrap{position:relative;margin-left:auto} .more{min-width:44px;font-weight:800;letter-spacing:1px} -.menu{position:absolute;right:0;top:calc(100% + 6px);z-index:5;min-width:200px;display:flex;flex-direction:column;padding:6px; - background:var(--card2);border:1px solid var(--line3);border-radius:10px;box-shadow:var(--pop)} +.menu{position:absolute;right:0;top:calc(100% + 6px);z-index:22;min-width:200px;display:flex;flex-direction:column;padding:6px; + background:var(--sf);border:1px solid var(--ln2);border-radius:12px;box-shadow:var(--pop)} .menu[hidden]{display:none} -.menuitem{background:none;border:0;text-align:left;padding:9px 10px;border-radius:7px;font:inherit;font-size:14px;color:inherit;cursor:pointer} -.menuitem:hover{background:var(--sf3)} +.menuitem{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:0 10px;border:0;border-radius:8px;background:none;text-align:left;font:inherit;font-size:13.5px;font-weight:550;color:var(--tx);cursor:pointer} +.menuitem:hover{background:var(--sf2)} +.menuitem .i{color:var(--tx2)} +.menuitem .lbl{margin-left:auto;font-size:12.5px;font-weight:500;color:var(--tx3)} +.menuitem[role=menuitemradio] svg{margin-left:auto;width:16px;height:16px} .menuitem.bad{color:var(--bad)} .reason{display:flex;flex-direction:column;gap:8px} .panel-body{flex:1;overflow:auto;padding:20px 24px 32px;display:flex;flex-direction:column;gap:24px} @@ -375,6 +409,7 @@ table.log td{padding:10px 12px;border-bottom:1px solid var(--ln);vertical-align: .integ-toggle:empty{display:none} .integ-details{margin-left:16px} .top{flex-wrap:wrap;height:auto;padding:10px 16px;gap:10px} + .ptitle h1{font-size:20px} .searchbox{order:5;width:100%;flex-basis:100%;margin-left:0} .search{width:100%} .results{width:100%} @@ -583,3 +618,15 @@ a.zap{display:inline-flex;align-items:center;gap:4px;vertical-align:bottom} /* The queue's tools (Arte conferida): Baixar. */ .coltools{display:flex;gap:6px;flex-shrink:0} +/* Narrow screens until their own layout (redesign, step 8): the rail lies + along the top and scrolls sideways. */ +@media (max-width:700px){ + #app:not([hidden]){flex-direction:column} + .rail{width:auto;height:auto;flex-direction:row;gap:2px;padding:6px 8px;border-right:0;border-bottom:1px solid var(--railln);overflow-x:auto} + .rail .mark{width:28px;height:28px;margin:0 6px 0 2px} + .nav{width:auto;min-width:64px;height:52px;padding:0 6px} + .rail .grow,.railmachine{display:none} + .avatar{margin-top:0} + .menu.acct{left:8px;right:8px;top:70px;bottom:auto;width:auto} + .top{position:static} +} diff --git a/web/kanban.html b/web/kanban.html index f78c920..bab59e2 100644 --- a/web/kanban.html +++ b/web/kanban.html @@ -15,49 +15,58 @@ -