@designfever/web-review-kit 0.7.3 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Designfever web page review overlay toolkit.
4
4
 
5
- `@designfever/web-review-kit` adds a `/review` shell to a host project. The shell opens real project pages in an iframe, creates QA notes/area/DOM markers, restores deep links, and lets each project choose its own storage adapter.
5
+ `@designfever/web-review-kit` adds a `/review` shell to a host project. The shell opens real project pages in an iframe, creates DOM/area QA markers, restores deep links, and lets each project choose its own storage adapter.
6
6
 
7
7
  ## Package Role
8
8
 
@@ -20,20 +20,22 @@ This package does not own internal operator tools, private admin keys, or produc
20
20
 
21
21
  ## Docs
22
22
 
23
+ - [Docs index](docs/README.md): reading order, document roles, and release history.
23
24
  - [Installation](docs/installation.md): install the package and mount `/review`.
24
25
  - [.env.sample](.env.sample): copyable host project env template for local, Supabase, and source opening.
25
26
  - [Adapter boundaries](docs/adapters.md): QA adapter vs Figma image store responsibilities.
27
+ - [Testing](docs/testing.md): Vitest adapter contract tests and local verification commands.
26
28
  - [Custom adapter sample](docs/adaptor.sample.ts): starting point for host-owned remote adapters.
27
29
  - [DB setup](docs/db-setup.md): optional Supabase `review_items` setup, RLS, presence notes, and validation.
28
30
  - [Architecture and runtime logic](docs/architecture.md): core runtime, React shell, coordinate, anchor, and extension boundaries.
29
31
  - [Figma overlay](docs/figma-overlay.md): how the shell toggles a host Figma overlay.
30
32
  - [Grid overlay](docs/grid-overlay.md): how the shell toggles a host grid/helper overlay.
31
- - [Release notes 0.7.3](docs/release-notes-0.7.3.md): latest endpoint Figma image store changes.
33
+ - [Release notes 0.8.1](docs/release-notes-0.8.1.md): QA prompt prefix, QA filtering, counters, tooltip, long-content, and outside marker fixes.
32
34
 
33
35
  ## Quick Start
34
36
 
35
37
  ```bash
36
- pnpm add @designfever/web-review-kit react react-dom
38
+ pnpm add @designfever/web-review-kit react react-dom zustand
37
39
  ```
38
40
 
39
41
  Minimal Vite route:
@@ -78,6 +80,7 @@ mountReviewShell({
78
80
  remove: (id) => local.remove(id),
79
81
  },
80
82
  ],
83
+ qaPrompt: 'Follow this project coding style before fixing the copied QA item.',
81
84
  reviewPathPrefix: '/review',
82
85
  });
83
86
  ```
@@ -156,7 +159,7 @@ export default defineConfig({
156
159
  });
157
160
  ```
158
161
 
159
- When source hints are available, hold `Option` over the review target to inspect source candidates from the DOM ancestry. Click the target to pin the candidate list, then choose a file to open. The side rail can also open a Source Tree panel with section/source/data links, live box metrics, text/font/media metadata, and class tags. DOM QA cards show a source action when the saved item has source hints. Source Tree filter/options, QA panel mode, and QA status filter are stored in browser localStorage. Keep these plugins disabled for production builds because they write source paths into the DOM.
162
+ When source hints are available, hold `Option` over the review target to inspect source candidates from the DOM ancestry. Click the target to pin the candidate list, then choose a file to open. The source locator also reads TSX/JSX with the TypeScript parser when available and writes `data-wrk-source-component` for intrinsic JSX nodes, which helps the inspector prefer real component candidates over repeated wrapper primitives. For function component render paths, it also records the parent JSX call site so Source Tree can show where a component was used. The side rail can open a Source Tree panel with section/source/data links, parent usage links, live box metrics, text/font/media metadata, and class tags. DOM QA cards show a source action when the saved item has source hints. Source Tree filter/options, QA panel mode, and QA status filter are stored in browser localStorage. Keep these plugins disabled for production builds because they write source paths into the DOM.
160
163
 
161
164
  In Vite/ESM hosts, source opening reads `VITE_REVIEW_SOURCE_ROOT`, `VITE_REVIEW_SOURCE_EDITOR`, and `VITE_REVIEW_SOURCE_URL_TEMPLATE` from the host env. Env values override matching `sourceRoot`, `sourceInspector.editor`, and `sourceInspector.urlTemplate` init values; init values still work as a fallback for existing projects and CommonJS consumers. Use `VITE_REVIEW_SOURCE_URL_TEMPLATE` only with `VITE_REVIEW_SOURCE_EDITOR=custom`; the template supports `{path}`, `{encodedPath}`, `{line}`, and `{column}`.
162
165
 
@@ -187,6 +190,7 @@ Useful checks:
187
190
 
188
191
  ```bash
189
192
  pnpm typecheck
193
+ pnpm test
190
194
  pnpm build
191
195
  pnpm typecheck:dev
192
196
  pnpm build:dev