feat(magic-notes): improve tag management UI

This commit is contained in:
mesalogo
2026-10-07 21:05:14 +08:00
parent e0607a153f
commit 13c29badfb
14 changed files with 160 additions and 25 deletions
+3
View File
@@ -2363,6 +2363,9 @@ export type DesktopApi = {
create: (input: MagicNoteCreateInput) => Promise<MagicNoteCreateResult>
update: (input: MagicNoteUpdateInput) => Promise<MagicNoteDetail>
remove: (noteId: string) => Promise<void>
createTag: (
input: import('./magic-notes-contracts').MagicNoteTagCreateInput
) => Promise<import('./magic-notes-contracts').MagicNoteTag>
renameTag: (
input: import('./magic-notes-contracts').MagicNoteTagRenameInput
) => Promise<import('./magic-notes-contracts').MagicNoteTagRenameResult>
+1
View File
@@ -350,6 +350,7 @@ export const ipcChannels = {
magicNotesCreate: 'magic-notes:create',
magicNotesUpdate: 'magic-notes:update',
magicNotesDelete: 'magic-notes:delete',
magicNotesCreateTag: 'magic-notes:create-tag',
magicNotesRenameTag: 'magic-notes:rename-tag',
magicNotesDeleteTag: 'magic-notes:delete-tag',
magicNotesCreateEntry: 'magic-notes:create-entry',
+5
View File
@@ -369,6 +369,11 @@ export type MagicNoteUpdateInput = z.infer<typeof magicNoteUpdateSchema>
export const magicNoteTagIdSchema = magicNoteIdSchema
export const magicNoteTagCreateSchema = z
.object({ name: magicNoteTagNameSchema })
.strict()
export type MagicNoteTagCreateInput = z.infer<typeof magicNoteTagCreateSchema>
export const magicNoteTagRenameSchema = z
.object({
tagId: magicNoteTagIdSchema,