diff --git a/src/lib/components/QuickCapture.svelte b/src/lib/components/QuickCapture.svelte new file mode 100644 index 0000000..a0c17a8 --- /dev/null +++ b/src/lib/components/QuickCapture.svelte @@ -0,0 +1,71 @@ + + +
{ + return async ({ result, update }) => { + if (result.type === 'success') { + // Update preference + $preferences.lastEntryType = type; + // Clear form + title = ''; + content = ''; + // Let SvelteKit refresh data + } + await update(); + }; + }} + class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 shadow-lg safe-bottom" +> +
+
+ +
+ +
+ + +
+
+
+
+
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index e93da86..96d867f 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,46 +1,24 @@ -
-
-

TaskPlanner

-

Core CRUD Phase - Form Actions Ready

+ + TaskPlaner + -
-

System Status

- -
-
- - Form actions: create, update, delete, toggleComplete -
-
- - Entries loaded: {data.entries.length} -
-
+
+
+
+

TaskPlaner

+
- {#if data.entries.length > 0} -
-

Entries (tasks first, newest within type)

-
    - {#each data.entries as entry} -
  • -
    {entry.title || '(no title)'}
    -
    {entry.content}
    -
    - Type: {entry.type} | Status: {entry.status} | Created: {new Date(entry.createdAt).toLocaleString()} -
    -
  • - {/each} -
-
- {:else} -
-

No entries yet. Use form actions to create entries.

-
- {/if} +
+
+ +