Spaces:
Running
Running
Commit History
Yesterday
-
fix(mobile+load): full platform review — phone cropping, boot race, hung-provider stalls
Z UserMOBILE (owner report 2026-12-02: admin Users tab clipped on phone): - Users tab approvals rows: min-w-0 + flex-1 on the text block and break-all on the email line — a long unbreakable email token pushed the row past the card edge and the card's overflow-hidden CLIPPED it (reproduced at 320px, row painted 122px off-screen; now wraps inside the row) - Global safety net: html/body overflow-x clip (clip, not hidden — sticky keeps working) so one unbreakable token can never widen the page again - Grid auto-track blowout: 34 grids across 9 files declared cols only at sm/lg (grid gap-4 lg:grid-cols-N) — the implicit auto track sized to max-content, so nowrap content inflated tracks to 715px on a 320px screen (dashboard Recent Activity). Base grid-cols-1 added everywhere - Dialog/AlertDialog primitives: grid-cols-1 on the content grid — the bare shadcn `grid` sized its implicit track to max-content, so dialogs hosting truncate/nowrap rows (lessons manager) scrolled their whol…8054c5d -
feat(mobile): SidebarX-style drawer — floating 20px card, gradient-glow active cell, bottom collapse chevron
ahmdelbaz28-uxPort of Frezyx/sidebarx visual language to the site's mobile drawer: - Floating panel: 10px inset on all anchored edges + safe-area env() calc, borderRadius 20 (theme.decoration), deep shadow — like the SidebarX card - Items: 10px-radius bordered cells; selected = accent gradient fill + 40% border + glow boxShadow (selectedItemDecoration port), replaces old dot - SidebarX signature bottom collapse chevron (aria-labelled, testid mobile-menu-toggle), arrow points to the anchored edge = collapse direction - Icons 20px (SidebarX iconTheme size), light-theme glow override added Zero logic changes: focus trap, Escape, body scroll lock, drag-to-close, drag guard, route-change close, NotificationCenter bell all untouched. Verified: tsc clean, vite build ok, 1465/1465 tests green.5484b55
2 days ago
-
feat(admin): professional glowing approval-gate toggle + fixed multi-select
Z UserOwner report 2026-12-01 (with phone screenshots): 1. ROOT FIX — the mobile 44px touch-target rule inflated role=checkbox and role=switch buttons into ~44px squares: giant ugly checkboxes, distorted rows, an unrecognizable gate 'switch blob'. Form controls now keep their TRUE visual size and get a transparent ::before hit-pad (44px reach) instead — Apple-HIG pattern, applied globally. 2. Multi-select was unreliable because the first selection inserted the inline toolbar (~50px) and shifted the list under the finger mid-tap. The bulk toolbar is now a viewport-fixed floating bar portaled to <body> (Gmail-style): zero layout shift, thumb-reachable approve/reject/clear with safe-area inset. 3. Approval-gate control redesigned: pulsing live status dot, amber glow on the card + switch while enforcing, plain gray when off — state is readable at one glance. Switch thumb now slides correctly in RTL. 4. Checkboxes restyled proportionate to the text (16px, rounded, am…0d73662
4 days ago
-
fix(sonar): wave 9 - resolve the last 6 stubborn findings
Z User- S2486 cache-nuke: catch now USES the exception (console.debug) instead of a bare comment - definitively compliant - css:S7924 x2: explicit background-color base (#0a0e17) under the translucent gradients so the contrast analyzer composites against the real dark theme (cyan-400 vs dark = ~10.6:1) instead of falling back to white - python:S5843: HEAD_RE_PARTS[0] split under the complexity budget (any() over parts unchanged) - S8786 x2: redact regex rebuilt with fully disjoint character classes (no whitespace adjacency = no backtracking ambiguity, linear scan) Verified: tsc clean, vitest 1394/1394, py_compile clean, node --check.f8a3341 -
fix(sonar): wave 8 - final sweep, all 21 remaining live findings
Z User- S8689/S5144: documented sanitizer/authority invariants (redact() contract, fixed-hostname + origin-form) - taint-model blind spots, NOSONAR justified - S3776 x3: extract collectNormalizedMessages, verifyRightsAndSweep, ReviewsHeader (16 -> <=15 each) - S8786/S5843: extract_refs_kb trailing-number + kW token validators (differential-fuzz equivalent: 0 mismatches / 200k cases), redact() regex linearized in both probe scripts, HEAD_RE_PARTS regrouped (0/60k) - css:S7924 x2: cyan-500 -> cyan-400 at the flagged rules (4.5:1 cleared) - S7503/S3626 write-strategies, S6582 worker, S4323 cables aliases, S7786 TypeError, S2486 comment style Verified: tsc clean, eslint clean, vitest 1394/1394, py_compile clean.5632e3b -
fix(sonar): wave 7 - cleanup round from live scan (93 findings across 65 files)
Z User- 34 in-scope follow-ups exposed by the 17:59 scan (refactor residuals: S3776 helper splits, S4323 type aliases, S6759 readonly on extracted components, S8786 bounded-regex justifications, S6551 scrub patterns, S9440/S7924 CSS at new positions) - python leftovers: 29x S1481 positional _, S8786 regex canonicalization (fuzz-verified), S3776 task24 step-fn hoisting, S1192 dialog/content-type consts - operator tooling: S9382 documented NOSONARs for deliberate poll/throttle loops + Promise.all for independent probes, S8689 second log site routed through redact(), S5144 second fetch site behind UPSTREAM_HOST_ALLOWLIST Verified: tsc clean, vitest 1394/1394, node --check + py_compile on touched scripts.6780540 -
fix(sonar): wave 2 - resolve 112 findings (CourseReviews, telegram-bot, saudi-kb, chatbot, shape, css, refs.test)
Z User- CourseReviews: S3776 40->14 via label helpers, S3358, S6759 readonly props - telegram-bot: S3776 extractions (splitForTelegram, handlePrivateMessage, pollLoop, supervisorBody), S9382 throttle NOSONARs, S7503 de-async, S4782, S6582; retry_after sleep removed from loop - chatbot-saudi-kb: S7780 String.raw x12 - chatbot.ts: S3776 cascade/sweep extractions, S107 bundle, S4123 sync validators, S6551 JSON.stringify diagnostics - docgen/shape.ts: bidiRuns decomposed (95->~2), S3358/S4323/S7755, docgen output pinned by existing tests - index.css + elite-animations.css: S9440 consolidated prefers-reduced-motion blocks, S9449 explicit transition properties, S4666 merged duplicate selectors, S9450, S7924 contrast fixes - chatbot-refs.test.ts: S5906 toHaveLength assertions Verified: tsc clean, eslint 0 errors, biome clean, vitest 1394/1394.c2dde89
7 days ago
-
feat(ui): implement review suggestions #2-#5 — motion discipline, signature completion, proof system, certificate share asset
Z UserSuggestion #2 — one motion per screen (Brand Kit §6): hero is now visually silent except the primary CTA: static Zap badge, static ambient glow, static image frame, static floating cards, static scroll indicator; the ONLY continuous motion is the new .brand-cta-glow pulse (opacity-only pseudo-element, reduced-motion safe). Background icon layer cut 25→5 icons sharing ONE slow 40s transform drift. Suggestion #3 — signature completion: .brand-signature-line now under every Home section title (removed the clashing section-header-glow divider), .brand-signature-hover floors on the AI-section + CTA-banner primary buttons (new optional wrapperClassName on ArcFlashButton — backward compatible). Headline keyword gradient-text switched to the official orange→cyan signature. Suggestion #4 — unified proof system (truthful by construction): green check chip "شهادة موثقة" on course cards, "طالب موثق" badge on every published review (reviews are enrollment-gated server-side…d42fc97 -
feat(brand+seo): signature gradient system + Brand Kit law + noscript SEO fallback
Z UserUI review implementation (safe scope — outside the security agent's files): Suggestion #3 — electric signature (orange→cyan, 3px) now repeats at: - scroll-progress bar pinned page-top (new SignatureProgressBar, rAF, transform-only, reduced-motion safe, RTL origin) mounted in App - boot splash loading bar (was cyan→blue, now the official signature) - course-card top edge reveal on hover (.brand-signature-card in CourseCard) - opt-in utilities .brand-signature-line (section titles) and .brand-signature-hover (primary CTAs) ready for the Home round that follows the security agent's UI rework Suggestion #1 — Brand Kit law: docs/BRAND-KIT.md pins the 60/30/10 color rule, exact token values from index.css, radius/shadow scale, the icon-beside-label button standard, motion rules and the proof system. SEO (review gap #4, minimal fix): <noscript> block in index.html with an Arabic summary + 5 internal links so JS-less crawlers get real text. Verified: tsc clean, biome cl…d4d279d -
fix(ui): icon beside label on every button + WCAG AA button contrast
Z UserRoot cause (icon stacked ABOVE label): ArcFlashButton — the shared CTA used by the landing hero and AI-assistant section — had gap-2 but NO flex display; Tailwind preflight makes <svg> display:block, so the icon rendered as a block ABOVE the text node. Fix at the component root: inline-flex items-center justify-center — every usage inherits the correct icon-beside-name layout. All 39 raw button sites audited via scanner + manual review; shadcn Button, navLinkBase, admin-sidebar-item and btn-primary already carried flex and were healthy. Contrast (computed WCAG 2.1, brand hues preserved): - .btn-primary white-on-accent 2.80:1 -> 6.89:1 (dark text, bg unchanged; light theme 3.68 -> 5.24). Navbar avatar initials fallback same. - cyan-500->blue-600 + white 2.43:1 -> 5.36:1: gradient start deepened to cyan-700 (Faq support CTA, References buttons/badge, ChatBot send/FAB). - emerald buttons keep their bg, text flipped to near-black #04121c: 2.54/3.77:1 -> 7.47/5.03:1 (Quiz finish, Adm…dec24b8
11 days ago
-
perf(lists): content-visibility render-skip for long below-fold lists — articles grid, course reviews, lesson rows, dashboard enrollments, admin mod/audit/roster queues
ahmdelbaz28-uxThree CSS utilities (cv-auto 320px / cv-auto-md 180px / cv-auto-row 72px) with contain-intrinsic-size: auto <estimate> — the browser remembers the real rendered size after first paint, so placeholders only apply to never-seen items and later scrolls never shift layout (CLS-safe with the skeleton-geometry + idle-warm work). Applied from index >= 6-12 per list: the first screenful always paints fully; the growing tail stops rendering (style+layout+paint) until scrolled near — rendering cost becomes ~O(viewport) instead of O(list length) on articles/courses/reviews/lessons/audit pages.fe1f1c0
13 days ago
-
perf(cls,lcp,fonts): zero-CLS landing — root-cure the 0.4 layout shift + self-hosted preloaded fonts
ahmdelbaz28-uxRoot causes found (Playwright layout-shift observer + timeline tracing): 1. Home was a lazy route: the shell (navbar+footer) committed first with the footer inside the first viewport; when the Home chunk arrived ~400ms later the full page pushed it ~9,000px down — ONE 0.4 shift on every landing visit (identical on prod origin and local). Home now ships in the main bundle; first commit IS the real page. All other routes stay lazy. 2. Google-hosted fonts swapped in ~700ms after paint and re-flowed every Arabic text block. All 20 woff2 subsets (Cairo+Inter, arabic/latin/ latin-ext) are now self-hosted (public/fonts/ + generated src/fonts.css with unicode-range), preloaded above the fold — they arrive before first paint (paint is JS-gated), so no swap, no reflow, and one less third-party dependency. scripts/selfhost_fonts.mjs regenerates them. 3. Module scripts do not wait for stylesheets: main.tsx now awaits the entry stylesheet before createRoot (hard 4s fai…3b2ad6e
19 days ago
-
feat(ui): remove fixed WhatsApp FAB — keep assistant + scroll-top as the only fixed widgets
ahmdelbaz28-uxRoot-level removal of the always-on WhatsApp floating button per owner request: - App.tsx: unmount WhatsAppButton (sole mount point) - Delete src/components/WhatsAppButton.tsx (button + welcome bubble + tooltip) - index.css: strip .whatsapp-fab/.whatsapp-pulse/.whatsapp-fab-wrap/enter & welcome keyframes/light-mode rule; re-stack the two remaining FABs — mobile: chatbot now bottom-most (old WhatsApp slot), scroll-top one step above (no empty gap); desktop unchanged (chatbot bottom-right, scroll-top bottom-left) - tailwind.config.js: drop whatsapp-pulse animation + keyframes - ChatBot.tsx / useFabScrollVisibility.ts: purge stale WhatsApp references - Kept intact: admin contact-settings fields (whatsapp number storage) and push-state in-app-browser UA detection (unrelated features) Verified: typecheck clean, 948/948 unit tests, production build OK, 8/8 Playwright DOM checks (no WhatsApp FAB on mobile+desktop, chatbot bottom-most on mobile with scroll-top stacked 10px above, desktop corn…fa37f6d
23 days ago
-
feat(login): cinematic muted video background — power-grid/ETAP scene
Z User- New 10s background video (public/videos/login-bg.mp4, 1.2MB, audio track fully REMOVED via ffmpeg -an + faststart for instant web start) + poster JPG fallback for slow connections / reduced motion. - Login.tsx: fixed full-screen <video> (autoplay muted loop playsInline), poster underlay, dark contrast gradient + vignette for WCAG-readable glass card, fade-in on canplay, onError fallback to poster, one frosted panel around Google + form, brand impression strip. - index.css: prefers-reduced-motion hides the looping video (static poster shown instead). - security.ts/cache.ts: mp4|webm|m4v|ogg|mp3 now classified as static assets → correct Cache-Control (1d + stale-while-revalidate) for media. - Verified: tsc clean, vite build clean, browser test desktop+mobile (video playing muted, looping, zero console errors).41b4201
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
-
fix(chat): header compaction actually applies on touch devices — scope the global 44px coarse-pointer rule and RTL line-heights to .chatbot-header; add task23 vision e2e (robust cookie dismissal, bubble-count polling)
Z User78bda2e -
feat(chatbot): mobile fullscreen chat + fully private engine identity
Z User- Mobile only: the chat window now opens edge-to-edge (100vw x 100dvh, zero radius) for a much larger, clearer reading area; with the keyboard open it stays pinned to the keyboard's top edge at full visual height. Bubble font bumps to 14.5px/1.75 and the input area respects the safe-area inset. Desktop keeps the 420px card unchanged. - Provider/model identity is never shown anymore: the 'Thinking with [model]...' label became a neutral 'Thinking...', the per-message model tag is removed, and mode descriptions no longer mention models. The server still returns the model id for health bookkeeping — the UI just never surfaces it (owner request).9c5c2e6 -
feat(home): Most Popular Articles section + real ETAP cover + WhatsApp welcome bubble + keyboard-aware FABs + circular og-image
Z User- Home: new 'Most Popular Articles' section mirroring the courses block — teaser cards (cover, category, read time, views, author, date) with View All link to /articles; hidden when nothing is published - Article cover: real (non-AI) ETAP 2026 official screenshot, recomposed to 2:1 with blurred fill (public/article-etap-cover.jpg); production article row updated via admin API - WhatsApp FAB: proactive custom welcome bubble (team name, online pulse, bilingual greeting) — enters 1.4s after the FAB, auto-dismisses at 14s, session-persistent manual close, retires once the tooltip opens - FABs: soft-keyboard awareness — visualViewport shrink (<=75% of rest height) hides all floating buttons while typing on mobile - og-image.png regenerated with the circular AE brand identity + Cairo typography (scripts/make_og_image.py); both images travel as proper Git LFS objects (HF Spaces rejects plain binary blobs)f77f442 -
feat(ux): YouTube-style FAB scroll-hide + 3s WhatsApp entrance + circular brand icons & boot splash
Z User- useFabScrollVisibility hook: FABs dip below the edge while scrolling down, glide back on scroll-up or after a 220ms stop debounce (never hides an open WhatsApp tooltip or an active chat window) - WhatsApp FAB: gentle 3s entrance animation (soft overshoot); fixes old bug where the 2s delay timer re-showed the button on auth pages - Brand unification to the browser tab: favicon.ico/16/32, apple-touch-icon, pwa-192/512 regenerated from logo-circle.png (dark-bg composites for iOS/ maskable, transparent circles for favicons); broken placeholder favicon.svg + mask-icon links removed - Boot splash: static circular logo + loading bar paints before JS, removed automatically by React mount (10s failsafe for stalled JS) - scripts/make_brand_icons.py: regenerates the whole icon set (+print 2048px deliverable saved outside the repo) - E2E: new F8 (3s entrance + splash teardown), F9 (hide-on-scroll/reveal-on- stop), F10 (favicon set + splash live on prod) checks56536ca -
feat(mobile): compact bottom-corner FAB stack — chat/WhatsApp/scroll-top at screen edge
Z User- One tidy vertical column at the bottom-right edge on mobile (WhatsApp 40px bottom-most, chatbot above, scroll-top on top; 40px button + 10px gap = 3.125rem step, safe-area aware) - Icons downsized on mobile only: 48/44px -> 40px (desktop unchanged 56/48px) - Desktop: true bottom corners — WhatsApp + scroll-top stacked bottom-left, chatbot bottom-right at 1.5rem baseline - Minimized chat bubble lands exactly in the chatbot FAB slot (chatbot-min) - Coarse-pointer 44px minimum waived for the compact FABs34f9ebc -
feat(mobile): remove bottom nav bar + professional drag-to-close drawers
Z User- MobileBottomNav (HOME/COURSES/REFS/LOGIN) duplicated the slide-in drawer links and ate screen space — removed from Layout, component file and dead CSS deleted; main pb-20 clearance no longer needed - Site drawer: swipe right to dismiss (dragDirectionLock so vertical scrolling still works), tap-suppression guard after drags, whileTap feedback, rounded edge, animated active dot, gradient accent hairline - Admin drawer: same drag-to-close on mobile only (left-anchored), rounded edge on mobile, guard prevents accidental tab activation310a2cd
-
fix(mobile): declutter bottom FAB cluster — one tidy column, calm corners
Z UserMobile bottom area had 3 scattered pulsing circles (WhatsApp bottom-left, scroll-top stacked above it at a different baseline, chatbot bottom-right) crowding the bottom nav — measured 140px of overlapping noise. - WhatsApp FAB now stacks DIRECTLY above the chatbot FAB on the right (48px buttons, 12px gap, flush right edges) — one tidy column - Scroll-to-top sits alone on the LEFT at the same 5rem baseline as the chatbot FAB — symmetric single button, no longer stacked on WhatsApp - Chatbot ping pulse now only fires with unread messages (constant ping next to the WhatsApp pulse was visual noise) - WhatsApp tooltip re-anchored responsively (right-anchored on mobile, left-anchored on desktop) with matching arrow position - Desktop layout unchanged: WhatsApp bottom-left @5rem, chatbot bottom-right, scroll-top in its original corner (verified 1440x900) - Playwright geometric test: scripts/fab_declutter_test.py (mobile 390x844 + desktop 1440x900, stack gap/right-edge/baseline/na…8f97cbf
-
feat(chatbot): keyboard-aware mobile UX, RTL bidi, synced auto-scroll, language mirror, step formatting
Z UserChatbot: - visualViewport keyboard handling: chat window pins above the on-screen keyboard on mobile (iOS Safari + Android Chrome), full visual height, input + latest message always visible - stick-to-bottom auto-scroll synced with the streaming cursor (useLayoutEffect pre-paint) + jump-to-latest chip when the user scrolls up; ResizeObserver re-sticks on viewport resize; scroll-clamp events after container resize no longer break following - RTL bidi: bubbles dir=rtl when content has Arabic script (reader reads from the right); code blocks/inline code pinned LTR; input mirrors the typed language direction - language mirror: replies follow the user's message language, not the UI language (client detection + server-side resolve in both endpoints) - step formatting: numbered '1.' lines render as styled ordered list with cyan number badges (RTL-aware), '-/•' bullets, ### headings; **bold** renders as cyan-highlighted key terms - system prompts: language-mirror + one-step…2f888df -
improve(mobile): native-feel mobile fixes — FAB sizing, scroll-top collision, platform baseline
Z UserPer mobile-native skill review at 390x844: - Chatbot & WhatsApp FABs: 48px on mobile (was 56px, cramped on 390px screens), desktop unchanged at 56px (md: breakpoint) - ScrollToTop: was pinned at bottom 1.5rem on mobile -> overlapped the Home tab of the bottom nav (y 772-820 vs nav 779-844). Now stacks above the WhatsApp FAB column (left-aligned x=16, 44px), desktop corner position untouched - Chat window: 100vh -> 100dvh (URL-bar overflow on iOS) - Inputs: 16px min on pointer:coarse (iOS focus zoom fix) - hover gating: tailwind future.hoverOnlyWhenSupported -> no stuck hover after tap on touch - Controls: touch-action manipulation, user-select none (no 300ms double-tap wait, no long-press callout) - Chat messages scroll: overscroll-contain (stops scroll chaining) - viewport: interactive-widget=resizes-content (Android keyboard shrinks layout so chat input stays visible) - theme-color: matches header bg #0a0e17 (was brand cyan) + per-theme JS update kepta36e639
-
feat: premium UI redesign with WCAG AA contrast and theme tokens
- Redesigned all pages with premium dark theme, glass morphism, and high contrast - Replaced hardcoded hex colors with CSS variables and Tailwind theme tokens - Updated global CSS with new color palette, animations, and typography - Redesigned Navbar with scroll-hide/reveal behavior and glass morphism - Redesigned Footer with ambient glow and premium layout - Updated Home page with cinematic hero, bento grid, and scroll-driven sections - Redesigned auth pages (Login, Register, ForgotPassword, ResetPassword, VerifyEmail) - Updated Dashboard, Profile, Courses, CourseDetail with premium cards and contrast - Updated Documents, References, Support, Wishlist, LearningJourney with theme tokens - Updated legal pages (PrivacyPolicy, RefundPolicy, TermsOfService, Faq) - Fixed Home.tsx SOFTWARE STRIP JSX structure and logo markup - Fixed broken image references: /hero-bg.jpg -> /hero-main.svg - Removed unused closeButtonRef in Navbar causing TS6133 - TypeScript check passes cleanlya6746df
-
feat: apply cyberpunk engineering UI updates and fix TS compilation errors
6ef332a
-
feat: chatbot typing cursor + auto-scroll + smooth animations, light mode icon color fixes
ahmdelbaz28-ux- Professional typing cursor (thin vertical bar with glow) - Auto-scroll during streaming and after message completion - Smooth fade-in animation for streaming text chunks - Smooth enter/exit animations for typing indicator (bouncing dots) - Fixed stacking timeout bug in typing exit animation - Added 8 new light mode icon color overrides (violet, emerald, rose, etc.) - Added placeholder colors, badge backgrounds, admin tab states10963b9
-
fix(sonarcloud): batch 14 — clear remaining manual code smells
Z User- S1128/S1481/S1854: removed unused imports/vars (Counter, statSync, indent, forceProd) - S1121: extracted assignment from expression in index.html - S7726: named anonymous function in k6-load-test.js - docker:S7031: merged consecutive RUN instructions in Dockerfile - css:S1874: word-break: break-word → overflow-wrap: break-word - css:S4666: removed 5 duplicate selectors in elite-animations.css - css:S7924: replaced translucent rgba backgrounds with opaque #0f172a (WCAG AA) - shelldre:S7677: appended >&2 to 8 error echoes in shell scripts - shelldre:S1192: defined SEP and TS_FMT constants in shell scripts - S2004: extracted 10 nested arrow functions to module scope - S6819 (aria): converted 2 div[role=button] overlays to <button> - S6845/S6847: converted InputGroupAddon and NotificationRow divs to <button> - S6824: moved aria-hidden from <picture> to inner <img> - S6825: wrapped <canvas> in <div aria-hidden=true> - S6848: added role=separator + tabIndex + onKeyDown to resize handle - S…73cb584 -
fix(sonarcloud): batch 13 — clear 374 OPEN code smells
Z UserWave 1 (mechanical): - S6819: typeof x == 'y' → typeof x === 'y' (loose equality fix) - S6582: arr.indexOf(x) !== -1 → arr.includes(x) - S7773: isNaN → Number.isNaN, isFinite → Number.isFinite - S7769: Math.sqrt(a*a + b*b) → Math.hypot(a, b) - S7762: parent.removeChild(child) → child.remove() - S7764: window.X → globalThis.X (safe props only) - S7758: charCodeAt → codePointAt, fromCharCode → fromCodePoint - S6606: x = x ?? y → x ??= y - S7748: 1.0 → 1, 0.0 → 0 - S7723: new Array() / Array() → [] - S3863: merge duplicate imports from same module - S6353: [^a-zA-Z0-9_] → \W, [0-9] → \d - S7718: rename unused catch param to error_ Wave 2 (S3358 — 73 nested ternaries): - Refactored all nested ternaries into flat form using helper variables, if/else chains, or extracted consts. 22 files touched. Wave 3 (React rules): - S6759 (32): added readonly to all Props type properties - S6481 (5): wrapped Context provider values in useMemo - S6479 (5): replaced array index keys with stable identif…d3a69df
-
fix(sonarcloud): batch 4 — kill remaining BUG + 4 VULN, CSS duplicates
ahmdelbaz28-uxBUG (1): - typescript:S905 — sidebar.tsx: move `import { visualRandom }` AFTER `"use client"` so the directive is the first statement in the module (the bare directive expression was flagged as S905). VULNERABILITIES (4): - typescript:S5852 (CRITICAL, x2) — api/lib/env.ts:62 + src/lib/validation.ts:32: tighten the email regex by excluding `.` from the character class (`[^\\s@.]+`) so each dot-segment is a single label and the engine has exactly one way to split local-part vs. domain (no nested quantifier ambiguity). Previous `(?:\\.[^\\s@]+)+` form was still flagged by S5852. - docker:S6470 (CRITICAL) — Dockerfile: replace `sonar:off/on` block with a single `# NOSONAR` comment line. - typescript:S5332 (MINOR) — tracing-instrumentation.ts: add sonar:off block around the internal `http://otel-collector:4317` OTLP endpoint with justification (gRPC TLS is configured at the channel, not the URL). - kubernetes:S5849 (MAJOR) — node-exporter/00-node-exporter.yaml: add sona…7471e03 -
fix(sonarcloud): comprehensive security & quality fixes — 200+ issues resolved
ahmdelbaz28-uxBLOCKERS (2): - secrets:S8215 — api/local-auth-router.ts: replace hardcoded bcrypt dummy hash with a lazily-generated hash from crypto.randomBytes (no real hash disclosed in source). - json:S6418 — infra/.../access-policies.json: replace hardcoded Cloudflare service token with ${CLOUDFLARE_ZERO_TRUST_SERVICE_TOKEN_ID} placeholder. CRITICAL BUGS (16): - css:S4670 (x5) — src/index.css: remove stray backslash escapes from attribute selectors ([data-user-menu], [data-sonner-toast], [aria-current]). - typescript:S3923 (x5) — remove ternaries that returned the same value on both branches (ElectricParticles, AdminNotificationPanel x2, NotificationCenter, ForgotPassword). - typescript:S1082 (x6) — add keyboard handlers + role/tabIndex to non- interactive divs with onClick (CookieConsent, input-group, CertificateView, CourseDetail video controls + seek bar + payment modal). VULNERABILITIES (121): - docker:S6470 — Dockerfile: document that COPY . . is safe because of .dockeri…c7df2b5
-
feat: dark mode default + light mode text inversion + enhanced floating animations
b98c54a -
feat(theme): enhance theme animations and light mode compatibility
- Add AmbientOrbs floating gradient background component - Improve StarfieldBackground for light mode with softer colors - Add CSS variables for theme-aware animations in elite-animations.css - Enhance motion.tsx with AnimatedGradientText and TypewriterText - Update Home.tsx section headers to use CSS variables - Add glass-card and footer-glow-text light mode styles729205c -
feat: professional Light Mode — 25+ new CSS rules for polished look
ahmdelbaz28-uxLIGHT MODE ENHANCEMENTS ======================= Added 25+ new CSS rules to make Light Mode look professional and polished, matching the quality of the Dark Mode design. New rules cover: 1. Input fields: white bg, dark text, subtle inset shadow, cyan focus ring 2. Textareas & selects: matching input styling 3. Placeholder text: proper slate-400 color 4. Canvas/StarfieldBackground: light bg (#f8fafc) in light mode 5. Gradient buttons: darker cyan (#0891b2 → #0e7490) for better contrast 6. Glow button effect: softer shadow in light mode 7. Cards: subtle shadow for depth on light background 8. Navbar links: dark text (#334155) with cyan hover 9. Footer: lighter bg (#f1f5f9) with proper border 10. Scrollbar: light theme (slate-200 track, slate-300 thumb) 11. Selection highlight: cyan tint 12. Mobile bottom nav: white bg with shadow 13. Dialog/modal overlay: proper dark overlay 14. Code blocks: light bg with dark text 15. Toast notifications: white bg with border and shadow 16. SVG icons:…aeffab3
-
fix(chatbot): typewriter effect for non-streaming fallback + text containment
ahmdelbaz28-uxTWO UX FIXES for the chatbot: 1. TYPEWRITER EFFECT (text appears word-by-word, not all at once) When the streaming endpoint fails and the fallback /api/chatbot is used, the full reply arrives at once. Previously this showed the entire response in one go — jarring UX. Fix: simulate streaming by revealing the reply word-by-word with natural delays: - 35ms for normal words - 20ms for short words (a, the, و، في) - 80ms after punctuation (feels like a natural pause) The existing streamingContent state + blinking caret UI is reused, so the visual effect is identical to real streaming. Respects abort: if user clicks 'stop', the typewriter stops. 2. TEXT CONTAINMENT (text stays within the chat bubble) Long words, URLs, and code blocks were breaking out of the bubble width, making the text look like it was floating outside the chat. Fixes: - Added 'overflow-wrap: anywhere' + 'word-break: break-word' to all message bubbles (regular + …ece13f1
-
feat(theme): dark/light mode toggle + theme-aware logo & starfield
ahmdelbaz28-uxNEW: Dark/Light mode system with one-click toggle in the navbar. THEME SYSTEM: - New hook: src/hooks/useTheme.ts • localStorage persistence (key: 'elbaz-theme') • Respects prefers-color-scheme on first visit • Listens to system preference changes (if user hasn't explicitly chosen) • Sets data-theme attribute on <html> • Updates theme-color meta tag for mobile browser chrome • Adds .theme-transitioning class for 300ms during switch for smooth color transition (removed after animation completes) - FOUC prevention: inline script in index.html runs BEFORE React, reads localStorage/prefers-color-scheme, sets data-theme instantly. Prevents flash of wrong theme on page load. - Light mode CSS overrides (src/index.css, ~130 lines): • Comprehensive overrides targeting all hardcoded dark Tailwind arbitrary classes (bg-[#0a0e17], bg-[#111827], text-[#f0f4f8], border-[#1f2d44], etc.) • Light palette: slate-50 bg, white cards, slate-200 borders, slate-900 text,…e047932 -
feat(starfield): animated shooting stars + twinkling starfield background
ahmdelbaz28-uxNew component: src/components/StarfieldBackground.tsx - Renders a single fixed full-viewport canvas (z-index: -1) behind all site content, on every page (mounted once in <App>). - Twinkling stars: ~300-380 stars (density adapts to viewport), each with randomized radius (0.3-1.4px), base alpha, and twinkle phase so the sky breathes naturally. - Shooting stars (meteors): spawn every 2-6s (avg ~3.5s) from top or top-right edge, streak diagonally at 600-1100px/s, leave a fading gradient trail (80-200px), then fade out. ~18% chance of a 2-star burst for variety. - 3 meteor hues: cyan (55% — site accent), white (30%), gold (15%). - Soft 'nebula' corner glows: two slowly drifting radial gradients (cyan top-left + indigo bottom-right) that give depth without distracting from foreground. - Bright meteor head with shadowBlur glow for the 'lit' look. Performance: - One canvas, one requestAnimationFrame loop — no per-frame React re-renders. - Pauses when tab is hidden (visibilityc…a93457a -
fix(logo): redesign circular badge + replace ETAP with official logo
ahmdelbaz28-uxLogo3D redesign (src/components/Logo3D.tsx): - Removed amateurish spinning conic-gradient ring around the logo - Removed holographic sweep + aggressive 3D tilt on hover - Removed pulsing glow ring - Now: clean circular badge with site-matching dark gradient - Subtle 4s breathing accent glow (respects prefers-reduced-motion) - Hover: gentle 6% scale + brighter glow (no tilt) - Logo image file (/logo.png) is UNCHANGED — only the badge around it ETAP logo fix: - Replaced with official red 'etap' wordmark from etap.com - Was: incorrect circular globe-like icon - Now: official 'etap' red logo with registered trademark (R) - Files: public/software-logos/etap.png + etap.webp (real binaries via LFS) Cleanup: - Removed @keyframes logo3d-glow-pulse from src/index.css - Removed logo3d-glow-pulse animation entries from tailwind.config.js - Fixed incorrect comment in src/pages/Home.tsx (was 'Digital Twin circular logo') Verified: TypeScript passes strict type-check (noUnusedLocals, noUnusedParam…8116c4b
-
Fix UI crashes, fix memory pressure check, and update professional branding
356d780
-
feat: 2030-level UI overhaul — animated icons, bento grid, parallax hero, magnetic cursor, scroll reveals, aurora backgrounds, holographic cards, animated counters, complete admin dashboard rewrite with sidebar nav, course management, user role control, analytics, inline CMS editing
ahmdelbaz28-ux0409dbc
-
feat: improve animations, fix Google OAuth, update Clarity ID, and add shimmer effects
ahmdelbaz28-ux- Fixed Google Identity Services lazy loading in Login.tsx (load GIS script on demand) - Updated Microsoft Clarity Project ID from wlrwynnnwk to 3311349506496452 - Added shimmer shine sweep effect to CourseCard - Added comprehensive CSS animation utilities (shimmer, ripple, glass-card, carousel, accordion, skeleton pulse) - Updated clarity.js to use correct project ID - All credentials configured in .env (excluded from git)27faa4d
-
feat: Elite Engineering UI Modernization, Production Auth Fixes, and HF Deployment Stability
ahmdelbaz28-ux50a005c