@@ -422,7 +638,7 @@ async function act(fn: () => Promise
) {
diff --git a/frontend/src/components/QuickAdd.vue b/frontend/src/components/QuickAdd.vue
deleted file mode 100644
index 1d0f8ce..0000000
--- a/frontend/src/components/QuickAdd.vue
+++ /dev/null
@@ -1,169 +0,0 @@
-
-
-
-
-
-
- Take a note…
-
-
-
-
-
-
-
-
-
-
-
-
-
- Close
-
-
-
-
-
-
diff --git a/frontend/src/stores/notes.ts b/frontend/src/stores/notes.ts
index 1f0ba30..2e44ee9 100644
--- a/frontend/src/stores/notes.ts
+++ b/frontend/src/stores/notes.ts
@@ -104,8 +104,10 @@ export const useNotesStore = defineStore("notes", () => {
color: NoteColor;
kind?: NoteKind;
items?: string[];
- }): Promise
{
- reconcile(await api.post("/api/notes", input));
+ }): Promise {
+ const note = await api.post("/api/notes", input);
+ reconcile(note);
+ return note;
}
async function mutate(
diff --git a/frontend/src/views/BoardView.vue b/frontend/src/views/BoardView.vue
index 14d573e..6c35dfc 100644
--- a/frontend/src/views/BoardView.vue
+++ b/frontend/src/views/BoardView.vue
@@ -3,7 +3,6 @@ import { computed, onBeforeUnmount, onMounted, ref, watch } from "vue";
import { useRoute, useRouter } from "vue-router";
import { useNotesStore, type Note, type NoteView } from "../stores/notes";
import { useUiStore } from "../stores/ui";
-import QuickAdd from "../components/QuickAdd.vue";
import NoteCard from "../components/NoteCard.vue";
import NoteEditor from "../components/NoteEditor.vue";
@@ -13,14 +12,14 @@ const ui = useUiStore();
const router = useRouter();
const editing = ref(null);
-const quickAdd = ref | null>(null);
+const composer = ref | null>(null);
const loadError = ref("");
// The global `c` shortcut bumps composeTick; reopen the composer when we're
// already on the board (a fresh navigation autofocuses it via the prop).
watch(
() => ui.composeTick,
- () => quickAdd.value?.open(),
+ () => composer.value?.open(),
);
// The command palette opens a note by navigating here with ?open=.
@@ -175,7 +174,7 @@ async function onDrop(target: Note) {