Commit Graph

87 Commits

Author SHA1 Message Date
231611af84 feat(s2a): Add expandable group list with truncation in ProfileCard
- Add expanded state to ProfileCard component for toggling group visibility
- Implement MAX_VISIBLE constant to limit initial group display to 4 items
- Add toggle button to show/hide remaining groups with count indicator
- Display "收起" (collapse) when expanded, "+N 个分组" (N groups) when collapsed
- Wrap group grid in container div to accommodate expand/collapse button
- Improve UX for profiles with many groups by preventing excessive card height
2026-02-07 20:43:44 +08:00
f74c421fd8 feat(s2a): Improve ProfileCard layout with flexbox for consistent height
- Add flex flex-col and h-full to Card component for full height layout
- Update CardContent with flex flex-col flex-1 for proper content distribution
- Move action buttons to bottom with mt-auto pt-4 spacing
- Ensures profile cards maintain consistent heights in grid layout and action buttons align to bottom
2026-02-07 20:31:53 +08:00
7aa708be22 refactor(s2a): Remove unused getGroupLabel helper function
- Delete getGroupLabel function that was no longer being used in the component
- Simplify group display logic by removing redundant label formatting utility
- Clean up code to improve maintainability and reduce unused function definitions
2026-02-07 20:21:30 +08:00
b07200faec feat(s2a): Improve group display layout with grid-based cards
- Replace badge-style group display with grid-based card layout for better readability
- Add group name and ID display in selected groups section with truncation handling
- Reorganize profile card group summary to use dedicated grid section below parameters
- Remove inline group information from parameter summary badge
- Improve visual hierarchy and spacing in group display components
- Enhance dark mode styling for group cards with better contrast and borders
2026-02-07 19:46:30 +08:00
eb129a4f85 feat(s2a): Improve group name caching and display with api_base isolation
- Refactor groupNameCache structure to isolate caches by api_base: { [apiBase]: { [groupId]: groupName } }
- Add normalizeBase() utility to remove trailing slashes and prevent cache key mismatches
- Update group fetching logic to deduplicate requests by api_base and admin_key combination
- Auto-fetch available groups when entering edit mode for a profile with valid credentials
- Enhance group label display to show "name #id" format instead of just name or #id
- Sort profiles in list view to display active profile first
- Update ProfileCard to use normalized api_base for groupNameCache lookup
- Simplify group label rendering by removing conditional groupsFetched check
2026-02-07 19:12:48 +08:00
6eb156c555 feat(s2a): Add dynamic group fetching with credentials validation
- Add backend endpoint `/api/s2a/fetch-groups` to fetch S2A groups using arbitrary credentials without depending on global config
- Implement `handleFetchGroups` handler with proper error handling and multiple auth header support (Bearer token, X-API-Key, X-Admin-Key)
- Add frontend API function `fetchGroupsWithCredentials` to call the new endpoint and parse S2A standard response format
- Add group fetching UI in S2AConfig edit mode with refresh button and loading state
- Implement batch group name caching in list view to display human-readable group names instead of IDs
- Deduplicate API requests by grouping profiles with identical credentials to avoid redundant calls
- Add fallback to display group ID when name is unavailable
2026-02-07 18:36:09 +08:00
0ad5881259 feat(header): Display active S2A profile information in header
- Add Server icon import from lucide-react for profile display
- Import useConfig hook and S2AProfile type for configuration access
- Implement activeProfile state to track currently selected S2A profile
- Add useEffect hook to fetch and match S2A profiles against current API base configuration
- Replace spacer div with active profile information display component
- Show profile name and API base URL when profile is matched
- Display API base URL directly when configured but profile not found
- Add responsive styling with dark mode support for profile info badge
- Use truncation and flex-shrink to prevent layout overflow on smaller screens
- Provides users with clear visibility of which S2A profile is currently active
2026-02-07 14:29:55 +08:00
060d21eb4f feat(s2a): Refactor S2A configuration UI with profile management and edit mode
- Restructure component to support list and edit view modes for better UX
- Replace single global config state with profile-based management system
- Add ability to create, edit, and delete S2A configuration profiles
- Implement profile activation to set active configuration
- Refactor form state management with dedicated form variables (formName, formApiBase, etc.)
- Add profile name field to distinguish between multiple configurations
- Improve icon usage by removing unused Bookmark and Download icons
- Consolidate message handling with auto-dismiss after 4 seconds
- Add resetForm utility function to clear form state between operations
- Separate fetchActiveConfig from fetchProfiles for cleaner data flow
- Enhance error handling with graceful fallbacks for API failures
- Improve code organization by grouping related state and functions
2026-02-07 13:46:48 +08:00
3af01abc76 feat(s2a): Add S2A configuration profiles management system
- Add new `/api/s2a/profiles` endpoint supporting GET, POST, DELETE operations
- Create `s2a_profiles` database table with fields for API configuration, concurrency, priority, group IDs, and proxy settings
- Implement database methods: `GetS2AProfiles()`, `AddS2AProfile()`, `DeleteS2AProfile()`
- Add S2AProfile struct to database models with JSON serialization support
- Implement profile management UI in S2AConfig page with save, load, and delete functionality
- Add profile list display with ability to apply saved configurations
- Add S2AProfile type definition to frontend types
- Enable users to save and reuse S2A configurations as presets for faster setup
2026-02-07 13:31:51 +08:00
60f57ab6a6 feat(upload): Persist team process configuration to localStorage
- Add localStorage persistence for team process configuration settings
- Initialize state values from saved configuration on component mount
- Implement useEffect hook to automatically save configuration changes to localStorage
- Preserve user preferences for membersPerTeam, concurrentTeams, concurrentS2A, useProxy, includeOwner, and processCount across sessions
- Improve user experience by restoring previous settings when returning to Upload page
2026-02-07 02:09:56 +08:00
a74d3ac121 feat: Implement a new Upload page for batch processing team owners, featuring a file dropzone and a new layout. 2026-02-07 01:43:38 +08:00
2fc0dcaba4 feat: Introduce a new design system with dark mode and animations, add a reusable Tabs component, implement an Upload page, and create a backend API for team processes. 2026-02-07 00:10:29 +08:00
f97a9beb4b feat: Implement account pool monitoring and management dashboard with S2A integration and add a new upload page. 2026-02-06 21:54:37 +08:00
6c8a036018 feat: Establish core backend services including SQLite database, structured logging, and initial owner management capabilities. 2026-02-06 20:53:05 +08:00
dd24c813ab feat: Implement Dashboard page displaying pool status, statistics, and recent batch runs. 2026-02-05 09:05:36 +08:00
6e6dfded7b feat: add batch processing history and real-time status monitoring for team uploads 2026-02-05 08:51:53 +08:00
db00d44a71 feat: Implement initial backend API server with various endpoints and background services, including an error account cleaner. 2026-02-05 07:51:03 +08:00
8895d508c0 feat: Implement Max RPM tracking API, Codex API authentication, and a new dashboard pool status component. 2026-02-05 06:30:47 +08:00
2bccb06359 feat: Implement the ChatGPT Owner Demotion Console with new frontend and backend components. 2026-02-05 03:13:30 +08:00
d92c64f2c2 feat: add mail service for managing email configurations, generating accounts, and fetching emails with verification code support. 2026-02-03 08:49:40 +08:00
0813737f1b fix(auth): remove username from password verification payload and fix proxy refresh handler
- Remove redundant username field from password verification payload in CodexAPIAuth
- Update proxy refresh button to use arrow function for proper event handling
- Simplify authentication flow by eliminating unnecessary email parameter in password verification request
2026-02-03 07:32:52 +08:00
87b9b72a0e feat: add Codex API headless authentication and proxy configuration UI. 2026-02-03 07:01:22 +08:00
f2757cf313 feat: Implement SQLite database for team owner management, configuration, batch processing, and proxies, introducing new auto-add API and Accounts UI. 2026-02-03 06:54:40 +08:00
b20399a00a feat: Introduce core application structure, configuration, monitoring, and team management features. 2026-02-03 06:45:54 +08:00
637753ddaa feat: Implement Codex proxy configuration page with CRUD and testing capabilities, supported by new backend API and services for error handling, team processing, mail, and ChatGPT registration. 2026-02-03 04:33:37 +08:00
f867e20c0e feat: Implement CodexAuth proxy pool backend and a new sidebar component with navigation. 2026-02-03 03:35:43 +08:00
9b4838b604 feat: add Codex proxy configuration page with full CRUD, toggle, and testing functionalities. 2026-02-03 03:30:01 +08:00
b014226074 feat: Implement CodexAuth proxy pool management with a new frontend configuration page and a dedicated backend service for API, database, and proxy testing. 2026-02-03 03:00:25 +08:00
51ba54856d feat: Add automated ChatGPT account registration with backend API, TLS client, and fingerprinting, alongside new frontend pages for configuration, monitoring, and upload. 2026-02-03 02:39:08 +08:00
3d026b2010 feat: Introduce a new monitoring and configuration dashboard with backend API for autopool management and S2A integration. 2026-02-02 07:55:22 +08:00
ee5b69af13 feat: Add LogStream component for real-time log display with Server-Sent Events, historical log loading, and interactive controls. 2026-02-02 04:27:47 +08:00
8fa529e59d feat: add Team Registration page for managing batch ChatGPT Team account creation and payment. 2026-02-02 04:24:33 +08:00
c9e7a9adbf feat: Implement browser-based OAuth authentication using Chromedp and Rod, add an upload page, and introduce team processing API. 2026-02-02 04:19:53 +08:00
daf4c68e4f feat: Add a new cleaner page for managing and automatically cleaning error S2A accounts, supported by new backend services for logging, authentication, and client operations. 2026-02-02 03:27:33 +08:00
76ff32e83c feat: add Team Auto Registration page with status monitoring, configuration, and control for batch account creation. 2026-02-01 08:45:57 +08:00
b0d36ac610 feat: Add new page for ChatGPT Team auto-registration and payment automation. 2026-02-01 08:39:12 +08:00
96d4ed0761 feat: add Team Auto Registration page with status display, configuration options, and real-time logging. 2026-02-01 08:32:42 +08:00
4fd6c47264 feat: add Team Auto Registration page with status monitoring, configuration, and controls. 2026-02-01 08:27:16 +08:00
0808da128d feat: add Team Auto Registration page for batch creation and management of ChatGPT Team accounts. 2026-02-01 08:16:30 +08:00
6254e3781b feat: add Monitor page for S2A dashboard statistics, pool management, and health checks. 2026-02-01 07:55:10 +08:00
995af8e19a feat: Implement system configuration page for site settings and proxy management, and add team registration functionality. 2026-02-01 07:50:28 +08:00
28bdc9d509 feat: introduce a new Config page for managing site settings and proxy configurations, and add a Team Registration page with backend API support. 2026-02-01 07:33:35 +08:00
e19df67829 feat: implement team registration management feature with backend API and frontend UI. 2026-02-01 06:49:28 +08:00
14a07e741e feat: add a service for periodic cleanup of error accounts based on configuration. 2026-02-01 06:02:39 +08:00
e867bc5cbd feat: Implement S2A, Rod, and Chromedp based authentication for external services, and introduce new frontend pages and backend APIs for monitoring, configuration, upload, and team processes. 2026-02-01 04:58:12 +08:00
842a4ab4b2 feat: Implement initial backend API server with configuration, S2A proxy, and data management, and add frontend Toast component and Config page. 2026-02-01 03:57:51 +08:00
e27e36b0e0 feat: Implement initial Codex Pool backend server with comprehensive APIs for configuration, S2A integration, owner management, batch processing, monitoring, and corresponding frontend pages. 2026-02-01 03:45:53 +08:00
8560a33f36 feat: add new Upload page for batch processing and S2A integration with file validation, owner management, and process monitoring. 2026-02-01 03:03:54 +08:00
a605e46f2a feat: Add batch processing and upload functionality, including new backend APIs, logging system, SQLite database, and dedicated frontend pages. 2026-02-01 02:53:37 +08:00
94ba61528a feat: Add LiveLogViewer component for real-time log display with SSE streaming, pause/resume, auto-scroll, and log level styling. 2026-01-31 04:01:05 +08:00