Skip to content

Redesign save queue sheet#384

Merged
theovilardo merged 55 commits intomasterfrom
redesign-save-queue-sheet
Nov 21, 2025
Merged

Redesign save queue sheet#384
theovilardo merged 55 commits intomasterfrom
redesign-save-queue-sheet

Conversation

@theovilardo
Copy link
Copy Markdown
Owner

No description provided.

The drag gesture for the queue sheet was not working as expected. Wrapping the `QueueBottomSheet` within a `Box` composable and adding top padding to the drag handle resolves the issue.
theovilardo and others added 24 commits November 20, 2025 12:01
The drag gesture for the queue sheet was not working as expected. Wrapping the `QueueBottomSheet` within a `Box` composable and adding top padding to the drag handle resolves the issue.
This commit refactors the "Save as playlist" dialog into a full-screen `ModalBottomSheet`.

Key changes:
- Converted the save playlist interface to a full-screen bottom sheet for a more immersive experience.
- Improved the visual style by applying Material 3 guidelines, including updated colors, shapes, and component usage (`MediumTopAppBar`, `OutlinedTextField`, etc.).
- Enhanced the UI by making the bottom "Save" bar rounded and cleaning up related code.
- Replaced the `Filled.Add` icon with `Rounded.Add` for visual consistency.
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 +562 to +566
fun endQueueDrag(totalDrag: Float, velocity: Float) {
if (queueHiddenOffsetPx == 0f) return
val isFastUpward = velocity < -650f
val isFastDownward = velocity > 650f
val shouldExpand = isFastUpward || (!isFastDownward && (queueSheetOffset.value < queueHiddenOffsetPx - queueDragThresholdPx || totalDrag < -queueDragThresholdPx))
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 Fix queue sheet dismiss threshold

endQueueDrag (UnifiedPlayerSheet.kt lines 562-566) treats the sheet as “should expand” whenever queueSheetOffset is less than queueHiddenOffsetPx - queueDragThresholdPx, where queueDragThresholdPx is only 8% of the sheet height. From an open queue this condition stays true until the sheet is ~92% closed, so a normal downward swipe just snaps back open unless you fling >650px/s or drag almost the full height. This makes the queue almost impossible to dismiss by dragging; the threshold should be tied to a small drag distance/open fraction instead.

Useful? React with 👍 / 👎.

@theovilardo theovilardo merged commit 9bd959b into master Nov 21, 2025
@theovilardo theovilardo deleted the redesign-save-queue-sheet branch December 3, 2025 12:39
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.

1 participant