feat: Cotações shows the last payment attempt and fits the window
All checks were successful
Build and deploy / Validate source (push) Successful in 6s
Build and deploy / Integration suite on a real stack (push) Successful in 2m43s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 53s

Each quote shows its latest payment attempt as a badge ("PIX gerado · expira
12:22", "PIX expirou sem pagamento", "Cartão recusado"), so "tried to pay" is
told apart from "never tried"; quote_view carries the PIX expiry and the
attempt's time for it. The quote stays payable for its 24 hours: a new PIX is
for the same quote.

Cotações now fills the window and never scrolls: a page holds as many quotes
as the list's height fits, measured after each render and on resize, and the
page bar sits at the bottom of the list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-10-02 11:55:59 -03:00
parent 1fb2e5d55a
commit 5616db1345
4 changed files with 63 additions and 13 deletions

View File

@@ -146,7 +146,12 @@ main{padding:0 24px 24px}
/* Quotes */
#tab-quotes{padding-top:18px}
.split{display:flex;gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;min-height:calc(100vh - 140px)}
/* Cotações fills the window and no more: the top bar (64px), the tab's 18px
and main's 24px. Its parts scroll inside, never the page. */
.split{display:flex;gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;height:calc(100vh - 106px);min-height:480px}
#quote-list{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column;gap:8px}
#quote-pager:empty{display:none}
#quote-pager .pager{margin-top:0}
/* About a third of the screen: the rows carry a picture, the customer and the price. */
.split .list{width:clamp(460px,34vw,640px);flex-shrink:0;border-right:1px solid var(--line);padding:16px;display:flex;flex-direction:column;gap:12px;background:#111316}
.qitem{text-align:left;display:flex;align-items:center;gap:12px;padding:12px;border-radius:10px;border:1px solid var(--line2);background:var(--card);width:100%}
@@ -157,10 +162,10 @@ main{padding:0 24px 24px}
.chips.small{gap:6px}
.chips.small .chip{height:30px;padding:0 10px;font-size:13px}
.qitem[aria-current=true]{border-color:var(--accent);background:#1F1A15}
.pane{flex:1;min-width:0;display:flex;flex-direction:column}
.pane{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column}
.pane .head{padding:18px 24px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.pane .head b{font-size:18px;overflow-wrap:anywhere}
.pane .content{flex:1;padding:20px 24px;display:flex;flex-direction:column;gap:16px}
.pane .content{flex:1;min-height:0;overflow:auto;padding:20px 24px;display:flex;flex-direction:column;gap:16px}
.pane .fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.pane .fields label{display:flex;flex-direction:column;gap:6px;font-size:13.5px;font-weight:600;color:var(--muted)}
.pane .fields input[readonly]{color:var(--faint);background:var(--panel);border-color:var(--line2)}
@@ -215,6 +220,8 @@ table.log td{padding:10px 12px;border-bottom:1px solid #1E2226;vertical-align:to
.results{width:100%}
main{padding:0 16px 16px}
.split{flex-direction:column}
.split{height:auto}
#quote-list{overflow:visible}
.split .list{width:auto;border-right:0;border-bottom:1px solid var(--line)}
.facts,.pane .fields{grid-template-columns:1fr}
}