From 14e12d2096d0d57f3e6a168f9a647759668aaee8 Mon Sep 17 00:00:00 2001 From: Sidney Date: Sat, 18 Jul 2026 22:06:33 -0300 Subject: [PATCH] feat(pre-matricula): add upload progress indicators for folder flyers and adjust backend compression to 1200px --- manager/components/PreMatricula.tsx | 104 ++++++++++++++++++++++++---- manager/server.selfhosted.js | 2 +- 2 files changed, 93 insertions(+), 13 deletions(-) diff --git a/manager/components/PreMatricula.tsx b/manager/components/PreMatricula.tsx index ee54fcc..c824477 100644 --- a/manager/components/PreMatricula.tsx +++ b/manager/components/PreMatricula.tsx @@ -54,6 +54,8 @@ const PreMatricula: React.FC = ({ data, onConvert }) => { const [showNewField, setShowNewField] = useState(false); const [newField, setNewField] = useState({ label: '', tipo: 'text', placeholder: '', obrigatorio: false, opcoes: '' }); const [uploadProgress, setUploadProgress] = useState(null); + const [newBannerProgress, setNewBannerProgress] = useState(null); + const [editBannerProgress, setEditBannerProgress] = useState(null); const [showMassModal, setShowMassModal] = useState(false); const [targetType, setTargetType] = useState('todos'); @@ -672,6 +674,20 @@ const PreMatricula: React.FC = ({ data, onConvert }) => { + ) : newBannerProgress !== null ? ( +
+ +
+

Enviando e compactando folder...

+

{newBannerProgress}% concluído

+
+
+
+
+
) : (