Commit Graph

2416 Commits

Author SHA1 Message Date
admin ce69c23a24 fix: use SSE streaming for image playground and add edits to distributor group check
Docker Build / Build and Push Docker Image (push) Successful in 3m59s
2026-06-22 00:19:10 +08:00
admin d66c5cb82d fix: pass group parameter in image edit requests
Docker Build / Build and Push Docker Image (push) Successful in 3m59s
2026-06-21 23:55:39 +08:00
admin 37da5de9e4 fix: preserve upstream image errors in playground logs
Docker Build / Build and Push Docker Image (push) Successful in 4m29s
Tighten timeout message mapping and expose upstream image error details in usage log metadata and the log details dialog.
2026-06-21 20:51:54 +08:00
admin b717ea6817 fix: restore image playground error handling syntax
Docker Build / Build and Push Docker Image (push) Successful in 4m1s
Repair the corrupted catch block in image playground so the frontend build succeeds and timeout handling works as intended.
2026-06-21 19:45:54 +08:00
admin d109d40457 fix: avoid false timeout errors in image playground
Docker Build / Build and Push Docker Image (push) Failing after 1m29s
Increase image request timeout and only show timeout messaging for actual request timeouts or 504 responses.
2026-06-21 19:32:14 +08:00
admin 27e4545518 fix: convert unsupported reference images before upload
Docker Build / Build and Push Docker Image (push) Successful in 4m6s
Auto-convert pasted or uploaded reference images to PNG when the source MIME type is not supported by the upstream image edit API.
2026-06-21 19:13:01 +08:00
admin 1c7f652b38 fix: i18n playground suggestion buttons (Analyze data, Surprise me, etc.)
Docker Build / Build and Push Docker Image (push) Successful in 3m59s
- Display text now uses t() for all 6 languages (zh/en/fr/ru/ja/vi)
- Prompt sent to AI remains in English for better model comprehension
- Split textKey (display) and prompt (sent to AI) in suggestion items

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 12:23:03 +08:00
admin 0ac29aff97 fix: set preloadStaleTime to prevent TanStack _nonReactive error on dashboard
Docker Build / Build and Push Docker Image (push) Successful in 3m54s
The TypeError 'Cannot read properties of undefined (reading _nonReactive)'
was caused by TanStack Router's intent-based preloading creating query
observers during route preload before the React context was fully ready.

Setting defaultPreloadStaleTime from 0 to 30s prevents aggressive
re-preloading of already-fresh data, which was the primary trigger for
this race condition.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 03:20:41 +08:00
admin 0feb9bfdea fix: add missing AlertTitle import in payment settings page
Docker Build / Build and Push Docker Image (push) Successful in 3m55s
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 03:07:55 +08:00
admin 30b528e722 fix: add missing ShieldAlert import in payment page, unify failed image delete button style
Docker Build / Build and Push Docker Image (push) Successful in 4m0s
1. Fix payment gateway page crash (ReferenceError: ShieldAlert is not defined)
   - Added ShieldAlert to lucide-react import in payment-settings-section.tsx

2. Unify failed image delete button style with successful image
   - Changed from always-visible bg-black/40 to hover-visible bg-black/60
   - Matches the delete button style on successful image cards

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 02:58:53 +08:00
admin 6787c06934 fix: add missing Alert import in payment page, improve image generation error messages
Docker Build / Build and Push Docker Image (push) Successful in 3m59s
1. Fix payment gateway page crash (ReferenceError: Alert is not defined)
   - Added missing import { Alert, AlertDescription } from @/components/ui/alert
   in payment-settings-section.tsx which used <Alert> without importing it

2. Improve image generation timeout/error messages
   - 504 errors now show 'Image generation timed out' instead of raw status code
   - 502/503 errors show 'service temporarily unavailable' message
   - Added i18n keys for timeout and unavailability messages (en/zh)
   - Applied to both main generate and retry-failed handlers

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 02:43:53 +08:00
admin 285dc06d57 fix: improve image playground, channel test logging, and rename Playground to Chat Workspace
Docker Build / Build and Push Docker Image (push) Successful in 4m4s
1. Rename Playground to Chat Workspace / 对话工作台 in all 6 languages
   - Updated i18n values in zh/en/fr/ru/ja/vi locale files
   - Route path /playground and Image Playground left unchanged

2. Fix image playground count slider stuck at 1
   - Added +/- stepper buttons alongside the Slider for Count control
   - Added count normalization (Math.round, clamp 1-10)
   - Added Decrease/Increase i18n keys

3. Add delete and clear-failed for failed image results
   - Failed image cards now show a delete (X) button
   - Toolbar adds 'Clear failed' button when failures exist
   - Added handleClearFailed in index.tsx
   - Added 'Clear failed' i18n key

4. Log image generation failures to consume log
   - ImageHelper now records a consume log (quota=0) on request/response
     failures, so users can see failure reasons in usage logs
   - Includes size, quality, count, and error message in log content

5. Improve channel test logging for image models
   - buildTestLogOther now includes test_request_body and
     test_response_body in the Other field for diagnostics
   - buildTestLogContent already records size/quality/count for images

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 02:31:49 +08:00
admin 0ecf51917b feat: add auth_gateway template for CSRF form-based login balance query
Docker Build / Build and Push Docker Image (push) Successful in 3m56s
2026-06-20 05:37:25 +08:00
admin 7640af2313 fix: show all balance config fields for preset templates, allow overriding URLs
Docker Build / Build and Push Docker Image (push) Successful in 3m53s
2026-06-20 05:03:37 +08:00
admin 427ef9f835 feat: add custom balance query config for new-api/sub2api upstream
Docker Build / Build and Push Docker Image (push) Successful in 3m53s
2026-06-20 04:42:24 +08:00
admin fc4589e7c2 fix: image playground group selector and 503 error
Docker Build / Build and Push Docker Image (push) Successful in 3m57s
2026-06-20 01:26:31 +08:00
admin 90bc1b8757 fix: include per_size fields in snapshot signature and fix imageModelSetting dependency
Docker Build / Build and Push Docker Image (push) Successful in 4m1s
2026-06-19 22:45:19 +08:00
admin 277dc69f9d fix: correct per_size billing display and add group selector to image playground
Docker Build / Build and Push Docker Image (push) Successful in 3m58s
2026-06-19 22:28:14 +08:00
admin 00d6d5fb4d fix: show per_size prices in pricing summary and use user models API for image playground
Docker Build / Build and Push Docker Image (push) Successful in 3m59s
2026-06-19 21:40:46 +08:00
admin 681ed8acce fix: add image_model_setting to defaults, fix per_size billing surcharge, refactor nested ternaries
Docker Build / Build and Push Docker Image (push) Successful in 3m59s
2026-06-19 20:39:50 +08:00
admin 2293e1150c feat: add per-resolution pricing mode in model pricing editor and fix image model test endpoint
Docker Build / Build and Push Docker Image (push) Successful in 4m1s
2026-06-19 19:39:37 +08:00
admin 57900cb54b fix: regenerate bun.lock to resolve broken dependency resolution
Docker Build / Build and Push Docker Image (push) Successful in 3m55s
2026-06-19 18:58:17 +08:00
admin 737c621878 feat(image-billing): add per-resolution billing for image models and fix pricing API missing endpoint types
Docker Build / Build and Push Docker Image (push) Failing after 14s
2026-06-19 18:26:24 +08:00
admin aac1570071 merge: upstream QuantumNous/new-api main with conflict resolution 2026-06-19 15:39:22 +08:00
QuentinHsu 5b4839fa37 chore(web): add default frontend oxc tooling (#5585)
- add oxlint and oxfmt configuration for web/default quality checks

- replace ESLint and Prettier scripts with protected-header Oxc formatting

- update frontend workspace dependencies for oxlint and oxfmt
2026-06-19 14:58:53 +08:00
CaIon 0c806db996 refactor(theme): update color classes 2026-06-19 14:53:44 +08:00
admin 9ccffbe7f7 fix(image-playground): use pricing API endpoint_types to filter image models instead of keyword matching
Docker Build / Build and Push Docker Image (push) Successful in 3m44s
2026-06-19 14:30:10 +08:00
CaIon 490395b2f8 feat(performance): enhanced metrics display 2026-06-19 14:27:16 +08:00
CaIon 6ad5dbb641 fix(main): prevent refetching on window focus to optimize performance 2026-06-19 12:45:20 +08:00
admin 1cda94b991 fix: dropdown position, hide native number spinners, show only image models in playground
Docker Build / Build and Push Docker Image (push) Successful in 3m40s
2026-06-19 06:02:45 +08:00
admin 607ec53235 fix(image-playground): show translated labels for Quality/Style select triggers
Docker Build / Build and Push Docker Image (push) Successful in 3m38s
2026-06-19 05:53:03 +08:00
admin 43ed9f8639 fix(image-playground): remove unused types/props, fix retry duration calc, show timer during generation
Docker Build / Build and Push Docker Image (push) Successful in 3m41s
2026-06-19 05:43:56 +08:00
admin 3901d6f182 feat(image-playground): add reference image upload with file picker and clipboard paste
Docker Build / Build and Push Docker Image (push) Successful in 3m42s
2026-06-19 05:39:19 +08:00
admin 6eb8a4b983 feat(image-playground): add retry failed, delete, clear all, generation timer, and i18n improvements
Docker Build / Build and Push Docker Image (push) Successful in 3m39s
2026-06-19 05:30:48 +08:00
admin 02113c1ce7 feat(image-playground): persist config to database and images to localStorage
Docker Build / Build and Push Docker Image (push) Successful in 3m40s
2026-06-19 05:23:33 +08:00
admin d87b1c16d3 feat: add Image Playground for generating images via user models
Docker Build / Build and Push Docker Image (push) Successful in 3m43s
2026-06-19 05:11:29 +08:00
admin 646b2bd58c fix: adjust preview layout to avoid overlapping and fix default ratio
Docker Build / Build and Push Docker Image (push) Successful in 3m40s
2026-06-19 04:52:45 +08:00
admin d85120a2fa fix: correct import path for sideDrawerContentClassName
Docker Build / Build and Push Docker Image (push) Successful in 3m39s
2026-06-19 04:35:00 +08:00
admin 3c812ce9ea refactor(pricing): JSON editor opens in Sheet instead of replacing model list
Docker Build / Build and Push Docker Image (push) Failing after 1m28s
2026-06-19 04:09:23 +08:00
admin 0dfbdc3e6c fix(pricing): move handleBatchDelete after useDataTable to fix TDZ ReferenceError
Docker Build / Build and Push Docker Image (push) Successful in 3m39s
2026-06-19 03:29:56 +08:00
admin 10fa18eac1 fix(pricing): add SSR guard for localStorage in columnVisibility state
Docker Build / Build and Push Docker Image (push) Successful in 3m41s
2026-06-19 03:17:10 +08:00
admin 4bacb0de98 fix(pricing): remove stale setSheetOpen reference causing 500 error
Docker Build / Build and Push Docker Image (push) Successful in 3m36s
2026-06-19 02:46:13 +08:00
admin 3e2bd26fcc refactor(pricing): full-width list layout, sheet editor, batch delete
Docker Build / Build and Push Docker Image (push) Successful in 3m37s
2026-06-19 02:31:57 +08:00
admin efc3adcc28 fix(pricing): i18n for delete dialog, remove deleted rows from list, auto-save after delete
Docker Build / Build and Push Docker Image (push) Successful in 3m42s
2026-06-19 01:21:58 +08:00
admin f103c65dc8 fix(pricing): add confirm dialog for delete button, show toast and visual feedback
Docker Build / Build and Push Docker Image (push) Successful in 3m42s
2026-06-19 01:03:28 +08:00
admin 4cd7c51220 fix(models): fix delete button - use onSelect+preventDefault with modal=false
Docker Build / Build and Push Docker Image (push) Successful in 3m40s
2026-06-19 00:37:01 +08:00
admin ecdc2ce510 fix(models): defer confirm dialog open to avoid conflict with dropdown menu close
Docker Build / Build and Push Docker Image (push) Successful in 3m40s
2026-06-18 23:14:13 +08:00
admin f28672c4e6 fix(models): fix delete button - use onClick instead of onSelect to allow menu close before dialog opens
Docker Build / Build and Push Docker Image (push) Successful in 3m42s
2026-06-18 23:02:42 +08:00
admin 41540dbd43 fix(models): fix delete button not working, move group ratio outside tag
Docker Build / Build and Push Docker Image (push) Successful in 3m42s
2026-06-18 22:42:14 +08:00
CaIon f7dae5cbe6 fix(drawing): update timestamp formatting to include milliseconds 2026-06-18 21:38:55 +08:00