dark
899288180a
feat: Phase 2 AI management CRUD — providers, models, API keys
Backend:
- Add provider/model/key types and routes to ai.api + base.api
- Generate 11 handler + logic stubs via goctl
- Implement provider CRUD logic (list/create/update/delete)
- Implement model admin CRUD logic (create/update/delete)
- Implement API key CRUD logic (list/create/update/delete)
- Add Casbin policies for key management and admin endpoints
- Add menu seeds with proper icons (Cpu, Key, MessageSquare)
Frontend:
- Add provider/model/key TypeScript types and API client methods
- Create AIModelManagementPage with provider + model tabs
- Create AIKeyManagementPage with key CRUD and provider dropdown
- Register routes and page titles for /ai/models and /ai/keys
- Add Cpu, Key, MessageSquare icons to Sidebar icon map
1 month ago
dark
58a91f40ec
feat: AI chat markdown rendering + layout alignment fixes
- Add react-markdown, remark-gfm, react-syntax-highlighter for AI responses
- Code blocks with syntax highlighting, language labels, and copy button
- Fix AIChatPage height to fit within MainLayout (calc 100vh-6rem)
- Align top headers (Sidebar logo h-16 = Header h-16)
- Align bottom sections (User info h-14 = Quota h-14 = Input h-14)
- Add /ai/chat page title to MainLayout
1 month ago
dark
057cb12eba
fix: seedRoleMenus adds missing menus + SSE error display
- seedRoleMenus now adds new menu items to existing roles
- AIChatPage shows SSE error messages in assistant bubble
1 month ago
dark
80aa7c623a
feat: register AI Chat route in App.tsx
1 month ago
dark
208992d80a
feat: add AI Chat page with SSE streaming support
- Left sidebar: conversation list, new chat, balance display
- Center: message list with real-time streaming
- Bottom: textarea input with model selector
- Auto-scroll, conversation CRUD, rename/delete
1 month ago
dark
45f614f61a
feat: add AI types and API client methods (incl SSE streaming)
- AI types: AIModelInfo, AIConversation, AIChatMessage, AIQuotaInfo
- chatStream() AsyncGenerator for SSE streaming
- Conversation CRUD + model list + quota API methods
1 month ago
dark
c35a337695
fix: 修复文件上传按钮无响应和登录错误无提示两个 bug
1. FileManagementPage: hidden input 从 display:none 改为 absolute+opacity:0,
Button 添加 type="button" 防止表单提交
2. AuthContext: login() 在 response.success 为 false 时抛出错误,
使 LoginPage 能正确显示错误提示
3. 更新 file-management.e2e.test.ts,8/8 测试通过
1 month ago
dark
dea4ae80b6
feat: register routes for MyPage, MenuManagement, RoleManagement, OrganizationManagement
1 month ago
dark
b411ac169a
feat: frontend types, API client, AuthContext, and dynamic sidebar
1 month ago
dark
6326bd5970
chore: update test config for account-based login
1 month ago
dark
e31c274a64
feat: frontend login accepts phone/username, remove email from auth flow
1 month ago
dark
d92aba8294
feat: 仪表盘对接后端 API,添加仪表盘 E2E 测试
1 month ago
dark
e7df5f0d6f
fix: 仪表盘使用真实用户数据替代模拟数据
1 month ago
dark
ecc519e322
feat: 添加删除用户确认弹窗
1 month ago
dark
ea819fa7e4
fix: 修复 API 数据格式兼容性问题,完成 E2E CRUD 测试
1 month ago
dark
c44c0a86c5
fix: resolve naming conflict between Activity type and icon
1 month ago
dark
d4ac14fba9
test: add complete E2E CRUD tests for user management with verification
1 month ago
dark
89bc5f0a20
feat: add API verification script and update package.json
1 month ago
dark
8883b23e49
feat: integrate real APIs for Dashboard, Settings and UserManagement pages
1 month ago
dark
02299dfaa1
Add Profile and Dashboard API methods and types
- Add getProfile(), updateProfile(), changePassword() methods to apiClient
- Add getDashboardStats(), getRecentActivities() methods to apiClient
- Add DashboardStats and Activity types
- Update UpdateProfileRequest to include username field
1 month ago
dark
08730a8bfa
test: add comprehensive test execution guide
1 month ago
dark
cf28600cfc
test: add main test suite entry point
1 month ago
dark
e57fb7088a
test: add navigation and route protection Playwright MCP tests
1 month ago
dark
4ae8861481
test: add settings page Playwright MCP tests
1 month ago
dark
f80b2903fb
test: add user management page Playwright MCP tests
1 month ago
dark
099ac92b88
test: add dashboard page Playwright MCP tests
1 month ago
dark
8e35094243
test: add login page Playwright MCP tests
1 month ago
dark
9ae5c5b8ad
test: add Playwright MCP test configuration and documentation
1 month ago
dark
3bcdb439c8
添加 React 前端 PC 版本
1 month ago