notes memory

This commit is contained in:
2026-04-27 15:42:17 +02:00
parent 94e14a3674
commit 410f1acd5d
9 changed files with 755 additions and 20 deletions

View File

@@ -323,8 +323,14 @@ async function sendVoiceBlob(blob) {
async function handleAssistantResponse(data) {
const reply = data.reply || "";
addBubble(reply, "assistant");
const status = data.emailSent ? "Email envoye" : data.contactSaved ? "Contact ajoute" : "Pret";
setStatus(status, data.emailSent || data.contactSaved ? "live" : "idle");
const status = data.emailSent
? "Email envoye"
: data.contactSaved
? "Contact ajoute"
: data.memorySaved
? "Memoire mise a jour"
: "Pret";
setStatus(status, data.emailSent || data.contactSaved || data.memorySaved ? "live" : "idle");
if (!audioToggle.checked || !reply) return;

View File

@@ -50,6 +50,6 @@
</section>
</main>
<script src="/app.js?v=6" type="module"></script>
<script src="/app.js?v=7" type="module"></script>
</body>
</html>

View File

@@ -1,8 +1,8 @@
const CACHE_NAME = "opensquared-assistant-v6";
const CACHE_NAME = "opensquared-assistant-v7";
const ASSETS = [
"/",
"/styles.css",
"/app.js?v=6",
"/app.js?v=7",
"/manifest.webmanifest",
"/icons/icon-v2.svg"
];