-
Notifications
You must be signed in to change notification settings - Fork 1
[#327] 닉네임 규칙 시스템 개선 #348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#327] 닉네임 규칙 시스템 개선 #348
Conversation
Summary of ChangesHello @Hrepay, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! 이 PR은 닉네임 유효성 검사 시스템을 대폭 개선합니다. 중앙 집중식 유효성 검사 로직과 금칙어 관리를 도입하고, Combine 프레임워크를 활용하여 실시간으로 사용자에게 상세한 UI 피드백을 제공합니다. 이를 통해 닉네임 설정 과정의 사용자 경험을 향상시키고 데이터 무결성을 강화하는 것을 목표로 합니다. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. 닉네임 새 규칙, 실시간 검증 흐름, 사용자 미소 짓네. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
이 PR은 닉네임 유효성 검사 시스템을 개선하고, 금지어 목록을 관리하며, 실시간 유효성 검사 및 UI 피드백 기능을 구현했습니다. 코드 변경 사항을 검토한 결과, 몇 가지 개선할 부분이 있습니다.
| static let profanityWords: [String] = [ | ||
| "시발", "씨발", "ㅅㅂ", | ||
| "병신", "ㅂㅅ", | ||
| "개새끼", "ㄱㅅㄲ", | ||
| "존나", "ㅈㄴ", | ||
| "fuck", "shit", "bitch" | ||
| // 필요시 추가 | ||
| ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
임시로 넣어둔 항목으로 추후 변경될 예정입니다.
#️⃣ 관련 이슈
Resolved #327
💡작업 내용
닉네임 유효성 검사 시스템 개선
NicknameValidator.swift파일을 추가하여 닉네임 유효성 검사 규칙(길이, 공백, 허용 문자, 연속 특수문자, 이모지, 숫자 전용, 금칙어 등)을 중앙에서 관리하도록 개선했습니다.NicknameBannedWords.swift파일을 추가하여 시스템, 서비스, 비속어 등 금칙어를 체계적으로 정의하고 검사하는 로직을 구현했습니다.NicknameTextFieldResultType열거형(enum)을 확장하여,invalidLength,bannedWord등 세분화된 유효성 검사 결과에 따라 구체적인 힌트 메시지, 텍스트 색상, 테두리 색상을 반환하도록 수정했습니다.SetNickNameViewController에 Combine을 도입하여, 디바운스(debounced)가 적용된 실시간 닉네임 유효성 검사 및 UI 피드백 기능을 구현하고 기존 로직을 제거했습니다.SetNickNameView의 UI 피드백 로직을 새로운 결과 타입과 테두리 색상을 사용하도록 업데이트하고, 불필요한 유효성 검사 메서드를 삭제했습니다.TextLiteral.swift의 힌트 메시지를 변경된 닉네임 길이 요구사항에 맞게 수정했습니다.💬리뷰 요구사항(선택)