Repository navigation
feat(content): publish qualified reviewers on regulated pages - #1916
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
f11e74c to
e89725b
Compare
6fccbfa to
2372359
Compare
|
@gkhngyk The follow-up you asked to track in #1486 is now implemented in #1916. I went through all four points from your review on #1476:
The relevant regression tests and Help article updates are included as well. The latest commit is Could you please take a look at the implementation and let me know whether anything needs changing? Thanks! |
…heet A CMS import that maps the columns by position still finds Featured image, Characters, Content and HTML where they were.
The page's text ran its blocks together, so a reviewer line followed by a
paragraph ("Dr. Grace Hopper</p><p>Coffee") or after a heading didn't
count as naming them.
With Quality off the editor read the authors for a saved reviewer and gave every quick export a page-fields table, so each Markdown, Word and HTML file changed shape, reviewer or not. The Library and Chat sends read no authors then, and the reviewer can't be seen or changed without Quality: the editor now does the same, and its quick export no longer keeps a second copy of Export's fields.
…ore you publish opens reviewerJsonLd gives WebPage.reviewedBy only once the page's text names the reviewer. Copy HTML, Export, Send to CMS (one page or a bulk send) and the code Before you publish shows all use it, so what ships is what was shown: before, Copy, Export and Send added it for any picked reviewer while Before you publish showed it on regulated pages only, named or not. Before you publish now reads it from the page as it was when it opened, instead of the editor serialising and scanning the whole page on every render (each keystroke).
gkhngyk
left a comment
There was a problem hiding this comment.
Thanks for this. Approving, with 4 commits on top (3de174d), pushed to this branch:
- Reviewed by goes last in the CSV and Excel sheet. It was inserted after Author, which moved Featured image, Characters, Content and HTML for anyone importing by column position.
- The reviewer's name is found at a block's start or end. The page text ran blocks together, so "Reviewed by Dr. Grace Hopper" followed by another paragraph, or a name right after a heading, didn't count as named.
- Copy and Export with Quality off work as before. The editor read the authors for a saved reviewer and gave every quick export a page-fields table, so all Quality-off Markdown, Word and HTML files changed shape, with or without a reviewer. The Library and Chat sends read no authors when Quality is off, and the reviewer can't be seen or changed then, so the editor now behaves the same way. This also removes the second copy of Export's fields.
- One rule for the WebPage
reviewedBynode. A newreviewerJsonLdhelper adds the node only when the page text names the reviewer. Copy HTML, Export, Send to CMS (single and bulk, so MCP and the CMS adapters too) and the code Before you publish shows all use it. Before, Copy, Export and Send added the node for any picked reviewer, while Before you publish showed it only on regulated pages, whether or not the page named them. Before you publish now checks the page as it was when the dialog opened. Previously the editor serialised and scanned the whole page on every render.
Each fix has a test that fails without it. The Quality help article and its approved-articles snapshot are updated to match.
…iewer (#1964) The MCP tools changed in #1920, #1927 and #1916; the skills and the MCP guide still described the old answers. - get_ai_traffic / GET /ai-traffic: `tracking` (not_detected, installed_quiet, active); a 0 with not_detected means nothing is measured yet. Coach skills (MCP + REST), mcp-server.mdx and api-reference/metrics.mdx (GET /api/v1/ai-traffic returns it too). - run_site_audit / POST /site-audits: a running page's audit comes back with alreadyRunning and no credit; a page audited in the last 10 minutes returns recently_audited and starts nothing unless force. Coach skills, audit-fix (Chat) and mcp-server.mdx; library.json refreshed. - get_content_draft_package: the qualified reviewer (reviewer) and its WebPage reviewedBy JSON-LD once the page names them. mcp-server.mdx. Co-authored-by: Cihan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
Summary
This PR implements the CE-049 follow-up so that a qualified reviewer selected for a regulated page is carried into its publishing metadata separately from its author.
WebPage.reviewedByas aPerson, keeping reviewer attribution separate from the Article author.WordPress limitation: The current adapter does not support configurable custom post-meta mapping and strips JSON-LD. Therefore, WordPress reviewer publication is not claimed by this PR. It requires a registered REST-visible custom post-meta field and a corresponding connection mapping. The WordPress author field is not reused for reviewer attribution.
How to test
From
web/:yarn lint yarn typecheck yarn format:check yarn test yarn buildFrom
server/:npm run lint npm run format:check npm run testRegression tests have been added for reviewer propagation, regulated-page checks, structured data, exports, CMS field mapping, and clearing mapped reviewer fields when no reviewer is selected.
These commands have not been run locally. CI should validate them.
Screenshots: Not attached. The application was not run in this environment, so no genuine UI screenshots were captured.
Related issue
Closes #1486
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsChecklist
feature/,fix/,chore/,docs/) — see [CONTRIBUTING.md](https://github.com/ansvisor/ansvisor/blob/main/CONTRIBUTING.md)yarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)help/(or no user-visible change) — see [help/README.md](https://github.com/ansvisor/ansvisor/blob/main/help/README.md)