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

Add message body blocks and structures #1792

Merged
merged 2 commits into from
Jan 27, 2025
Merged

Conversation

MikaKerman
Copy link
Contributor

@MikaKerman MikaKerman commented Jan 27, 2025

  • 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.

Copy link

linear bot commented Jan 27, 2025

@MikaKerman MikaKerman requested a review from ofek1weiss January 27, 2025 10:40
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.

- 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.
@MikaKerman MikaKerman force-pushed the ele-3997-message-body-infra branch from 4196386 to 2d37747 Compare January 27, 2025 12:03
@MikaKerman MikaKerman merged commit 066e712 into master Jan 27, 2025
4 checks passed
@MikaKerman MikaKerman deleted the ele-3997-message-body-infra branch January 27, 2025 12:26
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.

2 participants