Add text overflow modes and adaptive columns#40
Open
noponoponopo wants to merge 1 commit into
Open
Conversation
Signed-off-by: nopo <dev@nopo1.com>
Author
|
PR#37と#39が前提となっています |
Author
Collaborator
|
I get the impression that this significantly departs from RunCat's philosophy of "simplicity." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Context of Contribution
Summary of the Proposal
This pull request adds an optional
textOverflowfield to Custom Metrics snapshots.Three behaviors are available:
truncatekeeps text on one line without widening its column.wrapuses multiple lines without widening its column.expandallows content to widen its column.The default is
expand, which preserves the existing behavior.The dashboard adds another column only when its content would exceed the visible screen height. Column heights are measured again after their widths are established so wrapped text is placed correctly.
A single card that exceeds the available height becomes internally scrollable.
All 136 tests pass.
Reason for the new feature
Custom Metrics values can contain long titles, paths, descriptions, or generated text. A single overflow behavior cannot serve both compact status cards and cards that need to display complete text.
The new modes let each producer choose between compact truncation, complete wrapped text, and the existing expanding behavior.
Adaptive columns keep larger sets of cards visible without requiring a permanently wider dashboard. The existing behavior remains the default, so current JSON files do not require migration.
Checklist