Skip to content

Add proper empty-state screen for books with no pages (all pages pruned) #273

@Eliezir

Description

@Eliezir

When all pages of a book are pruned, the Preview stage currently shows a raw JSON error: {"error":"ADT has no pages"}. There is no user-friendly feedback, and the Export stage is also broken in this state since there is nothing to export.

Expected behavior:

A clear empty-state screen should be shown when a book has no remaining pages after pruning
The screen should explain what happened and suggest next steps (e.g., go back to Extract and adjust the page pruning settings)
Export should either be disabled or show an equivalent message
Steps to reproduce:

Open a book where all pages have been pruned
Navigate to Preview or Export
I'll fix this — just filing so I don't forget.

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions