[Feature]: Desktop app: books reader
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 20/100
- Tipo de issue
- Funcionalidade
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- rust, typescript
- Domínio
- desktop, full-stack
Direção de pesquisa
Read the epic #80 and its prerequisites #82 and #83, then use the web reader files under web/src/books/ and the routes/book.$id.tsx and routes/read.$id.tsx routes as the specification. Start by porting packages/shared/src/books.ts and its books.test.ts tests to Rust. Done means long EPUB and FB2 books read like they do on the web, positions sync to the same sentence across window sizes, and quotes sync between web and desktop.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
[!NOTE]
This issue was written by Claude (Claude Opus 5.5) from a planning session with @PhrolovaMoe. Part of #80, builds on #82 and #83. Read the epic first.
Area
Desktop app
Problem
The web has a novel reader with positions shared across devices and quotes (highlights stored as clips). It's part of parity.
Proposed solution
The web is the spec: web/src/books/ (Library.tsx, Reader.tsx, components.tsx, focus.ts, quotes.tsx), routes/book.$id.tsx, routes/read.$id.tsx.
- Port
packages/shared/src/books.tsto Rust with its tests (books.test.ts): the content model (/api/books/{id}/contentJSON, with style flagsBOLD,ITALIC… as bits) and positions counted in characters of text, so the same position lands on the same sentence on web, Android and desktop, at any size. - Layout and text with iced's text stack (cosmic-text), in Geist and whatever font choices the web reader offers. Images through
/api/books/{id}/files/{*name}, covers through/api/books/{id}/cover. - Every reading mode and setting the web reader has (paging/scrolling, sizes, margins, themes within the app's scheme), the focus behaviour of
focus.ts, and keyboard navigation. - Progress: the same mutations and cadence as the web, so switching devices continues where you were.
- Quotes: selecting text and saving a quote (a highlight stored as a clip), showing existing highlights, the quotes list, as on web.
- The book's details page (
book.$id): metadata, cover, continue reading.
Done when
A long EPUB and an FB2 read the same as on web. Positions round-trip between web and app to the same sentence at different window sizes, and quotes made in either show up in both.
- Linguagem predominante
- TypeScript
- Estrelas
- 4
- Forks
- 1
- Merge médio
- 4h 49min
- PRs com merge (30d)
- 5
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Sem modelo de pull request
- Sem guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de tinystream-dev/tinystream
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
tinystream-dev/tinystream#132 ·
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
tinystream-dev/tinystream#131 ·
-
bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
tinystream-dev/tinystream#129 ·
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
tinystream-dev/tinystream#128 ·
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
tinystream-dev/tinystream#124 ·
Todas as issues de tinystream-dev/tinystream
Issues semelhantes
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskAberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 86/100
sandbox-quantum/switch#2163 ·
Mantenedores costumam responder em até 1 dia
-
automated issue report
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
area/dashboard kind/bug QA/dev-automation
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia
-
bug pydanty:is-working
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
pydantic/pydantic-ai#13939 ·
Mantenedores costumam responder em até 1 dia
-
self-host
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
funmusicplace/mirlo#2625 ·
Mantenedores costumam responder em até 1 dia