mirror of
https://github.com/kikootwo/ReadMeABook.git
synced 2026-06-02 20:30:10 +00:00
cc8e106a2b
Introduce per-user configurable home page sections and a unified Audible cache/category model. Adds Prisma models (UserHomeSection, AudibleCacheCategory) and migrations to create tables and remove legacy popular/new_release flags; updates schema.prisma accordingly. Add API routes for user home sections, live Audible categories, and category-based audiobook listing, and refactor popular/new-releases/covers routes to read from AudibleCacheCategory. Frontend: new HomeSection component, HomeSectionConfigModal, useHomeSections hook, and homepage changes to render dynamic sections plus image fallback to a placeholder SVG. Also add placeholder_cover.svg and tests for home sections and the audible refresh processor.
18 lines
518 B
SQL
18 lines
518 B
SQL
-- DropIndex
|
|
DROP INDEX IF EXISTS "audible_cache_is_popular_idx";
|
|
|
|
-- DropIndex
|
|
DROP INDEX IF EXISTS "audible_cache_is_new_release_idx";
|
|
|
|
-- DropIndex
|
|
DROP INDEX IF EXISTS "audible_cache_popular_rank_idx";
|
|
|
|
-- DropIndex
|
|
DROP INDEX IF EXISTS "audible_cache_new_release_rank_idx";
|
|
|
|
-- AlterTable - Remove legacy discovery flag columns (now stored in audible_cache_categories)
|
|
ALTER TABLE "audible_cache" DROP COLUMN "is_popular",
|
|
DROP COLUMN "is_new_release",
|
|
DROP COLUMN "popular_rank",
|
|
DROP COLUMN "new_release_rank";
|