Skip to content

refactor: literature library and paper reader - #13

Merged
ljm12914 merged 2 commits into
mainfrom
refactor/library
Nov 24, 2026
Merged

ljm12914 merged 2 commits into
mainfrom
refactor/library

Conversation

@ljm12914

Copy link
Copy Markdown
Member

Summary

  • IPC validators (separate commit): main-process IPC files are transformed through one incremental TypeScript program, with output cached by the compiler's real inputs. Tested in tests/ipc-validators.test.ts.
  • Literature library: Zotero-style columns, filters, grid, info panel, toolbar and import.
  • Recycle rules: a page is in the bin if it has the manual mark, or if it is non-independent and no live independent page reaches it. Bin pages are read-only, purge cascades, and confirmations show a preview.
  • Paper reader:
    • Annotations are ordinary non-independent pages.
    • A PDF selection starts after a drag threshold.
    • Choosing a colour creates the annotation and opens its popover.
    • The popover and colour menu are anchored to the highlight, follow scroll and zoom, and are clipped to the PDF area.
    • All popups are in the browser top layer.
  • Markup:
    • No rendered p anywhere.
    • Editor blocks are div. Headings use h1–h3, kept in sync with the block kind by one plugin.
    • Table cells no longer contain p.
    • Inline code is sized in em.
    • Pasted p/section HTML still parses.

Checks

  • Typecheck, lint, Knip and the database baseline check pass.
  • Tests pass: feed 45/45, database tools and IPC 6/6, workspace 273/273.
  • Reader, library and editor perf workflows pass their absolute limits.
  • Real-input smoke testing is still to do.

🤖 Generated with Claude Code

ljm12914 and others added 2 commits November 24, 2026 13:46
Replace the direct typia Vite plugin for main-process IPC files with a
plugin that transforms them through one incremental TypeScript program
and caches the output by the compiler's actual inputs, so imported type
changes still invalidate the cache. Add a test for the cache.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Library: Zotero-style columns, filters, grid, info panel, toolbar and
import, with bin pages derived by reachability from live independent
pages, read-only bin pages, cascading purge and confirmation previews.

Reader: annotations are ordinary non-independent pages. PDF selection
starts after a drag threshold, a colour creates the annotation and opens
its popover, and the popover and colour menu are anchored to the
highlight, following scroll and zoom and clipped to the PDF area. All
popups move to the browser top layer.

Markup: no rendered `p` anywhere. Editor blocks are `div`, headings use
`h1`-`h3` kept in sync with the block kind by one plugin, table cells
drop `p`, and inline code sizes in `em`. Pasted `p` and `section` still
parse.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ljm12914
ljm12914 merged commit 2cef217 into main Nov 24, 2026
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