Skip to content

feat(shopping): send a product or a category to the Action Center with the work that gets it on the AI shelf (Product Visibility, part 7) - #1642

Merged
gkhngyk merged 47 commits into
ansvisor:mainfrom
cihan-gyk:feature/product-visibility-actions
Oct 28, 2026
Merged

gkhngyk merged 47 commits into
ansvisor:mainfrom
cihan-gyk:feature/product-visibility-actions

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

Product Visibility, part 7 of 14: send a product or a category to the Action Center with the work that gets it on the AI shelf (ECOM-013, the mockup's "Actions to get on the shelf" and "Category actions").

Stacked on #1641. This PR's own change is its commits after #1641's: 25c2ff5, 38ecf6e, fdcc373.

Where you see it:

  • A product's page › Actions to get on the shelf, grouped by type.
  • Categories › Plan actions on each row, highlighted on a row that needs attention. It opens "Category actions · Hiking backpacks".

A product's work, from what it misses beside the shelf's winner:

  • Optimize page: rewrite it for the missing words;
  • Create content: a comparison with the winner and an FAQ, else a buying guide;
  • Get listed: the review sites AI quotes;
  • Technical: GTIN and structured data.

A category's work: the category page, a buying guide, the "best X" lists, and its feed fields.

Sending:

  • Each line is picked or not, and set to Me or Agent. The agent can't take a technical fix.
  • Send N actions to Action Center opens one action, with a toast that links to it.
  • Sending again returns the action still open ("Already in Action Center as #N").

Server, POST /api/action-center/products (lib/action-center/from-products.js):

  • New kinds: shopping_product (Growth) and shopping_category (Compete), one open action per product or category.
  • Tasks from the library:
    • optimize_content;
    • create_content_brief + create_content_draft;
    • prepare_outreach + execute_outreach;
    • fix_structured_data.
  • Each task's mode follows Me or Agent where the task allows it, and the line becomes its why.
  • The payload keeps the brand's own questions only. The action is measured on them and the product's page, with its own priority subject (priority.js, validate.js).

Web: both kinds' titles ("Get Ridge 30L Backpack on the shelf", "Win “Hiking backpacks” in AI answers"). ACTION_KINDS goes from 69 to 71. A category row keeps its questions' ids.

Fixed in the pre-push review:

  • B23 (38ecf6e):
    • The route asks for requireFeature('shopping_analytics'), as the page does. Without it, a Starter workspace could open these actions by calling the API.
    • The tasks are planned before the action is inserted. Work none of whose tasks can be planned for the brand opens nothing: a 422 that says so, shown in the toast.
    • Four other Action Center route tests' plan-guard mocks now give requireFeature.
  • B24 (fdcc373): every row's button read "Plan actions". Each is now labelled for its category ("Plan actions for Hiking backpacks"), its visible text first.

Related issue

No issue: ECOM-013 in Drive › E-commerce › ECOM-spec.md. The screens' tasks were only in epic #1190, closed as not planned.

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

  1. cd server && npx vitest run src/lib/action-center/from-products.test.js src/routes/action-center-products.test.js
  2. cd web && yarn vitest run src/lib/shopping/action-plan.test.ts src/lib/action-center/display.test.ts "src/app/[locale]/(dashboard)/dashboard/shopping"
  3. On Growth, with a catalog:
    • a product's page › set a line to Agent › Send N actions to Action Center: the toast reads "Sent to Action Center as #N", with Open;
    • send again: "Already in Action Center as #N";
    • Categories › Plan actions › send.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

Checks:

  • At the top of the chain (part 14): server/ npm test (3,383 tests), web/ vitest (4,451 tests) and yarn build.
  • At this branch's tip: yarn typecheck, and the tests, eslint and prettier of the files it changes.

For you, @gkhngyk:

🤖 Generated with Claude Code

cihan-gyk and others added 23 commits October 27, 2026 18:33
…popup and the Shelf and Products tabs (product visibility, part 1)

The first step to the Products screens in Drive › E-commerce (ECOM-spec,
ECOM-mockup): the page says what it's for, "Which of your products AI
recommends, why, and what it sells.", with "Why Ansvisor Product
Visibility?" beside the title. That opens the four steps from the AI
shelf to the sale, and offers Connect Google Analytics while GA isn't
connected (ECOM-010).

Under the title, the data sources (ECOM-009), as on AI Traffic:
- the product catalog (its products and last sync, Manage, or Connect);
- Google Analytics and Search Console, each with what it adds here;
- a Marketplaces & feeds row: Merchant Center connects as a catalog
  source, and the marketplaces show Soon until they have a connector.

The tabs read Shelf, Prompts, Products and Competitors, the one open in
the URL (?tab=products). The sidebar item is new. AI Traffic's Google
source card is shared, with an optional line for while it isn't
connected.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…oduct it shows (product visibility, part 2)

Product Visibility's Shelf, Products and Categories (ECOM-005…008)
count a brand's products on the AI shelf, so each product card that is
the brand's own now records which catalog product it shows
(prompt_result_shopping_cards.catalog_product_id, and catalog_match for
how it was found; 00360).

lib/catalog/card-match.js matches in order:
- by the marketplace listing a card links (ASIN, eBay item id), to a
  variant's marketplace_item_id;
- by a GTIN the card carries, without its padding;
- by its link, to a product's or variant's page, with or without its
  query;
- else by its title: at least 0.6 of the words in common (Dice) and
  0.1 clear of the next product, the brand's name and filler words
  aside.

A key two products share matches neither.

Cards are matched as they're written, against the brand's catalog read
at most every 10 minutes. If the catalog can't be read, the cards go in
without matches. If the API runs before 00360, they go in without the
new columns rather than not at all.

After the daily catalog sweep, each brand whose catalog synced in the
last day has its own cards of the last 90 days matched again. Only the
matches that changed are written, 500 a call, through
set_shopping_card_matches (service role only).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e brand's place and its sales from AI (product visibility, part 3)

The Shelf tab (ECOM-006, Drive › E-commerce › ECOM-mockup) is
Product Visibility's overview now.

Four numbers:
- AI shelf share: the brand's share of the product slots in AI
  answers;
- Products on the shelf: its catalog products shown (00360), "41 of
  320", else distinct titles;
- AI revenue · 30d: orders from AI visits and their value against the
  30 days before, from the tracking snippet and the Shopify pixel
  (ai_traffic_events). Without a source, "Connect to see sales" links
  to AI Traffic;
- Top AI channel: by AI orders, else by the brand's slots.

Then where AI sends shoppers and resellers cheaper than the brand, as
before. Then one row per shopping question and channel: its latest
shelf in order, with photos, prices, ratings and merchant icons. The
brand's products are ringed ("2 · You", "via Amazon"), and each row
says "You: #2 · 1 of 2 shelves this week" or "You're not on this
shelf". The shelves the brand isn't on come first.

Filters:
- channel chips, which set the page's platform filter;
- a price band, from the shelf's middle price.

The platform card rate and trend charts stay below, under Trends.

The old KPI row and the Card-eligible prompts tab give way to the
Shelf. The Shelf reads on its own, so a failure there leaves the other
tabs working and says so. ChatGPT Shopping gets its name in the
platform labels.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ts, orders and readiness (product visibility, part 4)

The Products tab (ECOM-007) lists the brand's catalog when it has one.
Each product shows:
- its photo, category and price;
- the AI shelves it was on, its win rate (#1 or #2) and average place
  over the filter window, from its matched cards (00360);
- the AI visits its page got;
- the orders those visits led to, and their revenue;
- its readiness out of 100.

Visits and orders come from catalog_product_ai_stats (00361). No source
carries order line items yet (Shopify order sync, ansvisor#1267), so an order is
credited to the product whose page the AI visitor landed on first
(ai_traffic_events.first_url). A product's page is its link, else its
first variant's, matched by path. Members of the brand's organization
only.

Readiness adds up what the catalog can tell:
- a GTIN (20);
- a photo (15);
- in stock (15);
- a price (10);
- a description of 25 words or more (15);
- what the product is, in its first 40 words (10, ECOM-024);
- a category (10);
- a brand (5).
Its tip says what's missing and what each costs.

Views: All, Never shown, Shown not clicked, Clicked not bought, and Top
sellers from AI, each with its count. The table reads up to 2,000
products and says so past that. A brand with no catalog, or one that
can't be read, keeps the products AI showed by title, with a line on
connecting the catalog. Prices format in one place
(lib/shopping/price.ts).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… on it, top rival and AI revenue (product visibility, part 5)

The Categories tab (ECOM-008, between Shelf and Products) lists each
category of the brand's catalog that has live products, with:
- its shopping questions: a question is the category's when the
  category's own name is in it (its last level, plural or not:
  "Hiking backpacks" in "lightweight 30L hiking backpack for women"),
  or when one of its products was on the question's shelf (00360);
- the brand's share of the product slots on those shelves, with a bar;
- its products on a shelf, of its products;
- the rival with the most slots there: the competitor a card is
  matched to, else the card's brand, with its favicon;
- its products' AI revenue in their main currency (00361).

A category with three questions or more where the brand holds under 10%
of the slots is marked "needs attention", tinted amber. The tab reads
when it opens, once per brand and filters, and shows its count. It also
says when the catalog has no categories, or when they can't be read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…AI picked another one (product visibility, part 6)

Each product in the Products table now opens its own page,
/dashboard/shopping/products/[id] (ECOM-011, the mockup's product
detail).

Header: its photo, price, category, "On N of M shelves", its
readiness, and "View product page". Below it, its AI clicks, AI orders
and AI revenue over 30 days (00361).

"Why not your product?": for the most relevant question whose shelf it
isn't on (else the one it ranks lowest on), it stands beside the
product AI put first, row by row:
- match with the question: both BM25 scores (ansvisor#1487's), over its title
  and its description's first 40 words, with the missing words;
- price: close, or how much higher or lower;
- rating and reviews, as the answers showed them;
- what it is, in its first 40 words;
- GTIN, photo and stock in the feed;
- who sells each.
Each row is marked ✓ matches, ✕ missing, ↓ weaker, or — just what
each has. Rows we have no data for (delivery, returns, schema) are left
out rather than guessed.

"Where it shows": the questions it belongs on (its category's name in
them, the shelves it was on, or a match of 40 or more), each channel's
latest shelf, its place, its match and the missing words. Then its
readiness, check by check.

The view is its own component (_product-detail.tsx). Reading the
catalog's products is shared with the Products table. The plan's
locked note now says what Growth unlocks here.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…h the work that gets it on the AI shelf (product visibility, part 7)

ECOM-013, the mockup's "Actions to get on the shelf" and "Category
actions".

A product's page lists its proposed work, from what it misses beside the
shelf's winner:
- Optimize page: rewrite it for the missing words;
- Create content: a comparison with the winner and an FAQ, else a
  buying guide;
- Get listed: the review sites AI quotes;
- Technical: GTIN and structured data.

The Categories table's "Plan actions" (filled on a category that needs
attention) opens the same for the category: the category page, a buying
guide, the "best X" lists, and its feed fields.

Each line is picked or not and set to Me or Agent. The agent can't take
a technical fix. "Send N actions to Action Center" opens one action with
a toast that links to it; a second send returns the action still open.

Server, POST /api/action-center/products (lib/action-center/
from-products.js):
- a 'shopping_product' (Growth) or 'shopping_category' (Compete) action,
  one open per product or category;
- tasks from the library: optimize_content; create_content_brief +
  create_content_draft; prepare_outreach + execute_outreach;
  fix_structured_data. Each task's mode follows Me or Agent where the
  task allows it, and the line becomes its why;
- the payload keeps the brand's own questions only. It's measured on
  them and the product's page (basket metrics), with its own priority
  subject.

The web knows both kinds' titles ("Get Ridge 30L Backpack on the shelf",
"Win “Hiking backpacks” in AI answers"). A category row keeps its
questions' ids.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…a product's delete (00360)

`on delete set null` looks up a deleted catalog product's cards by the
product alone, which the (brand_id, catalog_product_id) index can't serve:
each delete would scan the cards. A partial index on catalog_product_id
covers it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…loop, and read every GTIN key in the sweep

A 50,000-product catalog took about 90 s to match 20,000 cards, in one
synchronous run. Now about 1 s, the longest hold under 70 ms:

- A word in more than 5% of the titles (and more than 500) finds no
  products to compare; it still counts in a title's score. A title of
  common words only is found by its rarest one. A product not compared
  can't come within the margin of the best: when one could (it would share
  only the card's common words), no title match is made. So every title
  match is one the full comparison makes too; a few it made are not.
  A catalog of 500 titles or fewer is matched exactly as before.
- matchCards matches 500 cards at a time, with a turn of the event loop
  between (the bot-log parser's nextTurn).
- The kept catalogs are capped at 200,000 products in all, not 50 brands;
  the brand read least recently goes first, and a read keeps a brand.
- The daily sweep reads a card's GTIN under gtin, gtin13, gtin12, gtin14,
  ean and upc, as matching at write time does, not under gtin alone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…'s active products first (00361)

catalog_product_ai_stats returned a row for every live product, so a
catalog past 1000 products lost the rest to PostgREST's max_rows, and the
Products table read at most the first 2000 products by id, with every
variant of the catalog.

- 00361 returns only the products with an AI visit or an order, and takes
  p_product_id for one product's row. The table reads it a page at a time
  (readAllRpcRows, by product_id).
- Past 2000 products, the table lists those on a shelf or visited from AI
  first (orders, then shelves, then visits), then the rest by id. Their
  rows, variants, photos and categories are read for those ids, 100 at a
  time; a catalog of 2000 or fewer is read by the brand, as before.
- All and Never shown count the whole catalog (the server's count), not
  the rows read; the note says which products the table holds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…f apart from the rest

Each filter change read the whole Products table with the page's other
reads, and the Shelf's rows waited for all of them.

- useKeyedRead: a read made once per brand and filters while it's wanted,
  an older answer dropped. The Shelf reads with it on its own; the
  Products table only while its tab is open, as Categories does.
- The no-catalog view says what main's CatalogNote says (with its link to
  Settings), not a second line of its own: products.noCatalog goes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ct-visibility-categories

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Categories table read catalog_product_ai_stats in one request, so a
catalog with more than 1000 products with AI visits or orders lost the rest
of its revenue to PostgREST's max_rows. It reads the pages now, as the
Products table does (readProductAiStats).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…duct-visibility-detail

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The product's page read every product's AI visits and orders to find its
own, and lost it past the first 1000 rows. It asks catalog_product_ai_stats
for its product only (p_product_id, 00361), and reads its catalog rows by
its id.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… beside its icon

The comparison's ✓, ✕, ↓ and – icons are hidden from screen readers, so
the state they draw wasn't read at all. Each row now says it after its
name ("Price, in place"; "GTIN in the feed, missing"), for a screen reader
only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ibility's plans only, and never as an action without tasks

POST /api/action-center/products checked the brand but not the plan, and
opened the action before planning its tasks.

- The route asks for shopping_analytics (requireFeature), as the page does.
- The tasks are planned before the action is inserted. Work none of whose
  tasks can be planned for the brand opens nothing: a 422 that says so,
  shown in the page's toast.
- The other Action Center route tests' plan-guard mocks give requireFeature.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… category

Every row's button read "Plan actions", so a screen reader's list of
buttons couldn't tell them apart. Each is labelled "Plan actions for
Hiking backpacks", its visible text first.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

Merged main forward (8356ba3) through the stack; no new conflicts on this branch. Typecheck and lint pass on the chain tip.

…ing cards to the catalog

A card's link has its trailing slashes cut by a walk back rather than an
end-anchored regex, and a title match reads a card title's first 40 words
(MAX_CARD_TITLE_WORDS): each word more was compared with every product it
found.
… table

Each category added up its questions' cards by walking every card in the
window again; a big catalog's categories, each in most questions, took
seconds. The cards are now counted once per question (slots, the brand's,
each rival's), and a category adds up its questions. The rows are the same.
Counting each question's shelves once gathers a category's questions by
name first, then by its products. Its promptIds are put back in the
cards' order, so the first 50 sent to the Action Center are the same as
before.
…rk line, as the Action Center route takes them

A category with more than 50 shopping questions, or a work line over 500
characters (a long question or two long product titles), was refused whole
by POST /api/action-center/products with a 400, so nothing was sent. The
web now sends the first 50 questions and cuts the line at a word.

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good with 43ca5f4: I fixed the two cases where the web sent a body the new route refuses whole, and (0d66af1) the questions now go in the cards' order, so the first 50 kept are the shelf's own first questions rather than whatever order a set gives them.

What I changed:

  • A category with more than 50 questions couldn't be sent. The Categories dialog sends every question of the category (CategoryRow.promptIds), and POST /api/action-center/products takes at most 50 (promptIds: z.array(z.guid()).max(MAX_PRODUCT_PROMPTS)), so a broad category answered "Invalid request" and nothing was sent. sendShoppingActions now sends the first 50, without repeats. The library already kept 50, so the action is the same as it would have been.
  • A long work line was refused. The route takes a why of at most 500 characters. The lines are written from the question's text or from two product titles ("A comparison, {product} vs {winner}, with an FAQ"), which can pass 500. sendShoppingActions now cuts a line over 500 at a word, with "…", and never through a character written as two.
  • A new test, shopping-send-actions.test.ts, checks both and the body the route gets; its 3 tests fail without the change.
  • Later parts carry the fix through merges.

What I checked:

  • Own change. fdcc373 against part 6's head (a0d4b78): the route and from-products.js with its tests, the two new kinds in priority.js, validate.js, the web registry and display, the plan dialog on the product page and the Categories table, and en.json. No migration: actions.kind has no check constraint, and the one-open-per-key index (00084) covers the new dedup keys.
  • Who can send. The route is under /api, so it needs a signed-in person, and #1589's middleware refuses it with 402 once the plan has ended (it's a POST). requireFeature('shopping_analytics') checks the caller's plan on the server, and assertBrandAccess the brand. The product or category is read with the brand's id (and removed_at is null for a product); the questions are kept only when they're in the brand's prompt sets. So nothing of another organization can be named in the action.
  • The action. One open action per product or category: a second send returns it (200), and two sends at once are settled by the unique index (23505, then the open one is read). Work whose tasks can't be planned for the brand opens nothing (422). The agent never gets a task only a person can do (modeFor). Duplicate work types plan each task once.
  • Measuring. A product's action is measured on its questions and its page, a category's on its questions, through the same basket check as the other person-sent kinds.
  • Tests. On this PR's tree: the touched server tests (6 files, 33 tests), all Action Center server tests (32 files, 596 tests) and the touched web tests (6 files, 212 tests) pass. tsc, eslint and prettier are clean. On take-1642, all of Shopping's web tests pass too (34 files, 201 tests).

Web before the API: the web goes out on merge and the API by hand. Until the API with this route is deployed, "Send to Action Center" answers with a 404, and the toast says "Couldn't send to Action Center." with the route's error text. Nothing else on the page depends on it.

Merging: on today's main, priority.js, registry.ts, display.ts, display.test.ts and en.json conflict, because main added the shopping_links kind at the same places. Each one keeps both sides: both kinds in the lists, both blocks in priority.js and display.ts, and the count in display.test.ts goes to 72.

Follow-ups (none block):

  1. Which 50 questions. For a category with more, the first 50 are the ones its latest cards came from. Sending the 50 where the brand is missing most would measure the action where it can move most.
  2. The 500 error's text. On a 500, the route returns error.message as details, and the web shows it in the toast. That's how the other Action Center routes answer too, but a database error's text isn't something a person can act on.

@gkhngyk
gkhngyk merged commit 21fcdeb into ansvisor:main Oct 28, 2026
4 of 5 checks passed
@github-actions github-actions Bot removed the needs-migration Adds or edits a migration — apply it to the hosted database label Oct 28, 2026
cihan-gyk added a commit to cihan-gyk/ansvisor that referenced this pull request Oct 28, 2026
…hich the route file now uses

The Products route (ansvisor#1642) guards itself with requireFeature, so the router doesn't load in a test whose plan-guard mock has none. The audits route test gets the same pass-through stub as the pages and content-drafts tests on main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
gkhngyk added a commit that referenced this pull request Oct 28, 2026
…tion Center (learning D2) (#1709)

* feat(action-center): send a page from its Site Audit report to the Action Center as a Fix action

Learning D2. A Site Audit report showed what a page fails, but the only way
to the Action Center was the nightly pass, a day later and grouped with
other pages. A person can now send the page from its report at once.

- server from-audit.js: the audit read again within the brand (completed,
  its page and score), its failing checks (a fail, and a warning for
  JSON-LD validity only, as the page check reads them) with their names;
  one Fix action a page (dedup on the page), impact high below the
  low-score line, F01's plan, the page and its checks as its target (what
  an audit run again reads), measured on the page (basket kinds), scored
  as a site fix (priority sentByHand). 404 for another brand's audit, 409
  not completed or nothing to fix.
- POST /api/action-center/audits { brandId, auditId }.
- Web: "Send to Action Center" on the report's header once it fails a
  check, with a toast that opens the action (or the one already open);
  audit_page joins the action kinds ("Fix the issues Site Audit found on
  /path", "the page fails N checks"), its no-signals note in the drawer.
- Docs: the Site Audit and Action Center guides.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(action-center): show the report, page and failing checks of an action sent from Site Audit

An audit_page action's drawer only said it had no detection signals, so the
person had to find the report again to see what to fix. Its Overview tab
now shows where it came from with a link to the audit report, the page, and
the checks it failed when sent, named by the labels Site Audit gave them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(action-center): refuse to send an older Site Audit report of a page audited since

A report stays open at its own URL after the page is audited again, and
sending it named the checks the page failed then, some of them maybe fixed
since. The server now looks for a later completed audit of the same page
(the Pages list's page key of final_url, else url) and refuses with 409
newer_audit and the latest audit's id; the report's toast says so and opens
the latest report.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(action-center): cover the route that sends a Site Audit report to the Action Center

POST /api/action-center/audits had no route test. It now pins what the
route lets through and how it answers: 400 for an invalid id, 403
not_in_workspace, 201 created and 200 already open, 404, and 409
nothing_to_fix, not_completed and newer_audit with the page's latest audit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(audit): place the report's Send to Action Center where the guide explains it

- Site Audit guide: the paragraph on sending one page moves from after the
  closing card into "How audits feed the Action Center". It says the action
  is judged like a nightly Site Audit fix, by the page audited again since
  it closed (learning A2, #1689, on main), and by its metrics until then.
- The report's section says what a second send does (a notice naming the
  open action with Open, not the action opened) and that only a page's
  latest report can be sent.
- Action Center guide: the two Site Audit rows of "Sending work to the
  Action Center" become one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(action-center): pin F01's audit tasks, two sends at once and a not-applicable check for a Site Audit send

The test's brand had no Site Audit source, so F01's analyze_site_audit and
validate_technical_fix left the plan and the test, checking only that some
task was planned, didn't notice. Its brand now has its audits and the test
names the five tasks in order. It also covers two sends at once (the
insert refused by the open-action index returns the other send's action;
another refusal fails) and a check that is not applicable to the page,
which is neither sent nor enough to send.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(action-center): let the audits route test stub requireFeature, which the route file now uses

The Products route (#1642) guards itself with requireFeature, so the router doesn't load in a test whose plan-guard mock has none. The audits route test gets the same pass-through stub as the pages and content-drafts tests on main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Cihan <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Gökhan Geyik <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants