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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user