feat: the team no longer gets alert e-mails; the Kanban user form drops the option
All checks were successful
Build and deploy / Validate source (push) Successful in 47s
Build and deploy / Integration suite on a real stack (push) Successful in 3m38s
Build and deploy / Secret scan and release gate (push) Successful in 9s
Build and deploy / Publish images (push) Successful in 1m20s
All checks were successful
Build and deploy / Validate source (push) Successful in 47s
Build and deploy / Integration suite on a real stack (push) Successful in 3m38s
Build and deploy / Secret scan and release gate (push) Successful in 9s
Build and deploy / Publish images (push) Successful in 1m20s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -236,9 +236,9 @@ endpoints, marker/tag behaviour, and rate limits before production use.
|
||||
|
||||
`app/mail.py` (2026-10-13): customers' password recovery (a one-time link,
|
||||
valid one hour, sent to `/conta/redefinir#token`; only the token's hash is
|
||||
stored and the message text is erased once sent) and alerts to the Kanban
|
||||
users who switch them on (order paid, quote waiting for review, payment
|
||||
needing attention). Messages are queued in the transaction that caused them and
|
||||
stored and the message text is erased once sent). Since 2026-10-20 the team
|
||||
gets no alert e-mails: the Kanban and Tiny are where orders are followed.
|
||||
Messages are queued in the transaction that caused them and
|
||||
sent by the worker with retries. `MAIL_ADAPTER` is `off` in production until
|
||||
the client's SMTP account exists (recovery then offers WhatsApp), `log` on the
|
||||
local stack, `smtp` with `SMTP_*` and `MAIL_FROM`.
|
||||
|
||||
@@ -265,11 +265,11 @@ with db.connect() as c:
|
||||
admin = Client()
|
||||
textil = admin.call('/operator/machines', {'name': 'Têxtil 1', 'products': ['textil']}, operator=True)['id']
|
||||
admin.call('/operator/machines', {'name': 'UV 1', 'products': ['uv']}, operator=True)
|
||||
for name, email, role, machines, alerts in (
|
||||
('Ana Souza', 'ana@dropstar.test', 'admin', [], True), ('Diego Ramos', 'diego@dropstar.test', 'gestao', [], True),
|
||||
('Bruno Souza', 'bruno@dropstar.test', 'operador', [textil], False), ('Carla Dias', 'carla@dropstar.test', 'vendedor', [], False)):
|
||||
for name, email, role, machines in (
|
||||
('Ana Souza', 'ana@dropstar.test', 'admin', []), ('Diego Ramos', 'diego@dropstar.test', 'gestao', []),
|
||||
('Bruno Souza', 'bruno@dropstar.test', 'operador', [textil]), ('Carla Dias', 'carla@dropstar.test', 'vendedor', [])):
|
||||
admin.call('/operator/users', {'name': name, 'email': email, 'role': role, 'password': 'senha-de-exemplo-123',
|
||||
'machines': machines, 'alerts': alerts}, operator=True)
|
||||
'machines': machines}, operator=True)
|
||||
|
||||
# Pedro's account (Camisetas Ipê): it brings his orders, one in correction, for Minha conta.
|
||||
from tests.smoke_test import register
|
||||
|
||||
@@ -96,7 +96,7 @@ if(which==='kanban'){
|
||||
board.providers={...board.providers,payment:'mercadopago',
|
||||
freight:{services:{jadlog:'Jadlog',pac:'Correios PAC',sedex:'Correios SEDEX'},box_cm:['63','15.5','15.5'],production_days:1,
|
||||
base_kg:'0.3',per_metre_kg:'0.075',cubage_kg_m3:'300',cubed_kg:'4.541',metres_per_box:'60'},
|
||||
mail:{adapter:'smtp',alerts:2,pending:0,last_sent:at(1),from:'nao-responda@dropstardtf.com.br'},
|
||||
mail:{adapter:'smtp',pending:0,last_sent:at(1),from:'nao-responda@dropstardtf.com.br'},
|
||||
backup:{last_ok:new Date(now.getFullYear(),now.getMonth(),now.getDate(),3,0).toISOString(),bytes:418000,failed:null,requested:false}};
|
||||
FOLDER.mode='folder';FOLDER.handle={name:'FlexiPRINT'};FOLDER.granted=true;FOLDER.when='rec';FOLDER.error='';FOLDER.status='';
|
||||
FOLDER.saved=new Map(Array.from({length:12},(_,i)=>['u'+i,{place:'queue'}]));FOLDER.last=new Date(now-25*60e3);
|
||||
|
||||
Reference in New Issue
Block a user