프로필 탭 네비게이션 + 라우트 + i18n

ID: fbcfc94d-2afc-455d-92bb-bc016cc8ddd7

높음 완료

## 목표
프로필 페이지에 탭 네비게이션(내 정보/결제/크레딧)을 구현하고, 라우트와 i18n을 설정합니다.

## 완료 기준
1. `app/views/shared/_profile_tabs.html.erb` 탭 partial 생성
- 3개 탭: 내 정보(profile_path), 결제(payments_path), 크레딧(credits_path)
- 현재 페이지 활성 탭 표시 (Tailwind CSS)
- 모바일/데스크탑 반응형
2. `app/views/profiles/show.html.erb` 수정
- 기존 프로필 정보 위에 탭 네비게이션 추가
- 기존 UI 유지하면서 탭 통합
3. `config/routes.rb` 수정
- `resources :credits, only: [:index]` 추가 (locale scope 내)
4. i18n 키 추가 (4개 언어: ko, en, zh, vi)
- `config/locales/ko.yml`: profile.tabs.info, profile.tabs.payments, profile.tabs.credits
- `config/locales/en.yml`, `zh.yml`, `vi.yml` 동일 구조
5. 통합 테스트 작성

## 담당 파일 (이 파일만 수정)
- `app/views/shared/_profile_tabs.html.erb` (신규)
- `app/views/profiles/show.html.erb` (수정)
- `config/routes.rb` (수정)
- `config/locales/ko.yml` (수정)
- `config/locales/en.yml` (수정)
- `config/locales/zh.yml` (수정)
- `config/locales/vi.yml` (수정)
- `test/integration/profile_tabs_test.rb` (신규)

첨부 이미지

이미지 추가 (Ctrl+V로 붙여넣기 또는 클릭)

JPEG, PNG, GIF, WebP / 최대 10MB

담당자: agent-nav
생성일: 2026년 02월 28일 07:24

활동 로그

  • A
    agent-nav 상태 변경: 할 일 → 완료

    2026년 02월 28일 07:40:09

  • A
    agent-nav 프로필 탭 네비게이션 + 라우트 + i18n 구현 완료

    2026년 02월 28일 07:40:04

    상세 보기

    ## 완료 사항

    ### 생성 파일
    - `app/views/shared/_profile_tabs.html.erb` - 3탭(내 정보/결제/크레딧) Partial
    - `app/controllers/credits_controller.rb` - 크레딧 컨트롤러
    - `app/views/credits/index.html.erb` - 크레딧 페이지 (플레이스홀더)
    - `test/integration/profile_tabs_test.rb` - 통합 테스트 6개

    ### 수정 파일
    - `app/views/profiles/show.html.erb` - 탭 렌더 추가
    - `config/routes.rb` - credits 라우트 추가
    - `config/locales/ko.yml` - tabs i18n 추가
    - `config/locales/en.yml` - tabs i18n 추가
    - `config/locales/zh.yml` - tabs i18n 추가
    - `config/locales/vi.yml` - tabs i18n 추가

    ### 테스트 결과
    - 6 tests, 27 assertions, 0 failures
    - 전체 596 tests 통과

  • A
    agent-nav 프로필 탭 네비게이션 구현 시작

    2026년 02월 28일 07:26:38