feat(AiCard): add new component aicard#1544
Conversation
|
If this is a mistica-community component, it should be in this folder https://github.com/Telefonica/mistica-web/tree/master/src/community and exported like these other community components: https://github.com/Telefonica/mistica-web/blob/master/src/index.tsx#L272-L286 |
moved the files to the correct folder 👍 |
There was a problem hiding this comment.
Pull request overview
Adds a new Community component, AiCard, intended to act as an AI entry-point card that displays a “typing start” animation and behaves as a clickable navigation element.
Changes:
- Introduces
src/community/AiCardcomponent with typing/deleting animation behavior and accessibility labeling. - Adds vanilla-extract styles, Storybook story, Playroom snippet, and a Jest/RTL test suite for the new component.
- Exposes the component through community exports and a temporary root-level
CommunityAiCardexport.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
src/index.tsx |
Exports CommunityAiCard from the root entrypoint (temporary Community export pattern). |
src/community/index.tsx |
Adds AiCard to the community barrel exports. |
src/community/ai-card.tsx |
Implements the AiCard component, animation hook, and touchable behavior. |
src/community/ai-card.css.ts |
Adds styling for layout, gradient border/background, and caret blink animation. |
src/community/__stories__/ai-card-story.tsx |
Adds Storybook story to showcase and tweak AiCard props. |
src/__tests__/ai-card-test.tsx |
Adds unit/integration tests for rendering, accessibility roles, interaction, and reduced motion behavior. |
playroom/snippets.tsx |
Adds a Playroom snippet for AiCard. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
|
🎉 This PR is included in version 16.62.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [16.62.0](Telefonica/mistica-web@v16.61.0...v16.62.0) (2026-05-08) ### Features * **AiCard:** add new component aicard ([Telefonica#1544](Telefonica#1544)) ([96959e9](Telefonica@96959e9)) * allow PR workflows from forks ([Telefonica#1547](Telefonica#1547)) ([2270adc](Telefonica@2270adc)), closes [/github.com/Telefonica/tf-github-cdo-repos/blob/main/novum/repositories/mistica-web/terraform.tfvars#L23-L32](https://github.com//github.com/Telefonica/tf-github-cdo-repos/blob/main/novum/repositories/mistica-web/terraform.tfvars/issues/L23-L32) * **Icons:** update artificial intelligence icons in vivo ([Telefonica#1545](Telefonica#1545)) ([f732114](Telefonica@f732114)) * **MenuItem:** Added description to MenuItem ([Telefonica#1543](Telefonica#1543)) ([a1f2e7d](Telefonica@a1f2e7d))
Adds new component AiCard.
The AI Card component (initially proposed as "Dynamic Callout") is a component proposed by the Evolution team and serves as an entry point for interaction with AI. It should be treated as an independent card (not as a variant of the Callout) and functions as a clickable element that takes the user to another AI screen/flow, simulating a "typing start" to encourage interaction.
task: Telefonica/mistica-design#2632