Skip to content

fix: 감상평 입력시 0 페이지 입력 validation 추가#170

Merged
easyhooon merged 2 commits intodevelopfrom
BOOK-297-fix/#169
Aug 25, 2025
Merged

fix: 감상평 입력시 0 페이지 입력 validation 추가#170
easyhooon merged 2 commits intodevelopfrom
BOOK-297-fix/#169

Conversation

@easyhooon
Copy link
Copy Markdown
Contributor

@easyhooon easyhooon commented Aug 24, 2025

🔗 관련 이슈

📙 작업 설명

  • 선행 0 입력되는 어떠한 경우는 입력에서 제거
  • 앱 버전 업데이트 (1.1.1 -> 1.1.2)

🧪 테스트 내역 (선택)

  • 주요 기능 정상 동작 확인
  • 브라우저/기기에서 동작 확인
  • 엣지 케이스 테스트 완료
  • 기존 기능 영향 없음

📸 스크린샷 또는 시연 영상 (선택)

💬 추가 설명 or 리뷰 포인트 (선택)

  • 수량이나, 금액등이 아니라 책의 페이지인 관계로 선행 0 입력은 어느경우에나 지우는게 맞기에 제거되도록 했습니다

Summary by CodeRabbit

  • 신규 기능
    • 해당 없음
  • 버그 수정
    • 숫자 전용 입력에서 선행 0이 일관되게 제거되도록 수정했습니다. 이제 "0"은 빈 값으로 처리되고, "01"은 "1"로 표시됩니다. 빈 입력과 선행 0이 없는 숫자의 동작은 그대로 유지됩니다. 잘못된 0 표시를 방지하여 입력 정확성을 높였습니다.
  • 작업
    • 앱 버전을 1.1.2(코드 6)로 업데이트하고, minSdk 28 및 target/compile SDK 35로 상향했습니다. 사용자는 별도 조치 없이 최신 환경을 이용할 수 있습니다.

가격이나 수량등을 위한 숫자 입력 패턴이 아닌, 책 페이지 입력이므로 선행 0은 어느 경우에나 제거하는게 맞음
versionName: 1.1.1 -> 1.1.2
versionCode: 5 -> 6
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Aug 24, 2025

Walkthrough

숫자-only 입력 변환 로직에서 단일 "0"을 더 이상 허용하지 않고 선행 0으로 간주해 공백으로 정리하도록 변경. Gradle 버전 카탈로그에서 앱 설정 버전/SDK 값을 1.1.2(코드 6), target/compileSdk 35로 갱신.

Changes

Cohort / File(s) Summary
Input transformation logic
core/designsystem/src/main/kotlin/com/ninecraft/booket/core/designsystem/component/textfield/InputTransformation.kt
digitOnlyInputTransformation의 분기에서 "0" 특례 제거. 이제 "0"startsWith("0") 경로로 처리되어 빈 문자열로 정규화. 그 외 동작 동일.
Build config bump
gradle/libs.versions.toml
App 설정 갱신: minSdk 28, target/compileSdk 35, versionName 1.1.2, versionCode 6, packageName 유지. 이전 1.1.1/5 항목 제거.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor User as User
  participant TF as TextField
  participant IT as digitOnlyInputTransformation
  participant VM as ViewModel/Validator

  User->>TF: 입력("0" / "01" / "123")
  TF->>IT: onTextChanged(raw)
  alt raw == "0" or startsWith("0")
    IT-->>TF: ""
  else raw is non-leading-zero digits
    IT-->>TF: raw
  end
  TF->>VM: 제출 값(정규화된 문자열)
  VM-->>User: 검증 결과(빈 값이면 미입력 취급)
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Assessment against linked issues

Objective Addressed Explanation
감상평 입력 시 0페이지 입력 방지 추가 (#169) 해당 입력 필드가 본 변환을 사용하고 빈 문자열을 미입력으로 처리하는지 불확실. 명시적 검증 로직 추가 여부도 확인 불가.

Assessment against linked issues: Out-of-scope changes

Code Change Explanation
앱 버전/SDK 업데이트 (gradle/libs.versions.toml) 링크된 이슈는 0페이지 입력 방지와 관련. 버전/SDK 상향은 요구사항에 포함되지 않음.

Poem

새싹 숫자 톡, “0”은 퐁 하고 사라져요—
깡총, 규칙을 따라 빈칸만 남겨둬요.
페이지는 한 장부터, 당근 약속이죠! 🥕
버전도 업! 달빛 아래 빌드가 반짝—
북켓 토끼는 오늘도 QA에 춤춰요.

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch BOOK-297-fix/#169

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

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

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions Bot requested a review from seoyoon513 August 24, 2025 05:07
@github-actions github-actions Bot added the 🐞 fix Something isn't working label Aug 24, 2025
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
gradle/libs.versions.toml (2)

6-7: 스토어 트랙과 버전 일관성 확인

versionCode 6/1.1.2가 현재 배포 트랙(내부/알파/프로덕션)에서 단조 증가 조건을 만족하는지, 기존 핫픽스/베타 브랜치와 충돌이 없는지 최종 확인해 주세요. 릴리스 노트에도 “페이지 입력 선행 0 제거 및 0 페이지 방지”가 반영되면 좋습니다.

원하시면 CHANGELOG/릴리스 노트 초안을 작성해 드리겠습니다.


8-8: packageName를 [versions] 섹션에서 분리하는 것을 제안

버전 카탈로그의 [versions]는 의미상 “버전” 전용 키를 두는 것이 가독성에 좋습니다. 식별자(applicationId/namespace 등)는 별도 섹션([app] 또는 [project])로 분리하면 유지보수성이 올라갑니다. 사용처가 넓다면 영향 범위를 고려해 점진 적용을 권장합니다.

적용 예시(이 파일 내 변경):

- packageName = "com.ninecraft.booket"

그리고 동일 파일 하단 등 적절한 위치에 새 섹션 추가(참고용, 별도 변경 필요):

[app]
packageName = "com.ninecraft.booket"

마지막으로 Gradle 스크립트에서 참조 키도 libs.versions.packageNamelibs.app.packageName로 치환해야 합니다. 아래 스캔으로 참조 지점을 파악할 수 있습니다.

#!/bin/bash
rg -nP -C2 '\blibs\.versions\.packageName\b' -g '!**/build/**'
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between cbbc70f and 9b074fc.

📒 Files selected for processing (2)
  • core/designsystem/src/main/kotlin/com/ninecraft/booket/core/designsystem/component/textfield/InputTransformation.kt (0 hunks)
  • gradle/libs.versions.toml (1 hunks)
💤 Files with no reviewable changes (1)
  • core/designsystem/src/main/kotlin/com/ninecraft/booket/core/designsystem/component/textfield/InputTransformation.kt
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: ci-build
🔇 Additional comments (2)
gradle/libs.versions.toml (2)

2-7: 버전/SDK 업데이트 LGTM

  • versionName 1.1.2 / versionCode 6으로의 증분이 PR 목적(입력 검증 수정 배포)과 일치합니다.
  • targetSdk/compileSdk 35 상향도 합리적입니다. 모듈 전반에서 카탈로그 값을 참조하도록만 일관성 유지하면 됩니다.

2-5: 코드 내 하드코딩된 SDK/버전 정보 검토 결과

  • compileSdk/targetSdk/minSdk 하드코딩된 값이 빌드 스크립트 내에 더 이상 존재하지 않습니다.
  • versionName/versionCode 하드코딩된 설정도 발견되지 않았습니다.
  • 이전 SDK·앱 버전(예: versionCode=5, “1.1.1”) 흔적도 남아있지 않습니다.

위 스캔 결과, 모든 모듈이 gradle/libs.versions.toml 카탈로그 값을 정상 참조하고 있어 코드 레벨에서는 추가 작업이 필요 없습니다.
다만, SDK 35 타깃 시 변경된 OS 동작(권한 처리, 백그라운드 제한 등)에 대한 QA 테스트 커버리지는 별도로 확인해 주세요.

@seoyoon513
Copy link
Copy Markdown
Contributor

요건 정책 정해지면 진행하는걸루!

Copy link
Copy Markdown
Contributor

@seoyoon513 seoyoon513 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@easyhooon easyhooon merged commit 09cba48 into develop Aug 25, 2025
5 checks passed
@easyhooon easyhooon deleted the BOOK-297-fix/#169 branch August 25, 2025 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 fix Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BOOK-297/fix] 감상평 입력시 0 페이지 입력 validation 추가

2 participants