[크레딧통합 PR5] 뷰/UI 통합 + i18n + diagnosis_balance 컬럼 제거
ID: de48079b-1191-412e-93b5-8e57d0dbcafb
## 설명
모든 뷰에서 진단 크레딧 관련 UI를 제거하고 단일 크레딧 표시로 통합합니다. diagnosis_balance 컬럼도 최종 제거합니다.
### 변경 내용 (뷰 11개)
1. `diagnosis_credits/new.html.erb` — 삭제
2. `credits/index.html.erb` — 2열 그리드 → 단일 잔액 카드, credit_type 뱃지 단순화
3. `diagnoses/index.html.erb` — diagnosis_credit 관련 표시/링크 통합
4. `diagnoses/_diagnosis_type_card.html.erb` — 크레딧 안내 변경
5. `diagnoses/_insufficient_credits.html.erb` — 메시지 통합 ("0.2 크레딧 필요")
6. `admin/users/show.html.erb` — 진단/리포트 분리 표시 → 단일 크레딧
7. `shared/_sidebar.html.erb` — "NR"+"D" 2개 뱃지 → 단일 뱃지
8. `workspaces/members/_gift_modal.html.erb` — 3종 → "credit"(1크레딧) + career_points
9. `report_credits/new.html.erb` — "크레딧 구매"로 텍스트 통합
### 기타
- `diagnosis_credit_purchase_controller.js` — 삭제
- `credits_helper.rb` — credit_type 관련 메서드 단순화
- i18n 4개 언어: diagnosis_credits 키 제거, 통합 메시지
- `db/migrate/YYYYMMDD_remove_diagnosis_balance.rb` — 컬럼 최종 제거
- `UserCredit`에서 `ignored_columns` 제거
## 완료 기준
- [ ] 모든 뷰에서 단일 크레딧 잔액만 표시
- [ ] diagnosis_credits 뷰/JS 삭제됨
- [ ] 사이드바 단일 뱃지 표시
- [ ] 선물 모달 "credit" + "career_points" 2종만 표시
- [ ] i18n 4개 언어 정리 완료
- [ ] diagnosis_balance 컬럼 DB에서 제거됨
- [ ] bin/ci 통과
## 의존성
PR4 (컨트롤러 통합) 완료 후
## 관련 파일
- `app/views/diagnosis_credits/` — 삭제
- `app/views/credits/index.html.erb`
- `app/views/diagnoses/index.html.erb`, `_diagnosis_type_card.html.erb`, `_insufficient_credits.html.erb`
- `app/views/admin/users/show.html.erb`
- `app/views/shared/_sidebar.html.erb`
- `app/views/workspaces/members/_gift_modal.html.erb`
- `app/javascript/controllers/diagnosis_credit_purchase_controller.js` — 삭제
- `app/helpers/credits_helper.rb`
- `config/locales/{ko,en,zh,vi}.yml`, `diagnosis/*.yml`
첨부 이미지
이미지 추가 (Ctrl+V로 붙여넣기 또는 클릭)
JPEG, PNG, GIF, WebP / 최대 10MB
활동 로그
-
팀팀리드 상태 변경: 진행 중 → 리뷰
2026년 03월 30일 12:05:18
-
팀팀리드 티켓 클레임 완료
2026년 03월 30일 11:54:03
-
팀팀리드 상태 변경: 할 일 → 백로그
2026년 03월 30일 11:35:39