|
| 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 |
0 commit comments