Commit Graph

5 Commits

Author SHA1 Message Date
d6ae03f42b feat: Complete remaining management pages (Applications, Articles, Monitoring)
Frontend Implementation:
- Applications page: OAuth app management with client ID/secret
  * Client secret regeneration with secure display
  * Redirect URI management with chip interface
  * Copy-to-clipboard for credentials

- Articles page: News articles browser with filters
  * Category, translation, and image status filters
  * Article detail modal with full content
  * Retry controls for failed translations/images
  * Server-side pagination support

- Monitoring page: System health and metrics dashboard
  * Real-time CPU, memory, and disk usage
  * Database statistics display
  * Services status monitoring
  * Recent logs table with level filtering
  * Auto-refresh toggle (30s interval)

All pages follow the established DataGrid + MainLayout pattern with:
- Consistent UI/UX across all management pages
- Material-UI components and styling
- Error handling and loading states
- Full API integration with backend endpoints

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 22:00:13 +09:00
a9024ef9a1 feat: Add Pipelines and Users management pages
Frontend Phase 2 - Additional Management Pages:
- Implement Pipelines management with Start/Stop/Restart controls
- Implement Users management with role assignment and enable/disable
- Add routing for Pipelines and Users pages

Pipelines Page Features:
- DataGrid table with pipeline list
- Type filter (RSS Collector, Translator, Image Generator)
- Status filter (Running, Stopped, Error)
- Pipeline controls (Start, Stop, Restart)
- Add/Edit pipeline dialog with JSON config editor
- Delete confirmation dialog
- Success rate display
- Cron schedule management

Users Page Features:
- DataGrid table with user list
- Role filter (Admin, Editor, Viewer)
- Status filter (Active, Disabled)
- Enable/Disable user toggle
- Add/Edit user dialog with role selection
- Delete confirmation dialog
- Password management for new users

Progress:
 Keywords Management
 Pipelines Management
 Users Management
 Applications Management (pending)
 Articles List (pending)
 Monitoring Page (pending)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 21:50:52 +09:00
30fe4d0368 feat: Implement Keywords management page with DataGrid
Frontend Phase 2 - Keywords Management:
- Add MainLayout component with sidebar navigation
- Implement Keywords page with MUI DataGrid
- Add Keywords CRUD operations (Create, Edit, Delete dialogs)
- Add search and filter functionality (Category, Status)
- Install @mui/x-data-grid package for table component
- Update routing to include Keywords page
- Update Dashboard to use MainLayout
- Add navigation menu items for all planned pages

Features implemented:
- Keywords list with DataGrid table
- Add/Edit keyword dialog with form validation
- Delete confirmation dialog
- Category filter (People, Topics, Companies)
- Status filter (Active, Inactive)
- Search functionality
- Priority management

Tested in browser:
- Page loads successfully
- API integration working (200 OK)
- Layout and navigation functional
- All UI components rendering correctly

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 21:47:45 +09:00
55fcce9a38 fix: Resolve IPv4/IPv6 connection issues in News Engine Console
- Backend: Downgrade Pydantic from v2 to v1.10.13 for compatibility
- Backend: Fix ObjectId to string conversion in user service
- Backend: Update config to use pydantic BaseSettings (v1 import)
- Frontend: Downgrade ESLint packages for compatibility
- Frontend: Configure Vite proxy to use 127.0.0.1 instead of localhost
- Frontend: Set API client to use direct backend URL (127.0.0.1:8101)
- Frontend: Add package-lock.json for dependency locking

This resolves MongoDB connection issues and frontend-backend
communication problems caused by localhost resolving to IPv6.
Verified: Login and dashboard functionality working correctly.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 21:39:32 +09:00
94bcf9fe9f feat: Implement Phase 2 Frontend basic structure
Frontend Setup:
- Vite + React 18 + TypeScript configuration
- Material-UI v7 integration
- React Query for data fetching
- Zustand for state management
- React Router for routing

Project Configuration:
- package.json with all dependencies (React, MUI, TanStack Query, Zustand, etc.)
- tsconfig.json with path aliases (@/components, @/pages, etc.)
- vite.config.ts with dev server and proxy settings
- Dockerfile and Dockerfile.dev for production and development
- nginx.conf for production deployment
- .env and .gitignore files
- docker-compose.yml for local development

TypeScript Types:
- Complete type definitions for all API models
- User, Keyword, Pipeline, Application types
- Monitoring and system status types
- API response and pagination types

API Client Implementation:
- axios client with interceptors
- Token refresh logic
- Error handling
- Auto token injection
- Complete API service functions:
  * users.ts (11 endpoints)
  * keywords.ts (8 endpoints)
  * pipelines.ts (11 endpoints)
  * applications.ts (7 endpoints)
  * monitoring.ts (8 endpoints)

State Management:
- authStore with Zustand
- Login/logout functionality
- Token persistence
- Current user management

Pages Implemented:
- Login page with MUI components
- Dashboard page with basic layout
- App.tsx with protected routes

Docker Configuration:
- docker-compose.yml for backend + frontend
- Dockerfile for production build
- Dockerfile.dev for development hot reload

Files Created: 23 files
- Frontend structure: src/{api,pages,stores,types}
- Configuration files: 8 files
- Docker files: 3 files

Next Steps:
- Test frontend in Docker environment
- Implement sidebar navigation
- Create full management pages (Keywords, Pipelines, Users, etc.)
- Connect to backend API and test authentication

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 20:51:23 +09:00