aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/client/components/DeleteNoteTypeModal.test.tsx
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-12-31 02:49:55 +0900
committernsfisis <nsfisis@gmail.com>2025-12-31 02:49:55 +0900
commit6aa496b60879526b51fdf736c38f09aede283bde (patch)
treeeaeb4bc61ae10cd81f76e48047ad5f2193a53c38 /src/client/components/DeleteNoteTypeModal.test.tsx
parentb51d4efaa1e5e0417d4306c02797f424938766cb (diff)
downloadkioku-6aa496b60879526b51fdf736c38f09aede283bde.tar.gz
kioku-6aa496b60879526b51fdf736c38f09aede283bde.tar.zst
kioku-6aa496b60879526b51fdf736c38f09aede283bde.zip
feat(client): add NoteTypeEditor component with field management
Add a comprehensive editor for note types that allows users to: - Edit note type name and templates - Add, remove, and reorder fields - Toggle the reversible card option The editor fetches note type details including fields from the API, enabling full CRUD operations for note type configuration. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/client/components/DeleteNoteTypeModal.test.tsx')
-rw-r--r--src/client/components/DeleteNoteTypeModal.test.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/components/DeleteNoteTypeModal.test.tsx b/src/client/components/DeleteNoteTypeModal.test.tsx
index d5d536a..b7159ab 100644
--- a/src/client/components/DeleteNoteTypeModal.test.tsx
+++ b/src/client/components/DeleteNoteTypeModal.test.tsx
@@ -203,7 +203,9 @@ describe("DeleteNoteTypeModal", () => {
mockFetch.mockResolvedValue({
ok: false,
status: 409,
- json: async () => ({ error: "Cannot delete note type with existing notes" }),
+ json: async () => ({
+ error: "Cannot delete note type with existing notes",
+ }),
});
render(<DeleteNoteTypeModal {...defaultProps} />);