Add Apple Pencil support, reading plan, full-text search, and inline ink
- Apple Pencil hover cursor: previews brush size/shape before contact - Tilt shading: tilted pen strokes widen and reduce thinning via tiltX/Y - Two-finger undo in draw mode (non-stylus two-finger tap) - Copy & open Claude buttons: copies study/podcast prompt then opens claude.ai/new - Inline ink canvas in study notes (DrawCanvas embedded in Notes tab) - Full-text search across all project notes with 300ms debounce - Reading plan: set a book + week goal, mark chapters read from the reader Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
837b81b038
commit
902fb5da02
7 files changed
+367
-21
No files matched your search
@@ -48,6 +48,8 @@ export default function ReaderPage() {
|
||||
readerTextHighlights,
|
||||
addTextHighlight,
|
||||
removeTextHighlight,
|
||||
readingPlan,
|
||||
markChapterRead,
|
||||
} = useApp();
|
||||
|
||||
const readerBook = bookOptions.find((b) => b.abbrev === readerBookAbbrev);
|
||||
@@ -286,6 +288,19 @@ export default function ReaderPage() {
|
||||
</select>
|
||||
</label>
|
||||
<div className="ml-auto flex items-center gap-2">
|
||||
{readingPlan && readingPlan.bookAbbrev === readerBookAbbrev && (() => {
|
||||
const done = readingPlan.chaptersRead.includes(readerChapter);
|
||||
return (
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => markChapterRead(readerChapter)}
|
||||
className={`rounded-xl px-3 py-1.5 text-sm font-semibold transition ${done ? 'bg-emerald-100 text-emerald-700 hover:bg-emerald-200' : 'border border-emerald-300 bg-white text-emerald-700 hover:bg-emerald-50'}`}
|
||||
title={done ? 'Click to unmark' : 'Mark this chapter as read in your reading plan'}
|
||||
>
|
||||
{done ? '✓ Read' : 'Mark as read'}
|
||||
</button>
|
||||
);
|
||||
})()}
|
||||
<button type="button" onClick={readerGoToPreviousChapter} disabled={readerChapter <= 1}
|
||||
className="rounded-xl border border-slate-300 bg-white px-4 py-1.5 text-sm font-semibold text-slate-700 transition hover:bg-slate-50 disabled:cursor-not-allowed disabled:opacity-40">
|
||||
‹ Prev
|
||||
|
||||
Reference in new issue
Block a user