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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-10-20 09:37:41 -03:00
parent 14a43f2ada
commit c8857a5bf5
11 changed files with 43 additions and 114 deletions

View File

@@ -7,7 +7,7 @@ from uuid import UUID, uuid4
from fastapi import APIRouter, Depends, HTTPException
from psycopg.types.json import Jsonb
from .. import mail, payments
from .. import payments
from ..core import db
from ..core.auth import owner
from ..core.models import QuoteRequest
@@ -61,9 +61,6 @@ def create_quote(body: QuoteRequest, session_id=Depends(owner)):
if row['id'] == uid:
# An operator reviews it first; the files wait for that review.
payments.hold_uploads(c, payments.quote_uploads(draft), payments.REVIEW_HOLD)
mail.alert(c, 'Cotação esperando revisão',
['Um cliente montou um carrinho que precisa de revisão antes do pagamento.',
f'Motivo: {reason}', '', *mail.summary(draft)], '/')
return {'id': row['id'], 'status': 'approved' if row['approved'] else 'pending_review'}
@router.get('/api/quotes/{uid}')