Migrate AI Hint feed generation
Bring dynamic hint generation into the account service while preserving the legacy key.osglab.com deployment for existing clients.
This commit is contained in:
@@ -29,6 +29,7 @@ import {
|
||||
Textarea,
|
||||
} from "../../components/primitives";
|
||||
import { useAuth } from "../auth/auth-context";
|
||||
import { HintAutoSection } from "./hint-auto-section";
|
||||
|
||||
type HintLocale = "zh" | "en";
|
||||
|
||||
@@ -128,7 +129,7 @@ export function ContentPage() {
|
||||
<PageHeader
|
||||
eyebrow="Official Content"
|
||||
title="内容管理"
|
||||
description="维护客户端官方 Skill 目录与 zh/en AI Hint 发布包。每次保存都会立即发布并写入审计。"
|
||||
description="维护客户端官方 Skill、AI Hint 自动生成与 zh/en 手动发布包。所有变更都会写入审计。"
|
||||
actions={
|
||||
canEdit ? (
|
||||
<Button onClick={() => setEditingSkill("new")}>
|
||||
@@ -212,6 +213,8 @@ export function ContentPage() {
|
||||
)}
|
||||
</section>
|
||||
|
||||
<HintAutoSection canEdit={canEdit} />
|
||||
|
||||
<section aria-labelledby="hint-heading" className="space-y-4">
|
||||
<div>
|
||||
<h2 id="hint-heading" className="text-xl font-bold">
|
||||
|
||||
Reference in New Issue
Block a user