0028 P1 — 케어 리포트 서버: 발행·전화번호 HMAC 자동 연결·뷰어 - #121
Merged
Conversation
'업체가 보호자에게 보내는 순간의 독점' 첫 도구(미용 전후 사진) 서버 전체:
- app.care_reports(P2 알림장 공용 원형) + app.care_config(HMAC 키 싱글턴,
key_version 선점) + 인덱스 3종
- create_care_report: has_license('grooming') 게이트, 사진 1~4장, 전화번호
**선택 입력**(형식 오류는 invalid_phone 명시 거부), share_links 30일 토큰
+ funnel report_issued
- claim_care_reports: 인증 번호 HMAC 대조 자동 연결(경로 무관) — 연결 시
hmac 즉시 파기·도착 알림(system_notice)·funnel claim, 자기 발행 자기
연결 방지, 첫 claim 후 잠금
- my_care_reports(수령자 표시)/my_received_care_reports
- share-view v8: care_report 렌더(전/후 배지 사진 그리드 + '기록 모아보기'
CTA), 미연결 hmac 30일 크론 파기(care-report-hmac-purge 03:58)
- 0028 5차 개정(전화번호 선택 입력·v1 claim 범위), pgTAP t12 9케이스
(t11) — 전 스위트 운영 DB 통과, 운영 적용·뷰어 렌더 검증 완료
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
내용 (P1 미용 전후 사진 — 서버 전체. 앱 UI 는 후속 PR)
스키마
app.care_reports— P2 알림장과 공용 원형(kind grooming/boarding, photos jsonb 1~4, body 확장 필드).recipient_phone_hmac(선택)·recipient_key_version·claimed 잠금app.care_config— HMAC 키 싱글턴(push_config 패턴),key_version무마이그레이션 로테이션 선점(0028 §10-3)RPC
create_care_report[SD] —has_license('grooming')게이트(P0 라이선스 첫 실사용), 전화번호는 선택 입력(0028 5차 개정 — 워크인·미보유 업장 현실 반영, 형식 오류는invalid_phone명시 거부),share_links30일 토큰 + funnelreport_issuedclaim_care_reports[SD] — 가입/앱 시작 시 호출: 인증 번호 HMAC 대조로 대기 리포트 자동 연결(설치 경로 무관). 연결 시 hmac 즉시 파기 + 도착 알림 + funnelclaim. 자기 발행 자기 연결 방지, 첫 claim 후 잠금my_care_reports(발행 목록 — 수령자 닉네임 표시로 오연결 발견 가능) /my_received_care_reports(보호자 받은 목록)care-report-hmac-purge03:58)뷰어 (share-view v8)
care_report분기 실장 — "◯◯의 미용 기록" + 업체 상호·날짜·메모 + 사진(1장 풀폭 4:3 / 2장 전·후 배지 그리드) + "앱에서 기록 모아보기 · 가입하면 다음 기록은 자동으로 도착해요" CTA검증
t119케이스: 라이선스 게이트 / 발행+토큰+계측 / 번호 형식 거부 / 자동 연결 / hmac 파기 / 알림 / 재claim 잠금 — 전 스위트 운영 DB 통과후속
앱 UI(발행 화면·발행 목록·받은 기록 화면·앱 시작 시 claim 호출) — 다음 PR
🤖 Generated with Claude Code