Skip to content

SCRUM-276 feature: Add global loading overlay in FeelinNavHost#50

Merged
gdaegeun539 merged 4 commits into
project-lyrics:developfrom
gdaegeun539:feature/SCRUM-276-global-loading
May 24, 2026
Merged

SCRUM-276 feature: Add global loading overlay in FeelinNavHost#50
gdaegeun539 merged 4 commits into
project-lyrics:developfrom
gdaegeun539:feature/SCRUM-276-global-loading

Conversation

@gdaegeun539
Copy link
Copy Markdown
Member

@gdaegeun539 gdaegeun539 commented May 23, 2026

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines

What kind of change does this PR introduce?

  • Add feature

What is the current behavior?

λ‘œκ·Έμ•„μ›ƒ λ‘œλ”© μ˜€λ²„λ ˆμ΄κ°€ SettingScreen λ‚΄λΆ€ content μ˜μ—­μ—λ§Œ ν‘œμ‹œλ˜μ–΄ ν•˜λ‹¨ νƒ­κ³Ό μ‹œμŠ€ν…œ λ’€λ‘œκ°€κΈ°λ‘œ 화면을 μ΄νƒˆν•  수 μžˆμŠ΅λ‹ˆλ‹€.

What is the new behavior (if this is a feature change)?

MainScaffold에 isBlockingLoading을 μΆ”κ°€ν•΄ λ‘œκ·Έμ•„μ›ƒ λ‘œλ”© 쀑 main content와 bottom navigation μœ„μ— λ™μΌν•œ dim + progress overlayλ₯Ό ν‘œμ‹œν•©λ‹ˆλ‹€. λ‘œλ”© 쀑 μ‹œμŠ€ν…œ back μ΄λ²€νŠΈλ„ μ†ŒλΉ„ν•©λ‹ˆλ‹€.

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

No.

ScreenShots (If needed)

User

λ‘œλ”© μ˜€λ²„λ ˆμ΄κ°€ ν‘œμ‹œλ˜κ²Œ ν”Œλ‘œμš°λ₯Ό λ…Ήν™”ν•΄ μ²¨λΆ€ν–ˆμŠ΅λ‹ˆλ‹€. 5~6초경 μ „μ—­ μ˜€λ²„λ ˆμ΄κ°€ ν‘œμ‹œλ©λ‹ˆλ‹€.

Screen_Recording_20260523_102608_Feelin.mp4

Other information:

Verification:

  • cmd.exe /c gradlew.bat detekt
  • cmd.exe /c gradlew.bat :app:assembleDebug
  • cmd.exe /c gradlew.bat testDebugUnitTest
  • git diff --check

Manual device QA was not run because no Android device/emulator was attached in the local environment.

Summary by CodeRabbit

  • Improvements

    • Enhanced the logout experience with a full-screen blocking loading overlay that prevents user interaction and displays visual feedback while logout is in progress.
  • Chores

    • Updated project configuration to include macOS-specific ignore patterns.

Review Change Stack

Add global blocking loading overlay to FeelinNavHost
to prevent interactions and back gestures during async loading states.
Delegate SettingScreen's logout loading overlay to this unified global implementation.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 23, 2026

No actionable comments were generated in the recent review. πŸŽ‰

ℹ️ Recent review info
βš™οΈ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: bea80906-a7a8-4ec2-8f46-4bf35a2b620f

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between d9dab61 and 5f83fc5.

πŸ“’ Files selected for processing (2)
  • .gitignore
  • app/src/main/java/com/lyrics/feelin/navigation/FeelinNavHost.kt

πŸ“ Walkthrough

Walkthrough

The PR centralizes the blocking loading overlay in MainScaffold (new isBlockingLoading flag), removes the overlay and loading parameter from SettingScreen, and updates the Settings route to pass isBlockingLoading; also adds macOS entries to .gitignore.

Changes

Blocking Loading Overlay Refactor

Layer / File(s) Summary
MainScaffold blocking overlay implementation
app/src/main/java/com/lyrics/feelin/navigation/FeelinNavHost.kt
Adds imports for BackHandler, CircularProgressIndicator, pointer/semantics utilities, and color resources. MainScaffold signature adds optional isBlockingLoading parameter. Implementation wraps Scaffold in an outer Box, conditionally registers a BackHandler, and renders a full-screen dim overlay that clears semantics and continuously consumes pointer input while displaying a centered spinner.
Settings route isBlockingLoading integration
app/src/main/java/com/lyrics/feelin/navigation/FeelinNavHost.kt
Settings destination updates to pass isBlockingLoading derived from logoutStatus == LOADING to MainScaffold. The previous loading flag passed into SettingScreen is removed.
SettingScreen parameter and overlay removal
app/src/main/java/com/lyrics/feelin/presentation/view/mypage/setting/SettingScreen.kt
SettingScreen signature removes isLogoutLoading parameter. The private LogoutLoadingOverlay composable and its imports/usages are deleted.

Repository ignores

Layer / File(s) Summary
macOS .gitignore additions
.gitignore
Insert standard macOS ignore entries and preserve existing project-specific ignore patterns for .daegeun and .sisyphus.

Sequence Diagram(s)

sequenceDiagram
  participant NavHost as FeelinNavHost
  participant Scaffold as MainScaffold
  participant Screen as SettingScreen
  participant Overlay as BlockingOverlay

  NavHost->>Scaffold: create with isBlockingLoading = (logoutStatus == LOADING)
  Scaffold->>Screen: render content underlay
  alt isBlockingLoading == true
    Scaffold->>Overlay: show overlay, register BackHandler
    Overlay->>Overlay: clear semantics + consume pointer input
    Overlay->>Overlay: display CircularProgressIndicator
  end
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~40 minutes

Possibly related issues

Possibly related PRs

Suggested reviewers

  • hyunjung-choi

Poem

🐰 In settings once a spinner stayed,
Now scaffold wears the dimming braid.
Back pressed guarded, pointers sealed tight,
A centered glow keeps loading light.
Hooray β€” the rabbit hops, all systems right!

πŸš₯ Pre-merge checks | βœ… 4 | ❌ 1

❌ 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%. Write docstrings for the functions missing them to satisfy the coverage threshold.
βœ… Passed checks (4 passed)
Check name Status Explanation
Description Check βœ… Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check βœ… Passed The title accurately describes the main change: adding a global blocking loading overlay in FeelinNavHost to prevent navigation during logout.
Linked Issues check βœ… Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check βœ… Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
πŸ§ͺ Generate unit tests (beta)
  • Create PR with unit tests

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.

@gdaegeun539 gdaegeun539 changed the title feat: Add global loading overlay in FeelinNavHost SCRUM-276 feature: Add global loading overlay in FeelinNavHost May 23, 2026
@gdaegeun539 gdaegeun539 self-assigned this May 23, 2026
@gdaegeun539 gdaegeun539 added the feat μƒˆλ‘œμš΄ κΈ°λŠ₯ label May 23, 2026
@gdaegeun539
Copy link
Copy Markdown
Member Author

@codex

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR moves the logout β€œblocking” loading UI from SettingScreen into the shared MainScaffold (inside FeelinNavHost) so that the overlay covers both the main content and bottom navigation, and consumes system back events during logout loading.

Changes:

  • Remove the screen-local logout loading overlay from SettingScreen and its isLogoutLoading parameter.
  • Add isBlockingLoading to MainScaffold and render a full-screen dim + progress overlay above the scaffold when enabled.
  • Consume system back via BackHandler while blocking loading is active.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
app/src/main/java/com/lyrics/feelin/presentation/view/mypage/setting/SettingScreen.kt Removes the local logout loading overlay and related parameter/imports.
app/src/main/java/com/lyrics/feelin/navigation/FeelinNavHost.kt Adds isBlockingLoading to MainScaffold and implements a global overlay + back consumption during loading.

πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/src/main/java/com/lyrics/feelin/navigation/FeelinNavHost.kt
Comment thread app/src/main/java/com/lyrics/feelin/navigation/FeelinNavHost.kt
@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. πŸ‘

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with πŸ‘.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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

πŸ€– Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@app/src/main/java/com/lyrics/feelin/navigation/FeelinNavHost.kt`:
- Around line 443-444: In MainScaffold within FeelinNavHost (the layout block
setting start/end paddings), replace the incorrect use of
paddingValues.calculateEndPadding(LayoutDirection.Ltr) for the start inset with
paddingValues.calculateStartPadding(LayoutDirection.Ltr) so the start padding
uses the start calculation; update the call that currently references
calculateEndPadding for the start parameter to calculateStartPadding while
leaving the end parameter as calculateEndPadding.
πŸͺ„ Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
βš™οΈ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 8285e6e7-8cb5-4ea6-b987-5c6b1c6b99b8

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between 064cc6c and d9dab61.

πŸ“’ Files selected for processing (2)
  • app/src/main/java/com/lyrics/feelin/navigation/FeelinNavHost.kt
  • app/src/main/java/com/lyrics/feelin/presentation/view/mypage/setting/SettingScreen.kt
πŸ’€ Files with no reviewable changes (1)
  • app/src/main/java/com/lyrics/feelin/presentation/view/mypage/setting/SettingScreen.kt

Comment thread app/src/main/java/com/lyrics/feelin/navigation/FeelinNavHost.kt Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

Comment on lines +438 to +439
Log.d("FeelinNavHost", "MainScaffold: bottomPadding=$bottomPadding")

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

이번 κΈ°λŠ₯의 κ΅¬ν˜„ λ²”μœ„λ₯Ό λ„˜μ–΄μ„œλŠ” λ³€κ²½μ΄μ–΄μ„œ λ°˜μ˜ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

@gdaegeun539
Copy link
Copy Markdown
Member Author

gdaegeun539 commented May 24, 2026

κΈ°λŠ₯ κ΅¬ν˜„μ΄ μ™„λ£Œλ˜μ—ˆμŒμœΌλ‘œ λ³‘ν•©ν•˜κ² μŠ΅λ‹ˆλ‹€.

결합도에 λ”°λ₯Έ λ¦¬νŒ©ν† λ§μ€ #51 둜 λ³„λ„λ‘œ λ“±λ‘ν–ˆμŠ΅λ‹ˆλ‹€. μΆ”κ°€ κΈ°λŠ₯ κ΅¬ν˜„μ„ μš°μ„  μ§„ν–‰ν•˜κ³  이λ₯Ό 관리할 μ˜ˆμ •μž…λ‹ˆλ‹€.

@gdaegeun539 gdaegeun539 merged commit 74161f1 into project-lyrics:develop May 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat μƒˆλ‘œμš΄ κΈ°λŠ₯

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants