eacaa5be05
refactor: simplify OAuth routes, add type safety, deduplicate UI components
...
- Extract handleOAuthCallback to eliminate GET/POST duplication in oauth.ts
- Add P2002 race condition handling in findOrCreateUser
- Add .unref() to stateStore cleanup timer to not block process exit
- Use Provider union type instead of bare strings throughout OAuth code
- Export API_BASE from api.ts, reuse in OAuthButtons
- Extract MobileBranding component to deduplicate Login/Register mobile brand
- Extract shared Logo component in AuthBranding
- Remove unnecessary WHAT comments
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-04-03 13:25:50 +08:00
0bab0ecb93
feat: redesign register page with left-right split layout and OAuth buttons
2026-04-03 13:18:07 +08:00
db4e5540ad
feat: redesign login page with left-right split layout and OAuth buttons
2026-04-03 13:18:05 +08:00
a7027c8aaa
feat: add LoginCallback page and route for OAuth redirect handling
2026-04-03 13:17:53 +08:00
0a48152e0f
feat: add AuthBranding and OAuthButtons components
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-03 13:15:56 +08:00
6d633eeac4
feat: add i18n translation keys for auth pages
2026-04-03 13:15:42 +08:00
7f44bc8e32
feat: add loginWithTokens method to auth context for OAuth flow
2026-04-03 13:15:38 +08:00
1712b25748
fix: 修复项目相关页面路由前缀为 /dashboard
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-03 12:29:57 +08:00
7e691a8100
feat: new home web
2026-04-03 00:02:09 +08:00
35511eb877
feat: opt web ux
2026-04-02 22:10:24 +08:00
143b1e8c4b
feat: optimize web ui
2026-04-02 18:22:14 +08:00
a34f486d7c
fix: MCP config type should be 'http' not 'url' for Claude Code
2026-04-02 15:17:51 +08:00
ea1aff7200
fix: correct MCP config snippet - add type:url, use port 3001 directly
2026-04-02 15:12:37 +08:00
afd8b444c7
fix: pre-fetch URL spec then bundle+dereference to handle self-referencing $ref
2026-04-02 15:00:32 +08:00
6aaba810d8
fix: fetch OpenAPI doc from browser to avoid Docker network isolation, add Swagger 2.0 support
2026-04-02 14:51:43 +08:00
5f76abec8b
fix: fix Docker dev proxy and handle non-JSON error responses in frontend
2026-04-02 14:48:40 +08:00
f5907892bf
feat: add Docker Compose setup with Dockerfiles for all services
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-02 13:39:21 +08:00
c3f8b598af
feat: add React frontend with auth, project list, import, and project detail pages
...
Converts packages/web from vanilla TypeScript Vite scaffold to React with:
- React 19, react-router-dom v7, @tanstack/react-query v5, Tailwind CSS v4
- JWT auth context with auto-refresh token support
- Login/Register pages, protected Layout with auth guard
- Projects list with grid cards and delete action
- ImportDialog supporting URL or file upload with API key display
- ProjectDetail with 4 tabs: Documentation, Modules, MCP Integration, Settings
- All TypeScript compiles cleanly (noEmit check passes)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-02 13:36:45 +08:00
f644dc2dfd
feat: initialize monorepo with shared, server, mcp, and web packages
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-02 11:28:59 +08:00