Skip to content

Conversation

@Ethran
Copy link
Owner

@Ethran Ethran commented Nov 5, 2025

No description provided.

@Ethran Ethran requested a review from Copilot November 5, 2025 22:33
Copy link
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 adds a page scrubber feature to the QuickNav component, allowing users to quickly preview and navigate between pages in a notebook. The implementation includes drag-based page preview with visual feedback and the ability to return to the original page.

  • Added a horizontal page slider component with draggable thumb for page navigation
  • Integrated page preview functionality that shows cached page bitmaps while scrubbing
  • Updated bitmap loading logic to support both exact and relaxed matching for preview scenarios

Reviewed Changes

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

Show a summary per file
File Description
QuickNav.kt Integrates the new page scrubber UI and connects it to DrawCanvas preview/commit flows
PageScrubber.kt New component implementing the horizontal slider with draggable thumb and return button
persistBitmap.kt Enhanced bitmap loading with requireExactMatch parameter and newest-file fallback logic
backgrounds.kt Added drawCenteredLabelBox utility for displaying text labels on canvas
PageView.kt Exposed loadBitmapFromStorage with additional parameters for preview functionality
DrawCanvas.kt Added MutableSharedFlow signals for save/preview/commit page operations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Ethran
Copy link
Owner Author

Ethran commented Nov 7, 2025

TODO:

  • 1) Generate page previous for pdf on import
  • 2) Check if flag requireExactMatch works
  • 3) Make Favorite pages work also as bookmarks
  • 4) Fix saving page previous (on opening book end exiting, without any actions)
  • 5) Check speed of this solution, should I load lower guilty previous?
  • 6) address copilot suggestions

…EditorControlTower`. Also moved logic regarding keeping current page to `EditorState`.

--AI--
Key changes include:
- Moving gesture action logic from `EditorGestureReceiver` to `EditorControlTower`.
- Shifting undo/redo handling from `Toolbar` and gestures to `EditorControlTower`.
- Relocating page navigation functions (`goToNextPage`, `goToPreviousPage`) from `EditorView` into `EditorState` and calling them from the control tower.
- Removing direct `EditorState` dependencies from `EditorGestureReceiver` and `SelectedBitmap`, which now interact with the control tower.
…ickNav` composable to improve readability and separation of concerns.
Copy link
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 17 out of 17 changed files in this pull request and generated 12 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Ethran
Copy link
Owner Author

Ethran commented Nov 12, 2025

Bug: scribble mode is not turned off in quick nav.

@Ethran
Copy link
Owner Author

Ethran commented Nov 12, 2025

Bug: back button does not work

@Ethran
Copy link
Owner Author

Ethran commented Nov 12, 2025

Bug: previous are created during changing page, resulting in incorrect image saved.

Copy link
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 18 out of 19 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Owner Author

@Ethran Ethran left a comment

Choose a reason for hiding this comment

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

ok

@Ethran Ethran merged commit e6c2af5 into main Nov 15, 2025
1 check passed
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