I am going to inspect the project structure to understand the available files and dependencies before building the Reading Tracker.
I am going to check the package.json to inspect installed dependencies.
I am now going to install lucide-react for rich icons across our bookshelf, charts, badges, and modals, as well as canvas-confetti to celebrate reading milestones and goal achievements.
I will now check src/index.css and index.html to see the current styling configuration and title.
I am going to check index.html to inspect the title and fonts.
I will now update index.html to set a nice title (ShelfLife | Ultimate Reading Tracker & Digital Bookshelf) and include Google Fonts for crisp serif book typography (Playfair Display and Plus Jakarta Sans).
I will now update src/index.css to add custom styles for our realistic bookshelf textures, 3D spine depth shadows, smooth custom scrollbars, vertical text formatting for book spines, and theme styles.
I will now create src/types/book.ts to define the TypeScript interfaces for books, reading logs, genres, yearly goals, badges, shelf customization, and app state.
I will now create src/data/sampleBooks.ts containing a pre-populated library of 18 diverse books with variable page counts, realistic cover URLs, spine colors/textures, highlights/quotes, reviews, and dynamic reading session logs spanning the last 60 days so all charts, heatmaps, and streak meters are immediately populated and interactive.
I will now create src/data/sampleBadges.ts containing the badge definitions and achievement logic for milestones like "Century Club" (100+ pages read in one day), "Genre Explorer" (read books from 3+ genres), "Streak Master" (14-day streak), and "Goal Crusher".
I will now create src/context/BookContext.tsx to provide global state and full CRUD operations for books, reading logs, custom shelf styles, active streak calculations, and badge achievements.
I will now update src/context/BookContext.tsx to resolve the TypeScript null check error when iterating through consecutive streak dates.
I will now create src/components/Navbar.tsx with navigation tabs, interactive streak and goal status pills, search/filter controls, and quick-action buttons (+ Log Reading and + Add Book).
I will now clean up unused imports in Navbar.tsx and add a helpful "Reset Sample Library" button inside the settings menu.
I will now add the "Reset Sample Library" button inside the shelf dropdown in Navbar.tsx so both RotateCcw and resetToSampleData are actively used.
I will now create src/components/bookshelf/BookshelfView.tsx implementing our multi-tiered 3D Spine Shelf view, Cover Shelf view, Grid view, and List view, along with filter pills and sorting controls.
I will now remove the unused ShelfViewMode import in BookshelfView.tsx.
I will now create src/components/analytics/PagesReadChart.tsx to visualize daily pages read over the last 14/30 days, peak reading days, weekly volume comparisons, and reading speed / projected book completion estimates.
I will now remove the unused BookOpen import from PagesReadChart.tsx.
I will now create src/components/analytics/StreakHeatmap.tsx to display our active streak counter, GitHub-style 365-day reading activity heatmap, and unlockable achievement badges.
I will now remove the unused HelpCircle import from StreakHeatmap.tsx.
I will now create src/components/analytics/GenreBreakdown.tsx to visualize genre distribution by book count and page volume, as well as author diversity and literary superlatives.
I will now remove the unused imports (BookOpen, Star, Award, BookmarkCheck) from GenreBreakdown.tsx.
I will now create src/components/analytics/YearlyGoalCard.tsx featuring our 2026 Reading Challenge gauge, projected end-of-year pace analysis, target adjustment controls, and a Finished Books Hall of Fame.
I will now remove the unused Sparkles and Eye imports from YearlyGoalCard.tsx.
I will now create src/components/modals/LogReadingModal.tsx allowing users to quickly log reading progress, duration, mood emoji, and notes for any book in their library.
I will now remove the unused BookOpen and Sparkles imports from LogReadingModal.tsx.
I will now create src/components/modals/AddEditBookModal.tsx enabling users to add new books or edit existing books, complete with a quick-fill preset simulator for famous bestsellers and custom spine color swatches.
I will now create src/components/modals/BookDetailsModal.tsx featuring tabs for reviews, favorite quotes & highlights (+ Add Quote), historical reading session logs, rating selector, and quick progress adjustments.
I will now remove the unused imports from BookDetailsModal.tsx.
I will now replace src/App.tsx with the complete application layout wrapped in BookProvider, rendering all view modes, navigation tabs, global modals, and a footer.
I will now remove the unused BookOpen import from src/App.tsx.
I will now run build_project to test and confirm that the entire Reading Tracker application compiles without issues.
I have built ShelfLife, a complete, interactive Reading Tracker & Digital Bookshelf Web Application pre-populated with an extensive sample library and historical reading session logs.
📚 Key Features & Highlights
-
Realistic Bookshelf Visual & 4 View Modes (BookshelfView):
- 3D Spine Shelf Mode: Books stand upright on multi-tiered wooden or sleek slate shelves (
Mahogany Wood, Warm Oak, Sleek Slate, Minimal Ivory). Each spine has variable width (derived from total pages), variable height, realistic 3D depth shadows, custom spine colors/gradients, vertical title formatting, and a progress bar pill. Hovering gently lifts the book to reveal a floating summary card.
- Cover Shelf Mode: Books lean face-forward on shelves showcasing high-resolution cover art with percentage completion badges.
- Grid Cards View: Modern card grid with rating stars and quick "+ Log Session" buttons.
- Table / List View: Compact list layout ideal for large collections and rapid details lookup.
- Filters & Sorting: Filter by
Status (Currently Reading, Want to Read, Finished, Did Not Finish) or by any of the 8 Genres. Sort by Recently Active, Highest Rated, Progress %, Longest Books, or Title A-Z.
-
Pages Read Chart & Reading Speed Estimator (PagesReadChart):
- Daily Pages Read Bar Chart: Toggle between the last 14 Days or 30 Days. Custom bars with exact hover tooltips showing daily pages logged, time spent reading, session counts, and reading mood emoji (
🔥 😲 🤔 😢 😊 😴). Peak reading days are highlighted with a sparkling star badge.
- Reading Speed & Projected Completion Engine: Calculates your average reading speed in pages per hour and projects the exact completion date and reading hours remaining for every book currently being read.
-
Reading Streak & GitHub-Style Heatmap (StreakHeatmap):
- Active Streak Meter: Tracks consecutive days read with an animated flame icon (
14 Days Active Streak out of the box with the pre-populated library). Also tracks your all-time longest streak.
- 365-Day Contributions Heatmap: GitHub-style calendar grid covering the past 12 months. Squares change from amber to bright orange based on daily pages volume (, , , , and pages).
Files built: index.html, src/index.css, src/types/book.ts, src/data/sampleBooks.ts, src/data/sampleBadges.ts, src/context/BookContext.tsx, src/components/Navbar.tsx, src/components/bookshelf/BookshelfView.tsx, src/components/analytics/PagesReadChart.tsx, src/components/analytics/StreakHeatmap.tsx, src/components/analytics/GenreBreakdown.tsx, src/components/analytics/YearlyGoalCard.tsx, src/components/modals/LogReadingModal.tsx, src/components/modals/AddEditBookModal.tsx, src/components/modals/BookDetailsModal.tsx, src/App.tsx