continue generating flow, add backend connection on main tabs

This commit is contained in:
Thomas Demirdjian
2025-08-28 17:18:28 +02:00
parent 0ca7544005
commit bb7b35626f
110 changed files with 1701 additions and 3408 deletions
+4 -3
View File
@@ -69,7 +69,7 @@ const CreatingSong = ({ active, config }) => {
const elapsed = moment().diff(moment(startDate));
const pct = Math.max(
0,
Math.min(100, Math.floor((elapsed / totalMs) * 100))
Math.min(100, Math.floor((elapsed / totalMs) * 100)),
);
setProgress(pct);
if (pct >= 100) {
@@ -127,10 +127,11 @@ const CreatingSong = ({ active, config }) => {
instruments: config?.instruments || [],
tempo: config?.tempo || "",
},
generationStartAt: firebase.firestore.FieldValue.serverTimestamp(),
generationStartAt:
firebase.firestore.FieldValue.serverTimestamp(),
updatedAt: firebase.firestore.FieldValue.serverTimestamp(),
},
{ merge: true }
{ merge: true },
);
}
} catch (e) {