Skip to content

[BUGFIX/#294] 발견한 오류들을 개선합니다.#295

Merged
MoonsuKang merged 4 commits intodevelopfrom
fix/#294-major-issue
Jul 12, 2025
Merged

[BUGFIX/#294] 발견한 오류들을 개선합니다.#295
MoonsuKang merged 4 commits intodevelopfrom
fix/#294-major-issue

Conversation

@MoonsuKang
Copy link
Contributor

@MoonsuKang MoonsuKang commented Jul 10, 2025

📌 ISSUE

closed #294

📄 Work Description

  • RemoteConfig Version Fetch 주기를 600L로 설정해야됨
  • 홈 일기 삭제 버튼 분기 처리
  • 일기 작성 화면에서 imeding 문제
  • 온보딩 시간설정 기본 값 오류(picker)

✨ PR Point

📸 ScreenShot/Video

Summary by CodeRabbit

  • Improvements
    • Firebase Remote Config now updates settings more frequently for enhanced app update checks.
    • The "Start" action in the time reminder screen now sets the reminder to 9:30 PM instead of 21:30.
    • The delete (kebab menu) icon in the daily diary list only appears when there are diary entries.
    • Diary writing screen padding dynamically adjusts for the keyboard, improving usability during text input.

@MoonsuKang MoonsuKang requested a review from SYAAINN July 10, 2025 07:13
@MoonsuKang MoonsuKang self-assigned this Jul 10, 2025
@MoonsuKang MoonsuKang added 🌊 문수 문수 🛠️ FIX 버그 및 문제 해결 labels Jul 10, 2025
@coderabbitai
Copy link

coderabbitai bot commented Jul 10, 2025

Walkthrough

The changes update the Firebase RemoteConfig fetch interval to 600 seconds, conditionally render the diary delete button based on diary content, fix the default time picker value for reminders, and adjust diary writing screen padding to correctly account for the keyboard and navigation bar insets.

Changes

File(s) Change Summary
.../di/AppUpdateModule.kt Updated provideFirebaseRemoteConfig to set fetch interval to 600 seconds and apply config settings.
.../presentation/ui/home/calendar/component/DailyDiaryListItem.kt Conditionally display the diary delete ("kebab") button only if diary entries exist.
.../presentation/ui/auth/timereminder/TimeReminderScreen.kt Fixed time picker default to 9:30 PM instead of 21:30 for reminder start action.
.../presentation/ui/writediary/screen/WriteDiaryScreen.kt Replaced window insets padding with manual calculation for bottom padding to handle keyboard and navigation bar.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant App
    participant FirebaseRemoteConfig

    User->>App: Launch app
    App->>FirebaseRemoteConfig: Get instance
    App->>FirebaseRemoteConfig: Apply config settings (minFetchInterval=600)
    FirebaseRemoteConfig-->>App: Configured instance returned
Loading
sequenceDiagram
    participant User
    participant DiaryScreen

    User->>DiaryScreen: View daily diary list
    alt Diaries exist
        DiaryScreen->>User: Show delete (kebab) button
    else No diaries
        DiaryScreen->>User: Hide delete button
    end
Loading

Assessment against linked issues

Objective Addressed Explanation
RemoteConfig Version Fetch 주기를 600L로 설정해야됨 (#294)
홈 일기 삭제 버튼 분기 처리 (#294)
일기 작성 화면에서 imeding 문제 (#294)
온보딩 시간설정 기본 값 오류(picker) (#294)

Possibly related PRs

Suggested reviewers

  • SYAAINN

Poem

A bunny with code in its paws,
Hopped through configs, fixing flaws.
Diaries now hide their delete,
Picker times no longer repeat.
Padding adjusts with a leap and a bound—
Happy fixes all around!
🐇✨

✨ Finishing Touches
  • 📝 Generate Docstrings

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.
    • Explain this complex logic.
    • 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. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • 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 src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

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

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

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

Documentation and Community

  • 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.

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: 0

🧹 Nitpick comments (2)
app/src/main/java/com/sopt/clody/presentation/ui/home/calendar/component/DailyDiaryListItem.kt (1)

65-73: Localize the icon’s content description

contentDescription is hard-coded as an English literal. Consider using stringResource(R.string.… ) so it’s translated alongside the rest of the UI, and to keep accessibility wording consistent.

app/src/main/java/com/sopt/clody/di/AppUpdateModule.kt (1)

20-27: Consider environment-specific fetch intervals

A 600-second minimum fetch interval is sensible for production, but it slows iteration in debug builds.
You can conditionally shorten it for debuggable builds:

val minFetch = if (BuildConfig.DEBUG) 0L else 600L
remoteConfig.setConfigSettingsAsync(
    FirebaseRemoteConfigSettings.Builder()
        .setMinimumFetchIntervalInSeconds(minFetch)
        .build()
)
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3aa2552 and c1389fc.

📒 Files selected for processing (4)
  • app/src/main/java/com/sopt/clody/di/AppUpdateModule.kt (2 hunks)
  • app/src/main/java/com/sopt/clody/presentation/ui/auth/timereminder/TimeReminderScreen.kt (1 hunks)
  • app/src/main/java/com/sopt/clody/presentation/ui/home/calendar/component/DailyDiaryListItem.kt (1 hunks)
  • app/src/main/java/com/sopt/clody/presentation/ui/writediary/screen/WriteDiaryScreen.kt (2 hunks)
⏰ 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: build
🔇 Additional comments (2)
app/src/main/java/com/sopt/clody/presentation/ui/auth/timereminder/TimeReminderScreen.kt (1)

103-107: Double-check hour formatting

viewModel.setFixedTime(TimePeriod.PM, "9", "30") now passes "9" (no leading zero).
If the downstream formatter assumes two-digit hours ("09"), the UI may show an unexpected value or validation could fail. Please verify all consumers accept the one-digit form.

app/src/main/java/com/sopt/clody/presentation/ui/writediary/screen/WriteDiaryScreen.kt (1)

253-258: 👍 Keyboard-aware padding looks good

The dynamic contentPadding cleanly subtracts the scaffold’s bottom inset and clamps at zero—this should resolve the previous IME overlap without over-scroll. Nice fix.

Copy link
Contributor

@SYAAINN SYAAINN left a comment

Choose a reason for hiding this comment

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

LGTM!

@MoonsuKang MoonsuKang merged commit b9605b9 into develop Jul 12, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🌊 문수 문수 🛠️ FIX 버그 및 문제 해결

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUGFIX] 회의 중 발견한 문제점 보완합니다.

2 participants