Skip to content

refactor(web): modernize frontend project structure#78

Merged
RussellLuo merged 6 commits into
OpenCSGs:mainfrom
jialudev:refactor/web
May 19, 2026
Merged

refactor(web): modernize frontend project structure#78
RussellLuo merged 6 commits into
OpenCSGs:mainfrom
jialudev:refactor/web

Conversation

@jialudev
Copy link
Copy Markdown
Collaborator

@jialudev jialudev commented May 19, 2026

Summary

  • Refactor the frontend into a Vite/React Web UI project under web/app.
  • Consolidate workspace pages, reusable components, shared styles/theme, i18n, and message rendering into the new frontend structure.
  • Wire the frontend build into the existing Makefile/static embed flow and add focused UI and Web handler coverage.
  • Update cli/serve tests to match the current resolved config output and avoid an async stdout race.

Verification

  • make check-web-toolchain
  • ./scripts/web-pnpm.sh check
  • make build-web
  • env GOCACHE=/Users/jared/opencsg-workspace/csgclaw-workspace/csgclaw/.gocache go test ./... (run outside the sandbox because local listener tests need port binding)

@jialudev jialudev changed the title feat(web): add React workspace UI refactor(web): migrate Web UI to Vite React May 19, 2026
@jialudev jialudev changed the title refactor(web): migrate Web UI to Vite React refactor(web): modernize frontend project structure May 19, 2026
@jialudev jialudev requested a review from RussellLuo May 19, 2026 04:46
…zation

- Removed unnecessary `// @ts-nocheck` comments from various components.
- Updated type definitions in `ConversationView` and `HubDetailPane` for better type safety.
- Replaced `event.target.value` with `event.currentTarget.value` in multiple components to ensure correct value retrieval.
- Introduced new constants in `agents.ts`, `api.ts`, `messages.ts`, and `workspace.ts` for better organization and maintainability.
- Refactored routing logic to utilize new constants and types for workspace tabs and pane types.
- Updated tests to reflect changes in constants and types.
@RussellLuo RussellLuo merged commit fdfbd6a into OpenCSGs:main May 19, 2026
@jialudev jialudev deleted the refactor/web branch May 21, 2026 09:32
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.

2 participants