Skip to content

Refactor WebUI v2 with React, Vite, and unified project logo - #139

Merged
greenthree merged 1 commit into
mainfrom
codex/webui-v2
Dec 4, 2026
Merged

greenthree merged 1 commit into
mainfrom
codex/webui-v2

Conversation

@greenthree

Copy link
Copy Markdown
Owner

Summary

  • Refactor WebUI v2 into webui/ (React 18, TypeScript, Vite, Zustand, Tailwind CSS, lucide-react, @dnd-kit/*, bundled @fontsource-variable/*, marked, mathjax-full), emitting a classic CSP-safe IIFE bundle to scripts/webui/ (app.js, app.css, index.html, markdown-sanitizer.js, logo.svg, asset-manifest.json, and 15 vendored third-party license notices).
  • Hardened CSP, runtime isolation, and packaging gates:
    • Pin all 22 devDependencies exact versions in package.json and package-lock.json (zero dependencies).
    • Fail closed on webui/ and node_modules/ in npm tarball packaging (scripts/check_release.py --pack) while verifying scripts/webui/logo.svg, markdown-sanitizer.js, and deterministic SHA-256 asset manifests (scripts/build_webui_assets.js, scripts/check_webui_csp.js).
    • Route <img src="/webui/assets/logo.svg" alt="ProbHub"> in TopBar.tsx and <link rel="icon" type="image/svg+xml" href="/webui/assets/logo.svg"> in webui/index.html using the unified project logo.svg.
    • Address state/UX/contract fixes across useWorkspaceStore.ts, SandboxTab.tsx, StatementTab.tsx, ProblemHealthTab.tsx, CommandPalette.tsx, TopBar.tsx, and App.tsx (per-problem job scoping, draft memory limit presets [256, 512, 1024], responsive Judge QA badge sizing, Command Palette keyboard navigation, remediation banner).
  • Updated WebUI/packaging test suites (tests/test_ui_security.py including headless Chrome DOM XSS check, tests/test_ui_theme.py, tests/test_ui_write_boundaries.py, tests/test_ui_coverage.py, tests/test_npm_packages.py).

Verification

  • npm run check:static (includes webui:typecheck, webui:build, compileall, node --check, webui:csp-check, python:lock:check, compat/probhub-skill, release:check, pack:check 247/5) -- passed.
  • python -m unittest tests.test_ui_security tests.test_ui_theme tests.test_ui_write_boundaries tests.test_ui_coverage tests.test_webui_runtime tests.test_webui_judge_protocol tests.test_webui_preview tests.test_webui_server tests.test_webui_tasks tests.test_webui_workspace tests.test_batch_build tests.test_npm_packages -v -- 172 tests OK (1 skipped).
  • Live Chrome QA against isolated Schema v1 workspace verified TopBar unified logo.svg, dark/light themes, Command Palette keyboard nav, Problem Studio preview and auto-save, Sandbox matrix and temp judge cleanup, Judge QA layout, 0 console errors, 0 failed HTTP requests.
  • Earlier full npm run check passed 1038 tests (41 conditionally skipped) prior to final UI polish and logo.svg changes; full CI matrix will run on this Draft PR.

@greenthree
greenthree marked this pull request as ready for review December 4, 2026 04:55
@greenthree
greenthree merged commit d462c58 into main Dec 4, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant