Repository navigation
Fix: Editing a document slice requires showing the wiki's update button - #18267
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
📝 WalkthroughWalkthroughThe wiki update flow now tracks changed documents, refreshes alteration details after runs, displays changed counts in the update button, and includes the count in English and Chinese tooltips. ChangesWiki changed-document reporting
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This localized change makes the wiki update button available when editing a document slice; no actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
wangq8
left a comment
There was a problem hiding this comment.
Thanks for this fix. The frontend correctly consumes the changed / changed_doc_ids fields that the alteration API now returns for kind=wiki (chunk-hash based drift detection), and wiring changed into hasChanges, the badge, the tooltip, and invalidating ArtifactAlterationKeys.detail on run end all look correct.
One suggestion: in web/src/interfaces/database/dataset.ts, changed and changed_doc_ids are added as required fields, but the backend only returns them for kind === "wiki" (structure kinds like graph/mindmap/timeline/tree do not include them). Consider marking them optional (changed?: number; changed_doc_ids?: string[]) so the type accurately reflects the API contract for all kinds.
Otherwise LGTM.
Summary
Fix: Editing a document slice requires showing the wiki's update button