forked from lnreader/lnreader
-
Notifications
You must be signed in to change notification settings - Fork 0
Use novel refactor #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
1ad4871
init
CD-Z 2158130
feat: add zustand dependency and persistence key contract
CD-Z c4d44a9
refactor: extract bootstrap data loading into reusable service
CD-Z 5c3d97b
refactor: move chapter mutations into store-ready action helpers
CD-Z f966df4
feat: add zustand novel store with cache and core actions
CD-Z e9e4ed8
refactor: bridge novel persistence contracts for migration safety
CD-Z 98bf1eb
refactor: migrate NovelScreen domain flows to zustand selectors
CD-Z e3ea9bc
refactor: migrate NovelScreenList to selector-based store access
CD-Z b7dc2cc
refactor: move reader chapter flows onto store boundaries
CD-Z e68fafe
refactor: decouple useNovelSettings from broad context domain state
CD-Z 5f46184
refactor: align migrateNovel with stable persistence contracts
CD-Z 136211e
refactor: cut novel-reader consumers to store-only context boundary
CD-Z 3ce9caf
refactor: retire legacy useNovel and route cache cleanup export
CD-Z fa24c89
test: update suites for store-only context boundary cutover
CD-Z 34bd062
test: modernize store-era mocks and add contract coverage
CD-Z 6fb017c
test: finalize Task-15 sweep—remove dead useNovelData and lint clear …
CD-Z 1b14eec
remove imports from NovelScreen
CD-Z e0612ac
reworked ai output
CD-Z 0c05734
improvements
CD-Z cef8900
implemented synchronus novel and chapter fetch
CD-Z d6de86d
refactor tests
CD-Z 27ffbe8
fix db tests
CD-Z a452b77
Update remaining tests.
CD-Z 7a00633
Harden chapter actions and bootstrap flows
CD-Z 9521908
Only count filtered chapters
CD-Z 9712767
improved chapter insert speed by optimizing triggers
CD-Z 660a41b
Improved the batching function
CD-Z 627233c
Added drizzle support to dbManager.batch
CD-Z 1c57171
removed better-sqlite3 for testing
CD-Z 6319571
fix tests
CD-Z 167f77c
Update updateNovelChapters fucntion
CD-Z fb162db
reverse read filter
CD-Z aa73d0f
fix snackbar
CD-Z 7e62668
fixed page bottomsheet
CD-Z ef6521f
resolved paged novels showing wrong chapter number on opening
CD-Z 8fa0f09
use openPage instead of setPageIndex in chapterDrawer
CD-Z 5bbd4b0
fix lint & tests
CD-Z 190fd99
fix type issues
CD-Z 035bbd0
fix various smaller issues
CD-Z 89be147
updated novel restore
CD-Z File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
What is the latest version of zustand npm package?💡 Result:
The latest version of the zustand npm package is 5.0.12.
Citations:
🌐 Web query:
Zustand 5.0.12 React 19 compatibility💡 Result:
Zustand 5.0.12 is not officially compatible with React 19. The peer dependency for React is specified as ">=18.0.0", which does not include React 19. Official documentation and changelogs for v5.0.12 do not mention React 19 support or updates to peer dependencies. Early discussions (e.g., Nov 2024) show peer dependency conflicts with React 19 RCs when using npm strict mode, requiring --force or --legacy-peer-deps. While some tools like DepFixer claim compatibility for earlier 5.x versions and Zustand works in practice due to minimal React API usage, strict compatibility requires peer deps alignment, which is absent. For React 19, follow best practices like using selectors with 'use' prefix and useShallow for destructuring to work with React Compiler.
Citations:
Zustand 5.0.12 is not officially compatible with React 19.
Zustand 5.0.12 is the latest stable version, but its peer dependency specifies
>=18.0.0, explicitly excluding React 19. Using it with React 19 will require--forceor--legacy-peer-depsflags during installation. If this project targets React 19, either upgrade Zustand once React 19 support is released or retain React 18 compatibility.🤖 Prompt for AI Agents