feat: tell the customer how long the upload takes before it starts
When files are picked, the product page shows the range the upload takes between a slow (10 Mbps) and a fast (150 Mbps) connection, and asks to keep the page open. The cart shows the same range until the real speed is measured, then the measured time left. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -152,8 +152,10 @@
|
||||
if (!e) return '';
|
||||
if (e.fase==='pronto') return 'Arquivos enviados ✓';
|
||||
if (e.fase==='verificando') return 'Arquivos enviados · verificando a segurança…';
|
||||
return 'Enviando seus arquivos: '+e.pct+'% · '+mb(e.sent)+' de '+mb(e.total)+
|
||||
(e.restante!=null ? ' · '+tempo(e.restante) : '');
|
||||
// Until the speed is measured, the range from the file size.
|
||||
return 'Enviando seus arquivos: '+e.pct+'% · '+mb(e.sent)+' de '+mb(e.total)+' · '+
|
||||
(e.restante!=null ? tempo(e.restante) : 'estimativa '+faixaEnvio(e.total-e.sent))+
|
||||
'. Mantenha a página aberta.';
|
||||
}
|
||||
function pintaEnvio() {
|
||||
const e=estadoEnvio(), texto=textoEnvio(e);
|
||||
|
||||
Reference in New Issue
Block a user