feat: Add first-class AwtrixApp object system (v0.4.0)#2
Conversation
…cation * Introduced new test files for `AwtrixApp`, `AwtrixNotification`, and `AwtrixAppCollection`. * Implemented tests for object construction, property mapping, and payload generation. * Added functionality to support `-PassThru` in `Send-AwtrixNotification` and `Set-AwtrixApp`. * Enhanced `Update-AwtrixApp` to handle multiple pipeline objects and return mutated objects. * Ensured that tests cover various scenarios including property updates and API interactions.
| stateful PowerShell objects with methods, properties, and lifecycle | ||
| management, enabling sophisticated scenarios: | ||
| - `AwtrixApp` class — Represents a persistent custom app with state | ||
| management, dirty tracking, and serialization |
There was a problem hiding this comment.
Be careful with dirty, it’s profane in some cases dirty retext-profanities
|
|
||
| ### -Text | ||
| The text to display. | ||
| A simple string or an array of colored fragment objects |
There was a problem hiding this comment.
simple may be insensitive, try not to use it simple retext-equality
|
|
||
| ### -Text | ||
| The text to display. | ||
| A simple string or an array of colored fragment objects |
There was a problem hiding this comment.
Be careful with colored, it’s profane in some cases colored retext-profanities
| ``` | ||
|
|
||
| ### -Color | ||
| Text, bar, or line color. |
There was a problem hiding this comment.
Be careful with color, it’s profane in some cases color retext-profanities
|
|
||
| ### -Color | ||
| Text, bar, or line color. | ||
| Accepts a named color, hex string, or RGB array. |
There was a problem hiding this comment.
Be careful with color, it’s profane in some cases color retext-profanities
| ``` | ||
|
|
||
| ### -Background | ||
| Background color. |
There was a problem hiding this comment.
Be careful with color, it’s profane in some cases color retext-profanities
| ``` | ||
|
|
||
| ### -EffectSettings | ||
| Effect color/speed overrides. |
There was a problem hiding this comment.
Be careful with color, it’s profane in some cases color retext-profanities
| ``` | ||
|
|
||
| ### -BarBackgroundColor | ||
| Bar background color. |
There was a problem hiding this comment.
Be careful with color, it’s profane in some cases color retext-profanities
| ``` | ||
|
|
||
| ### -ProgressColor | ||
| Progress bar foreground color. |
There was a problem hiding this comment.
Be careful with color, it’s profane in some cases color retext-profanities
| ``` | ||
|
|
||
| ### -ProgressBackgroundColor | ||
| Progress bar background color. |
There was a problem hiding this comment.
Be careful with color, it’s profane in some cases color retext-profanities
Test Results 3 files 1 137 suites 14s ⏱️ Results for commit 27be5e8. |
Overview
This PR introduces a major enhancement: first-class AwtrixApp objects that enable sophisticated app and notification management patterns.
What's New
Classes
Cmdlets
Object Methods
Backward Compatibility
Test Coverage
✅ 102 new tests for AwtrixApp object system
✅ 1205 tests passed total
✅ Full backward compatibility verified
Related Issue
Addresses request to make apps 'first class' with object-oriented ergonomics.