Spaces:
Running
Running
Commit History
Today
-
security(cfskill-run3): deep audit fixes + SonarCloud quality pass
Z UserAudit (cloudflare/security-audit-skill, 7 coverage units, 5 hunter waves): - cache: Redis delPattern prefix->glob — settings/approval-gate invalidation was a silent no-op under Redis (stale contact info + delayed gate close) - jwt/approval: remove hardcoded dev APP_SECRET fallback (public repo secret) - boot: production fatal log when EDGE_HOST_ENFORCE unset (fail-loud) - yt-sync: GET /state now bound to x-sync-ts window (eternal replay lane gone) - paymob webhook: signed currency actually passed to verifyPaymobAmount; promo quota released on terminal FAILED events (+ idempotent re-consume when a later event completes the same order) - push: endpoint rows can no longer be re-bound/cross-deleted between users - sessions: bounded device-metadata strings (column widths) - notification links: protocol-relative URLs rejected; noopener unified; Paymob redirect pinned to accept.paymob.com - deploy.sh: secret gate covers re_/gsk_/nvapi-/modal-/mysql:// families SonarCloud (194 open ->…700d33c
4 days ago
-
fix(sonar): wave 4 - resolve 114 findings (payment-router, sld render/repair, chatbot-prompts, cache, Register, ArticleDetail, chat-format, user-ai-provider, image-quota, email, chatbot-errors, push-state, Footer, notes-router, local-auth, think-filter, settings/maintenance/paymob routers, youtube-watcher, referral, env)
Z User- S3776 extractions (getSystemPrompt via SystemPromptArgs, chatbot-prompts 51->15, email OTP verify flow, local-auth register/login/updateProfile) - S9382: NOSONAR only for documented sequential necessities (Redis SCAN pagination, bulkUpsert pool cap, ordered SQL dump, oEmbed concurrency pool) - S8786: credential regex de-duplicated quantifiers, email validator split, UA WebView regex preserved via differential corpus test - S6551: describeCause/JSON diagnostics; S6759 readonly props; S5906 in tests - contract tests re-pinned to helper-based equivalents (2FA helper call site, finalizeEmailVerification pendingEmail flow, changeEmailWithVerification rate-limit-inside-branch) - all runtime invariants unchanged Verified: tsc clean, eslint 0 errors, vitest 1394/1394.da57150
-
fix: resolve all lint warnings, update hero banner image
- Replace hero-main.svg with hero-main.jpg for home banner - Remove invalid inlineCSS option from vite.config.ts - Fix node:path import in vitest.config.ts - Fix unused vars in CourseDetail.tsx and Courses.tsx - Replace any types with proper types in cache/init.ts - Add eslint-disable comments for legitimate any/set-state-in-effect patterns - Suppress react-refresh warnings in UI component files - Fix exhaustive-deps warnings in hooks All checks pass: build, tests, eslint, tsc, biome2eb93af
-
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
-
feat(strict-checking): install Pyright + Biome, add ultra-strict tsc, fix all issues
ahmdelbaz28-ux## Pyright (Python type checker) - Installed pyright 1.1.411 as devDependency - Ran on elbaz-platform: 0 errors (project is 100% TypeScript, no Python files) ## TypeScript ultra-strict mode (tsconfig.ultracheck.json) Created new tsconfig extending tsconfig.app.json with additional strict flags: - noImplicitReturns, noImplicitOverride - allowUnusedLabels: false, allowUnreachableCode: false - forceConsistentCasingInFileNames: true - strictBindCallApply, strictFunctionTypes, strictNullChecks (all explicit) Fixed 9 errors found by ultra-strict check: - TS7030 (6x): Not all code paths return a value — added explicit 'return;' in security.ts, shield.ts, ChatBot.tsx, CookieConsent.tsx, AnimatedCounter.tsx, useWatchTracker.ts - TS4114 (3x): Missing 'override' modifier in ErrorBoundary class — added 'override' to state, componentDidCatch, render methods ## Biome 2.5.2 (strict linter) - Installed @biomejs/biome 2.5.2 as devDependency - Created biome.json with recommended preset + sensib…92398e6
-
fix(sonarcloud): batch 10 — S3358 nested ternaries + S2933 readonly members
ahmdelbaz28-uxS3358 (nested ternaries, 24+ fixes): - New src/lib/i18n.ts: bilingual(ar, en, isRTL) + bilingualByLang(ar, en, lang) helpers that eliminate the need for nested ternaries in i18n code. - 18 automated swaps via script: * Admin.tsx (6), AdminNotificationPanel.tsx (3), Register.tsx (3), ResetPassword.tsx (2), Login.tsx (2), VerifyEmail.tsx (1) - Manual fixes for non-i18n nested ternaries: * api/health-router.ts: 3-level R2 detail ternary → if/else chain * src/components/ui/ScrollReveal.tsx: 4-branch direction ternary → Record<string, string> lookup * src/components/ui/BentoCard.tsx: span ternary → Record lookup * src/components/ChatBot.tsx: delay ternary → if/else chain * src/pages/Admin.tsx: ticket/payment status badge 3-branch ternaries → Record<string, string> lookup maps with ?? fallback S2933 (unused private members → readonly, 46 members): - New scripts/fix_readonly_members.py: class-aware script that finds private members only assigned in the constructor…7226608
-
feat(images): replace hero banner + generate professional course thumbnails
ahmdelbaz28-uxHERO BANNER: - Replaced hero-main.webp with professional ETAP software screenshot COURSE THUMBNAILS (all AI-generated, 1344x768, professional quality): - course-cable.jpg: high-voltage power transmission lines at golden hour - course-etap.jpg: ETAP software interface with one-line diagram - course-skm.jpg: short circuit analysis with relay coordination curves - course-powerfactory.jpg: power flow analysis with voltage profile graphs - course-pvsyst.jpg: large-scale photovoltaic solar farm, 3D isometric - course-panel.jpg: electrical control panel with breakers and wiring All images are LFS-tracked with properly cached objects.2aed803
-
feat: implement Elite SWR caching, JWT fingerprinting, and performance optimizations for a zero-latency, high-security platform
ahmdelbaz28-ux7e932a9 -
feat: Elite Engineering UI Modernization, Production Auth Fixes, and HF Deployment Stability
ahmdelbaz28-ux50a005c