Skip to content

BACK-473/474/477 - Wiki system: web UI, install command, online editing (split 2/9 of #669)#676

Closed
MrLesk wants to merge 8 commits into
pr669/1-editor-pastefrom
pr669/2-wiki-core
Closed

BACK-473/474/477 - Wiki system: web UI, install command, online editing (split 2/9 of #669)#676
MrLesk wants to merge 8 commits into
pr669/1-editor-pastefrom
pr669/2-wiki-core

Conversation

@MrLesk

@MrLesk MrLesk commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Note

Maintainer-split slice 2/9 of #669. All commits are authored by @kuwork — I only rebased them onto current main and resolved conflicts. Merge with Rebase and merge to keep the per-task commits and original authorship.

Stack

Based on pr669/1-editor-paste (slice 1). Review only the commits unique to this PR. After the previous slice merges, restack with git rebase --onto main pr669/1-editor-paste pr669/2-wiki-core.

Tasks in this slice

BACK-473 — Wiki section in web UI with file tree navigation

  • src/file-system/operations.ts: getWikiTree() (recursive walker skipping wiki_output/), readWikiPage() (containment-checked path resolution + frontmatter parsing)
  • src/server/index.ts: GET /api/wiki/tree, GET /api/wiki/*
  • src/web/components/WikiDetail.tsx: read-only markdown viewer; SideNavigation.tsx: collapsible wiki tree section
  • New types WikiTreeNode, WikiPage

BACK-474 — backlog wiki install <agent> CLI command

  • src/commands/wiki-install.ts: agent alias mapping (claude/codex/agents), symlink with copy fallback, --force, --dry-run
  • scripts/embed-wiki-skill.ts + src/skills/embedded/llm-wiki-for-backlog.ts: build-time embedded skill for the compiled binary
  • .codex/skills/llm-wiki-for-backlog/: canonical skill source (SKILL.md, usermanual-writing-guide.md, merge.py)

BACK-477 — Wiki online editing, file watching, folder creation, labels

  • src/file-system/operations.ts: saveWikiPage(), createWikiPage(), createWikiFolder(), renameWikiItem()
  • src/core/content-store.ts: createWikiWatcher() → WebSocket live refresh
  • src/server/index.ts: PUT /api/wiki/*, POST /api/wiki, PATCH /api/wiki/*
  • WikiDetail.tsx: edit/save/cancel lifecycle, labels via ChipInput; SideNavigation.tsx: per-folder action dropdowns

Plus four fix commits: symlink path comparison (CI), wiki SPA route fallback, wikilink format enforcement in skill tables, empty-folder expand arrows.

Notes

  • Scope decision for this slice: it introduces an entire wiki subsystem (file ops, server routes, web UI, CLI command, embedded LLM skill, .codex/ skill source). The rest of the stack (TASK-4.1 - CLI: Task Creation Commands #3Add subtask 6.1: add subtask for local CLI installation #9) partially builds on these files, so accept/reject this slice first.
  • Task IDs in backlog/tasks/ were minted on the fork — re-mint before merge if taken.
  • Validated at this tip: bun install --frozen-lockfile, bunx tsc --noEmit.

Original combined PR: #669.

Full stack: #675 editor/paste → #676 wiki → #677 i18n → #678 doc editing → #679 search/sidebar → #680 fixes → #681 dates/stats → #682 Gantt → #683 timezone/polish — split from #669, all commits authored by @kuwork.

kuwork added 8 commits June 9, 2026 23:55
- Add .codex/skills/llm-wiki-for-backlog/ as the canonical skill source directory
  (SKILL.md, usermanual-writing-guide.md, merge.py)
- Add CRITICAL wikilink format rules: index.md tables must use [[path/to/file]]
  instead of standard Markdown links [text](path.md)
- Include wrong/correct examples for internal wiki page links
- Update AGENTS.md wiki guidelines with the same wikilink constraints
- Regenerate src/skills/embedded/llm-wiki-for-backlog.ts (3 files embedded)
…elated sections

(cherry picked from commit be8994d4715c77ad1f089bfae901de72ecd006c0)
…ning files display the file count on the right.
@MrLesk

MrLesk commented Jul 1, 2026

Copy link
Copy Markdown
Owner Author

Alex's Agent: Maintainer cleanup: closing this draft as an archived slice of #669.

This PR is still part of a stacked broad feature bundle and is outside the current project scope. We are not merging this stack.

For future work, please open or link an issue before submitting a PR so the scope can be agreed before implementation. If a small fix from this slice is still desired, please extract it into a fresh PR against main with one narrow, agreed scope and no dependency on the #669 stack.

Future PRs in this area should link an issue first, or open one before implementation so scope can be agreed.

@MrLesk MrLesk closed this Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants