feat(characters): use local character catalog

This commit is contained in:
2026-07-17 16:03:18 +08:00
parent a210a98d98
commit b3ebd5cf3b
96 changed files with 1023 additions and 522 deletions
+4 -3
View File
@@ -17,7 +17,7 @@ import {
import { BackButton } from "@/app/_components";
import { MobileShell } from "@/app/_components/core";
import type { FeedbackCategory } from "@/data/schemas/feedback";
import { ROUTES } from "@/router/routes";
import { useActiveCharacterRoutes } from "@/providers/character-provider";
import { useAppNavigator } from "@/router/use-app-navigator";
import {
@@ -46,6 +46,7 @@ const CATEGORY_OPTIONS: readonly CategoryOption[] = [
export function FeedbackScreen() {
const navigator = useAppNavigator();
const characterRoutes = useActiveCharacterRoutes();
const form = useFeedbackSubmission();
if (form.feedbackId) {
@@ -70,7 +71,7 @@ export function FeedbackScreen() {
type="button"
data-analytics-key="feedback.back_to_chat"
className={styles.primaryButton}
onClick={() => navigator.replace(ROUTES.chat)}
onClick={() => navigator.replace(characterRoutes.chat)}
>
Back to Chat
</button>
@@ -93,7 +94,7 @@ export function FeedbackScreen() {
<header className={styles.header}>
<BackButton
href={ROUTES.chat}
href={characterRoutes.chat}
variant="soft"
ariaLabel="Back to chat"
analyticsKey="feedback.back_to_chat"