Skip to content

feat(cc-widgets): wire AI summary workflows - #750

Open
rsarika wants to merge 18 commits into
webex:nextfrom
rsarika:codex/ai-summary-widget-integration
Open

rsarika wants to merge 18 commits into
webex:nextfrom
rsarika:codex/ai-summary-widget-integration

Conversation

@rsarika

@rsarika rsarika commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Connects consult/transfer, receiving-agent and post-call summary views to the fixed SDK-backed store contract.

  • Uses task.aiSummaryCapabilities, passes raw SDK summary content, and reads feedback from entry.response.feedback.
  • Keeps edits, copy counts, feedback and submission in store actions. Wrap-up captures the response and submits it with the original Task after successful completion.
  • Exposes the optional content-free status callback through CallControl and its Web Component.

Simplification

  • Includes the cleaned feat(cc-components): add AI summary presentation #749 components, reusing the assistant's Adaptive Card renderer and Momentum loading, tooltip and button primitives.
  • Uses r2wc property accessors instead of two WeakMaps and a React subscription bridge; preserves property-only callbacks, pre-definition assignment, replacement and reconnect.
  • Forwards summary view props directly, derives callback types from component contracts, and removes focus wrappers, visibility snapshots, the heading counter and the reason-filter helper.
  • Uses the existing Momentum button for Complete Wrap-Up and removes its custom button CSS.
  • Retains revision checks, focus recovery, stable popover layout and pending-completion guards. Summary generation does not block wrap-up.
  • Removes duplicate AI Assistant Webpack entries, an internal component-type re-export, redundant test override models and hook wrappers, and the obsolete Jest no-tests escape hatch.
  • Reuses the shared task factory for default data and wrap-up mocks, and updates the module docs to describe the existing Web Component coverage.
  • Updates the affected module docs and tests, including browser text behavior in the receiver copy test.

Dependencies and review

This branch includes #748 and the updated #749; merge them in that order before this PR. All three target next, so the full diff includes the dependencies until they merge.

Review only the widget integration layer.

The latest widget-layer cleanup leaves the store and component package files unchanged, along with SDK dependencies and the lockfile.

Verification

  • yarn install --immutable
  • yarn build:dev, React sample TypeScript build and React sample Webpack build
  • Task and Web Component suites: 13 suites and 333 tests passed
  • Affected package lint: zero errors and warnings
  • Full pre-commit unit tests: 1,965 passed, 7 skipped
  • Repository lint: zero errors; 6 existing sample-app warnings

@rsarika
rsarika requested a review from a team as a code owner October 9, 2026 05:31
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-10T14:41:29.506136Z 783afb6 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 57dfea3335

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

'on-recording-toggle',
'conference-enabled',
]);
expectObservedAttributes(AI_ASSISTANT_TAG, [

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve wellness attributes in the AI Assistant expectation

In the cc-widgets Jest/jsdom suite, WebAIAssistant still declares seven wellness props in src/wc.ts (onWellnessBreakOffered through wellnessBreakOverlayTarget), and r2wc includes each declared prop in observedAttributes. This newly added exact-equality assertion omits all of them, so the cc-widgets unit suite has a guaranteed failure; include the existing dashed wellness attributes or avoid asserting the unrelated element here.

Useful? React with 👍 / 👎.

Use SDK summary types directly and send only changed structured sections. Guard superseded request results, pair task listener cleanup, and require the original task for post-call submission. Repair the lockfile for immutable installs.
@aws-amplify-us-east-2

Copy link
Copy Markdown

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

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

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Failed to sample tokens
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Failed to sample tokens
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Failed to sample tokens
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

This branch has not been deployed

No deployments
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.

1 participant