Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ele 3960 adaptive cards #1785

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Ele 3960 adaptive cards #1785

wants to merge 2 commits into from

Conversation

MikaKerman
Copy link
Contributor

@MikaKerman MikaKerman commented Jan 15, 2025

null

Copy link

linear bot commented Jan 15, 2025

ELE-3960 adaptive cards

Copy link
Contributor

👋 @MikaKerman
Thank you for raising your pull request.
Please make sure to add tests and document all user-facing changes.
You can do this by editing the docs files in this pull request.

@MikaKerman MikaKerman force-pushed the ele-3960-adaptive-cards branch 2 times, most recently from 58541e0 to cca5481 Compare January 16, 2025 15:39
- Introduced new message-related classes and functions in `blocks.py`, `block_builders.py`, and `message_body.py`.
- Implemented various block types including `TextBlock`, `LinkBlock`, `IconBlock`, and `FactBlock` to facilitate structured message creation.
- Added utility functions for building inline and line blocks, as well as specialized blocks like `BulletListBlock`, `BoldTextBlock`, and `JsonCodeBlock`.
- Established a `MessageBody` class to encapsulate a list of message blocks with optional color attributes.

This commit lays the groundwork for enhanced message formatting and presentation capabilities.
- Introduced new `adaptive_cards.py` module for formatting messages as adaptive cards, including functions for various block types such as headers, lines, facts, and expandable sections.
- Implemented utility functions to format message blocks and handle different styles and colors.
- Added comprehensive unit tests for adaptive card formatting, covering various scenarios including headers, icons, text styles, and expandable blocks.
- Created fixture files for expected JSON outputs to validate the formatting logic.
@MikaKerman MikaKerman force-pushed the ele-3960-adaptive-cards branch from cca5481 to a6a77e6 Compare January 23, 2025 15:25
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