Skip to content

docs(cc-widgets): add AI documentation - AGENTS.md and ARCHITECTURE.md#597

Merged
Shreyas281299 merged 5 commits intowebex:nextfrom
Shreyas281299:ai-docs-cc-widgets
Feb 6, 2026
Merged

docs(cc-widgets): add AI documentation - AGENTS.md and ARCHITECTURE.md#597
Shreyas281299 merged 5 commits intowebex:nextfrom
Shreyas281299:ai-docs-cc-widgets

Conversation

@Shreyas281299
Copy link
Contributor

COMPLETES N/A - Documentation Enhancement

This pull request addresses

Adding AI-optimized documentation for the cc-widgets package to help AI assistants understand the Web Component wrappers using r2wc.

by making the following changes

  • Added packages/contact-center/cc-widgets/ai-docs/AGENTS.md - Usage documentation and custom element registration
  • Added packages/contact-center/cc-widgets/ai-docs/ARCHITECTURE.md - Technical r2wc implementation details

Change Type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Tooling change
  • Internal code refactor

The following scenarios were tested

  • The testing is done with the amplify link

The GAI Coding Policy And Copyright Annotation Best Practices

  • GAI was not used (or, no additional notation is required)
  • Code was generated entirely by GAI
  • GAI was used to create a draft that was subsequently customized or modified
  • Coder created a draft manually that was non-substantively modified by GAI (e.g., refactoring was performed by GAI on manually written code)
  • Tool used for AI assistance (GitHub Copilot / Other - specify)
    • Github Copilot
    • Other - Please Specify: Cursor AI
  • This PR is related to
    • Feature
    • Defect fix
    • Tech Debt
    • Automation

Checklist before merging

  • I have not skipped any automated checks
  • All existing and new tests passed
  • I have updated the testing document
  • I have tested the functionality with amplify link

Make sure to have followed the contributing guidelines before submitting.

@aws-amplify-us-east-2
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-597.d1b38q61t1z947.amplifyapp.com


CC Widgets serves as the main entry point for contact center widgets. It:

- **Eliminates dependency complexity** - Install one package (`@webex/cc-widgets`) instead of multiple widget packages (`@webex/cc-station-login`, `@webex/cc-user-state`, `@webex/cc-task`, etc.)
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick: First and third point here have dependency mentioned there so maybe different wording might be helpful

@Shreyas281299 Shreyas281299 added the validated Indicates that the PR is ready for actions label Feb 6, 2026

| Package | Purpose |
| ---------------------------------- | -------------------------------------------- |
| `@momentum-ui/react-collaboration` | Momentum UI components (required by widgets) |
Copy link
Contributor

Choose a reason for hiding this comment

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

We might need to add old momentum also for digital widgets

@Shreyas281299 Shreyas281299 merged commit 64c44ab into webex:next Feb 6, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

validated Indicates that the PR is ready for actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants