Spaces:
Running
Running
Commit History
Yesterday
-
fix(courses): remove subscribe gate — instant playback, auto-scroll, dead-lesson self-heal
ahmdelbaz28-uxOWNER CONTRACT (2026-12-03): the subscribe-to-the-channel gate is GONE. Why: users clicking a course video hit the subscribe wall; the subscribe button did not open YouTube; most playlist videos answered 'video not available'. Root causes addressed end-to-end: SERVER - course-watching.ts: lessonVideo no longer requires a signed unlock ticket; completeSubscribeUnlock procedure deleted; SUBSCRIBE_REQUIRED cannot occur anymore. Login-first (2026-11-22) unchanged. - settings-router.ts: 'subscribeGate' dropped from the public section allowlist (deny-by-default; legacy rows stay server-side). - playlist-sync.ts: deadYouTube self-heal lane — YouTube-linked lessons whose video LEFT the playlist (broken 'الفيديو غير متاح' embeds and legacy placeholder rows) are purged automatically on trusted full-mirror syncs (gh-relay ingest / admin-manual). Throttled watcher ticks never delete. R2/manual lessons are never touched. CLIENT - CourseDetail.tsx: gate screen, settings query, unloc…889e7bd
4 days ago
-
fix(sonar): wave 6 - operator tooling + infra, 477 findings (scripts/, infra/, tests/, cache/, public/, .agents/, .github/, Dockerfile)
Z UserSECURITY (real fixes at root): - S2083 BLOCKER: lh_static_server path traversal -> canonical resolve + root-prefix check + 403 - S5144 SSRF: prod_reverse_proxy -> fixed upstream + allowlist + origin-form - S5443 x22: probe artifacts moved from /tmp to project-local .cache dirs - S2245 x5: credential material -> node:crypto randomBytes - S8689: log redaction helper for token/secret material - S5145 x4: log injection sanitized; S8476: CSRF URL allowlist - S4036 x3: absolute executable paths instead of PATH lookup - S9383 BUG: cache-nuke promise handled; S3923 x3 + S1244 x2 + S5797 real bugs collapsed / math.isclose SMELLS: python S1192 literals hoisted (53), S3776 refactored (32) with differential fuzz equivalence on parsers, S1481/S1186/S1172/S1854/S8513... ; js/ts scripts S9382/S6582/S3358/S7780/S7785/S4624...; infra worker S3776 28->extracted; page objects; cache/ TS files; GitHub Actions snake_case; Dockerfile RUN arg order; shell [[ conditionals. Verified: node --check all edi…23a1787
28 days ago
-
feat(mobile+growth): phone-perfect video & edges + channel-subscription gate + full admin playlist control
Z UserMOBILE (the owner's 'edges cut / video proportions broken on phones'): - The IFrame API replaces the mount div with a fixed-size iframe (640x360 defaults) — now constructed with width/height 100% AND pinned by CSS ([data-youtube-player] iframe { position:absolute; inset:0; w/h:100% }) so the embedded player fits its 16:9 slot on every viewport, rotation-safe. - viewport-fit=cover made the page edge-to-edge on notched phones: the fixed navbar and every page top sat under the notch. Now: navbar carries safe-area insets, body pads left/right/bottom, all 10 pt-24 pages became pt-[calc(6rem+env(safe-area-inset-top))] (identical rendering when env=0). - Admin dialogs: grids collapse to one column on phones (sm: breakpoints). SUBSCRIBE GATE (required-but-respectful support prompt): - SubscribeGate panel takes the video slot until unlocked; one tap opens YouTube's NATIVE confirm-subscription dialog (?sub_confirmation=1); 'already subscribed' escape; unlock persists per device …fb5a3a0