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 '^$'
38 lines
1.3 KiB
TypeScript
Vendored
38 lines
1.3 KiB
TypeScript
Vendored
/*
|
|
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 z from 'zod'
|
|
import { createFileRoute } from '@tanstack/react-router'
|
|
import { ApiKeys } from '@/features/keys'
|
|
import { API_KEY_STATUS_OPTIONS } from '@/features/keys/constants'
|
|
|
|
const apiKeySearchSchema = z.object({
|
|
page: z.number().optional().catch(1),
|
|
pageSize: z.number().optional().catch(undefined),
|
|
status: z
|
|
.array(z.enum(API_KEY_STATUS_OPTIONS.map((s) => s.value as `${number}`)))
|
|
.optional()
|
|
.catch([]),
|
|
filter: z.string().optional().catch(''),
|
|
})
|
|
|
|
export const Route = createFileRoute('/_authenticated/keys/')({
|
|
validateSearch: apiKeySearchSchema,
|
|
component: ApiKeys,
|
|
})
|