Skip to content

feat(funding): split funding candidates into policy funds and support programs - #39

Merged
jhjh0512 merged 3 commits into
mainfrom
feat/5-candidate-branches
Sep 29, 2026
Merged

jhjh0512 merged 3 commits into
mainfrom
feat/5-candidate-branches

Conversation

@jhjh0512

Copy link
Copy Markdown
Contributor

Refs #5

#38 위에 쌓은 PR이다. 지원 유형 UNKNOWN(유형 미확인)을 쓰므로 base를 #38의 branch로 두었다. #38이 병합되고 그 branch가 지워지면 GitHub가 base를 main으로 바꾼다. 그 뒤 main을 합쳐 diff를 정리한다. #38보다 먼저 병합하지 않는다.

변경 내용

ADR 0006 후속 5번이다. 자금 후보 결과를 정책자금과 지원사업 두 갈래로 나눠 보여 준다(ADR 0006 1절). 자동 상품에는 "자동 확인" 표시를 붙인다(7절).

  • 갈래 (types.ts의 fundingBranch)
    • 저장하지 않고 지원 유형에서 정한다.
    • LOAN·GUARANTEE는 정책자금(POLICY_FUND), GRANT·SPACE·PROGRAM은 지원사업(SUPPORT_PROGRAM)이다.
    • 지원 유형 UNKNOWN(기업마당 공고)은 어느 쪽으로도 추측하지 않고 유형 미확인(UNCLASSIFIED)으로 둔다.
  • 후보 API 응답: 기존 필드는 그대로 두고 다음을 더했다.
    • 상품별 branch
    • 상품별 automation: 자동 상품의 출처, 출처 이름, 마지막 성공 확인일. 사람이 기록한 상품은 null이다.
    • 갈래별 상태 개수 summaryByBranch
  • 결과 화면 (FundingCandidatesPanel.tsx, /funding과 계획 화면 공통)
    • 갈래 요약 카드: 갈래별 검토 후보 수와 전체 수를 보여 주고, 누르면 해당 갈래로 이동한다.
    • 갈래 섹션은 정책자금, 지원사업 순이다. 섹션마다 상태별 개수와, 상품이 있는 상태의 목록만 보여 준다. 유형 미확인 섹션은 그런 공고가 있을 때만 나온다.
    • 자동 상품 카드: "자동 확인" 배지와, 출처 확인이 최신인지 끊겼는지, 출처, 마지막 확인일, "원 공고 열기" 링크를 보여 준다. 사람 검수 줄("검수 최신")은 보여 주지 않는다.
    • 후보 0건 안내와 카탈로그 없음·오류 안내는 그대로다. 대출 가정 적용 버튼 규칙도 그대로다.
  • 문서
    • docs/PRODUCT.md: 자금 후보 행을 두 갈래로 나눴다. 제외 범위의 "자동 공고 해석"을 "AI 기반 공고 해석"으로 좁혔다(ADR 0006 8·9절).
    • docs/domains/funding.md: 갈래 규칙, 응답 필드, 결과 화면.

검증

위험·후속

  • API: 응답에 필드만 더했고, 기존 필드는 바뀌지 않았다. DB·스키마 변경은 없다.
  • 화면: 전체 상태별 개수 줄 대신 갈래 요약과 갈래별 개수를 보여 준다. 전체 상품 수는 판정 기준 카드의 "상품 수"에 남아 있다.
  • 알려진 한계: 기업마당 공고가 많으면 유형 미확인 섹션이 길어진다. 정책자금 섹션을 먼저 보여 주고, 요약 링크로 이동할 수 있게 해서 줄였다.

🤖 Generated with Claude Code

https://claude.ai/code/session_015LCE4DgT5qdHP8y8V5qtbL


Generated by Claude Code

Add the Bizinfo (기업마당) Open API collector to funding:sync. Notices
tagged 소상공인 or 창업벤처 in Seoul or without a region signal become
automated products that stay NEEDS_CONFIRMATION until a person reviews
them (ADR 0006 sections 1-2).

- Add supportType UNKNOWN (catalog and Prisma enum, new migration) and
  treat an empty eligibleBusinessStages as an unconfirmed stage, so the
  collector records what Bizinfo does not tell us without guessing.
- Bump the catalog schema to funding-catalog-v1.2.0 and keep reading
  v1.0.0 and v1.1.0 releases.
- Hold discovery-only sources out of current candidates even when the
  policy loan switch is on.
- Report notices that were not in the previous ACTIVE release, and mask
  BIZINFO_API_KEY in every error and CLI line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015LCE4DgT5qdHP8y8V5qtbL
… programs

Show the candidate results in two branches as ADR 0006 section 1 asks:
policy funds (LOAN, GUARANTEE) and support programs (GRANT, SPACE,
PROGRAM). Notices whose support type is UNKNOWN are not guessed into
either branch and appear in a separate "유형 미확인" section only when
there are any.

- Add branch and automation (source, label, last successful check) to
  each evaluation and per-branch status counts to the candidate list.
  The branch is derived from supportType and never stored.
- Render a branch overview and one section per branch with its status
  counts and non-empty status groups on /funding and the plan screen.
- Mark automatically collected products with "자동 확인", their source
  and last confirmation date instead of the human review line (ADR 0006
  section 7).
- Split the funding row in PRODUCT.md and narrow the exclusion to
  AI-based notice interpretation (ADR 0006 sections 8 and 9).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015LCE4DgT5qdHP8y8V5qtbL
Base automatically changed from feat/5-bizinfo-discovery to main September 29, 2026 09:34
…ches

main의 #38 squash 커밋은 이 브랜치의 835420d와 내용이 같다. 이 브랜치가 그 위에 #39 변경을 더했으므로 이 브랜치 쪽 내용을 그대로 둔다.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jhjh0512
jhjh0512 merged commit b78d816 into main Sep 29, 2026
1 check passed
@jhjh0512
jhjh0512 deleted the feat/5-candidate-branches branch September 29, 2026 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants