Spaces:
Running
Running
Commit History
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
-
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 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 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
-
fix: permanent cache fixes — WBS timestamp, evictExpired safety, session double-delete, API cache headers, nginx no-store, sitemap invalidation, HTML template mtime, graceful shutdown
ahmdelbaz28-ux8738417
-
feat: Elite Engineering UI Modernization, Production Auth Fixes, and HF Deployment Stability
ahmdelbaz28-ux50a005c