Skip to content

Implement custom queue bottom sheet gesture#372

Merged
theovilardo merged 13 commits intomasterfrom
codex/redesign-queuebottomsheet-gesture-behavior
Nov 21, 2025
Merged

Implement custom queue bottom sheet gesture#372
theovilardo merged 13 commits intomasterfrom
codex/redesign-queuebottomsheet-gesture-behavior

Conversation

@theovilardo
Copy link
Copy Markdown
Owner

Summary

  • replace modal queue sheet with themed surface that can live beneath the full player
  • add drag-driven queue reveal/close logic that tracks finger movement and animates on release
  • wire full player gesture handling to the new sheet and keep existing queue content intact

Testing

  • ./gradlew :app:compileDebugKotlin --console=plain (fails: Android SDK not available in container)

Codex Task

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ 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".

Comment on lines +510 to +513
LaunchedEffect(queueHiddenOffsetPx) {
if (queueHiddenOffsetPx > 0f && queueSheetOffset.value == 0f) {
queueSheetOffset.snapTo(queueHiddenOffsetPx)
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Keep queue sheet open when its size changes

The new LaunchedEffect(queueHiddenOffsetPx) snaps the queue sheet offset back to queueHiddenOffsetPx whenever the hidden offset changes, regardless of the current state. Because queueHiddenOffsetPx is recomputed on every layout pass (e.g., when songs are added/removed from the queue or bottom insets change), an expanded queue sheet will immediately jump closed as soon as its height changes, interrupting interactions like reordering or clearing items. Consider running this initialization only on first measurement or when the sheet is already hidden so size changes don’t forcibly dismiss an open queue.

Useful? React with 👍 / 👎.

@theovilardo theovilardo merged commit 5872f1f into master Nov 21, 2025
@lostf1sh lostf1sh deleted the codex/redesign-queuebottomsheet-gesture-behavior branch January 16, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant