Skip to content

feat(models): add Button and ButtonList widgets#21

Merged
DLambros91 merged 2 commits into
DLambros91:mainfrom
adriihdezz:feature/card-buttons
Apr 5, 2026
Merged

feat(models): add Button and ButtonList widgets#21
DLambros91 merged 2 commits into
DLambros91:mainfrom
adriihdezz:feature/card-buttons

Conversation

@adriihdezz

Copy link
Copy Markdown
Contributor

Closes #20

Implemented the necessary data models in order to support interactive buttons within the cards.

  • Added Button, ButtonList, OnClick, and OpenLink to models.py.
  • Updated the Widget class to include the optional buttonList field.

Copilot AI 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.

Pull request overview

Adds new dataclass models to represent Google Chat card button widgets, enabling interactive actions (e.g., open a link) to be included in cardsV2 payloads.

Changes:

  • Added OpenLink, OnClick, Button, and ButtonList models to src/chatapult/models.py.
  • Extended Widget with an optional buttonList field to support button widgets.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/chatapult/models.py
Comment thread src/chatapult/models.py Outdated
@codecov-commenter

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@DLambros91 DLambros91 assigned DLambros91 and adriihdezz and unassigned DLambros91 Apr 5, 2026
@DLambros91 DLambros91 merged commit 537b0cc into DLambros91:main Apr 5, 2026
6 checks passed
@adriihdezz adriihdezz deleted the feature/card-buttons branch April 5, 2026 20:42
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.

feat: Add support for ButtonList and widget modification

4 participants