Skip to content

[WIP] Fix current scene functionality and implement book status management#3

Closed
Copilot wants to merge 3 commits intomainfrom
copilot/fix-current-scene-functionality
Closed

[WIP] Fix current scene functionality and implement book status management#3
Copilot wants to merge 3 commits intomainfrom
copilot/fix-current-scene-functionality

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 10, 2026

  • Explore repo and understand current code structure
  • Fix PDFService to accept URL strings and store document data
  • Fix bookStore with proper DI, setDocumentReady (initialPage/scale clamping), setTotalPages, setScale
  • Implement PersistenceService with Dexie (DexieWorkspacePersistencePort + file storage)
  • Fix workspaceStore with proper DI, reset(), currentSnapshot, full save/restore
  • Add RecentBook type to domain.ts and create recentBooksStore
  • Update App.tsx to show recently opened books and save book metadata on import
  • Verify all unit tests pass
Original prompt

目前保存现场功能无法正常使用。另外导入书籍并没有应用对应书籍的状态。应该在这里做一个对应书籍的状态。并且加一个最近打开列表(以及保存到书架以供下次打开)。主要是这一块的状态管理问题。


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI and others added 2 commits March 10, 2026 03:31
Co-authored-by: nkanf-dev <172456830+nkanf-dev@users.noreply.github.com>
Co-authored-by: nkanf-dev <172456830+nkanf-dev@users.noreply.github.com>
@nkanf-dev
Copy link
Copy Markdown
Owner

@copilot Try again.

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.

2 participants