diff --git a/design/issues/remove-placeholder-courses.md b/design/issues/remove-placeholder-courses.md new file mode 100644 index 0000000..8b2a460 --- /dev/null +++ b/design/issues/remove-placeholder-courses.md @@ -0,0 +1,21 @@ +# Remove placeholder courses and stand-in photos after backend integration + +**Labels:** cleanup, after-integration + +The demo seed has placeholder content so the catalog, checkout and player can be clicked through before real courses exist. Remove it once the backend serves real courses. + +## Remove +- Placeholder courses in `packages/db/seed/demo-seed.mjs` (block marked `PLACEHOLDER`): + - `soft-glam-evening` (crs-softglam) + - `traditional-habesha-looks` (crs-habesha) + - `building-your-clientele` (crs-clientele) +- The rest of the demo catalog, if production data replaces the seed: `makeup-foundations`, `bridal-makeup`, `skin-prep-and-care`, `crs-business` (draft), `payment-test`. +- Stand-in covers: `CAT_PHOTOS` / `coursePhoto()` in `packages/features/src/ui.tsx` fall back to category photos when a course has no `coverAssetId`. Real covers replace these. +- Placeholder student-work photos in the footer reel (`WORK_PHOTOS`, marked `ponytail:` in `student.tsx`). +- Vimeo placeholder playback for lessons without `videoAssetId` (`VIMEO_PLACEHOLDER` in `ui.tsx`). + +## Done when +- [ ] Catalog, home, landing stats and featured rows show only real courses +- [ ] No course page shows a category stand-in photo +- [ ] Every lesson plays its uploaded video +- [ ] `node tools/preview/smoke.mjs` passes against the real data diff --git a/packages/db/seed/demo-seed.mjs b/packages/db/seed/demo-seed.mjs index 5dc2175..06b3e38 100644 --- a/packages/db/seed/demo-seed.mjs +++ b/packages/db/seed/demo-seed.mjs @@ -122,7 +122,7 @@ put('courses', 'crs-skin', order({ ...base, slug: 'skin-prep-and-care', category ]), ] })); -// ---- simulated catalog extras so there is more to browse, buy (simulated) and watch +// ---- PLACEHOLDER courses (simulated): remove after backend integration, see design/issues/remove-placeholder-courses.md put('courses', 'crs-softglam', order({ ...base, slug: 'soft-glam-evening', categoryId: 'cat-fundamentals', instructorName: 'Meron Tesfaye', instructionLocale: 'am', coverTone: 'clay', status: 'PUBLISHED', isFeatured: true, publishedAt: '2026-06-01T08:00:00.000Z', updatedAt: '2026-09-10T08:00:00.000Z', prices: { ETB: 150000 }, translations: { en: { title: 'Soft glam for evenings', subtitle: 'A camera-ready evening look in under an hour.', audience: 'Artists who know the basics and want a signature evening look.', description: 'Sculpt, smoke and highlight for parties, graduations and photo shoots, with looks built for deep and medium skin.', outcomes: ['Sculpt with warm bronzer instead of grey contour', 'Build a soft smoky eye in three layers', 'Finish skin that glows on camera without flashback'] }, diff --git a/packages/features/src/student.tsx b/packages/features/src/student.tsx index f082155..2861517 100644 --- a/packages/features/src/student.tsx +++ b/packages/features/src/student.tsx @@ -98,7 +98,6 @@ export function StudentApp() { : <> - } @@ -109,7 +108,7 @@ export function StudentApp() {