Skip to content

Commit fb8824b

Browse files
satterlyclaude
andcommitted
Fix severity colors: use inline CSS swatches instead of via.placeholder.com
The external placeholder service is broken/unreliable. Replace with inline HTML color swatches that render without external dependencies. Also fix indeterminate color (was incorrectly shown as green, should be LightBlue #ADD8E6) and replace stale pingfederate_url with cas_server. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f4bd928 commit fb8824b

1 file changed

Lines changed: 25 additions & 44 deletions

File tree

source/webui/configuration.rst

Lines changed: 25 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ shown below that.
8383
"gitlab_url": "https://gitlab.com",
8484
"keycloak_realm": null,
8585
"keycloak_url": null,
86-
"pingfederate_url": null,
86+
"cas_server": null,
8787
"provider": "google",
8888
"refresh_interval": 5000,
8989
"severity": {
@@ -116,49 +116,30 @@ Client Settings
116116
Full list of API server settings that can be used to configure clients can be found
117117
at :ref:`webui settings`.
118118

119-
.. raw:: html
120-
<style> .red { background-color: red } </style>
121-
122119
Severity Colors
123120
---------------
124121

125-
.. |blu| image:: https://via.placeholder.com/16x16/0000ff/0000ff
126-
.. |red| image:: https://via.placeholder.com/16x16/ff0000/ff0000
127-
.. |org| image:: https://via.placeholder.com/16x16/ffa500/ffa500
128-
.. |ylw| image:: https://via.placeholder.com/16x16/ffff00/ffff00
129-
.. |dbl| image:: https://via.placeholder.com/16x16/1e90ff/1e90ff
130-
.. |lbl| image:: https://via.placeholder.com/16x16/add8e6/add8e6
131-
.. |grn| image:: https://via.placeholder.com/16x16/00cc00/00cc00
132-
.. |prp| image:: https://via.placeholder.com/16x16/9d006d/9d006d
133-
.. |vlt| image:: https://via.placeholder.com/16x16/7554bf/7554bf
134-
.. |slv| image:: https://via.placeholder.com/16x16/c0c0c0/c0c0c0
135-
136-
+-------------------+---------------+---------------------------------+
137-
| Severity | Severity Code | Colour |
138-
+===================+===============+=================================+
139-
| ``security`` | 0 | |blu| ``#0000FF`` (Blue) |
140-
+-------------------+---------------+---------------------------------+
141-
| ``critical`` | 1 | |red| ``#FF0000`` (Red) |
142-
+-------------------+---------------+---------------------------------+
143-
| ``major`` | 2 | |org| ``#FFA500`` (Orange) |
144-
+-------------------+---------------+---------------------------------+
145-
| ``minor`` | 3 | |ylw| ``#FFFF00`` (Yellow) |
146-
+-------------------+---------------+---------------------------------+
147-
| ``warning`` | 4 | |dbl| ``#1E90FF`` (DodgerBlue) |
148-
+-------------------+---------------+---------------------------------+
149-
| ``indeterminate`` | 5 | |lbl| ``#00CC00`` (LightBlue) |
150-
+-------------------+---------------+---------------------------------+
151-
| ``cleared`` | 5 | |grn| ``#00CC00`` (Green*) |
152-
+-------------------+---------------+---------------------------------+
153-
| ``normal`` | 5 | |grn| ``#00CC00`` (Green*) |
154-
+-------------------+---------------+---------------------------------+
155-
| ``ok`` | 5 | |grn| ``#00CC00`` (Green*) |
156-
+-------------------+---------------+---------------------------------+
157-
| ``informational`` | 6 | |grn| ``#00CC00`` (Green*) |
158-
+-------------------+---------------+---------------------------------+
159-
| ``debug`` | 7 | |prp| ``#9D006D`` (Purple*) |
160-
+-------------------+---------------+---------------------------------+
161-
| ``trace`` | 8 | |vlt| ``#7554BF`` (Violet*) |
162-
+-------------------+---------------+---------------------------------+
163-
| ``unknown`` | 9 | |slv| ``#C0C0C0`` (Silver) |
164-
+-------------------+---------------+---------------------------------+
122+
.. raw:: html
123+
124+
<table class="docutils align-default">
125+
<thead><tr><th>Severity</th><th>Code</th><th>Colour</th></tr></thead>
126+
<tbody>
127+
<tr><td><code>security</code></td><td>0</td><td><span style="display:inline-block;width:14px;height:14px;background:#0000FF;border:1px solid #ccc;vertical-align:middle"></span> <code>#0000FF</code> Blue</td></tr>
128+
<tr><td><code>critical</code></td><td>1</td><td><span style="display:inline-block;width:14px;height:14px;background:#FF0000;border:1px solid #ccc;vertical-align:middle"></span> <code>#FF0000</code> Red</td></tr>
129+
<tr><td><code>major</code></td><td>2</td><td><span style="display:inline-block;width:14px;height:14px;background:#FFA500;border:1px solid #ccc;vertical-align:middle"></span> <code>#FFA500</code> Orange</td></tr>
130+
<tr><td><code>minor</code></td><td>3</td><td><span style="display:inline-block;width:14px;height:14px;background:#FFFF00;border:1px solid #ccc;vertical-align:middle"></span> <code>#FFFF00</code> Yellow</td></tr>
131+
<tr><td><code>warning</code></td><td>4</td><td><span style="display:inline-block;width:14px;height:14px;background:#1E90FF;border:1px solid #ccc;vertical-align:middle"></span> <code>#1E90FF</code> DodgerBlue</td></tr>
132+
<tr><td><code>indeterminate</code></td><td>5</td><td><span style="display:inline-block;width:14px;height:14px;background:#ADD8E6;border:1px solid #ccc;vertical-align:middle"></span> <code>#ADD8E6</code> LightBlue</td></tr>
133+
<tr><td><code>cleared</code></td><td>5</td><td><span style="display:inline-block;width:14px;height:14px;background:#00CC00;border:1px solid #ccc;vertical-align:middle"></span> <code>#00CC00</code> Green</td></tr>
134+
<tr><td><code>normal</code></td><td>5</td><td><span style="display:inline-block;width:14px;height:14px;background:#00CC00;border:1px solid #ccc;vertical-align:middle"></span> <code>#00CC00</code> Green</td></tr>
135+
<tr><td><code>ok</code></td><td>5</td><td><span style="display:inline-block;width:14px;height:14px;background:#00CC00;border:1px solid #ccc;vertical-align:middle"></span> <code>#00CC00</code> Green</td></tr>
136+
<tr><td><code>informational</code></td><td>6</td><td><span style="display:inline-block;width:14px;height:14px;background:#00CC00;border:1px solid #ccc;vertical-align:middle"></span> <code>#00CC00</code> Green</td></tr>
137+
<tr><td><code>debug</code></td><td>7</td><td><span style="display:inline-block;width:14px;height:14px;background:#9D006D;border:1px solid #ccc;vertical-align:middle"></span> <code>#9D006D</code> Purple</td></tr>
138+
<tr><td><code>trace</code></td><td>8</td><td><span style="display:inline-block;width:14px;height:14px;background:#7554BF;border:1px solid #ccc;vertical-align:middle"></span> <code>#7554BF</code> Violet</td></tr>
139+
<tr><td><code>unknown</code></td><td>9</td><td><span style="display:inline-block;width:14px;height:14px;background:#C0C0C0;border:1px solid #ccc;vertical-align:middle"></span> <code>#C0C0C0</code> Silver</td></tr>
140+
</tbody>
141+
</table>
142+
143+
.. note:: The ``indeterminate`` color was incorrectly shown as green in
144+
previous versions of this documentation. It is ``#ADD8E6`` (LightBlue)
145+
in the source code.

0 commit comments

Comments
 (0)