Skip to content

Conversation

@MikaKerman
Copy link
Contributor

@MikaKerman MikaKerman commented Jun 1, 2025

This PR refactors the alert messaging infrastructure to support multiple links and icons, improving the flexibility and functionality of alert notifications.

Changes

🔧 Alert Message Infrastructure Refactor

  • Introduced LinksLineBlock component for rendering multiple links with optional icons
  • Refactored AlertMessageBuilder to utilize the new multi-link structure
  • Extracted link handling logic into dedicated _get_run_alert_subtitle_links() method
  • Updated alert message architecture to support flexible link configurations

…port" in various test fixtures and utility functions.
… LinksLineBlock for rendering multiple links with optional icons, and updated AlertMessageBuilder to utilize this new structure.
@linear
Copy link

linear bot commented Jun 1, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2025

👋 @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.


def LinksLineBlock(*, links: list[tuple[str, str, Optional[Icon]]]) -> LineBlock:
return LineBlock(
inlines=sum(
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT - i realy dont like using sum to flatten a list, you can use itertools.chain.from_iterable or double list comprehension instead

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks!

@MikaKerman MikaKerman had a problem deploying to elementary_test_env June 3, 2025 08:43 — with GitHub Actions Failure
@MikaKerman MikaKerman enabled auto-merge June 3, 2025 08:43
@MikaKerman MikaKerman merged commit ef5c1bc into master Jun 3, 2025
3 of 4 checks passed
@MikaKerman MikaKerman deleted the ele-4497-view-in-elementary-links branch June 3, 2025 08:46
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.

4 participants