From 04666d607dc2713759ad02da97f32ecb8df430be Mon Sep 17 00:00:00 2001 From: zenn Date: Thu, 13 Aug 2026 17:53:05 +0900 Subject: [PATCH] Add category presentation management --- README.md | 14 ++ components/TransactionListRow.vue | 21 ++- composables/useMoney.ts | 2 + docs/changelog.md | 5 + docs/project-guidelines.md | 2 + pages/add.vue | 10 +- pages/settings.vue | 159 ++++++++++++++++-- pages/transactions/[id].vue | 10 +- .../migration.sql | 3 + prisma/schema.prisma | 2 + server/api/categories/[id].patch.ts | 25 ++- server/api/categories/index.post.ts | 27 ++- server/utils/defaults.ts | 12 +- todo.md | 7 - utils/categoryPresentation.ts | 29 ++++ 15 files changed, 289 insertions(+), 39 deletions(-) create mode 100644 prisma/migrations/20260813093000_add_category_presentation/migration.sql create mode 100644 utils/categoryPresentation.ts diff --git a/README.md b/README.md index f41c193..4f315e3 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,20 @@ docker compose up --build 운영 전 `SESSION_SECRET`과 DB 비밀번호를 반드시 변경하세요. +## 주요 명령 + +```bash +npm run dev +npm run build +npm run preview +npm run db:generate +npm run db:migrate +npm run db:deploy +npm run db:seed +``` + +현재 별도 lint/test 스크립트는 아직 없습니다. 빌드 락이 걸린 개발 환경에서는 `NUXT_IGNORE_LOCK=1 npm run build`로 검증합니다. + ## 문서 - [요구사항](docs/requirements.md) diff --git a/components/TransactionListRow.vue b/components/TransactionListRow.vue index e7afe75..7d56774 100644 --- a/components/TransactionListRow.vue +++ b/components/TransactionListRow.vue @@ -5,11 +5,11 @@ class="grid grid-cols-[2.5rem_minmax(0,1fr)_auto] items-start gap-3 px-4 py-3 active:bg-paper md:px-5" >
@@ -35,6 +35,7 @@