feat(magic-notes): improve tag management UI
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user