Skip to content

Commit dd3f7b6

Browse files
committed
dev: 临时隐藏 wiki
1 parent f2db6e3 commit dd3f7b6

9 files changed

Lines changed: 103 additions & 8 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{"file":".trellis/spec/frontend/index.md","reason":"Frontend spec index for final review context."}
2+
{"file":".trellis/spec/frontend/component-guidelines.md","reason":"Check component-level visibility guard changes against repo conventions."}
3+
{"file":".trellis/spec/frontend/quality-guidelines.md","reason":"Run validation and review against frontend quality expectations."}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{"file":".trellis/spec/frontend/index.md","reason":"Frontend spec index and checklist for this UI-only visibility change."}
2+
{"file":".trellis/spec/frontend/directory-structure.md","reason":"Confirms component and feature placement for the touched UI files."}
3+
{"file":".trellis/spec/frontend/component-guidelines.md","reason":"Guides small component-level UI behavior changes without adding orchestration."}
4+
{"file":".trellis/spec/frontend/quality-guidelines.md","reason":"Defines required validation and reporting expectations for frontend changes."}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Temporarily hide wiki entries for release
2+
3+
## Goal
4+
5+
Temporarily hide all user-facing Wiki entry points for a short-term release, including the main global entry and contextual Wiki triggers, without removing the underlying Wiki implementation.
6+
7+
## What I already know
8+
9+
* The repo already has a global visibility flag at `src/wiki/visibility.ts`.
10+
* `src/components/panels/tools/GlobalPanel.tsx` already uses that flag to show or hide the main Wiki entry.
11+
* `src/features/wiki/components/WikiPonderTrigger.tsx` already uses that flag, so DebugModal and similar ponder triggers are covered.
12+
* `src/features/wiki/components/WikiContextHint.tsx` does not currently use the visibility flag, so panel-level contextual Wiki actions can still appear.
13+
* `src/App.tsx` already guards hash-based Wiki opening and `WikiModal` mounting behind the same visibility flag.
14+
15+
## Assumptions (temporary)
16+
17+
* "各入口临时隐藏,包括主入口" means hiding all in-app user entry points for this release, not deleting Wiki content or data structures.
18+
* Non-entry Wiki implementation files can remain in the repo unchanged.
19+
* No browser/manual validation should be run in this session; only static validation is needed.
20+
21+
## Open Questions
22+
23+
* None currently blocking. Scope is clear enough for a minimal temporary hide.
24+
25+
## Requirements (evolving)
26+
27+
* Hide the main Wiki entry in the global toolbar.
28+
* Hide contextual Wiki entry points that can still open Wiki from panels or notices.
29+
* Keep the implementation minimal and centralized around the existing visibility switch.
30+
* Do not remove the Wiki feature code permanently; this is a temporary release-time hide.
31+
32+
## Acceptance Criteria (evolving)
33+
34+
* [ ] When the Wiki visibility switch is off, the global Wiki entry is not rendered.
35+
* [ ] When the Wiki visibility switch is off, contextual Wiki hint actions are not rendered.
36+
* [ ] Existing guarded Wiki triggers remain hidden through the same switch.
37+
* [ ] Frontend lint passes for the touched code.
38+
39+
## Definition of Done (team quality bar)
40+
41+
* Lint / static checks run for touched frontend code
42+
* No unrelated behavior changes outside temporary Wiki entry visibility
43+
* No browser run or manual UI claim implied in the report
44+
45+
## Out of Scope (explicit)
46+
47+
* Deleting Wiki modules, entries, or content files
48+
* Adding a new runtime config or release toggle source
49+
* Browser-based verification
50+
* Documentation beyond this task record
51+
52+
## Technical Notes
53+
54+
* Files inspected:
55+
* `src/wiki/visibility.ts`
56+
* `src/App.tsx`
57+
* `src/components/panels/tools/GlobalPanel.tsx`
58+
* `src/features/wiki/components/WikiPonderTrigger.tsx`
59+
* `src/features/wiki/components/WikiContextHint.tsx`
60+
* Minimal implementation direction:
61+
* Set the existing visibility flag off for this release
62+
* Make `WikiContextHint` respect the same flag so all contextual entries disappear consistently
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"id": "hide-wiki-entries",
3+
"name": "hide-wiki-entries",
4+
"title": "Temporarily hide wiki entries for release",
5+
"description": "",
6+
"status": "in_progress",
7+
"dev_type": null,
8+
"scope": null,
9+
"package": null,
10+
"priority": "P2",
11+
"creator": "kqmain",
12+
"assignee": "kqmain",
13+
"createdAt": "2026-05-05",
14+
"completedAt": null,
15+
"branch": null,
16+
"base_branch": "main",
17+
"worktree_path": null,
18+
"commit": null,
19+
"pr_url": null,
20+
"subtasks": [],
21+
"children": [],
22+
"parent": null,
23+
"relatedFiles": [],
24+
"notes": "",
25+
"meta": {}
26+
}

dev/design/TODO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
## perf
1010

11-
- override
11+
- 日志面板
1212

1313
## feat
1414

src/components/Header.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ const versionLinks = [
4444
href: "https://kqcoxn.github.io/MaaPipelineEditor/",
4545
text: "预览版",
4646
},
47-
{
48-
key: "mfw_5_0",
49-
href: "https://mpe.codax.site/mfw_5_0/",
50-
text: "MFW 5.0 快照",
51-
},
5247
{ key: "yamaape", href: "https://yamaape.codax.site", text: "YAMaaPE" },
5348
];
5449

src/features/wiki/components/WikiContextHint.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Alert, Button } from "antd";
22
import type { AlertProps } from "antd";
33
import { useWikiStore } from "../../../stores/wikiStore";
44
import type { WikiTarget } from "../../../wiki/types";
5+
import { isWikiModuleVisible } from "../../../wiki/visibility";
56
import style from "./WikiContextHint.module.less";
67

78
interface WikiContextHintAction {
@@ -30,6 +31,10 @@ export function WikiContextHint({
3031
}: WikiContextHintProps) {
3132
const openWiki = useWikiStore((state) => state.openWiki);
3233

34+
if (!isWikiModuleVisible) {
35+
return null;
36+
}
37+
3338
const description = (
3439
<div className={style.description}>
3540
<p className={style.summary}>{summary}</p>

src/stores/configStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { encryptApiKey } from "../utils/ai/crypto";
77
export const globalConfig = {
88
dev: true,
99
version: `1.5.2`,
10-
betaIteration: 2,
10+
betaIteration: 3,
1111
mfwVersion: "5.10.4",
1212
protocolVersion: "1.0.2",
1313
};

src/wiki/visibility.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const isWikiModuleVisible = true;
1+
export const isWikiModuleVisible = false;

0 commit comments

Comments
 (0)