Skip to content

fix problems with quick nav #224

Open
Ethran wants to merge 2 commits intomainfrom
dev
Open

fix problems with quick nav #224
Ethran wants to merge 2 commits intomainfrom
dev

Conversation

@Ethran
Copy link
Owner

@Ethran Ethran commented Mar 15, 2026

No description provided.

Ethran added 2 commits March 15, 2026 22:31
…odel

- Refactor `loadBookData` to be a suspend function that returns a success boolean.
- Update `EditorView` to handle missing pages by triggering a notebook fix and navigating to the library.
- Implement centralized error logging and snackbar notifications via `SnackState.logAndShowError`.
- Add debug logging to `CanvasObserverRegistry` and `QuickNavViewModel` for canvas restoration and scrubbing.
- Simplify `EditorView` logic by using a single entry point for book data loading based on `pageId`.
…- still not perfect, but better.

--AI--
- Implement `DisposableEffect` in `EditorView` to properly register and unregister `EditorControlTower` observers.
- Add lifecycle-aware observer management in `EditorControlTower` to prevent redundant job creation and ensure cleanup.
- Refactor page transition logic in `EditorViewModel` and `EditorControlTower` to use `_toolbarState` updates instead of direct database calls.
- Prevent duplicate page change emissions in `QuickNavViewModel` by tracking the last target page ID during scrubber gestures.
- Add debug logging for page loading in `PageView` and navigation events in `NotableNavHost`.
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