Commit Graph

36 Commits

Author SHA1 Message Date
9ccd21584f fix(build): use the real API by default so the CI build works
The CI server runs a plain `next build` in apps/demo; it never reads vercel.json, so
`app:build` and its API URL were skipped. With no URL the app fell back to the demo data
source, which only works inside the hosted artifact sandbox, and rezina.yaltopia.com
showed "0 courses".

- the API URL is now the default in apps/demo/app/page.tsx; any plain build uses it
- NEXT_PUBLIC_LMS_API still overrides it (e.g. staging); set empty, it keeps demo data
- `demo:build` sets it empty: the artifact sandbox can't reach outside servers
  (artifact check: no network attempts)
- `app:build` is now just the plain build; README updated
2026-11-03 17:35:11 +03:00
1028caf109 Merge pull request 'Connect the student app to the Rezina API' (#5) from api-integration into main
Reviewed-on: #5
2026-11-03 16:57:59 +03:00
26d518b631 Merge branch 'main' into api-integration 2026-11-03 16:57:11 +03:00
ff5772e9cf build: Vercel builds against the real API by default
- new `app:build` script bakes NEXT_PUBLIC_LMS_API=https://api.rezina.yaltopia.com into
  the student app; the URL lives in package.json, so nobody sets it by hand
- vercel.json runs `app:build`, so a deploy of this branch talks to the API with no
  dashboard settings
- `demo:build` (the hosted artifact demo) is unchanged and keeps demo data: its sandbox
  blocks calls to outside servers (artifact check: no network attempts)
- README: Vercel section updated, including how to build the old in-memory demo
2026-11-02 20:53:55 +03:00
d92180542b fix(api): time out and retry when the API server drops connections
About a third of new connections to api.rezina.yaltopia.com never complete (the TCP
connect hangs; requests that do connect answer in ~0.5s). With no timeout, sign-in sat
on a busy button forever.

- every API call gives up after 12s
- calls that are safe to repeat retry twice: reads, the account lookup, password login;
  sending or verifying a code never retries, so nobody gets two texts or burns a code
- the catalog keeps at most 3 requests in flight instead of firing one per course at once
- sign-in shows "Couldn't reach the server. Check your connection and try again."
  (auth.networkError, om/ti drafts) instead of hanging
2026-11-02 19:29:37 +03:00
8ba936baae feat(api): connect the student app to the Rezina API
ApiDataSource maps the Go API onto the existing DataSource, so the screens are unchanged.
Build with NEXT_PUBLIC_LMS_API=https://api.rezina.yaltopia.com to use it; without it the
demo keeps its own data.

Verified against the live API (public, no sign-in):
- catalog and course outlines: courses, chapters, lessons, lesson notes, covers
- FREE lessons (and every lesson of a FREE course) play for anyone; a free course offers
  "Start lesson 1" instead of a disabled buy button

Built from the spec, not yet tested with a real account:
- sign-in: phone code (login or register) and email + password, token refresh, sign-out
- profile, progress summary (owned courses, completed lessons), lesson video URLs
- video heartbeat, notifications (list, read/unread), issue reports, profile updates

Not on the API yet, so left on hold: per-course prices and purchases (buying shows the
"not connected" message), translations, categories, teacher, durations, prerequisites,
chapter quizzes, Google/Apple sign-in.

Screens now hide what a course doesn't have instead of showing it empty: category pill,
teacher line and creator row, "0 min" durations, an empty card footer. Lessons with a
Vimeo link play that video; the sample clip and "mark as watched" stay for lessons
without one.

Mapping checks (packages/data/src/api.check.ts) run in `pnpm test` against saved live
responses.
2026-11-02 14:23:47 +03:00
d1e398eaa0 Merge pull request 'Course experience polish: course page, home, cards, catalog, player' (#4) from ui-ux-course-polish into main 2026-10-30 11:31:54 +03:00
67650698bf feat(player): lesson player polish L1–L7
- L1: focus mode while watching: site links and the marketing footer are hidden
- L2: the video comes first (edge to edge on phones, right under the header); course,
  chapter and lesson title sit under it, the course name doubling as the way back
- L3: the lesson bar's next button reads "Next" so it no longer wraps
- L4: when a lesson ends, "up next" appears over the video with a 5-second countdown
  (play now / cancel / Escape); the card below the video only shows after cancelling
- L5: the notes card only appears for lessons that have notes, not the course blurb
- L6: the "5 / 7" button opens the lesson list as a bottom sheet instead of scrolling
  the page away from the video; picking a lesson closes it
- L7: chapter markers are round like lesson markers
- The sidebar and the sheet share one CourseContents component
- i18n: player.nextShort, playNow, autoNext (om/ti drafts)
2026-10-27 17:42:48 +03:00
fd382359c0 feat(catalog): catalog polish CT1–CT3
- CT1: chip rows scroll without a visible scrollbar; a faded edge hints there's more
  (also applies to the category chips on home)
- CT2: search filters on every keystroke (no 300ms debounce) and gets a search icon,
  a clear button and Escape-to-clear
- CT3: "Taught in" filter next to the result count, listing only languages the visible
  courses are taught in; the empty state offers "Clear filters"
- i18n: catalog.clearSearch, taughtIn, anyLanguage, clearFilters, emptyLanguage (om/ti drafts)
2026-10-27 17:31:26 +03:00
529f35cdf6 feat(cards): course card polish C1–C4
- C1: one quiet "lessons · length" line; "new course" / student count becomes a tag on the photo
- C2: round arrow removed; the whole card is the target and the footer is just the price
- C3: owned cards show the next lesson and its length above the progress bar
- C4: home Featured becomes a swipe rail of tall cards, the next one peeking past the edge

Card styles were spread over five overriding passes; they now live in one block.
2026-10-27 12:43:23 +03:00
7c9c9d97d5 feat(home): continue card polish H1–H3
- H1: the course photo becomes a short header with the title on it and progress along
  its bottom edge; the full-width button sits at the card's bottom, within thumb reach
- H2: the card leads with the next lesson and its length ("Up next · 5. … · 8 min")
- H3: greeting and continue card form one group instead of two sections 64px apart

Replaces the old .continue rules instead of layering overrides on top of them.
2026-10-27 12:34:36 +03:00
a25c02365f feat(course): course page polish P6–P10
- P6: "last updated" moves from the hero to the end of About
- P7: quizzes sit inside their chapter; only chapterless quizzes keep a final group,
  and quiz rows share the lesson row's look
- P8: share becomes a glass button in the hero corner; the owned chip joins the stat pills
- P9: prerequisite shown in the buy card before purchase instead of a banner below it
- P10: lesson rows always number in the title; the circle shows state (play, check, lock, now playing)
2026-10-26 18:09:08 +03:00
a94514eb6b feat(course): course page polish P1–P5
- P1: sticky buy/continue bar hides while the buy card's button is on screen
- P2: price, preview and "lifetime" shown once; button reads "Buy course"
- P3: phones drop the tabs and stack overview, curriculum and about in one scroll
- P4: owners land on the curriculum with the next lesson's chapter open and an
  "Up next" card instead of the sales list
- P5: instructor tab removed; course count moves to the creator row
- i18n: course.about in all locales (om/ti drafts)
2026-10-26 18:09:08 +03:00
754cebeeff Merge pull request 'Polish waitlist material interactions' (#2) from ui-experience-improvements into main
Reviewed-on: #2
2026-10-22 16:02:46 +03:00
42a85447bf feat(waitlist): polish material interactions 2026-10-21 21:07:05 +03:00
4accffddf8 chore(skills): add interface design guidance 2026-10-21 21:07:05 +03:00
ee7e6b5c1b feat: player sidebar and completion states, payment marquee, international phone on sign-in
- Player sidebar: progress ring header, collapsible chapters with done count and length,
  lesson rows with done / now-playing (animated) / number / lock states and a partial-watch bar
- Completion: lesson-complete card with animated check and an Up next button; course-complete
  celebration with confetti and next steps; "Mark as watched (demo)" on placeholder videos only
- Landing payments: greyscale logo marquee that pauses and shows colour on hover; plain list for
  screen readers; static row under reduced motion
- Sign-in: country dial-code picker (Ethiopia first, default from the browser region)
- Light theme: footer powered-by line stays readable on the dark footer frame

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 15:18:57 +03:00
c6dc5d46a8 feat: guided tour, course cards with enrolled counts, abstract steps, grouped payments, SEO, founder link
- After sign-in a 7-step spotlight tour shows students around (replay from the menu); ends on Esc or navigation
- Course cards: edge-to-edge photo, student count (Course.enrolledCount), arrow that inverts on hover
  (fixes white-on-white hover in dark mode)
- Landing: stats removed; How it works uses abstract CSS art; payment card grouped by mobile money,
  bank cards and from abroad; step 2 copy covers local and international payment
- SEO: metadata (title template, description, keywords, canonical, Open Graph, Twitter), per-route titles,
  EducationalOrganization JSON-LD with founder Rezina Brhane and her TikTok, robots.txt, sitemap.xml;
  same tags on the waitlist page
- Footers link the founder's TikTok
- Backend issue drafted: design/issues/enrollment-counts.md
- Smoke test: blocks third-party requests (Vimeo iframe stalled unloads), tolerates a missed load event;
  it caught a hook-order crash on the course page, fixed here

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 15:05:39 +03:00
270d36a237 feat(waitlist): SMS or email signup, motion, portrait reel, contact footer
- Hero toggle: SMS (default, international picker) or Email; step 2 asks only the name
- Apps Script accepts either contact, dedupes on email or phone (checks updated)
- Headline words rise in, sections and course photos reveal on scroll, hero photos drift
- Portrait reel under the hero; courses swipe on phones; Why us as big numbers on hairlines
- Footer: landing-style card with Contact us (Telegram, phone, email), credits, Powered by Yaltopia Tech

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 14:20:33 +03:00
4a3561bcb5 feat: menu sheet, first-visit language picker, social sign-in, profile progress, history page
- Header keeps logo, links, bell/avatar or Get started; theme, language and feedback move into
  a menu sheet (native dialog) with large numbered links
- First visit asks for a language, prompt shown in all four
- Sign-in: Google / Apple / Telegram / Facebook buttons (simulated, like the phone code)
- One footer on every page (compact variant removed)
- Profile: identity header, stats, per-course progress with Continue and the lesson/quiz list,
  recent activity; /progress now opens the profile
- History page: dated timeline of lessons, purchases and reports

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 14:16:11 +03:00
e8f6a59d04 feat: stats on hairlines, labelled pay strip, photo course header with buy bar, help page redesign
- Stats: three big numbers, no icon tiles
- Payment methods move out of the step card into a strip that names every method and wraps
- Course page: title on the course photo, preview button in the header; on phones a
  price + Buy (or progress + Continue) bar replaces the app tabs
- Help: big heading, three contact cards (Telegram, call, email with copy), FAQ beside the form
- Header: Get started only (Sign in removed)
- Placeholder courses tagged in the seed; cleanup issue drafted in design/issues/

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 14:07:13 +03:00
5699903ea7 Merge branch 'landing-refresh': Sirkul rebrand, landing refresh, mobile-first pass 2026-10-20 12:00:24 +03:00
92cc6a8ddf feat: mobile-first landing pass, lesson bar, dark default, simulated courses
Inspo MCP references: Hyper Effekt / Ferrari (photo hero), Coursera / Babbel (phone rails).
- Hero: headline set on a full-bleed, slowly scrolling reel of portraits
- How it works + payment panels replaced by three photo step cards; pay marks inside step 2
- Phones: category and step cards swipe as rails, stats in one row, header fits 360-390px
- Lesson bar (Previous / n of N / Next lesson) replaces the app tabs inside a course below 1024px;
  app tabs show only when signed in
- Header logo crossfades from wordmark to monogram on scroll
- Language picker is one dropdown (header and footer)
- Dark theme by default; saved choice still wins
- Demo banner removed
- Footer: "Powered by Yaltopia Tech" with a shine sweep
- Seed: three more simulated courses (soft glam, traditional Habesha, building your clientele)
- artifact-check: data: URIs (the favicon) aren't network requests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 12:00:24 +03:00
3f1993028e feat: course detail redesign, photo covers, two-card checkout, photo sign-in
- Course page follows the user's reference: info card (breadcrumb, title, stat pills,
  created-by), segmented Overview / Course content / Instructor tabs with a
  "what you'll learn" checklist, sticky purchase card with preview pill and
  "This course includes" list
- Cover falls back to a category photo, so catalog, home, my courses and checkout
  no longer show grey placeholders
- Checkout uses the same two cards (methods left, summary + pay right)
- Sign-in side panel gets a portrait and the non-language pitch
- Mobile: tabs fit at 390px, checkout lists methods before the pay button

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 11:38:28 +03:00
81e27661e1 feat: Sirkul brand, landing refresh, new footer, international waitlist phone
- Sirkul logo everywhere (header wordmark, phone monogram, favicon, footer); brand name "Sirkul Makeup"
- One font (Plus Jakarta Sans) across app and waitlist; cursive serif removed
- Habesha model photos from Wikimedia Commons (CC BY-SA, credited in footer and waitlist)
- Landing: light/dark theme toggle, live waitlist pill, photo category cards,
  how-it-works + grouped payment panel, photo CTA; less emphasis on languages
- Footer: framed card with starter-kit list (IconPark icons), student-work photo reel, credits
- Waitlist: international country-code picker, live "people waiting" pill fed by a
  doGet signup count in the Apps Script (count only, no personal data)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 11:22:28 +03:00
629403da0b feat(waitlist): save signups to a Google Sheet via Apps Script
Server-side validation, email dedupe under a script lock, formula-injection
guard, honeypot field. The page posts text/plain so no CORS preflight is
needed. tools/waitlist-check.mjs runs the script against stub services.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 01:33:46 +03:00
829469896f Merge branch 'waitlist': launch waitlist page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 01:29:08 +03:00
8ca2a09406 feat: audit phases 2–3 — compact app footer, number font, CTA/chip/motion polish
Finalises the 2026-10-16 audit decisions (Q1–Q3) and withdraws M10
(a Vimeo/file:// screenshot artifact, not a product bug).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 22:51:59 +03:00
69cb247d8e feat: waitlist page for launch signups (name, email, phone)
Standalone page served at /waitlist/. Phone numbers are normalised to E.164
(+251 for local numbers). ENDPOINT must be set before public use; until
then signups are kept only in the visitor's browser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 22:17:29 +03:00
9b8da0b245 feat: UX audit 2026-10-16 and phase 1 visual fixes
- Signed-out visitors no longer see owned/progress state (store hides me)
- Course page play button moved off the Ge'ez cover title
- Phone course thumbnails show the title; small thumbnails no longer clip
- Card grid fills the row; text never squeezed by buttons on phones
- Press feedback, touch-safe hover, toast enter transition, custom ease-out
- Add emil-design-eng and grill-me skills

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 22:13:33 +03:00
6480f21b5e feat: customer end only — remove admin screens, admin sign-in, roles and admin styles
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 21:59:38 +03:00
1fccdc07c9 feat(demo): real payment logos, Vimeo placeholder video, new footer, sample assessments
- Telebirr and CBE Birr logos from ethiopianlogos.com; Visa, Mastercard, PayPal and Zelle
  added as checkout methods with their logos (all simulated in ETB)
- Lessons without an upload play a Vimeo placeholder; progress tracked over the player API
- Footer redesigned: wordmark, short story, instructors, makeup-palette art, link columns
- Multiple-choice assessments: seed quizzes for three courses, quiz page with grading and
  review, results on My progress and in admin (student detail, curriculum tab)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 14:04:37 +03:00
62ea6de365 feat(demo): Summer Ocean Breeze palette, placeholder logo, refreshed landing page
White base with navy text, punch-red calls to action and blue UI states;
placeholder logo mark and favicon; light theme pinned for the Vercel site.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 13:28:01 +03:00
afa77f5cca feat(demo): cleaner UI, sign-in page with student/admin switch, English default
- Navbar: brand | links | language, notifications, account menu
- Landing and course page redesigned (hero, stats bar, categories,
  breadcrumb course page with chapter accordion sidebar)
- Sign-in page with Student and Admin tabs; admin screens need an
  admin sign-in on top of edit access
- Admin dashboard: 4 stat cards, the rest in tabs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 01:35:24 +03:00
e0f569dca9 feat: standalone Vercel deploy of the Phase 0 demo
Injects the runtime mock and demo seed into the static export so the
demo runs outside Claude.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 01:12:06 +03:00
118d26d158 feat: Phase 0 Claude-hosted demo of the e-learning platform
Spec v1.2, Logosmental-based design direction and tokens, pnpm monorepo
(apps/demo, packages/data|features|i18n|db/seed), student + admin screens
in 4 locales, simulated ArifPay checkout on the real order state machine,
artifact inline/check tools, domain rule checks and UI audit fixes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 23:57:11 +03:00