Skip to content

Feat/vertex chat ai [AGVSOL-1350]#302

Merged
0xr3ngar merged 1 commit intomainfrom
feat/vertex-chat-ai
Mar 11, 2026
Merged

Feat/vertex chat ai [AGVSOL-1350]#302
0xr3ngar merged 1 commit intomainfrom
feat/vertex-chat-ai

Conversation

@pieman1313
Copy link
Contributor

@pieman1313 pieman1313 commented Mar 5, 2026

Copilot AI review requested due to automatic review settings March 5, 2026 06:24
@github-actions
Copy link

github-actions bot commented Mar 5, 2026

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

Project Deployment Review Updated (PT)
apollo-canvas 🟢 Ready Preview, Logs Mar 11, 2026, 02:43:26 AM
apollo-ui-react 🟢 Ready Preview, Logs Mar 11, 2026, 02:42:15 AM
apollo-vertex 🟢 Ready Preview, Logs Mar 11, 2026, 02:41:29 AM
apollo-wind 🟢 Ready Preview, Logs Mar 11, 2026, 02:41:32 AM

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

Dependency Review

The following issues were found:
  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ⚠️ 2 package(s) with unknown licenses.
See the Details below.

License Issues

apps/apollo-vertex/package.json

PackageVersionLicenseIssue Type
react-markdown^10.1.0NullUnknown License
remark-gfm^4.0.1NullUnknown License
Allowed Licenses: AFL-1.1, AFL-1.2, AFL-2.0, AFL-2.1, AMPAS, APAFML, Adobe-2006, Afmparse, ADSL, AMDPLPA, ANTLR-PD, Apache-1.0, Apache-1.1, Apache-2.0, AML, Artistic-1.0, Artistic-1.0-Perl, Artistic-1.0-cl8, Artistic-2.0, AAL, Bahyph, Barr, Beerware, BSL-1.0, Borceux, BSD-1-Clause, BSD-2-Clause, BSD-2-Clause-FreeBSD, BSD-2-Clause-NetBSD, BSD-3-Clause, BSD-3-Clause-Clear, BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause-No-Nuclear-Warranty, BSD-4-Clause, BSD-Source-Code, BSD-3-Clause-Attribution, 0BSD, BSD-2-Clause-Patent, BSD-4-Clause-UC, bzip2-1.0.5, bzip2-1.0.6, CECILL-B, ClArtistic, MIT-CMU, CNRI-Jython, CNRI-Python, CNRI-Python-GPL-Compatible, Condor-1.1, CC0-1.0, Crossword, CrystalStacker, Cube, curl, diffmark, WTFPL, DOC, DSDP, ECL-1.0, ECL-2.0, eGenix, EFL-1.0, EFL-2.0, MIT-advertising, MIT-enna, Entessa, Fair, MIT-feh, FTL, Giftware, HPND, IBM-pibs, ICU, ImageMagick, IJG, Info-ZIP, Intel, ISC, JasPer-2.0, LPPL-1.3c, BSD-3-Clause-LBNL, Leptonica, Libpng, libtiff, Linux-OpenIB, LPL-1.02, LPL-1.0, MTLL, MS-PL, MirOS, MITNFA, MIT, MIT-0, mpich2, Multics, Mup, NASA-1.3, Naumen, NBPL-1.0, Net-SNMP, NetCDF, Newsletr, NLPL, NRL, NTP, OGTSL, OLDAP-2.2.2, OLDAP-1.1, OLDAP-1.2, OLDAP-1.3, OLDAP-1.4, OLDAP-2.0, OLDAP-2.0.1, OLDAP-2.1, OLDAP-2.2, OLDAP-2.2.1, OLDAP-2.3, OLDAP-2.4, OLDAP-2.5, OLDAP-2.6, OLDAP-2.7, OLDAP-2.8, OML, OpenSSL, PHP-3.0, PHP-3.01, Plexus, PostgreSQL, psutils, Python-2.0, Qhull, Rdisc, RSA-MD, Ruby, Saxpath, SWL, SGI-B-2.0, Spencer-86, Spencer-94, Spencer-99, SMLNJ, TCL, TCP-wrappers, TU-Berlin-1.0, TU-Berlin-2.0, Unlicense, Unicode-DFS-2015, Unicode-DFS-2016, UPL-1.0, NCSA, VSL-1.0, W3C-20150513, W3C-19980720, W3C, Wsuipa, Xnet, X11, Xerox, XFree86-1.1, xinetd, xpp, Zed, Zend-2.0, Zlib, zlib-acknowledgement, ZPL-1.1, ZPL-2.0, ZPL-2.1, BlueOak-1.0.0, BSD-2-Clause-Views, JSON

OpenSSF Scorecard

PackageVersionScoreDetails
npm/react-markdown ^10.1.0 UnknownUnknown
npm/remark-gfm ^4.0.1 UnknownUnknown

Scanned Files

  • apps/apollo-vertex/package.json

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a reusable AI Chat component + hook to the Apollo Vertex registry, along with a demo docs page/template, supporting markdown rendering, tool-call grouping, navigation/choice tool results, persistence, and basic error display.

Changes:

  • Introduces AiChat UI components plus useAiChat hook and supporting types/utils/storage/api helpers.
  • Adds a new Vertex docs page (page.mdx) and demo template wiring the component with mock responses.
  • Updates app dependencies/translations/registry configuration to expose and document the new component.

Reviewed changes

Copilot reviewed 20 out of 21 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
pnpm-lock.yaml Locks new dependencies (react-markdown, remark-gfm).
apps/apollo-vertex/package.json Adds markdown + GFM dependencies used by the chat renderer.
apps/apollo-vertex/tsconfig.json Adds path aliases for the new AI chat lib modules.
apps/apollo-vertex/templates/AiChatTemplate.tsx Provides an interactive demo with mock tool/navigation/choice behaviors.
apps/apollo-vertex/registry/ai-chat/use-ai-chat.ts Implements the core hook: persistence, tool loop, fetch + abort/stop.
apps/apollo-vertex/registry/ai-chat/ai-chat.tsx Main chat container: message list, suggestions, navigation, input wiring.
apps/apollo-vertex/registry/ai-chat/ai-chat-message.tsx Renders user/assistant messages with markdown support.
apps/apollo-vertex/registry/ai-chat/ai-chat-input.tsx Input area with attachments, drag/drop, stop/clear controls.
apps/apollo-vertex/registry/ai-chat/ai-chat-utils.ts Utilities for tool grouping and extracting navigation/choices from tool messages.
apps/apollo-vertex/registry/ai-chat/ai-chat-api.ts Builds OpenAI-compatible request messages + tool execution helper.
apps/apollo-vertex/registry/ai-chat/ai-chat-storage.ts Session/local/none storage helpers for chat history.
apps/apollo-vertex/registry/ai-chat/ai-chat-tool-group*.tsx Collapsible “tools used” UI grouping for tool-call-only assistant messages.
apps/apollo-vertex/registry/ai-chat/ai-chat-loading.tsx Loading indicator bubble while awaiting responses.
apps/apollo-vertex/registry/ai-chat/ai-chat-types.ts Public types for messages, tools, config, and hook return shape.
apps/apollo-vertex/registry/ai-chat/metadata.json Registry metadata describing the component and its files/deps.
apps/apollo-vertex/registry/ai-chat/README.md Component documentation + usage examples.
apps/apollo-vertex/registry.json Registers the new ai-chat entry and its registry files.
apps/apollo-vertex/locales/en.json Adds i18n strings used by the new UI.
apps/apollo-vertex/app/vertex-components/ai-chat/page.mdx Docs page that embeds the demo template and mirrors README guidance.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Copy link
Contributor

@alincadariu alincadariu left a comment

Choose a reason for hiding this comment

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

  • we should wrap it in the locale provider for the example
Image
  • shouldn't we add the useAiChat hook inside the component? exposing what we need as a prop? 🤔

Copilot AI review requested due to automatic review settings March 9, 2026 10:12
@pieman1313 pieman1313 force-pushed the feat/vertex-chat-ai branch from 9c2538c to 3b7d2c9 Compare March 9, 2026 10:12
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 22 out of 23 changed files in this pull request and generated 5 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@pieman1313 pieman1313 force-pushed the feat/vertex-chat-ai branch from 3b7d2c9 to 1069bed Compare March 9, 2026 10:27
Copilot AI review requested due to automatic review settings March 9, 2026 11:56
@pieman1313 pieman1313 force-pushed the feat/vertex-chat-ai branch from 1069bed to 70c63e6 Compare March 9, 2026 11:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 22 out of 23 changed files in this pull request and generated 5 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 22 out of 23 changed files in this pull request and generated 3 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@pieman1313 pieman1313 force-pushed the feat/vertex-chat-ai branch from 579cb23 to 4cfda30 Compare March 10, 2026 07:19
@pieman1313
Copy link
Contributor Author

  • shouldn't we add the useAiChat hook inside the component? exposing what we need as a prop?

if we did that, people couldn't add their custom logic like in this example integration pr and the api we would need to introduce at the component level to support this turns into a mess fast

Copilot AI review requested due to automatic review settings March 10, 2026 15:03
@pieman1313 pieman1313 force-pushed the feat/vertex-chat-ai branch from 9ac8b8a to 25ff225 Compare March 10, 2026 15:03
@pieman1313 pieman1313 requested a review from alincadariu March 10, 2026 15:03
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 22 out of 23 changed files in this pull request and generated 2 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@pieman1313 pieman1313 force-pushed the feat/vertex-chat-ai branch from 25ff225 to 2832ada Compare March 11, 2026 07:13
Copilot AI review requested due to automatic review settings March 11, 2026 09:03
@pieman1313 pieman1313 force-pushed the feat/vertex-chat-ai branch from 2832ada to aeec991 Compare March 11, 2026 09:03
@pieman1313 pieman1313 requested a review from alincadariu March 11, 2026 09:04
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 22 out of 23 changed files in this pull request and generated 2 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@pieman1313 pieman1313 force-pushed the feat/vertex-chat-ai branch from aeec991 to b78c69e Compare March 11, 2026 09:20
@pieman1313 pieman1313 marked this pull request as ready for review March 11, 2026 09:27
Copilot AI review requested due to automatic review settings March 11, 2026 09:27
@pieman1313 pieman1313 changed the title 🚧 Feat/vertex chat ai Feat/vertex chat ai Mar 11, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 22 out of 23 changed files in this pull request and generated 4 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@pieman1313 pieman1313 force-pushed the feat/vertex-chat-ai branch from b78c69e to 2a8eb88 Compare March 11, 2026 09:39
@0xr3ngar 0xr3ngar merged commit aff4d8f into main Mar 11, 2026
36 of 37 checks passed
@0xr3ngar 0xr3ngar deleted the feat/vertex-chat-ai branch March 11, 2026 13:08
@pieman1313 pieman1313 changed the title Feat/vertex chat ai Feat/vertex chat ai [AGVSOL-1350] Mar 11, 2026
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.

7 participants