feat(email): add format selection to email book dialog (#2650)

Allow users to choose which file format to send when emailing a book.
Includes file size display and large file warnings for files >25MB.

Backend:
- Add optional bookFileId to SendBookByEmailRequest
- Add resolveBookFile() to resolve specific file or fallback to primary
- Update SendEmailV2Service to use specified file path

Frontend:
- Change openCustomSendDialog to accept Book object
- Add format selection with radio buttons showing type/size
- Add "Primary" badge and large file warning banner
- Update book-card and metadata-viewer callers

Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
ACX
2026-02-07 12:28:21 -07:00
committed by GitHub
co-authored by acx10
parent 9392caa991
commit b2a4aa7960
9 changed files with 204 additions and 17 deletions
@@ -256,7 +256,7 @@ export class MetadataViewerComponent implements OnInit, OnChanges {
label: 'Custom Send',
icon: 'pi pi-cog',
command: () => {
this.bookDialogHelperService.openCustomSendDialog(book.id);
this.bookDialogHelperService.openCustomSendDialog(book);
}
}
]