🛠️ fix: v1 interface feedback regressions

Resolve verified V1 frontend feedback by improving channel workflows, auth behavior, API key interactions, user filtering, layout persistence, subscription quota handling, i18n text, pricing metadata, and stale frontend cache recovery.

- Add a global frontend cache version cleanup to prevent old frontend localStorage from causing page errors after upgrades.
- Fix channel copy refresh, model mapping input focus loss, create-channel fetch-model title state, upstream model update confirmation, and batch test toast behavior.
- Respect password login settings and improve Turnstile, forgot-password, registration, and invite-link flows.
- Make user role/status filtering server-side and preserve table page size in URLs.
- Improve API key edit validation feedback and prefetch real keys for reliable copy actions.
- Fix rankings access fail-open behavior, double scrollbars, subscription received amount conversion/display, token i18n wording, model deletion confirmation grammar, and Claude pricing context inference.
- Add clearer Playground model/group loading errors.

Validation:
- bun run typecheck
- bun run i18n:sync
- gofmt on modified Go files
- go test ./controller ./model -run '^$'
This commit is contained in:
t0ng7u
2026-05-25 02:42:22 +08:00
parent 88437a1869
commit b302be30e3
53 changed files with 599 additions and 198 deletions
+29
View File
@@ -0,0 +1,29 @@
/*
Copyright (C) 2023-2026 QuantumNous
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import { createFileRoute, redirect } from '@tanstack/react-router'
export const Route = createFileRoute('/(auth)/register')({
beforeLoad: ({ location }) => {
throw redirect({
to: '/sign-up',
search: location.search,
replace: true,
})
},
})
+1 -1
View File
@@ -24,7 +24,7 @@ import { Channels } from '@/features/channels'
const channelsSearchSchema = z.object({
page: z.number().optional().catch(1),
pageSize: z.number().optional().catch(10),
pageSize: z.number().optional().catch(undefined),
filter: z.string().optional().catch(''),
status: z.array(z.string()).optional().catch([]),
type: z.array(z.string()).optional().catch([]),
+1 -1
View File
@@ -23,7 +23,7 @@ import { API_KEY_STATUS_OPTIONS } from '@/features/keys/constants'
const apiKeySearchSchema = z.object({
page: z.number().optional().catch(1),
pageSize: z.number().optional().catch(10),
pageSize: z.number().optional().catch(undefined),
status: z
.array(z.enum(API_KEY_STATUS_OPTIONS.map((s) => s.value as `${number}`)))
.optional()
@@ -28,7 +28,7 @@ const logTypeValues = ['0', '1', '2', '3', '4', '5', '6'] as const
const usageLogsSearchSchema = z.object({
page: z.number().optional().catch(1),
pageSize: z.number().optional().catch(20),
pageSize: z.number().optional().catch(undefined),
type: z.array(z.enum(logTypeValues)).optional().catch([]),
filter: z.string().optional().catch(''),
model: z.string().optional().catch(''),
+1 -1
View File
@@ -24,7 +24,7 @@ import { Users } from '@/features/users'
const usersSearchSchema = z.object({
page: z.number().optional().catch(1),
pageSize: z.number().optional().catch(10),
pageSize: z.number().optional().catch(undefined),
filter: z.string().optional().catch(''),
status: z
.array(z.enum(['1', '2']))