Skip to content

Use compact accordion for parts without covers#22

Merged
catherineluse merged 1 commit into
mainfrom
codex/compact-part-accordion
Jul 16, 2026
Merged

Use compact accordion for parts without covers#22
catherineluse merged 1 commit into
mainfrom
codex/compact-part-accordion

Conversation

@catherineluse

Copy link
Copy Markdown
Collaborator

Summary

  • render parts without cover images as compact accordion rows in the desktop book sidebar
  • preserve the existing image-card treatment for parts that have covers
  • keep the part title, chapter count, word count, View action, and expand/collapse behavior in both states
  • add accordion accessibility state and visible keyboard focus styling

Why

The previous fallback reserved a full 16:9 image area even when a part had no cover. That made the placeholder feel like a required image prompt and consumed unnecessary sidebar space. The compact state presents the same information without implying that a cover is missing.

Validation

  • vue-tsc --build
  • ESLint on BookDesktopChapterSidebar.vue
  • Vite production build
  • Vitest: 21 files, 143 tests passed

@vercel

vercel Bot commented Jul 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ai-beta-reader-frontend Ready Ready Preview, Comment Jul 16, 2026 5:14am

Request Review

@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 7 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/components/book/BookDesktopChapterSidebar.vue 50.00% 7 Missing ⚠️

📢 Thoughts on this report? Let us know!

@catherineluse
catherineluse marked this pull request as ready for review July 16, 2026 05:45
@catherineluse
catherineluse merged commit 5187e9b into main Jul 16, 2026
4 checks 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.

2 participants