Skip to content

Admin web insurance item form redesign for category/coverage/period #140

Description

@tkdgusqkr

Scope

보험 항목 등록/수정 폼을 카테고리(PRIMARY/ADDON)·보장유형(GENERAL_PAID_TRANSPORT/LIABILITY_PAID_TRANSPORT/HOURLY/ONE_DAY/OTHER)·기본 기간 단위/값 입력에 맞춰 재설계한다. 백엔드 Slice B 의 어드민 UI 마무리.

Included:

  • ServiceOpsInsuranceItem / InsuranceItemCreateInput / UpdateInput 타입 확장 — category, coverageType, defaultDurationUnit, defaultDurationValue.
  • frontend types/domain 확장.
  • InsuranceItemForm 재설계:
    • 카테고리 select (PRIMARY / ADDON).
    • 보장유형 select (5종).
    • 기본 기간 단위 + 값 (옵션, 둘 다 비어있거나 둘 다 있어야 함).
  • payload mapper 카테고리/보장유형/기본 기간 처리 + half-supplied duration 거부.
  • 단건 상세 페이지 (`/insurance/items/{id}`) 가 새 필드 노출.

Excluded:

  • 라이더-보험 폼 자체 변경 (별도 슬라이스).
  • ADDON 다중 발급 정책 변경.

Acceptance criteria

  • 폼이 카테고리·보장유형·기본 기간 단위/값을 입력 받는다.
  • 단위와 값 둘 다 비어있거나 둘 다 입력되어야 한다 (한쪽만 있으면 거부).
  • 단건 상세 페이지에 카테고리/보장유형/기본 기간 row 가 노출된다.
  • legacy create 페이로드 (name/description/enabled 만) 도 그대로 동작.
  • `npm run lint` / `npx tsc --noEmit` / `npm run test:service-ops` / `npm run build` 통과.

Trace

Concurrent work gate

Decision: allowed-with-non-overlap
Evidence:

  • Open target issues: none.
  • Open target PRs: none.
  • Active branches: dev, main.
    Reason: front-admin-web 만 변경.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions