Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
a8ff90b
chore: develop 삭제 금지 ruleset 분리
chanwoo7 Nov 2, 2026
c78d832
Merge pull request #553 from CaQuick/chore/develop-no-deletion-ruleset
chanwoo7 Nov 2, 2026
57e69eb
feat: 주문 결제·환불·정산 스키마와 입금 대기·노쇼 상태 추가
chanwoo7 Nov 18, 2026
6beaa2d
feat: 입금 대기·노쇼 상태 분류와 판매자 노출 범위, 진행 주문 요약·필터
chanwoo7 Nov 18, 2026
9ecf314
fix: 진행 주문 요약 삭제 제외 회귀 테스트와 판매자 집계 노출 조건 정리
chanwoo7 Nov 18, 2026
e5f972b
Merge pull request #557 from CaQuick/feat/order-payment-schema
chanwoo7 Nov 18, 2026
4d50cbe
feat: 주문 생성 기대 금액·입력 해시·요청 사항과 픽업 달력 상품 제작 시간 반영
chanwoo7 Nov 18, 2026
c70c111
docs: 픽업 달력 하루 설명에 픽업 하한 반영
chanwoo7 Nov 18, 2026
dfc657b
Merge pull request #563 from CaQuick/feat/create-order-guards
chanwoo7 Nov 18, 2026
c44f870
feat: 계좌번호 암호화(AccountCipher)와 키 설정·재암호화 스크립트
chanwoo7 Nov 18, 2026
c31da2b
feat: 결제 설정·매장 정산 계좌 API와 은행 목록
chanwoo7 Nov 18, 2026
ace9ba4
fix: 계좌번호 재암호화가 마지막 변경 시각을 바꾸지 않게 하고 스크립트 가드 테스트 추가
chanwoo7 Nov 18, 2026
c657094
fix: 관리자 결제 설정 사유 길이 오류 코드와 판매자 감사 로그 설명 정정
chanwoo7 Nov 18, 2026
6306031
Merge pull request #564 from CaQuick/feat/account-cipher-payment-setting
chanwoo7 Nov 18, 2026
e55543d
feat: 상품 커스텀 방식과 문구 자리 표시 이름·스타일·좌표 검증
chanwoo7 Nov 18, 2026
f942904
fix: 문구 자리 좌표 백필을 바탕 안으로 자름
chanwoo7 Nov 18, 2026
28c192b
test: 삭제된 문구 자리만 남은 템플릿의 슬롯형 준비 판정 회귀 테스트
chanwoo7 Nov 18, 2026
e06090e
Merge pull request #566 from CaQuick/feat/custom-product-settings
chanwoo7 Nov 18, 2026
c46d4b2
feat: 커스텀 바탕 이미지 1:1 서버 검증
chanwoo7 Nov 18, 2026
45c288a
fix: 바탕 이미지 객체가 없을 때 403 AccessDenied를 읽을 수 없음으로 처리
chanwoo7 Nov 18, 2026
6aa25ac
Merge pull request #567 from CaQuick/feat/custom-base-image-square
chanwoo7 Nov 18, 2026
1f09e9d
feat: 입금 대기 주문과 관리자 수동 입금 확인
chanwoo7 Nov 18, 2026
a449131
fix: 주문 생성 tx가 timeout으로 만료돼도 계정 잠금이 남지 않게 함
chanwoo7 Nov 18, 2026
d883eb9
fix: 입금 확인 판정 재료를 잠금 읽기에서 가져옴
chanwoo7 Nov 18, 2026
ee56e87
fix: 0원 주문을 입금액 0으로 확인할 수 있게 함
chanwoo7 Nov 18, 2026
ff7e469
Merge pull request #569 from CaQuick/feat/order-pending-payment
chanwoo7 Nov 18, 2026
6c3ebe9
feat: 입금 대기·입금했어요 관리자 디스코드 알림
chanwoo7 Nov 18, 2026
cf0d9f7
fix: 같은 key의 새 경보 시도가 대기 중인 재전송을 취소함
chanwoo7 Nov 18, 2026
e6ca015
fix: 경보 재전송을 key별 시도 번호로 판정해 겹친 전송에서도 묵은 재전송을 막음
chanwoo7 Nov 18, 2026
314f657
Merge pull request #570 from CaQuick/feat/order-admin-alerts
chanwoo7 Nov 18, 2026
5582628
feat: 3D 케이크 카탈로그 공개 조회와 에셋 업로드 스크립트
chanwoo7 Nov 18, 2026
b40a072
feat: 옵션 3D 연결과 3D 상품 준비 상태·기본 세트
chanwoo7 Nov 18, 2026
6f2cd40
feat: 3D 디자인 JSON v1 서버 검증
chanwoo7 Nov 18, 2026
d93e558
test: 3D 옵션 카테고리 SDL 동기화와 퇴역 카탈로그 항목 거절 회귀 테스트
chanwoo7 Nov 18, 2026
c2a87c0
fix: 카탈로그 업로드가 이미 있는 객체를 덮어쓰지 않게 조건부 업로드
chanwoo7 Nov 18, 2026
139e4de
test: roles-coverage 개수 재계산
chanwoo7 Nov 18, 2026
59f461b
Merge pull request #572 from CaQuick/feat/custom-3d-catalog
chanwoo7 Nov 18, 2026
12217b8
feat: 취소 사유·주체·사정과 환불 생성·정산 확정
chanwoo7 Nov 18, 2026
8220761
fix: 구매자 취소 감사를 판매자에게 숨기고 판매자 취소 범위에서 품목 삭제 주문을 뺌
chanwoo7 Nov 18, 2026
c5f5d77
Merge pull request #573 from CaQuick/feat/order-cancel-policy
chanwoo7 Nov 18, 2026
81cb14f
feat: 주문 커스텀 스냅샷 스키마와 주문 상세 커스텀 출력
chanwoo7 Nov 18, 2026
fb80fbf
fix: 시드 리뷰가 홈 제작 후기 쇼케이스 후보가 되게 Before 스냅샷 채움
chanwoo7 Nov 18, 2026
52168f0
Merge pull request #574 from CaQuick/feat/order-custom-snapshot
chanwoo7 Nov 18, 2026
706d7fb
feat: 커스텀 주문 이미지 선업로드와 미사용 업로드 정리 크론
chanwoo7 Nov 18, 2026
bfa336a
test: 커스텀 업로드 용도 입력 enum이 서버 enum을 벗어나지 않게 SDL 동기화 게이트
chanwoo7 Nov 18, 2026
0dcb9f1
fix: 업로드 발급 오류 코드 설명과 정리 재시도 주석 정정
chanwoo7 Nov 18, 2026
2c1cd68
Merge pull request #575 from CaQuick/feat/order-custom-upload
chanwoo7 Nov 18, 2026
e3829d0
feat: 주문 생성 커스텀 입력 검증과 스냅샷 저장
chanwoo7 Nov 18, 2026
e3c0864
test: 주문 tx의 업로드 잠금이 정리 크론 끼어들기를 막는 회귀 테스트
chanwoo7 Nov 18, 2026
54490aa
fix: 슬롯형 커스텀 문구 값을 자유 편집 규칙보다 먼저 검증
chanwoo7 Nov 18, 2026
6d62b0b
Merge pull request #577 from CaQuick/feat/order-custom-checkout
chanwoo7 Nov 18, 2026
bf14954
feat: 채팅 이미지 첨부와 주문 카드 메시지
chanwoo7 Nov 18, 2026
ea0e11c
fix: 사진 미첨부 오류 문구를 사용자 문장으로 바꾸고 숨김 매장 FAQ·이미지 거절 회귀 테스트
chanwoo7 Nov 18, 2026
38e6f51
Merge pull request #578 from CaQuick/feat/conversation-image-order-card
chanwoo7 Nov 18, 2026
21cc29a
feat: 환불 계좌 입력·환불 완료와 입금 반환·종결 기록, 탈퇴 차단
chanwoo7 Nov 18, 2026
f9370a4
Merge pull request #581 from CaQuick/feat/refund-processing
chanwoo7 Nov 18, 2026
9fca52f
feat: 표 기반 주문 전이 정책과 판매자 노쇼 처리
chanwoo7 Nov 18, 2026
5b59bfc
feat: 주문 자동 전이 크론(미입금 취소·확정 마감 알림·미확정 취소·자동 픽업 완료)
chanwoo7 Nov 18, 2026
9c44d65
test: 품목 없는 주문의 확정 마감 미리 알림은 표시만 남기는 회귀 테스트
chanwoo7 Nov 18, 2026
774cd0b
fix: 숨긴 매장의 자동 픽업 완료 설명을 관리자 처리 범위에 맞게 정정
chanwoo7 Nov 18, 2026
3c8b2b5
test: 판매자 노쇼가 잠금 시점 픽업 일시로 다시 판정하는 회귀 테스트
chanwoo7 Nov 18, 2026
d90c7ef
feat: 관리자 주문 픽업 완료로 숨긴 매장 진행 주문을 건별 처리
chanwoo7 Nov 18, 2026
3b7ef38
test: roles-coverage 개수 재계산
chanwoo7 Nov 18, 2026
44ec2af
Merge pull request #583 from CaQuick/feat/order-no-show-auto-transition
chanwoo7 Nov 18, 2026
56048c4
feat: 판매자 픽업 일시 변경과 변경 시트 달력·슬롯
chanwoo7 Nov 18, 2026
de29219
fix: 픽업 변경 tx를 READ COMMITTED로 돌려 capacity 재집계가 동시 커밋을 보게 함
chanwoo7 Nov 18, 2026
c196ef3
fix: 픽업 변경 달력·슬롯이 옮길 주문의 수량 전체로 capacity를 판정
chanwoo7 Nov 18, 2026
a115c68
Merge pull request #585 from CaQuick/feat/order-pickup-reschedule
chanwoo7 Nov 18, 2026
1ad33b9
feat: 주간 정산·월 수수료 집계와 판매자 정산 조회
chanwoo7 Nov 18, 2026
af2ad00
fix: 월 수수료 집계 매장명을 그 달 가장 늦게 확정된 주문 기준으로
chanwoo7 Nov 18, 2026
71a3bda
feat: 주간 정산 후보 매장을 100곳씩 키셋으로, 한 실행에 최대 1000곳까지 처리
chanwoo7 Nov 18, 2026
b2ee9d3
Merge pull request #586 from CaQuick/feat/weekly-settlement
chanwoo7 Nov 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ COPY --from=build --chown=node:node /app/node_modules ./node_modules
COPY --from=build --chown=node:node /app/prisma ./prisma
COPY --from=build --chown=node:node /app/src ./src
COPY --from=build --chown=node:node /app/scripts ./scripts
# 3D 카탈로그 에셋 — worker 컨테이너에서 yarn catalog:upload로 올린다(infra/runbook.md)
COPY --from=build --chown=node:node /app/assets ./assets
COPY --from=build --chown=node:node /app/public ./public
COPY --from=build --chown=node:node /app/dist ./dist
# corepack은 첫 실행 때 패키지 매니저를 내려받으려 한다(런타임 네트워크 의존) — 릴리즈 파일을 바로 yarn으로 건다
Expand Down
54 changes: 28 additions & 26 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,35 +299,37 @@ Operational endpoints

> There is no `.env.example` in the repository. The validation schemas live in [`src/config/`](./src/config/) and the production key list in [`infra/app.env.example`](./infra/app.env.example).

| Category | Keys |
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Server** | `NODE_ENV`, `PORT`, `BACKEND_BASE_URL`, `FRONTEND_BASE_URL` (comma-separated list; every entry becomes a non-production CORS origin and the first entry is the default post-login redirect), `APP_ROLE` (`api`, `ws`, `worker`; default `api`), `TRUST_PROXY_HOPS` |
| **Database** | `DATABASE_URL` |
| **Redis (required)** | `REDIS_URL`. Used for the auth blacklist and Subscription PubSub. If `maxmemory` is set, the policy must be `noeviction`; otherwise the worker detects it, raises an alert, and auth falls back to the database |
| **RabbitMQ (required)** | `RABBITMQ_URL`. The event backbone from the outbox relay to consumers |
| **JWT / Auth** | `JWT_PRIVATE_KEY_PEM_B64` (or `JWT_PRIVATE_KEY_PATH`) is the RS256 signing key and is required in production. `JWT_PUBLIC_KEY_PEM_B64` is derived from the private key when omitted. Also `JWT_ISSUER`, `JWT_AUDIENCE`, `JWT_ACCESS_EXPIRES_SECONDS`, `AUTH_REFRESH_EXPIRES_DAYS`, `AUTH_COOKIE_*` |
| **OIDC** | `OIDC_GOOGLE_CLIENT_ID`, `OIDC_GOOGLE_CLIENT_SECRET`, `OIDC_GOOGLE_ISSUER_URL`, `OIDC_KAKAO_CLIENT_ID`, `OIDC_KAKAO_CLIENT_SECRET`, `OIDC_KAKAO_ISSUER_URL`, `OIDC_TEMP_COOKIE_MAX_AGE_MS` |
| **AWS S3** | `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` (IAM user `caquick-app`, media put/get only), `AWS_REGION`, `AWS_S3_BUCKET` (required in production), `S3_PRESIGN_EXPIRES_SECONDS` |
| **Docs · Metrics** | `DOCS_ACCESS_TOKEN` (access token for `/gql-docs` and `/rest-docs`, required in production), `METRICS_ACCESS_TOKEN` (Bearer token for `/metrics`, required in production) |
| **Alerts (optional)** | `DISCORD_ALERT_WEBHOOK_URL` (log-only when unset), `ALERT_DEDUPE_WINDOW_MS` (default 5 minutes), `BOOT_ALERT_STATE_DIR` (suppression files for boot-failure alerts, default `~/.caquick/boot-alert`) |
| **Outbox (optional)** | `OUTBOX_DISPATCH_ENABLED` (only `false` has an effect; enabling is decided by the worker role), `OUTBOX_POLL_INTERVAL_MS`, `OUTBOX_BATCH_SIZE`, `OUTBOX_MAX_ATTEMPTS`, `OUTBOX_PARTITION_CONCURRENCY` |
| Category | Keys |
| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Server** | `NODE_ENV`, `PORT`, `BACKEND_BASE_URL`, `FRONTEND_BASE_URL` (comma-separated list; every entry becomes a non-production CORS origin and the first entry is the default post-login redirect), `APP_ROLE` (`api`, `ws`, `worker`; default `api`), `TRUST_PROXY_HOPS` |
| **Database** | `DATABASE_URL` |
| **Redis (required)** | `REDIS_URL`. Used for the auth blacklist and Subscription PubSub. If `maxmemory` is set, the policy must be `noeviction`; otherwise the worker detects it, raises an alert, and auth falls back to the database |
| **RabbitMQ (required)** | `RABBITMQ_URL`. The event backbone from the outbox relay to consumers |
| **JWT / Auth** | `JWT_PRIVATE_KEY_PEM_B64` (or `JWT_PRIVATE_KEY_PATH`) is the RS256 signing key and is required in production. `JWT_PUBLIC_KEY_PEM_B64` is derived from the private key when omitted. Also `JWT_ISSUER`, `JWT_AUDIENCE`, `JWT_ACCESS_EXPIRES_SECONDS`, `AUTH_REFRESH_EXPIRES_DAYS`, `AUTH_COOKIE_*` |
| **OIDC** | `OIDC_GOOGLE_CLIENT_ID`, `OIDC_GOOGLE_CLIENT_SECRET`, `OIDC_GOOGLE_ISSUER_URL`, `OIDC_KAKAO_CLIENT_ID`, `OIDC_KAKAO_CLIENT_SECRET`, `OIDC_KAKAO_ISSUER_URL`, `OIDC_TEMP_COOKIE_MAX_AGE_MS` |
| **AWS S3** | `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` (IAM user `caquick-app`, media put/get only), `AWS_REGION`, `AWS_S3_BUCKET` (required in production), `S3_PRESIGN_EXPIRES_SECONDS` |
| **Account encryption** | `ACCOUNT_ENCRYPTION_KEYS` (keys for refund and settlement account numbers, comma-separated like `k2:<base64 32 bytes>,k1:<base64 32 bytes>`; the first key encrypts). Required in production — boot fails if missing or malformed; non-production falls back to a fixed development key with a warning. Backup and rotation in [`infra/runbook.md`](./infra/runbook.md) |
| **Docs · Metrics** | `DOCS_ACCESS_TOKEN` (access token for `/gql-docs` and `/rest-docs`, required in production), `METRICS_ACCESS_TOKEN` (Bearer token for `/metrics`, required in production) |
| **Alerts (optional)** | `DISCORD_ALERT_WEBHOOK_URL` (log-only when unset), `ALERT_DEDUPE_WINDOW_MS` (default 5 minutes), `BOOT_ALERT_STATE_DIR` (suppression files for boot-failure alerts, default `~/.caquick/boot-alert`) |
| **Outbox (optional)** | `OUTBOX_DISPATCH_ENABLED` (only `false` has an effect; enabling is decided by the worker role), `OUTBOX_POLL_INTERVAL_MS`, `OUTBOX_BATCH_SIZE`, `OUTBOX_MAX_ATTEMPTS`, `OUTBOX_PARTITION_CONCURRENCY` |

### Common Scripts

| Command | Purpose |
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `yarn validate:push` | run by the pre-push hook: lint, tsc, dto:check, docs:check, arch:check, and test:scripts in full, plus only the Jest specs the change reaches (`test:push`) |
| `yarn validate` | the static checks above plus the full test:cov (manual full check); on the production Mac mini, run heavy test commands one at a time |
| `yarn test [path]` | Jest integration tests against a real database (Docker required) |
| `yarn test:scripts` | infrastructure and workflow specs (`scripts/*.spec.ts`) |
| `yarn test:push` | picks the Jest scope (full, related specs, or none) from changes against the base commit (`origin/develop` merge-base); `--dry-run` prints the plan only |
| `yarn graphql:codegen` | generates TypeScript types from the SDL |
| `yarn dto:check` | verifies SDL inputs and DTO classes are in sync |
| `yarn docs:check` | verifies SDL description coverage |
| `yarn arch:check` | checks layer direction and cycles with dependency-cruiser |
| `yarn prisma:migrate:dev` | creates and applies a migration, then regenerates the client |
| `yarn graphql:docs` | builds the SpectaQL HTML docs into `public/` |
| `yarn outbox:requeue` | resets FAILED outbox events to PENDING in production (`--id=<n>`, `--event-type=<type>`, `--all`); events stuck in a consumer DLQ are republished with `--event-id=<uuid> --republish` |
| Command | Purpose |
| ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `yarn validate:push` | run by the pre-push hook: lint, tsc, dto:check, docs:check, arch:check, and test:scripts in full, plus only the Jest specs the change reaches (`test:push`) |
| `yarn validate` | the static checks above plus the full test:cov (manual full check); on the production Mac mini, run heavy test commands one at a time |
| `yarn test [path]` | Jest integration tests against a real database (Docker required) |
| `yarn test:scripts` | infrastructure and workflow specs (`scripts/*.spec.ts`) |
| `yarn test:push` | picks the Jest scope (full, related specs, or none) from changes against the base commit (`origin/develop` merge-base); `--dry-run` prints the plan only |
| `yarn graphql:codegen` | generates TypeScript types from the SDL |
| `yarn dto:check` | verifies SDL inputs and DTO classes are in sync |
| `yarn docs:check` | verifies SDL description coverage |
| `yarn arch:check` | checks layer direction and cycles with dependency-cruiser |
| `yarn prisma:migrate:dev` | creates and applies a migration, then regenerates the client |
| `yarn graphql:docs` | builds the SpectaQL HTML docs into `public/` |
| `yarn outbox:requeue` | resets FAILED outbox events to PENDING in production (`--id=<n>`, `--event-type=<type>`, `--all`); events stuck in a consumer DLQ are republished with `--event-id=<uuid> --republish` |
| `yarn accounts:reencrypt` | after rotating the account encryption key, re-encrypts refund and settlement account numbers that use a non-first key; prints the target counts first, `--dry-run` prints only the counts |

## 🧬 GraphQL

Expand Down
Loading
Loading