Repository navigation
refactor(core): 새 비밀번호 규칙을 core:domain 으로 올린다 (#2191) - #2193
Merged
Merged
Conversation
설정의 SettingPasswordRule 은 온보딩 OnboardingPasswordRule 과 정규식이 같은 사본이었다. 규칙을 core:domain 의 NewPasswordRule 하나로 두고 설정이 그것을 쓴다. 경계값 테스트는 온보딩·설정 두 벌의 사례를 합쳐 core 로 옮겼다. 온보딩 전환은 #2192.
Base automatically changed from
fix/2083-password-change-destination
to
develop
September 27, 2026 13:18
설정의 규칙 안내는 온보딩 internal PasswordRuleItem 을 다시 그린 Text 와 온보딩 문구의 사본이었다. 안내 줄 부품을 core:ui PasswordRuleItem 으로, 문구를 core_ui_password_rule_combination 으로 올리고 설정이 그것을 쓴다. 설정 화면의 규칙 줄에 온보딩 시안과 같은 불릿이 생긴다. 온보딩 전환은 #2192.
Sadturtleman
approved these changes
Oct 4, 2026
Sadturtleman
left a comment
Collaborator
There was a problem hiding this comment.
정규식이 기존 설정 사본과 동일하고 경계값 테스트도 core 로 옮겨진 것을 확인했습니다. 승인합니다.
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.
먼저 볼 파일:
core/domain/.../auth/NewPasswordRule.kt,core/ui/.../auth/PasswordRuleItem.kt,feature/setting/.../password/PasswordChangeContent.kt입니다.Closes #2191
무엇을
core:domain에 새 비밀번호 규칙NewPasswordRule을 둔다. 정규식은 BEPasswordValidation.REGEX그대로이고, 온보딩OnboardingPasswordRule·설정SettingPasswordRule과 한 글자도 다르지 않다.SettingPasswordRule을 지운다.NewPasswordRuleTest로 옮겼다. 설정 ViewModel 테스트에 있던 규칙 단언 두 건은 규칙 단위 테스트라 core 로 갔다.PasswordRuleItem(불릿 + 문구, 충족 여부로 b1/gray5)을 core:ui 공개 컴포저블로, 안내 문구를core_ui_password_rule_combination으로 두고 설정이 쓴다. 설정 화면의 규칙 줄에 온보딩 시안(2383:16789)과 같은 불릿이 생기는 것이 유일한 화면 변화다. 실패 문구(1206, 네트워크)는 모듈마다 자기 실패 문구를 갖는 관례라 옮기지 않았다.왜
#2094 가 설정에 사본을 만들었다. 온보딩 객체가 모듈
internal이고 담당이 달라서였는데, core 로 올려 설정부터 쓰는 데는 온보딩을 건드릴 필요가 없었다. 서버가 상수 하나를 가입·변경·찾기 세 요청에 거는 것처럼 클라도 정본을 하나로 둔다.범위 밖
온보딩이 core 규칙으로 갈아타고 사본을 지우는 일은 #2192(onboarding 담당)로 뗐다. 그 이슈는 이 이슈에 blocked_by 로 걸려 있다.
검증
:core:domain:test,:feature:setting:presentation:testDebugUnitTest, 두 모듈 ktlintCheck 통과:app:compileDebugUnitTestKotlin,:konsist:test --rerun-tasks(54건) 통과{8,15}를{8,16}으로 바꾸면NewPasswordRuleTest가 실패한다CI Test Plan
{"androidTest": {"mode": "none", "reason": "도메인 규칙 객체 이동과 설정 UiState 의 참조 교체뿐이다. 화면·네비게이션·계측 테스트 파일을 바꾸지 않고, 판정은 JVM 유닛 테스트 NewPasswordRuleTest 가 지킨다."}}