Переглянути джерело

feat: 设置面板「小说」更名为「写作设置」并调整位置至向量检索下方 + 版本号升级至 v3.0.9

Mochocyang 1 місяць тому
батько
коміт
37daf77a4d

+ 1 - 1
package.json

@@ -1,7 +1,7 @@
 {
   "name": "qmai",
   "private": true,
-  "version": "3.0.8",
+  "version": "3.0.9",
   "license": "GPL-3.0-or-later",
   "type": "module",
   "scripts": {

+ 1 - 1
src-tauri/Cargo.lock

@@ -5825,7 +5825,7 @@ checksum = "e0c5ccf5294c6ccd63a74f1565028353830a9c2f5eb0c682c355c471726a6e3f"
 
 [[package]]
 name = "qmai"
-version = "3.0.8"
+version = "3.0.9"
 dependencies = [
  "arrow-array",
  "arrow-schema",

+ 1 - 1
src-tauri/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "qmai"
-version = "3.0.8"
+version = "3.0.9"
 description = "QMAI - AI writing system for long-form novels"
 authors = ["Mochocyang"]
 edition = "2021"

+ 1 - 1
src-tauri/tauri.conf.json

@@ -1,7 +1,7 @@
 {
   "$schema": "https://schema.tauri.app/config/2",
   "productName": "QMaiWrite",
-  "version": "3.0.8",
+  "version": "3.0.9",
   "identifier": "com.qingmuai.writer",
   "build": {
     "beforeDevCommand": "npm run dev",

+ 2 - 2
src/components/settings/sections/novel-section.tsx

@@ -206,12 +206,12 @@ export function NovelSection({ draft, setDraft }: Props) {
       <div className="space-y-6">
       <div>
         <h2 className="text-xl font-semibold">
-          {t("settings.sections.novel.title", { defaultValue: "小说设置" })}
+          {t("settings.sections.novel.title", { defaultValue: "写作设置" })}
         </h2>
         <p className="mt-1 text-sm text-muted-foreground">
           {t("settings.sections.novel.description", {
             defaultValue:
-              "项目级写作模式和小说工作流修改反馈窗口控制。",
+              "项目级写作模式和修改反馈窗口设置。",
           })}
         </p>
       </div>

+ 2 - 2
src/components/settings/settings-view.tsx

@@ -1,4 +1,4 @@
-import { useCallback, useEffect, useMemo, useState } from "react"
+import { useCallback, useEffect, useMemo, useState } from "react"
 import {
   Bot,
   BookOpen,
@@ -82,11 +82,11 @@ const CATEGORIES: Category[] = [
   { id: "llm", labelKey: "settings.categories.llm", icon: Bot },
   { id: "rerank", labelKey: "settings.categories.rerank", icon: ListFilter },
   { id: "embedding", labelKey: "settings.categories.embedding", icon: Database },
+  { id: "novel", labelKey: "settings.categories.novel", hintKey: "settings.categories.novelHint", icon: BookOpen },
   { id: "network", labelKey: "settings.categories.network", icon: Network },
   { id: "web-search", labelKey: "settings.categories.webSearch", icon: Search },
   { id: "mcp", labelKey: "settings.categories.mcp", icon: Network },
   { id: "interface", labelKey: "settings.categories.interface", icon: Palette },
-  { id: "novel", labelKey: "settings.categories.novel", hintKey: "settings.categories.novelHint", icon: BookOpen },
   { id: "user-memory", labelKey: "settings.categories.userMemory", icon: Brain },
   { id: "usage-guide", labelKey: "settings.categories.usageGuide", icon: HelpCircle },
   { id: "maintenance", labelKey: "settings.categories.maintenance", icon: Wrench },

+ 3 - 3
src/i18n/en.json

@@ -707,7 +707,7 @@
       "scheduledImport": "Scheduled Import",
       "output": "Output",
       "interface": "Interface",
-      "novel": "Novel",
+      "novel": "Writing Settings",
       "novelHint": "Model settings",
       "userMemory": "Global User Memory",
       "usageGuide": "Usage Guide",
@@ -1072,8 +1072,8 @@
         }
       },
       "novel": {
-        "title": "Novel",
-        "description": "Project-level novel writing mode and revision feedback settings.",
+        "title": "Writing Settings",
+        "description": "Project-level writing mode and revision feedback settings.",
         "feedbackWindow": {
           "title": "Revision feedback window",
           "lookbackChapterCount": "Lookback chapter count",

+ 3 - 3
src/i18n/zh.json

@@ -414,7 +414,7 @@
       "scheduledImport": "定时导入",
       "output": "输出偏好",
       "interface": "界面",
-      "novel": "小说",
+      "novel": "写作设置",
       "novelHint": "设置模型",
       "userMemory": "全局用户记忆",
       "usageGuide": "软件使用说明",
@@ -787,8 +787,8 @@
         "sidebarNavOrderHint": "图标顺序可在左侧功能栏中长按拖动调整。"
       },
       "novel": {
-        "title": "小说",
-        "description": "项目级小说写作模式和修改反馈窗口设置。",
+        "title": "写作设置",
+        "description": "项目级写作模式和修改反馈窗口设置。",
         "feedbackWindow": {
           "title": "修改反馈窗口",
           "lookbackChapterCount": "回溯章节数量",

+ 16 - 0
src/lib/changelog.ts

@@ -7,6 +7,19 @@ export interface ChangelogEntry {
   };
 }
 
+const THREE_POINT_ZERO_NINE_CHANGELOG: ChangelogEntry = {
+  version: "3.0.9",
+  date: "2026-08-04",
+  highlights: {
+    en: [
+      "[Settings Panel Layout Adjustment] Renamed the 'Novel' category in Settings to 'Writing Settings', and moved it from below 'Interface' to below 'Vector Retrieval', placing writing-related settings closer to retrieval model configuration.",
+    ],
+    zh: [
+      "【设置面板布局调整】将设置面板中的「小说」类别更名为「写作设置」,并从「界面」下方调整到「向量检索」下方,使写作相关设置更靠近检索模型配置,符合使用逻辑",
+    ],
+  },
+};
+
 const THREE_POINT_ZERO_EIGHT_CHANGELOG: ChangelogEntry = {
   version: "3.0.8",
   date: "2026-08-04",
@@ -1062,6 +1075,8 @@ export const CHANGELOG: ChangelogEntry[] = [
 ];
 
 export function currentVersionChangelog(version: string): ChangelogEntry[] {
+  if (version === THREE_POINT_ZERO_NINE_CHANGELOG.version)
+    return [THREE_POINT_ZERO_NINE_CHANGELOG];
   if (version === THREE_POINT_ZERO_EIGHT_CHANGELOG.version)
     return [THREE_POINT_ZERO_EIGHT_CHANGELOG];
   if (version === THREE_POINT_ZERO_SEVEN_CHANGELOG.version)
@@ -1149,6 +1164,7 @@ export function currentVersionChangelog(version: string): ChangelogEntry[] {
 
 export function allChangelog(): ChangelogEntry[] {
   return [
+    THREE_POINT_ZERO_NINE_CHANGELOG,
     THREE_POINT_ZERO_EIGHT_CHANGELOG,
     THREE_POINT_ZERO_SEVEN_CHANGELOG,
     THREE_POINT_ZERO_SIX_CHANGELOG,