feat(web): World Import Review / Edit UI (v0 fixture, mock intake) - #47
Closed
guilaile95 wants to merge 1 commit into
Closed
feat(web): World Import Review / Edit UI (v0 fixture, mock intake)#47guilaile95 wants to merge 1 commit into
guilaile95 wants to merge 1 commit into
Conversation
Owner-facing gate between AI world extraction and the approved WorldImportDraft: category-filtered overview, per-entry provenance (source-backed / AI-inferred / conflict), source locators, alias and content editing with userEdited stamping, AI accept/delete, conflict resolution, Dexie-backed draft save/reopen, and JSON export. Served at /world-import-review on a frozen representative fixture (mock intake seam, no dependency on the extraction pipeline). Additive optional fields aiAccepted/conflictResolved persist review decisions across reopen; everything else follows the fixed v0 contract.
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 / 摘要
Implements the Dongfang World Import Review / Edit UI: the owner-facing gate between AI world extraction and the approved WorldImportDraft. The owner must be able to see what was extracted, where each entry came from, and resolve conflicts before approving.
/world-import-review(lazy-loaded, no changes to the existing nav system).apps/web/src/features/world-import-review/types.ts); all external input (fixture, saved drafts) is validated on load.userEdited = true.covel-world-import-review) → save / reopen / refresh keeps all data. Reopen prefers the saved draft and falls back to the fixture.world-import-draft-<id>.json), with an unresolved-conflict warning.draft-service.tsserving the frozen v0 fixture) so this branch does not depend on the extraction pipeline.fixture/world-import-draft-v0.jsonwith 9 representative entries covering all 8 categories and all 3 provenance statuses (source-backed character, aliased character, AI-inferred faction, conflicting rule, location, item, power system, event, AI-inferred relation). Content is UI-development placeholder, not canon.worldImport.*; fixture content lives in a JSON data file, UI strings go through i18next (passescheck:i18n).Two additive optional fields extend the fixed contract for review decisions that must survive reopen (documented in
types.ts):aiAccepted?(owner accepted an AI-inferred entry) andconflictResolved?(owner marked a conflict resolved). Everything else follows the contract exactly.Type of change / 变更类型
Verification / 验证方式
pnpm lint(tsc + tailwind canonical, clean)pnpm test— full@covel/websuite: 104 files / 650 tests passed (24 new)pnpm e2e(not run; covered by component-level flow tests)aiAccepted/conflictResolveddecisions). Screenshots:devs/docs/review-ui-screenshots/(local, gitignored).Baseline: branch cut at
ackness/covel@15f009d50d73ca985852bdb00322dcc721f56b6e(exact frozen baseline).Related issue / context / 关联
Dongfang v1 work-stream C (World Import Review UI), developed against the fixed WorldImportDraft v0 contract; intake seam ready to be swapped for the real extraction pipeline handoff.
Docs sync / 文档同步
docs/reference/update required)