Merge main into bugs-uploads

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

# Conflicts:
#	web/checkout.js
This commit is contained in:
Cauê Faleiros
2026-11-11 15:03:53 -03:00
23 changed files with 453 additions and 9 deletions

View File

@@ -55,6 +55,7 @@
const error=new Error(text);error.status=response.status;
const retry=response.headers.get('Retry-After');
if(retry!=null)error.retryAfter=retry;
window.dtfObservability?.apiError?.(path,response.status,error.message,data.detail);
throw error;
}
return data;
@@ -70,6 +71,9 @@
}
const ready = api('/session');
ready.then(session=>{
window.dtfEnvironment=session.sentry_environment||session.environment;
window.dtfRelease=session.sentry_release||undefined;
window.dtfObservability?.start?.(session.sentry_dsn_web,'site');
window.dtfUploadMaxBytes=session.max_upload_bytes;
const limit=document.getElementById('zLimite');
if(limit)limit.textContent='Até '+(session.max_upload_bytes/1073741824).toFixed(0)+' GB por arquivo.';