BACK-478/479/480/419/423 - Web UI i18n support, documentation editing with path autocomplete, milestone search fix, and demote-to-draft action, Add folder grouping for docs#655
Open
kuwork wants to merge 17 commits into
Conversation
(cherry picked from commit e1ea342)
…ted-Word-content (cherry picked from commit c92e3b3)
(cherry picked from commit cdf34a9318650ab731ec0e2755158bd24fc7e914)
(cherry picked from commit 144d9e9)
- 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.
…based-page-creation
…or-references-and-documentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
BACK-478 — Add Web UI i18n support (English, Japanese, Chinese Simplified/Traditional):
src/web/contexts/I18nContext.tsx: create React context for locale state management with config-driven initialization viaapiClient.fetchConfig()src/web/hooks/useI18n.ts: convenience hook exposing thettranslation dictionarysrc/web/locales/index.ts: locale registry and dictionary loader supportingen,ja,zh-CN,zh-TWsrc/web/locales/types.ts: recursiveTranslationDicttype derived from the English source dictionarysrc/web/locales/en.ts,ja.ts,zh-CN.ts,zh-TW.ts: full translation dictionaries covering all 30+ UI componentssrc/web/App.tsx&src/web/main.tsx: integrateI18nProviderand sync locale frombacklog/config.ymlsrc/web/components/*.tsx: replace all hardcoded UI strings witht.*translations across Board, TaskDetailsModal, MilestonesPage, Settings, WikiDetail, CleanupModal, etc.src/core/backlog.ts,src/types/index.ts,src/file-system/operations.ts: addlocalefield toBacklogConfigand persist it to config filesrc/test/assets.test.ts: update test expectations for i18n-related changesBACK-479 — Add full documentation editing with path autocomplete for references and documentation:
src/file-system/operations.ts: addlistProjectFiles()(secure directory listing with path traversal containment check) andsearchProjectFiles()(recursive project file search excludingnode_modules,.git,dist,build,.backlog,.locks)src/server/index.ts: addGET /api/list-filesandGET /api/search-filesendpoints; supportdocumentationarray in task update payloadsrc/web/lib/api.ts: addfetchListFiles()andfetchSearchFiles()client methodssrc/web/components/PathAutocomplete.tsx: new reusable path autocomplete component with keyboard navigation (arrow keys + Enter), directory traversal, URL detection, debounced server search, and click-outside dismissalsrc/web/components/TaskDetailsModal.tsx: replace read-only documentation display with fully editable list; add inline add/remove for documentation items; replace plain text inputs withPathAutocompletefor both references and documentation fieldssrc/test/filesystem.test.ts: add tests for file listing and search (path traversal rejection, missing directory handling)BACK-480 — Fix WebUI milestone page search fuzzy matching false positives:
src/web/components/MilestonesPage.tsx: introduce three-tier search strategy — exact ID match → substring match (title/id contains query) → Fuse fuzzy search withthreshold: 0.35; this eliminates false positives on short queries; fix unassigned section to show all search results instead of filtering out completed tasks during active searchsrc/test/web-milestones-page-search.test.tsx: update tests for new three-tier search behaviorsrc/test/web-milestones-page-unassigned-filter.test.tsx: adjust unassigned filter tests for search-active display behaviorBACK-419 — Add Web UI demote-to-draft action:
src/server/index.ts: addPOST /api/tasks/:id/demoteendpoint withhandleDemoteTask()leveragingcore.demoteTask(); broadcast bothtasks-updatedanddrafts-updatedWebSocket events to refresh all clientssrc/web/components/TaskDetailsModal.tsx: add "Demote to Draft" button in preview mode with keyboard shortcutD(when not in an input); integrate with i18n translation stringssrc/web/lib/api.ts: adddemoteTask(id)client API methodsrc/web/locales/en.ts,ja.ts,zh-CN.ts,zh-TW.ts: add demote-related translation keyssrc/test/server-demote-endpoint.test.ts: add endpoint tests covering success, task not found, and lock conflict (409) scenariosBACK-423 — Add folder grouping for docs in Web UI
Based on PR #655's format, here's the revised version:
BACK-423 — Add folder grouping for docs in Web UI
src/types/index.ts: addDocsTreeNodetype for recursive docs folder tree structuresrc/file-system/operations.ts: addgetDocsTree()(filesystem walk including empty directories) andcreateDocsFolder()(with path traversal containment check)src/server/index.ts: addGET /api/docs/treeandPOST /api/docs/folderendpointssrc/web/lib/api.ts: addfetchDocsTree()andcreateDocsFolder()client methodssrc/web/App.tsx: loaddocsTreein parallel with other data and pass through component treesrc/web/components/Layout.tsx: forwarddocsTreeprop toSideNavigationsrc/web/components/SideNavigation.tsx: replace flat document list with recursiveDocTreeItemcomponent; addDocActionDropdownper-folder menu (create file / create folder); add expand/collapse withlocalStoragepersistence; fix vertical alignment of dropdown trigger buttons; remove rename option from Wiki section header dropdownsrc/web/components/DocumentationDetail.tsx: support?pathquery parameter on/documentation/newto pre-fill target foldergetDocsTree()walks the filesystem directly instead of deriving from thedocsarray so that empty folders are visible and can be created before any document exists inside them. Documents do not need a standalone rename action in the sidebar becausesaveDocument()already handles title changes by renaming the file automatically.Task Checklist
backlog/tasks/