fix: flow navigation, upload UX, and edit page polish

* chore: reduce flow page heading and input text sizes

* feat: add bouquet image download on result and map pages

* chore: polish edit page chat UI and quick prompts

* perf: run mood analysis in background after upload

* feat: add header FlowNav and persist form state when navigating back
This commit is contained in:
Chaewon Lee
2026-06-16 01:19:15 +09:00
committed by GitHub
parent 0414393be7
commit 71da3f2c17
25 changed files with 507 additions and 196 deletions

View File

@@ -3,10 +3,11 @@
import UploadTile from './UploadTile.svelte';
import { hydrateDevUpload } from '$lib/dev/hydrateUpload.js';
import { getFlowObject, isDevSeeded } from '$lib/flowerFlow/session.js';
import { readSnsFile, writeSnsFile } from '$lib/flowerFlow/uploadDraft.js';
let { primaryFile = $bindable(null), hasImage = $bindable() } = $props();
let firstFile = $state(null);
let firstFile = $state(readSnsFile());
$effect(() => {
const next = firstFile ?? null;
@@ -18,6 +19,10 @@
if (hasImage !== next) hasImage = next;
});
$effect(() => {
writeSnsFile(firstFile);
});
onMount(async () => {
const devUpload = getFlowObject('devUpload');
if (!isDevSeeded() || !devUpload?.active) return;
@@ -29,7 +34,7 @@
const files = await hydrateDevUpload(/** @type {Record<string, string>} */ (tiles));
if (files.first) firstFile = files.first;
} catch {
// dev seed 실패 시 빈 타일 유지
// dev seed 실패 시 캐시/빈 타일 유지
}
});
</script>