Commit graph

13 commits

Author SHA1 Message Date
fsalomon
b1dabef96c
Preserve state labels in plugin output (#1366)
Some checks failed
L10n Update / update (push) Has been cancelled
CI / PHP (push) Has been cancelled
- Keep bracketed state labels as text inside plugin output (state-ball
replacements)
- Hide the text visually while preserving the existing state-ball
styling
  
Nice when copy&pasting plugin output to a code agent.

---------

Co-authored-by: Fabian Salomon <4098510+fsalomon@users.noreply.github.com>
2026-04-28 14:18:37 +02:00
jrauh01
8f346c3442
Replace [INFO]/(INFO) w/ .state-info ball in plugin output (#1348)
Some checks are pending
L10n Update / update (push) Waiting to run
CI / PHP (push) Waiting to run
Like the existing OK/WARNING/CRITICAL/etc. markers, `[INFO]` and `(INFO)` in
plugin output are replaced with a state ball element so they render as a visual
indicator instead of plain text.

Add the `.state-ball.state-info` style using `@default-text-color` as the ball
background, so it renders **white** in dark mode and **dark** in light mode.
2026-03-25 15:15:19 +01:00
Eric Lippmann
272e791390 License source files as GPL-3.0-or-later
Add SPDX license headers and mark source files as GPL-3.0-or-later to
preserve the option to relicense under later GPL versions.
2026-03-11 14:03:05 +01:00
Sukhwinder Dhillon
ef96037ec5 PluginOutput: Add method return type and visibility to constants 2024-07-24 10:40:08 +02:00
Sukhwinder Dhillon
91b3f81880 PluginOutput: Remove processHtml() method
`preg_replace` is sufficient.
2024-07-24 10:37:19 +02:00
Sukhwinder Dhillon
2fefc75552 PluginOutput::render(): Shorten the output by characterLimit before processing it
If the shorten output contained (not properly closed) HTML element, it merged the next list-item into the same html tag, because the closing tag was missing.
So we therefor shorten the output by characterLimit before proccessing it
2024-07-24 10:24:27 +02:00
Johannes Meyer
1564c3bbbc PluginOutput: Limit length to 1000 by default 2024-03-22 12:51:10 +01:00
Johannes Meyer
1390203523 PluginOutput: Automatically detect that an empty string isn't HTML 2022-10-26 09:28:00 +02:00
Yonas Habteab
1795a73a29 Adjust the usage of the changed columns everywhere 2022-06-10 09:23:05 +02:00
Johannes Meyer
1e17c58909 PluginOutput: Transform newlines first and purify HTML afterwards 2022-03-02 09:52:00 +01:00
Yonas Habteab
aefd0e1f7d Add PHP 7 argument & return type declarations to all member methods 2021-11-03 16:06:59 +01:00
Johannes Meyer
bf972c97ad PluginOutput: Don't "optimize" two subsequent new lines to one 2021-10-01 09:57:43 +02:00
Johannes Meyer
fea801e075 Introduce utility class PluginOutput 2021-08-20 11:09:58 +02:00