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:
@@ -141,7 +141,8 @@ def board(user=Depends(operator)):
|
||||
'mail': mail.status(c)},
|
||||
'environment': ENVIRONMENT, 'site_origin': PUBLIC_ORIGIN,
|
||||
'finished_shown': len(finished), 'finished_total': finished_total,
|
||||
'machines': machines.rows(c), 'printing_cap': machines.PRINTING_CAP,
|
||||
# Who is on each machine now, for the machine question (item 12).
|
||||
'machines': machines.rows(c, with_operators=True), 'printing_cap': machines.PRINTING_CAP,
|
||||
'quotes': quotes, 'thumbnails': thumbnails(c, orders, quotes),
|
||||
'names': company_names(c, orders, quotes),
|
||||
'pending_total': pending_total, 'approved_total': approved_total}
|
||||
|
||||
@@ -129,7 +129,10 @@ def change_password(body: PasswordChange, request: Request):
|
||||
def user_rows(c):
|
||||
"""Every account, with the machines its open sessions are on now (item 12)."""
|
||||
rows = c.execute('''SELECT o.id,o.email,o.name,o.role,o.active,o.last_login_at,o.created_at,
|
||||
COALESCE(array_agg(DISTINCT s.machine_id) FILTER (WHERE s.machine_id IS NOT NULL), '{}') AS machines
|
||||
COALESCE(array_agg(DISTINCT s.machine_id) FILTER (WHERE s.machine_id IS NOT NULL), '{}') AS machines,
|
||||
-- The last use of any open session: "Ativo agora" in Usuários.
|
||||
(SELECT max(x.seen_at) FROM dtf_local.operator_sessions x
|
||||
WHERE x.username=o.email AND x.expires_at>now()) AS seen_at
|
||||
FROM dtf_local.operators o LEFT JOIN dtf_local.operator_sessions s
|
||||
ON s.username=o.email AND s.expires_at>now() AND s.machine_id IS NOT NULL
|
||||
GROUP BY o.id ORDER BY o.active DESC, o.name, o.email''').fetchall()
|
||||
|
||||
Reference in New Issue
Block a user