feat: the Kanban's new screens, from the board to the phone (redesign, steps 2 to 8)
All checks were successful
Build and deploy / Validate source (push) Successful in 9s
Build and deploy / Integration suite on a real stack (push) Successful in 4m37s
Build and deploy / Secret scan and release gate (push) Successful in 8s
Build and deploy / Publish images (push) Successful in 1m10s
All checks were successful
Build and deploy / Validate source (push) Successful in 9s
Build and deploy / Integration suite on a real stack (push) Successful in 4m37s
Build and deploy / Secret scan and release gate (push) Successful in 8s
Build and deploy / Publish images (push) Successful in 1m10s
- Board: product switch and a filters panel with counts, cards that say the next step and the most urgent mark, Imprimindo in one lane per machine with its free places, Finalizado as short cards. - Order panel: the stage and codes on top, "Próximo passo" with its button, Pedido / Arquivos / Histórico tabs; going back, contact, rework and cancelling in a menu; every form in a dialog. - Cotações, Pagamentos, Integrações, Números (a calendar for the period) and Usuários (who is on the system now, what each profile does, the machines) in the design's panels; the sign-in page. - Phone: sections at the bottom, one stage at a time, the order and the dialogs over the whole screen. - API: each session records when it was last used (at most once a minute), for "Ativo agora"; the board says who is on each machine. - .dockerignore leaves the local test files out of the build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -203,6 +203,11 @@ def signed_in(request: Request):
|
||||
JOIN dtf_local.operators o ON o.email=s.username AND o.active
|
||||
LEFT JOIN dtf_local.machines m ON m.id=s.machine_id
|
||||
WHERE s.token_hash=%s AND s.expires_at>now()''', (digest,)).fetchone()
|
||||
if row:
|
||||
# When the session was last used, for "Ativo agora" in Usuários:
|
||||
# written at most once a minute, not on every request.
|
||||
c.execute('''UPDATE dtf_local.operator_sessions SET seen_at=now()
|
||||
WHERE token_hash=%s AND (seen_at IS NULL OR seen_at<now()-interval '1 minute')''', (digest,))
|
||||
if not row:
|
||||
raise HTTPException(401, 'Sua sessão expirou. Entre de novo.')
|
||||
# The machine this session works on (item 12), or None.
|
||||
|
||||
Reference in New Issue
Block a user