Skip to content

Conversation

@marcelovicentegc
Copy link
Member

Summary

Script to generate a JSON schema representation of Shoreline components to experiment with Gen UI concepts for VTEX AI Agents.

@marcelovicentegc marcelovicentegc requested a review from a team as a code owner September 8, 2025 13:44
@marcelovicentegc marcelovicentegc self-assigned this Sep 8, 2025
@vercel
Copy link
Contributor

vercel bot commented Sep 8, 2025

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

Project Deployment Preview Updated (UTC)
shoreline-docs Error Error Sep 8, 2025 1:45pm

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

This PR introduces a script to generate a comprehensive JSON schema representation of Shoreline components to support experimentation with Gen UI concepts for VTEX AI Agents.

  • Adds a component documentation generation script using react-docgen
  • Creates JSON output with component metadata including props, types, and descriptions
  • Updates documentation and package configuration to support the new script

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 8 comments.

File Description
shoreline-components.json Contains the generated JSON representation of all Shoreline components with their metadata
scripts/create-json-rep.mjs Main script that analyzes component files and generates structured JSON documentation
scripts/README.md Updated documentation explaining the new component generation script
package.json Added dependencies and npm script to run the component documentation generator
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

{
"VisuallyHidden": {
"displayName": "VisuallyHidden",
"description": "Renders an element that is visually only to screen readers",
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

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

The description should be 'Renders an element that is visually hidden and only available to screen readers' or similar. The phrase 'visually only to screen readers' is grammatically incorrect.

Suggested change
"description": "Renders an element that is visually only to screen readers",
"description": "Renders an element that is visually hidden and only available to screen readers",

Copilot uses AI. Check for mistakes.
"reverseOrder": {
"type": "boolean",
"required": false,
"description": "Wether should invert the order"
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

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

Spelling error: 'Wether' should be 'Whether'.

Copilot uses AI. Check for mistakes.
"visible": {
"type": "unknown",
"required": false,
"description": "Wether is visible"
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

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

Spelling error: 'Wether' should be 'Whether'.

Copilot uses AI. Check for mistakes.
"error": {
"type": "unknown",
"required": false,
"description": "Wether has error"
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

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

Spelling error: 'Wether' should be 'Whether'.

Suggested change
"description": "Wether has error"
"description": "Whether has error"

Copilot uses AI. Check for mistakes.
"error": {
"type": "boolean",
"required": false,
"description": "Wether is disabled @default false"
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

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

Spelling error: 'Wether' should be 'Whether'.

Suggested change
"description": "Wether is disabled @default false"
"description": "Whether is disabled @default false"

Copilot uses AI. Check for mistakes.
"sorted": {
"type": "unknown",
"required": false,
"description": "Indicates if column is currently sorted, and in witch order @default null"
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

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

Spelling error: 'witch' should be 'which'.

Suggested change
"description": "Indicates if column is currently sorted, and in witch order @default null"
"description": "Indicates if column is currently sorted, and in which order @default null"

Copilot uses AI. Check for mistakes.
"error": {
"type": "unknown",
"required": false,
"description": "Wether has error"
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

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

Spelling error: 'Wether' should be 'Whether'.

Copilot uses AI. Check for mistakes.
"error": {
"type": "unknown",
"required": false,
"description": "Wether has error"
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

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

Spelling error: 'Wether' should be 'Whether'.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants