Skip to content

Conversation

@ProtossManse
Copy link
Collaborator

@ProtossManse ProtossManse commented Nov 16, 2025

🔗 관련 이슈

📙 작업 설명

  • '다음' CTA 버튼 스크롤에 관계없이 하단에 고정되도록 변경했습니다.

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

기능 미리보기 기능 미리보기
기능 설명
image 기능 설명

Summary by CodeRabbit

출시 노트

  • 스타일

    • 내부 레이아웃 확장으로 스크롤 내 여백 활용을 개선합니다.
    • CTA 버튼 위치를 콘텐츠 아래로 이동하고 상하 패딩을 조정해 일관된 화면 구성을 제공합니다.
  • 버그 수정

    • 입력 검증 흐름을 정리해 실패 시 필드별 알림을 유지하고, 성공 시 데이터 초기화·전송 및 다음 화면으로의 이동을 안정적으로 처리합니다.

@coderabbitai
Copy link

coderabbitai bot commented Nov 16, 2025

Walkthrough

두 로그인 온보딩 화면에서 내부 Column에 weight(1f)를 적용하고 CTA 버튼 배치 및 클릭 흐름을 재구성했습니다. 입력 유효성 검사 실패 시 스낵바를 표시하고, 성공 경로에서 건강 데이터 초기화·일괄 전송·다음 화면 네비게이션 호출을 포함하도록 변경했습니다.

Changes

Cohort / File(s) Summary
온보딩 정보 입력 화면 (버튼 흐름 재구성)
app/src/main/java/com/konkuk/medicarecall/ui/feature/login/senior/screen/LoginElderInfoScreen.kt
내부 Column에 weight(1f) 적용으로 세로 공간 확장, CTA 버튼 클릭 로직 재구성: 필드별 유효성 검사 실패는 스낵바 표시, 성공 시 initElderHealthDatapostElderBulknavigateToRegisterElderHealth 호출로 이동; CTA 주변 패딩·구조 일부 조정
의료 정보 입력 화면 (레이아웃/버튼 재배치)
app/src/main/java/com/konkuk/medicarecall/ui/feature/login/senior/screen/LoginElderMedInfoScreen.kt
내부 Column에 weight(1f) 추가로 세로 공간 확장, CTA 버튼을 콘텐츠 블록 밖으로 이동, CTA 패딩 상단 30.dp → 20.dp로 조정; 기존 코루틴 실행 방식 유지 (postElderHealthInfoBulk 및 네비게이션 호출)

Sequence Diagram(s)

sequenceDiagram
    autonumber
    participant UI as LoginElderInfoScreen
    participant VM as ViewModel
    participant API as Backend
    Note over UI: 사용자 CTA 버튼 클릭
    UI->>UI: 필드별 유효성 검사
    alt validation 실패
        UI-->>User: Snackbar(필요 메시지)
    else validation 성공
        UI->>VM: initElderHealthData(data)
        VM->>API: postElderBulk(data)
        API-->>VM: 200 OK
        VM-->>UI: navigateToRegisterElderHealth()
    end
Loading
sequenceDiagram
    autonumber
    participant UI2 as LoginElderMedInfoScreen
    participant VM2 as ViewModel
    participant API2 as Backend
    Note over UI2: 사용자 CTA 버튼 클릭
    UI2->>UI2: (필드 유효성 검사)
    alt validation 실패
        UI2-->>User: Snackbar(메시지)
    else validation 성공
        UI2->>VM2: postElderHealthInfoBulk(data)
        VM2->>API2: postElderHealthInfoBulk
        API2-->>VM2: 200 OK
        VM2-->>UI2: navigateToCareCallSetting()
    end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

  • 중점 검토 항목:
    • LoginElderInfoScreen.kt의 CTA 클릭 경로(else 분기)에서 호출 순서와 예외/에러 처리(네트워크 실패 시 롤백 또는 사용자 알림)가 적절한지 확인
    • 레이아웃 변경(weight)으로 인해 스크롤/다른 해상도에서 레이아웃 깨짐이 없는지 확인
    • 패딩·구조 변경으로 접근성(포커스·탭 순서)에 영향이 없는지 점검

Possibly related PRs

Suggested labels

bug

Suggested reviewers

  • librawish808
  • alswlekk
  • ikseong00

Poem

버튼은 아래로 남고 스크롤은 위로 흐르네 🌊
Weight 하나로 자리를 잡고 다시 출발해 🚀
입력은 검사하고, 성공은 전송하니
온보딩 길목에선 모두가 미소짓네 😊

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed PR 제목이 변경의 핵심을 명확하게 설명하고 있습니다. '다음' 버튼이 스크롤과 무관하게 고정되어야 한다는 내용이 직관적으로 전달됩니다.
Linked Issues check ✅ Passed PR의 코드 변경이 연결된 이슈 #187의 요구사항을 충족합니다. 두 스크린에서 Column에 weight(1f)를 추가하고 CTA 버튼 배치를 조정하여 버튼을 하단 고정으로 만들었습니다.
Out of Scope Changes check ✅ Passed 모든 변경사항이 이슈 #187의 범위 내입니다. 버튼 고정 레이아웃 수정에만 집중되어 있으며 불필요한 변경이 없습니다.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/next-button-fixed-bottom-#187

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 945aab8 and 31299a7.

📒 Files selected for processing (2)
  • app/src/main/java/com/konkuk/medicarecall/ui/feature/login/senior/screen/LoginElderInfoScreen.kt (2 hunks)
  • app/src/main/java/com/konkuk/medicarecall/ui/feature/login/senior/screen/LoginElderMedInfoScreen.kt (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • app/src/main/java/com/konkuk/medicarecall/ui/feature/login/senior/screen/LoginElderMedInfoScreen.kt
  • app/src/main/java/com/konkuk/medicarecall/ui/feature/login/senior/screen/LoginElderInfoScreen.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

Tip

📝 Customizable high-level summaries are now available in beta!

You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.

  • Provide your own instructions using the high_level_summary_instructions setting.
  • Format the summary however you like (bullet lists, tables, multi-section layouts, contributor stats, etc.).
  • Use high_level_summary_in_walkthrough to move the summary from the description to the walkthrough section.

Example instruction:

"Divide the high-level summary into five sections:

  1. 📝 Description — Summarize the main change in 50–60 words, explaining what was done.
  2. 📓 References — List relevant issues, discussions, documentation, or related PRs.
  3. 📦 Dependencies & Requirements — Mention any new/updated dependencies, environment variable changes, or configuration updates.
  4. 📊 Contributor Summary — Include a Markdown table showing contributions:
    | Contributor | Lines Added | Lines Removed | Files Changed |
  5. ✔️ Additional Notes — Add any extra reviewer context.
    Keep each section concise (under 200 words) and use bullet or numbered lists for clarity."

Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later.


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 and usage tips.

@ProtossManse ProtossManse changed the title Fix: #187 '다음' CTA 버튼 스크롤에 관계없이 고정 [Fix] '다음' CTA 버튼 스크롤에 관계없이 고정 #187 Nov 16, 2025
Copy link

@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: 4

🧹 Nitpick comments (1)
app/src/main/java/com/konkuk/medicarecall/ui/feature/login/senior/screen/LoginElderInfoScreen.kt (1)

195-237: CTAButton 위치가 올바르게 수정되었습니다.

스크롤 영역 밖으로 버튼을 이동시켜서 하단에 고정되도록 했네요. 유효성 검사 로직도 각 필드별로 적절히 구현되어 있습니다.

참고: 현재 여러 개의 if-else 체인으로 구성된 유효성 검사 로직을 함수로 추출하면 가독성이 더 좋아질 수 있어요. 하지만 현재 구현도 충분히 동작하므로 선택사항입니다.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ef8afbd and 945aab8.

📒 Files selected for processing (2)
  • app/src/main/java/com/konkuk/medicarecall/ui/feature/login/senior/screen/LoginElderInfoScreen.kt (3 hunks)
  • app/src/main/java/com/konkuk/medicarecall/ui/feature/login/senior/screen/LoginElderMedInfoScreen.kt (2 hunks)
🧰 Additional context used
🧬 Code graph analysis (2)
app/src/main/java/com/konkuk/medicarecall/ui/feature/login/senior/screen/LoginElderMedInfoScreen.kt (1)
app/src/main/java/com/konkuk/medicarecall/ui/common/component/CTAButton.kt (1)
  • CTAButton (24-75)
app/src/main/java/com/konkuk/medicarecall/ui/feature/login/senior/screen/LoginElderInfoScreen.kt (1)
app/src/main/java/com/konkuk/medicarecall/ui/common/component/CTAButton.kt (1)
  • CTAButton (24-75)
🪛 GitHub Actions: Android CI
app/src/main/java/com/konkuk/medicarecall/ui/feature/login/senior/screen/LoginElderMedInfoScreen.kt

[error] 183-183: Detekt: Unexpected blank line(s) before '***' [NoBlankLineBeforeRbrace]

app/src/main/java/com/konkuk/medicarecall/ui/feature/login/senior/screen/LoginElderInfoScreen.kt

[error] 13-13: Detekt: Unused import [NoUnusedImports]


[error] 191-191: Detekt: Unexpected blank line(s) before '***' [NoBlankLineBeforeRbrace]


[error] 194-194: Detekt: Needless blank line(s) [NoConsecutiveBlankLines]

🔇 Additional comments (3)
app/src/main/java/com/konkuk/medicarecall/ui/feature/login/senior/screen/LoginElderMedInfoScreen.kt (2)

74-78: 레이아웃 개선 잘 적용되었습니다!

스크롤 가능한 Column에 weight(1f)를 적용해서 사용 가능한 공간을 모두 차지하도록 했네요. 이렇게 하면 CTAButton이 하단에 고정될 수 있어요. PR 목표에 딱 맞는 수정입니다.


185-195: CTAButton 배치가 올바르게 수정되었습니다.

버튼을 스크롤 가능한 Column 밖으로 이동시켜서 스크롤과 관계없이 하단에 고정되도록 했네요. PR의 의도대로 잘 구현되었습니다.

app/src/main/java/com/konkuk/medicarecall/ui/feature/login/senior/screen/LoginElderInfoScreen.kt (1)

87-91: 레이아웃 수정이 적절합니다.

weight(1f) 적용으로 스크롤 가능한 영역이 사용 가능한 공간을 차지하게 되어, CTAButton을 하단에 고정할 수 있게 되었어요.

Copy link
Collaborator

@alswlekk alswlekk left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Collaborator

@librawish808 librawish808 left a comment

Choose a reason for hiding this comment

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

좋습니다!

@ProtossManse ProtossManse merged commit 2089dc6 into develop Nov 18, 2025
2 checks passed
@ProtossManse ProtossManse deleted the fix/next-button-fixed-bottom-#187 branch November 18, 2025 16:18
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.

[Fix] 다음 버튼 스크롤 시 하단 고정되지 않는 문제

4 participants