Skip to content

feat: 계정 아이디에 영문 대문자 허용 - #73

Merged
chanwoo7 merged 2 commits into
developfrom
feat/username-allow-uppercase
Oct 8, 2026
Merged

chanwoo7 merged 2 commits into
developfrom
feat/username-allow-uppercase

Conversation

@chanwoo7

@chanwoo7 chanwoo7 commented Oct 8, 2026

Copy link
Copy Markdown
Member

요약

  • 관리자·판매자 계정 생성 폼에서 아이디에 영문 대문자를 허용합니다. BE #526(운영 반영: 릴리즈 #527)과 같은 규칙입니다.
    • 정규식: [a-z0-9._-]{4,80} → [A-Za-z0-9._-]{4,80}(create-admin-schema·create-seller-schema)
    • 오류 문구: "영문 소문자" → "영문"
  • 두 폼의 아이디 도움말에 "로그인할 때 대소문자는 구분하지 않습니다."를 덧붙였습니다.
    • BE는 입력한 대소문자 그대로 저장하되, 로그인과 중복 판정은 대소문자를 구분하지 않습니다.
    • 그래서 Ops.Admin이 있으면 ops.admin은 기존 USERNAME_TAKEN 처리로 막힙니다.
  • BE SDL 스냅샷을 main(b3fe44f) 기준으로 동기화했습니다(별도 커밋).
    • 생성 타입은 두 input의 username 설명만 바뀌었습니다.
    • 스냅샷에는 그동안 반영되지 않은 판매자 앱용 SDL 추가분도 함께 들어오지만, 관리자 FE 문서가 쓰지 않아 생성물에는 영향이 없습니다.

테스트

  • createAdminSchema: 대문자 아이디 허용, 허용 외 문자(@) 거절 케이스를 추가했습니다.
  • createSellerSchema: 대문자 거절 케이스를 허용 외 문자 거절로 바꾸고, 대문자 아이디를 입력 그대로 보내는 케이스를 추가했습니다.
  • admins 페이지 spec의 오류 문구를 맞췄습니다.
  • 반증: 정규식만 되돌리면 대문자 허용 케이스 2건이 실패합니다.
  • pnpm validate(pre-push)를 통과했습니다.

플랜 대조

플랜 03 불릿 상태
정규식 2곳 [A-Za-z0-9._-]{4,80} 한 것
오류 문구 2곳 "영문" 한 것
도움말 2곳에 대소문자 무관 안내 한 것
schema:pull(main, BE 릴리즈 뒤) → codegen, 바뀐 부분 커밋 한 것
스키마 spec 2개: 대문자 허용, Lumi 케이스 이동 한 것
admins.spec·sellers.spec 문구 맞춤 한 것: sellers.spec은 아이디 오류 문구를 검사하지 않아 바꿀 곳이 없었습니다.
pnpm validate → PR → 머지 게이트 → develop 머지 진행 중

BE #526과 같은 규칙으로 관리자·판매자 생성 폼의 아이디 검증을 완화함.

- 정규식: [a-z0-9._-]{4,80} → [A-Za-z0-9._-]{4,80}(create-admin-schema·create-seller-schema)
- 오류 문구: "영문 소문자" → "영문"
- 도움말: 로그인할 때 대소문자를 구분하지 않는다는 안내 추가(BE 컬럼 정렬이 ci라 대소문자만 다른 아이디는 같은 아이디로 봄)

테스트
- createAdminSchema: 대문자 아이디 허용, 허용 외 문자(@) 거절 케이스 추가
- createSellerSchema: 대문자 거절 케이스를 허용 외 문자로 교체, 대문자 아이디를 입력 그대로 보내는 케이스 추가
- admins 페이지: 바뀐 오류 문구로 맞춤
BE 릴리즈 #527(main b3fe44f) 기준 schema:pull → codegen.

- 생성 타입 변경: AdminCreateAdminInput·AdminCreateSellerInput.username 설명(영문 대소문자 허용)만
- 스냅샷에는 그동안 반영 안 된 판매자 앱용 SDL 추가분도 함께 들어옴(관리자 FE 문서가 쓰지 않아 생성물 영향 없음)
@coderabbitai

coderabbitai Bot commented Oct 8, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: CaQuick/caquick-admin-fe/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 70953cb3-0f73-4d40-bf22-c3671410522d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T01:57:33.882952Z 0dd12e5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 96.07% (🎯 96%)
🟰 ±0%
2447 / 2547
🟢 Statements 95.54% (🎯 95%)
🟰 ±0%
2680 / 2805
🟢 Functions 94.29% (🎯 94%)
🟰 ±0%
1008 / 1069
🟢 Branches 88.07% (🎯 88%)
🟰 ±0%
2017 / 2290
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/features/account/create-admin-schema.ts 100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
src/features/account/components/create-admin-dialog.tsx 95.23%
🟰 ±0%
83.33%
🟰 ±0%
83.33%
🟰 ±0%
95.23%
🟰 ±0%
140
src/features/sellers/create-seller-schema.ts 100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
src/features/sellers/components/create-seller-form.tsx 100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
Generated in workflow #150 for commit 0dd12e5 by the Vitest Coverage Report Action

@codecov

codecov Bot commented Oct 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@chanwoo7
chanwoo7 merged commit e1887ed into develop Oct 8, 2026
15 checks passed
@chanwoo7
chanwoo7 deleted the feat/username-allow-uppercase branch October 8, 2026 01:58
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.

1 participant