Skip to content

feat(apollo-vertex): AI Toolkit v1.1 — visual expression guidance and disclosure patterns#898

Draft
petervachon wants to merge 4 commits into
mainfrom
feat/ai-toolkit-v1.1
Draft

feat(apollo-vertex): AI Toolkit v1.1 — visual expression guidance and disclosure patterns#898
petervachon wants to merge 4 commits into
mainfrom
feat/ai-toolkit-v1.1

Conversation

@petervachon

Copy link
Copy Markdown
Collaborator

Summary

  • AiCaveat component — new registry component with standalone (info icon + text) and withMark (indent-only, no icon) variants; full JSDoc covering when to show, placement rules, spacing contract, tier rule, and copy policy
  • Disclosure wired across all AI surfaces — primary cards, selectable cards, plan selector, product grid, recommended actions; host cards use gap-0 so the component-owned mt-4 is the sole content-to-caveat gap
  • Legal compliance index — new page at /guidelines/ai-toolkit/legal mapping each in-product disclosure requirement to how and where the toolkit meets it, with status badges (In place / Planned / Handled elsewhere), linked coverage table, verbatim disclosure strings, and source/legal-basis attribution; public-safe (no internal document links or internal-facing framing)
  • AI Toolkit nav restructure_meta.ts creates a parent with Visual Expression and Legal as children
  • Visual Expression titlemetadata export for custom tab title; v1.1 AI badge in the H1 using the primary solid gradient treatment
  • Content pass — canonical badge/button labels ("Best match" solid, sensible-defaults framing); real example copy for Card (Primary) gradient card and selectable standard card; input label updated to "Cost center"
  • Cross-link — public-safe footer link from Visual Expression to the Legal page; "For Legal / compliance index" internal framing removed

Open questions for Legal (not on the public page)

  1. Plain-language copy track. All rendered disclosure strings use the approved wording verbatim. A plainer set (clearer, less stiff) is proposed as a separate track that does not block this release.
  2. Drop "AI generated" from the review caveat. The guidance separates the label requirement (met by the AI mark) from the review-flag requirement (met by "please review"). Since the mark already establishes AI presence on our surfaces, can the caveat drop "AI generated" and read simply "Please review"?

Test plan

  • /guidelines/ai-toolkit loads; Visual Expression H1 shows v1.1 AI badge; footer cross-link goes to Legal page
  • All AI surface demos show AiCaveat in the correct position with 16px gap; icon lockup card uses withMark variant (no icon, text aligned)
  • /guidelines/ai-toolkit/legal loads; status badges render (green / blue / neutral); "In place" rows link to correct sections/components; no "Open questions for Legal" section; no internal document name or link
  • Nav shows AI Toolkit parent with Visual Expression and Legal children
  • Tab titles: "AI Toolkit: Visual Expression | Apollo Vertex" and "AI Toolkit: Legal | Apollo Vertex"
  • No regressions on other guidelines or component pages

🤖 Generated with Claude Code

petervachon and others added 4 commits July 9, 2026 10:56
Add "Disclose in proportion" as second principle, add EU AI Act
transparency note to Mark and wordmark section, and correct badge and
button variant descriptors to frame variant choice as emphasis and
placement rather than meaning. Add caveat notes for both subsections.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds the AiCaveat registry component and wires it across all AI surfaces
in the AI Toolkit guidance page.

- Add AiCaveat component (registry/ai-caveat/ai-caveat.tsx) with two variants:
  standalone (info icon + text, mt-4 standard gap) and withMark (no icon, pl-5
  indent to align under the identity mark label, for group boundary placement)
- Standardize content-to-caveat gap to 16px everywhere by making AiCaveat own
  mt-4 and using gap-0 on host cards so flex gap does not compound
- Apply standalone caveat footer to: Card (Primary) three cards, Card (selectable)
  AI insights card, Plan selection (above Continue), Product recommendation (group
  level below three-card row)
- Apply withMark caveat to: Card (Group) and Recommended actions group boundaries
  (tight under the mark heading, no icon, ~4px to mark)
- Add source attribution line to activity timeline Agent reviewed step and to the
  inline marker in mark-usage
- Update mark-usage badge and button variant descriptors to emphasis/placement
  language

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…pass

Add Legal compliance index page with status badges, requirement coverage table, and
source attribution; restructure AI Toolkit nav with Visual Expression and Legal children
via _meta.ts; restructure Visual Expression title with metadata export and v1.1 AI badge;
add withMark variant to AiCaveat with full placement/spacing JSDoc; wire AiCaveat across
all AI surfaces (primary cards, selectable cards, plan selector, product grid, recommended
actions); replace placeholder copy with canonical labels and real example content.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…al page cleanup

Replace internal "For Legal: compliance index" footer with a plain public cross-link;
rename disclosure strings column "Source in the doc" to "Basis" and remove "in the doc"
phrasing from cell copy; fix source-line anchor targets to #in-components where the
timeline marker group actually lives.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 10, 2026 12:04
@github-actions

github-actions Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Review Updated (PT)
apollo-design 🟢 Ready Preview, Logs Jul 10, 2026, 05:09:43 AM
apollo-docs 🟢 Ready Preview, Logs Jul 10, 2026, 05:09:43 AM
apollo-landing 🟢 Ready Preview, Logs Jul 10, 2026, 05:09:43 AM
apollo-vertex 🟢 Ready Preview, Logs Jul 10, 2026, 05:09:43 AM

@github-actions

Copy link
Copy Markdown
Contributor

Dependency License Review

  • 1948 package(s) scanned
  • ✅ No license issues found
  • ⚠️ 2 package(s) excluded (see details below)
License distribution
License Packages
MIT 1718
ISC 89
Apache-2.0 55
BSD-3-Clause 27
BSD-2-Clause 23
BlueOak-1.0.0 8
MPL-2.0 4
MIT-0 3
CC0-1.0 3
MIT OR Apache-2.0 2
(MIT OR Apache-2.0) 2
Unlicense 2
LGPL-3.0-or-later 1
Python-2.0 1
CC-BY-4.0 1
(MPL-2.0 OR Apache-2.0) 1
Unknown 1
Artistic-2.0 1
(WTFPL OR MIT) 1
(BSD-2-Clause OR MIT OR Apache-2.0) 1
CC-BY-3.0 1
0BSD 1
(MIT OR CC0-1.0) 1
MIT AND ISC 1
Excluded packages
Package Version License Reason
@img/sharp-libvips-linux-x64 1.2.4 LGPL-3.0-or-later LGPL pre-built binary, not linked
khroma 2.1.0 Unknown MIT per GitHub repo, missing license field in package.json

@github-actions

Copy link
Copy Markdown
Contributor

📊 Coverage + size by package

Per-package bundle size on this PR (no JS/TS source changes detected under packages/* or web-packages/*).

Package Coverage New-line coverage Packed (gzip) Unpacked vs main
@uipath/apollo-core 9.0% 43.82 MB 57.31 MB ±0
@uipath/apollo-react 34.5% 7.27 MB 27.60 MB ±0
@uipath/apollo-wind 40.3% 395.0 KB 2.57 MB +6 B
@uipath/ap-chat 85.8% 43.41 MB 55.85 MB ±0

"Coverage" is each package's own coverage.include scope (e.g. apollo-core instruments only scripts/). "Packed"/"Unpacked" come from npm pack --dry-run and only cover built packages — "—" means not measured this run (package not affected / not built). "vs main" is the packed (gzipped) delta against the last successful main build (the package-sizes artifact from the Release workflow); "—" there means no main baseline was available this run. The baseline is main's latest build, not this PR's exact merge-base, so it includes any drift since the branch diverged. Packages with no vitest config are omitted.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds AI Toolkit v1.1 guidance to Apollo Vertex by introducing a reusable disclosure component and wiring it through the AI Toolkit guideline surfaces, plus a new “Legal” compliance index page and updated navigation/title/copy across the toolkit.

Changes:

  • Introduces AiCaveat registry component (standalone + withMark) and uses it across AI Toolkit surface demos.
  • Adds /guidelines/ai-toolkit/legal with requirement coverage + disclosure strings + legal basis attribution.
  • Updates AI Toolkit navigation (_meta.ts), Visual Expression page metadata/title/badge, and refreshes example copy (cards, badges, input label, source line).

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
apps/apollo-vertex/registry/ai-caveat/ai-caveat.tsx New disclosure component + usage guidance JSDoc for AI fallibility notice.
apps/apollo-vertex/app/guidelines/ai-toolkit/surfaces.tsx Adds AiCaveat to primary surface demos; adjusts card spacing and example copy.
apps/apollo-vertex/app/guidelines/ai-toolkit/selectable-cards.tsx Adds AiCaveat to selectable AI card; updates selectable-card example content/spacing.
apps/apollo-vertex/app/guidelines/ai-toolkit/recommended-actions.tsx Adds group-boundary AiCaveat under the AI mark for recommended actions.
apps/apollo-vertex/app/guidelines/ai-toolkit/product-grid.tsx Adds a single disclosure below the product grid instead of per-card.
apps/apollo-vertex/app/guidelines/ai-toolkit/plan-selector.tsx Adds disclosure below plan selector options.
apps/apollo-vertex/app/guidelines/ai-toolkit/page.mdx Visual Expression metadata/title update, v1.1 badge, and link to Legal page.
apps/apollo-vertex/app/guidelines/ai-toolkit/mark-usage.tsx Updates label/description guidance; adds “source line” example content.
apps/apollo-vertex/app/guidelines/ai-toolkit/legal/page.mdx New compliance index page mapping requirements to toolkit patterns and disclosure strings.
apps/apollo-vertex/app/guidelines/ai-toolkit/input-field.tsx Updates example label/placeholder to “Cost center”.
apps/apollo-vertex/app/guidelines/ai-toolkit/ai-input-field.tsx Updates AI input example label/placeholder to “Cost center”.
apps/apollo-vertex/app/guidelines/ai-toolkit/activity-timeline.tsx Adds optional source links to timeline events and renders a “From …” line.
apps/apollo-vertex/app/guidelines/ai-toolkit/_meta.ts Adds AI Toolkit nav parent/children labels (Visual Expression + Legal).

Comment on lines +11 to +15
* `withMark`: text only, no icon. Use ONLY when locked directly under the
* identity mark at a group boundary, with nothing between the mark and the
* caveat. The mark carries the AI signal; the icon would be redundant. Text
* is indented (`pl-5`) to align under the mark label, not the mark icon.
*/
Comment on lines +48 to +51
* Content-to-caveat gap is 16px, owned by the component (`mt-4`). Host cards
* must use `gap-0` so the card's flex gap does not compound with `mt-4`. For
* `withMark`, callers use `className="-mt-2 mb-3"` to achieve the ~4px gap
* under the mark's `mb-3`.
)}
{event.sources && event.sources.length > 0 && (
<p className="mt-2 flex items-center gap-1 text-xs text-muted-foreground/70">
<Link2 className="size-3 shrink-0" />
<Link2 className="size-3 shrink-0" />
From{" "}
{event.sources.map((s, i) => (
<span key={s.label}>
Compared price, warranty, and lead time
</p>
<p className="mt-2 flex items-center gap-1 text-xs text-muted-foreground/70">
<Link2 className="size-3 shrink-0" />
@@ -92,7 +93,8 @@ export function SelectableCards() {
</Badge>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app:apollo-vertex size:L 100-499 changed lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants