Skip to content

feat(cli): search lists no icons for "with an icon" when the results answer a component - #12305

Merged
josephfarina merged 4 commits into
mainfrom
josephfarina/search-icon-feature
Nov 18, 2026
Merged

josephfarina merged 4 commits into
mainfrom
josephfarina/search-icon-feature

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Record change: spec:AST-084 FR11 gains one sentence: "An icon or icons that comes right after with, with only a, an or the between, and is not followed by of or for, names a feature: when search's results hold a component or a template, that word asks for no icon (card with an icon asks for a card; card with an icon of a star asks for an icon)." FR6's search sentence points to it. Checks: CLI structure check, pnpm check:knowledge and the touched test files pass locally with CI=1 (Testing below); with no icon set installed, search output is byte-identical to main.

User need

With an icon set installed, astryx search lists icons after its results when a query asks for one. A query such as card with an icon asks for a card that has an icon, not for an icon: the trailing icons (a credit card, a gift) are noise an agent reads and may act on.

Problem and solution fit

  • One rule beside the existing ask test (asksForIcon): an icon or icons that comes right after with, with only a, an or the between, and is not followed by of or for, names a feature. When search's own results hold a component or a template, that word asks for no icon, so no icons block follows.
  • of and for describe the glyph itself, so card with an icon of a star still lists icons. An icon word that is not right after with (button with plus icon) still asks, as do set names and export names (SearchIcon).
  • Search passes its results' domains to its adapter, which passes them to the ask test; the adapter stays the only reader of icon sets.

Current specification

spec:AST-084 FR11 gains one sentence with the rule, and the FR6 search sentence names it. Experimental surface (spec:AST-017 FR27).

Public delta and caller burden

  • data.icons is absent for a feature phrase whose results hold a component or a template. Nothing else changes: results and matchCount are untouched, and every other query answers as before.
  • No new option, type or field.

Design and alternatives

  • Rejected: a list of words that name UI parts (card, avatar, …); the results already say whether search answered an entry.

Evidence

  • card with an icon and avatar with icon: no icons block; the whole answer equals the answer with no set installed. The fixture set has icons tagged card and avatar, so this fails without the rule.
  • card with an icon of a star, button with plus icon, trash icon: the icons block lists the matching icon.
  • With no set installed, --json and text output of button, dark mode, trash icon, SearchIcon, IconButton, icons, delete, data table, glyphs home, chevron down icon are byte-identical to main (stdout and stderr).

Scope

Components: cli search icon section, icon finder ask rule

  • One capability is added.
  • Unrelated fixes, cleanup, and policy changes were removed or split.
  • Consumer docs, focused tests, and migration evidence ship with the feature.
  • Public text and artifacts contain no internal Meta context.

Testing

  • search.icons.test.mjs: ask-rule cases for feature phrases, of/for, an icon word not after with, and no answered entry; search with a fixture set for card with an icon, avatar with icon (no block, answer unchanged) and card with an icon of a star, button with plus icon, trash icon (block).
  • The search command's type doc and the icon finder's doc state the rule in the same words, and the icon-sets guide's search row names it.
  • Pass locally with CI=1: search.icons, search, search command text, search discover line, icon, icon-sets-guide, doc-text-ascii, and experimental-isolation apart from one doctor snapshot (an invalid installed set) that fails the same way on main on this host. CLI structure check and pnpm check:knowledge: clean.

Writing rubric results

R1 narration: none; the FR11 sentence states what search reads as an ask.
R2 research: none in the record.
R3 evidence: no evidence cells changed.
R4 rejected alternatives: none in the record; one listed in this description.
R5 change references: none.
R6 open questions: none added.
R7 project status: none.

@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 18, 2026 10:13am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 17, 2026
@astracat-bot

astracat-bot Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 18, 2026, 10:18 AM UTC

@astracat-bot astracat-bot Bot 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.

Approval waits on an engineering owner deciding the new spec:AST-084 FR11 rule and FR6's pointer to it: an icon or icons right after with (only a, an or the between, no of or for after) names a feature, so search lists no icons block when its results hold a component or template. The current spec on main does not state this rule, so an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. One fix is needed whatever the decision:

  • The data.icons type doc in packages/cli/api/search/search.type.mjs (lines 77-78) says an icon word after with asks for none and leaves out the of/for exception that the code and changeset keep, so callers would expect no icons for card with an icon of a star; add the exception there and give packages/cli/api/icon/icon.doc.mjs the same wording.
  • Non-blocking: the search-level test for feature phrases also passes without this change, because no fixture icon answers card or avatar; a fixture icon tagged card would make it fail first.
Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claims:
    • Changeset: card with an icon answers the card alone. Verified: the icons block is absent and results and matchCount are unchanged.
    • Changeset: an icon described after of or for, or named before the icon word, still lists icons. Verified for card with an icon of a star and button with plus icon.
    • Description: the rule reads the icon word after with with only articles between and no of or for after, and applies only when results hold a component or template. Verified in icon-ranking.mjs and _icons.mjs.
    • Description: set names and icon export names still ask. Verified.
    • Description: search passes its result domains to its adapter, which stays the only reader of icon sets. Verified in search.mjs and _adapter.mjs.
    • Description: FR11 gains one sentence and FR6 points to it. Verified.
    • Description: only data.icons changes, with no new option, type or field. Verified; results and matchCount match the base for every query tried.
    • Description: with no set installed, output is unchanged. Verified by code: the change runs only after the icon-feature gate.
    • Description: the focused, isolation and return-type tests pass and the CLI structure check is clean. Verified at this head.
    • Description: consumer docs ship with the feature. They ship, but the type doc misstates the rule (above).
  • Files:
    • .changeset/search-icon-feature-word.md: clear.
    • docs/specs/AST-084-icon-sets/spec.md: waits on the owner decision above.
    • packages/cli/api/icon/icon.doc.mjs: wording gap (above).
    • packages/cli/api/search/_adapter.mjs: clear.
    • packages/cli/api/search/_icons.mjs: clear.
    • packages/cli/api/search/search.icons.test.mjs: non-blocking note (above).
    • packages/cli/api/search/search.mjs: clear.
    • packages/cli/api/search/search.type.mjs: blocking finding (above).
    • packages/cli/foundation/discovery/icon-ranking.mjs: clear.

Automated review (maintainer link)

Comment thread packages/cli/api/search/search.type.mjs Resolved

@astracat-bot astracat-bot Bot 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.

Approval waits on an engineering owner deciding the new spec:AST-084 FR11 rule and FR6's pointer to it: an icon or icons right after with (only a, an or the between, no of or for after) names a feature, so search lists no icons block when its results hold a component or template. The current spec on main does not state this rule, so an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author, as an engineering owner, may do so. One fix is needed whatever the decision:

  • The data.icons type doc in packages/cli/api/search/search.type.mjs (lines 77-78) says an icon word right after with asks for none and leaves out the of/for exception that the code and changeset keep, so callers would expect no icons for card with an icon of a star; state the exception there and give packages/cli/api/icon/icon.doc.mjs the same wording.
  • Non-blocking: the search-level test for feature phrases also passes without this change, because no fixture icon answers card or avatar; a fixture icon tagged card would make it fail first.
Claims and files checked

Review mode: full; reason: rebase

  • Claims:
    • Changeset: card with an icon answers the card alone. Verified: the icons block is absent and results and matchCount are unchanged.
    • Changeset: an icon described after of or for, or named before the icon word, still lists icons. Verified for card with an icon of a star and button with plus icon.
    • Description: the rule reads the icon word after with with only articles between and no of or for after, and applies only when results hold a component or template. Verified in icon-ranking.mjs and _icons.mjs.
    • Description: set names and icon export names still ask. Verified.
    • Description: search passes its result domains to its adapter, which stays the only reader of icon sets. Verified in search.mjs and _adapter.mjs.
    • Description: FR11 gains one sentence and FR6 points to it. Verified.
    • Description: only data.icons changes, with no new option, type or field. Verified; results and matchCount match the base and the no-set answer for every query tried.
    • Description: with no set installed, output is unchanged. Verified by code and by the no-set answers: the change runs only after the icon-feature gate.
    • Description: the focused, isolation and return-type tests pass and the CLI structure check is clean. Verified at this head.
    • Description: consumer docs ship with the feature. They ship, but the type doc misstates the rule (above).
  • Files:
    • .changeset/search-icon-feature-word.md: clear.
    • docs/specs/AST-084-icon-sets/spec.md: waits on the owner decision above.
    • packages/cli/api/icon/icon.doc.mjs: wording gap (above).
    • packages/cli/api/search/_adapter.mjs: clear.
    • packages/cli/api/search/_icons.mjs: clear.
    • packages/cli/api/search/search.icons.test.mjs: non-blocking note (above).
    • packages/cli/api/search/search.mjs: clear.
    • packages/cli/api/search/search.type.mjs: blocking finding (above).
    • packages/cli/foundation/discovery/icon-ranking.mjs: clear.

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/search-icon-section branch from e6e41b5 to 1dbbf0b Compare November 17, 2026 17:56
@josephfarina
josephfarina force-pushed the josephfarina/search-icon-feature branch from aaf8b0b to fb01941 Compare November 17, 2026 18:35

@astracat-bot astracat-bot Bot 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.

Approval waits on an engineering owner deciding the new spec:AST-084 FR11 rule and FR6's pointer to it: an icon or icons right after with (only a, an or the between, no of or for after) names a feature, so search lists no icons block when its results hold a component or template. The current spec on main does not state this rule, so an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author, as an engineering owner, may do so. One fix is needed whatever the decision:

  • The data.icons type doc in packages/cli/api/search/search.type.mjs (lines 77-78) says an icon word right after with asks for none and leaves out the of/for exception that the code and changeset keep, so callers would expect no icons for card with an icon of a star; state the exception there and give packages/cli/api/icon/icon.doc.mjs the same wording.
  • Non-blocking: the search-level test for feature phrases also passes without this change, because no fixture icon answers card or avatar; a fixture icon tagged card would make it fail first.
Claims and files checked

Review mode: carry-forward; reason: none

  • Claims:
    • Changeset: card with an icon answers the card alone. Verified: the icons block is absent and results and matchCount are unchanged.
    • Changeset: an icon described after of or for, or named before the icon word, still lists icons. Verified for card with an icon of a star and button with plus icon.
    • Description: the rule reads the icon word after with with only articles between and no of or for after, and applies only when results hold a component or template. Verified in icon-ranking.mjs and _icons.mjs.
    • Description: set names and icon export names still ask. Verified.
    • Description: search passes its result domains to its adapter, which stays the only reader of icon sets. Verified in search.mjs and _adapter.mjs.
    • Description: FR11 gains one sentence and FR6 points to it. Verified.
    • Description: only data.icons changes, with no new option, type or field. Verified; results and matchCount match the base and the no-set answer for every query tried.
    • Description: with no set installed, output is unchanged. Verified by code: the change runs only after the icon-feature gate.
    • Description: the focused, isolation and return-type tests pass and the CLI structure check is clean. Verified for this patch.
    • Description: consumer docs ship with the feature. They ship, but the type doc misstates the rule (above).
  • Files:
    • .changeset/search-icon-feature-word.md: clear.
    • docs/specs/AST-084-icon-sets/spec.md: waits on the owner decision above.
    • packages/cli/api/icon/icon.doc.mjs: wording gap (above).
    • packages/cli/api/search/_adapter.mjs: clear.
    • packages/cli/api/search/_icons.mjs: clear.
    • packages/cli/api/search/search.icons.test.mjs: non-blocking note (above).
    • packages/cli/api/search/search.mjs: clear.
    • packages/cli/api/search/search.type.mjs: blocking finding (above).
    • packages/cli/foundation/discovery/icon-ranking.mjs: clear.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot 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.

Approval waits on an engineering owner deciding the new spec:AST-084 FR11 rule and FR6's pointer to it: an icon or icons right after with (only a, an or the between, no of or for after) names a feature, so search lists no icons block when its results hold a component or template. The current spec on main does not state this rule, so an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author, as an engineering owner, may do so. Two fixes are needed whatever the decision:

  • The data.icons type doc in packages/cli/api/search/search.type.mjs (lines 77-78) leaves out the of/for exception, so callers expect no icons for card with an icon of a star, which still lists them; state the rule as FR11 does there and in packages/cli/api/icon/icon.doc.mjs.
  • Miss: the changeset (and the title) say search no longer lists icons whenever the icon is only a feature of what it answers, but card that has an icon and card with a small icon still list icons, so reword it to name the with rule (suggested wording inline).
  • Non-blocking: the search-level test for feature phrases also passes without this change, because no fixture icon answers card or avatar; a fixture icon tagged card would make it fail first.
Claims and files checked

Review mode: full; reason: merge-touches-pr-files

  • Claims:
    • Changeset: card with an icon answers the card alone. Verified: no icons block, and results and matchCount equal the answer with no set installed.
    • Changeset: search no longer lists icons whenever the icon is only a feature of what it answers. False: card that has an icon and card with a small icon still list icons (above).
    • Changeset: an icon described after of or for, or named before the icon word, still lists icons. Verified for card with an icon of a star and button with plus icon.
    • Description: the rule reads an icon word right after with, with only articles between and no of or for after, and applies only when results hold a component or template. Verified in the ranking module and the icon section.
    • Description: an icon word not right after with, set names and icon export names still ask. Verified by the unit cases.
    • Description: search passes its result domains through its adapter, which stays the only reader of icon sets. Verified.
    • Description: FR11 gains one sentence and FR6 points to it. Verified.
    • Description: only data.icons changes, with no new option, type or field. Verified; results and matchCount match the no-set answer for every query tried.
    • Description: with no set installed, output is unchanged. Verified by code (the rule runs only after the icon-feature gate) and by the isolation tests.
    • Description: the feature-phrase tests, the isolation and return-type tests pass, and the CLI structure check is clean. Verified at this head.
  • Files:
    • .changeset/search-icon-feature-word.md: blocking finding (scope, above).
    • docs/specs/AST-084-icon-sets/spec.md: waits on the owner decision above.
    • packages/cli/api/icon/icon.doc.mjs: part of the type-doc finding (above).
    • packages/cli/api/search/_adapter.mjs: clear.
    • packages/cli/api/search/_icons.mjs: clear.
    • packages/cli/api/search/search.icons.test.mjs: non-blocking note (above).
    • packages/cli/api/search/search.mjs: clear.
    • packages/cli/api/search/search.type.mjs: blocking finding (above).
    • packages/cli/foundation/discovery/icon-ranking.mjs: clear.

Automated review (maintainer link)

Comment thread .changeset/search-icon-feature-word.md Resolved

@astracat-bot astracat-bot Bot 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.

Approval waits on an engineering owner deciding the new spec:AST-084 FR11 rule and FR6's pointer to it: an icon or icons right after with (only a, an or the between, no of or for after) names a feature, so search lists no icons block when its results hold a component or template. The current spec on main does not state this rule, so an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author, as an engineering owner, may do so. The type-doc wording and the feature-phrase test from the last review are fixed; one fix is still needed whatever the decision:

  • Miss: the changeset (and the title) say search no longer lists icons whenever the icon is only a feature of what it answers, but card that has an icon and card with a small icon still list icons, so reword it to name the with rule (suggested wording inline).
Claims and files checked

Review mode: incremental; reason: none

  • Changed rules (0) since the last review.
  • Claims:
    • Changeset: search no longer lists icons whenever the icon is only a feature of what it answers. False: card that has an icon and card with a small icon still list icons (above).
    • Changeset: card with an icon answers the card alone. Verified: no icons block, and results and matchCount equal the answer with no set installed (feature-phrase test and probe).
    • Changeset: an icon described after of or for, or named before the icon word, still lists icons. Verified for card with an icon of a star and button with plus icon (feature-phrase test).
    • Description: the rule reads an icon word right after with, with only articles between and no of or for after, and applies only when results hold a component or template. Verified in the ranking module and the icon section.
    • Description: an icon word not right after with, set names and icon export names still ask. Verified by the unit cases.
    • Description: search passes its result domains through its adapter, which stays the only reader of icon sets. Verified.
    • Description: FR11 gains one sentence and FR6 points to it. Verified.
    • Description: only data.icons changes, with no new option, type or field. Verified; results and matchCount match the no-set answer for every query probed.
    • Description: with no set installed, output is unchanged. Verified by code (the rule runs only after the icon-feature gate) and by the isolation tests.
    • Description: the feature-phrase tests, the isolation and return-type tests pass, and the CLI structure check is clean. Verified at this head; both feature-phrase tests also fail without the change.
  • Files:
    • .changeset/search-icon-feature-word.md: blocking finding (scope, above).
    • docs/specs/AST-084-icon-sets/spec.md: waits on the owner decision above.
    • packages/cli/api/icon/icon.doc.mjs: clear (now states the rule as FR11 does).
    • packages/cli/api/search/_adapter.mjs: clear.
    • packages/cli/api/search/_icons.mjs: clear.
    • packages/cli/api/search/search.icons.test.mjs: clear (the search-level case now fails without the change).
    • packages/cli/api/search/search.mjs: clear.
    • packages/cli/api/search/search.type.mjs: clear (the of/for exception and articles are now stated).
    • packages/cli/foundation/discovery/icon-ranking.mjs: clear.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot 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.

Approval waits on an engineering owner deciding the new spec:AST-084 FR11 rule and FR6's pointer to it: an icon or icons right after with (only a, an or the between, no of or for after) names a feature, so search lists no icons block when its results hold a component or template. The current spec on main does not state this rule, so an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author, as an engineering owner, may do so. One fix is still needed whatever the decision:

  • Miss: the changeset (and the title) say search no longer lists icons whenever the icon is only a feature of what it answers, but card that has an icon and card with a small icon still list icons, so reword it to name the with rule (suggested wording inline).
Claims and files checked

Review mode: carry-forward; reason: none

  • Claims:
    • Changeset: search no longer lists icons whenever the icon is only a feature of what it answers. False: card that has an icon and card with a small icon still list icons (above).
    • Changeset: card with an icon answers the card alone. Verified: no icons block, and results and matchCount equal the answer with no set installed (feature-phrase test).
    • Changeset: an icon described after of or for, or named before the icon word, still lists icons. Verified for card with an icon of a star and button with plus icon (feature-phrase test).
    • Description: the rule reads an icon word right after with, with only articles between and no of or for after, and applies only when results hold a component or template. Verified in the ranking module and the icon section.
    • Description: an icon word not right after with, set names and icon export names still ask. Verified by the unit cases.
    • Description: search passes its result domains through its adapter, which stays the only reader of icon sets. Verified.
    • Description: FR11 gains one sentence and FR6 points to it. Verified.
    • Description: the change sits on an experimental surface. Verified: the rule runs only after the icon-feature gate.
    • Description: only data.icons changes, with no new option, type or field. Verified; results and matchCount match the no-set answer for every query probed.
    • Description: with no set installed, output is unchanged. Verified by code (the rule runs only after the icon-feature gate) and by the isolation tests.
    • Description: the feature-phrase tests and the isolation and return-type tests pass, and the CLI structure check is clean. Verified at this head; both feature-phrase tests fail without the change.
  • Files:
    • .changeset/search-icon-feature-word.md: blocking finding (scope, above).
    • docs/specs/AST-084-icon-sets/spec.md: waits on the owner decision above.
    • packages/cli/api/icon/icon.doc.mjs: clear (states the rule as FR11 does).
    • packages/cli/api/search/_adapter.mjs: clear.
    • packages/cli/api/search/_icons.mjs: clear.
    • packages/cli/api/search/search.icons.test.mjs: clear (the search-level case fails without the change).
    • packages/cli/api/search/search.mjs: clear.
    • packages/cli/api/search/search.type.mjs: clear (the of/for exception and articles are stated).
    • packages/cli/foundation/discovery/icon-ranking.mjs: clear.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot 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.

Approval waits on an engineering owner deciding the new spec:AST-084 FR11 rule and FR6's pointer to it: an icon or icons right after with (only a, an or the between, no of or for after) names a feature, so search lists no icons block when its results hold a component or template. The current spec on main does not state this rule, so an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author, as an engineering owner, may do so. One fix is still needed whatever the decision:

  • Miss: the changeset (and the title) say search no longer lists icons whenever the icon is only a feature of what it answers, but card that has an icon and card with a small icon still list icons, so reword it to name the with rule (suggested wording in the earlier inline comment on line 5).
Claims and files checked

Review mode: full; reason: rebase

  • Claims:
    • Changeset: search no longer lists icons whenever the icon is only a feature of what it answers. False: card that has an icon and card with a small icon still list icons (above).
    • Changeset: card with an icon answers the card alone. Verified: no icons block, and results and matchCount equal the answer with no set installed (feature-phrase test).
    • Changeset: an icon described after of or for, or named before the icon word, still lists icons. Verified for card with an icon of a star and button with plus icon (feature-phrase test).
    • Description: the rule reads an icon word right after with, with only articles between and no of or for after, and applies only when results hold a component or template. Verified in the ranking module and the icon section.
    • Description: an icon word not right after with, set names and icon export names still ask. Verified by the unit cases.
    • Description: search passes its result domains through its adapter, which stays the only reader of icon sets. Verified.
    • Description: FR11 gains one sentence and FR6 points to it, on an experimental surface. Verified: the rule runs only after the icon-feature gate.
    • Description: only data.icons changes, with no new option, type or field. Verified; results and matchCount match the no-set answer for every query probed.
    • Description: with no set installed, output is unchanged. Verified for this change by code (the rule runs only after the icon-feature gate) and by the isolation tests.
    • Description: the feature-phrase tests and the isolation and return-type tests pass, and the CLI structure check is clean. Verified at this head; both feature-phrase tests fail without the change.
  • Files:
    • .changeset/search-icon-feature-word.md: blocking finding (scope, above).
    • docs/specs/AST-084-icon-sets/spec.md: waits on the owner decision above.
    • packages/cli/api/icon/icon.doc.mjs: clear (states the rule as FR11 does).
    • packages/cli/api/search/_adapter.mjs: clear.
    • packages/cli/api/search/_icons.mjs: clear.
    • packages/cli/api/search/search.icons.test.mjs: clear (both new cases fail without the change).
    • packages/cli/api/search/search.mjs: clear.
    • packages/cli/api/search/search.type.mjs: clear (the of/for exception and articles are stated).
    • packages/cli/foundation/discovery/icon-ranking.mjs: clear (the rebase onto the base's renamed export-name pattern keeps the same match).

Automated review (maintainer link)

@astracat-bot astracat-bot Bot 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.

Approval waits on an engineering owner deciding the new spec:AST-084 FR11 rule and FR6's pointer to it: an icon or icons right after with (only a, an or the between, no of or for after) names a feature, so search lists no icons block when its results hold a component or template. The current spec on main does not state this rule, so an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author, as an engineering owner, may do so. One fix is still needed whatever the decision:

  • Miss: the changeset (and the title) say search no longer lists icons whenever the icon is only a feature of what it answers, but card that has an icon and card with a small icon still list icons, so reword it to name the with rule (suggested wording in the earlier inline comment on line 5).
Claims and files checked

Review mode: full; reason: rebase

  • Claims:
    • Changeset: search no longer lists icons whenever the icon is only a feature of what it answers. False: card that has an icon and card with a small icon still list icons (above).
    • Changeset: card with an icon answers the card alone. Verified: no icons block, and results and matchCount equal the answer with no set installed (feature-phrase test).
    • Changeset: an icon described after of or for, or named before the icon word, still lists icons. Verified for card with an icon of a star and button with plus icon (feature-phrase test).
    • Description: the rule reads an icon word right after with, with only articles between and no of or for after, and applies only when results hold a component or template. Verified in the ranking module and the icon section.
    • Description: an icon word not right after with, set names and icon export names still ask. Verified by the unit cases.
    • Description: search passes its result domains through its adapter, which stays the only reader of icon sets. Verified.
    • Description: FR11 gains one sentence and FR6 points to it, on an experimental surface. Verified: the rule runs only after the icon-feature gate.
    • Description: only data.icons changes, with no new option, type or field. Verified; results and matchCount match the no-set answer for every query probed.
    • Description: with no set installed, output is unchanged. Verified for this change by code (the rule runs only after the icon-feature gate) and by the isolation tests.
    • Description: the feature-phrase tests and the isolation and return-type tests pass, and the CLI structure check is clean. Verified at this head; both feature-phrase tests fail without the change.
  • Files:
    • .changeset/search-icon-feature-word.md: blocking finding (scope, above).
    • docs/specs/AST-084-icon-sets/spec.md: waits on the owner decision above.
    • packages/cli/api/icon/icon.doc.mjs: clear (states the rule as FR11 does).
    • packages/cli/api/search/_adapter.mjs: clear.
    • packages/cli/api/search/_icons.mjs: clear.
    • packages/cli/api/search/search.icons.test.mjs: clear (both new cases fail without the change).
    • packages/cli/api/search/search.mjs: clear.
    • packages/cli/api/search/search.type.mjs: clear (the of/for exception and articles are stated).
    • packages/cli/assets/docs/tree/icon-sets.doc.mjs: clear (the guide's search row states the same rule).
    • packages/cli/foundation/discovery/icon-ranking.mjs: clear.

Automated review (maintainer link)

…t answers

An icon or icons right after with (only a, an or the between) that no of or
for follows names a feature: when search's results hold a component or a
template, it asks for no icon, so card with an icon answers the card alone.
…e and of/for parts

search's type doc and the icon finder's doc say the same thing: an icon or
icons right after with, with only a, an or the between, that no of or for
follows names a feature. The fixture set gains icons tagged card and avatar,
so the feature-phrase test fails without the rule.
card with an icon lists no icons, while card with an icon of a star does.
@josephfarina
josephfarina force-pushed the josephfarina/search-icon-feature branch from 13ce896 to b41ba87 Compare November 18, 2026 09:18
@josephfarina
josephfarina changed the base branch from josephfarina/search-icon-section to main November 18, 2026 09:18
@josephfarina
josephfarina marked this pull request as ready for review November 18, 2026 09:18
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 18, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

Owner decision (engineering owner, covering this pull request): in search, an icon or icons that comes right after with, with only a, an or the between, and is not followed by of or for, names a feature: when search's results hold a component or a template, that word asks for no icon, so card with an icon asks for a card and card with an icon of a star asks for an icon. spec:AST-084 FR11 states this, and FR6 points to it.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec b41ba87

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 18, 2026

@astracat-bot astracat-bot Bot 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.

Changes requested for one wording fix; the code, the spec:AST-084 FR11 rule (approved by an engineering owner at this head) and the docs are ready.

  • Miss: the changeset (line 5) and the title say search no longer lists icons whenever the icon is only a feature of what it answers, but only an icon or icons right after with is skipped, so card that has an icon and card with a small icon still list icons; reword both to name the with rule (suggested wording in the open inline comment on line 5).
Claims and files checked

Review mode: full; reason: rebase

  • Claims:
    • Changeset and title: search no longer lists icons whenever the icon is only a feature of what it answers. False: card that has an icon and card with a small icon still list icons (above).
    • Changeset: card with an icon answers the card alone. Verified: no icons block, and the answer equals the answer with no set installed (feature-phrase test).
    • Changeset: an icon described after of or for, or named before the icon word, still lists icons. Verified for card with an icon of a star and button with plus icon (feature-phrase test).
    • Changeset: an experimental patch release. Verified by the changeset check.
    • Description: the icon-set record gains one FR11 sentence and FR6 points to it. Verified: the record's two hunks carry that text.
    • Description: the rule reads an icon word right after with, with only articles between and no of or for after, and applies only when the results hold a component or template. Verified in the ranking module and the icon section.
    • Description: an icon word not right after with, set names and icon export names still ask. Verified by the unit cases.
    • Description: search passes its result domains through its adapter, which stays the only reader of icon sets. Verified.
    • Description: only data.icons changes, with no new option, type or field. Verified: results and matchCount match the no-set answer for every query probed.
    • Description: with no icon set installed, output is unchanged. Verified by code (the icon-feature gate runs first) and the isolation tests.
    • Description: the fixture has icons tagged card and avatar, so the new tests fail without the rule. Verified: both new cases fail on the base code.
    • Description: the type doc, the icon finder's doc and the icon-sets guide row state the rule. Verified: all three state it with the articles and the of/for exception.
    • Description: the focused tests, the isolation tests, the CLI structure check and the knowledge check pass. Verified at this head.
  • Files:
    • .changeset/search-icon-feature-word.md: blocking finding (scope, above).
    • docs/specs/AST-084-icon-sets/spec.md: clear (owner-approved at this head).
    • packages/cli/api/icon/icon.doc.mjs: clear (states the rule as FR11 does).
    • packages/cli/api/search/_adapter.mjs: clear.
    • packages/cli/api/search/_icons.mjs: clear.
    • packages/cli/api/search/search.icons.test.mjs: clear (both new cases fail without the change).
    • packages/cli/api/search/search.mjs: clear.
    • packages/cli/api/search/search.type.mjs: clear (the articles and the of/for exception are stated).
    • packages/cli/assets/docs/tree/icon-sets.doc.mjs: clear (the guide row states the same rule).
    • packages/cli/foundation/discovery/icon-ranking.mjs: clear.

Automated review (maintainer link)

Only an icon or icons right after with (only a, an or the between) is
skipped, so the changeset says that rather than every feature phrase.
@josephfarina josephfarina changed the title feat(cli): search lists no icons when the icon is a feature of what it answers feat(cli): search lists no icons for "with an icon" when the results answer a component Nov 18, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

Owner decision update (engineering owner, covering this pull request at its current head): the decision above stands unchanged at this head; only the release note's wording changed.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec d3389fb

@astracat-bot astracat-bot Bot 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.

Approved pending CI: CI has not finished on this head yet.

The astryx search feature-word rule is approved by an engineering owner in spec:AST-084 at this head, the release note and title now name the with rule only, and the new tests fail without the change and pass with it. Nothing else is needed from you.

Claims and files checked

Review mode: incremental; reason: none

  • Changed rules (0): none
  • Claims:
    • Release note: an experimental patch for the CLI. Verified: the note is marked experimental and the changeset check passes.
    • Release note and title: search lists no icons for an icon or icons right after with (only a, an or the between) when its results hold a component or template. Verified in the ranking module and the icon section, and by the new unit cases.
    • Release note: card with an icon answers the card alone. Verified: no icons block, and the whole answer equals the answer with no set installed (search-level test).
    • Release note: an icon described after of or for, or named before the word, still lists icons. Verified for card with an icon of a star, menu with icons for actions and button with plus icon (unit and search-level tests).
    • Description: the icon-set record's search-stability requirement gains one sentence with the rule, and the search requirement points to it. Verified: the record's two hunks carry that text.
    • Description: set names and icon export names still ask, wherever they sit. Verified by the unit cases and the ranking code.
    • Description: search passes its results' domains through its adapter to the ask test, and the adapter stays the only reader of icon sets. Verified.
    • Description: only data.icons changes; results, matchCount and every other query answer as before, with no new option, type or field. Verified by the code and the search-level comparison with the no-set answer.
    • Description: with no icon set installed, output is unchanged. Verified: with no set installed the icon section returns nothing whatever the ask test says, and the experimental-isolation tests pass.
    • Description: the fixture has icons tagged card and avatar, so the new tests fail without the rule. Verified: both new cases fail on the base code and pass here.
    • Description: the type doc, the icon finder's doc and the icon-sets guide row state the rule. Verified: all three state it with the articles and the of/for exception.
    • Description: the touched tests, the isolation tests, the CLI structure check and the knowledge check pass. Verified at this head; the doctor snapshot the description calls out also passes here.
  • Files:
    • .changeset/search-icon-feature-word.md: clear (now names the with rule).
    • docs/specs/AST-084-icon-sets/spec.md: clear (owner-approved at this head).
    • packages/cli/api/icon/icon.doc.mjs: clear.
    • packages/cli/api/search/_adapter.mjs: clear.
    • packages/cli/api/search/_icons.mjs: clear.
    • packages/cli/api/search/search.icons.test.mjs: clear (both new cases fail without the change).
    • packages/cli/api/search/search.mjs: clear.
    • packages/cli/api/search/search.type.mjs: clear.
    • packages/cli/assets/docs/tree/icon-sets.doc.mjs: clear.
    • packages/cli/foundation/discovery/icon-ranking.mjs: clear.

Automated review (maintainer link)

@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · d3389fb

Storybook · Sandbox · built from this PR's head

Package size: @astryxdesign/cli 5.43 MB packed (+848 B); no new dependencies.

Not run on this PR: add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.


Generated by PR Enrichment workflow | View full report

@josephfarina
josephfarina merged commit 0f3ed13 into main Nov 18, 2026
81 checks passed
@github-actions
github-actions Bot deleted the josephfarina/search-icon-feature branch November 19, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — d3389fbe Deployed Nov 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant