Skip to content

Commit 55ca213

Browse files
author
Alan Christie
committed
fix: UI now has postfix (& doc update)
1 parent 5684ae2 commit 55ca213

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

README.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ summary information for multiple Squonk2 environments and uses Will McGugan's
2323
`textual`_ framework to provide the user with a simple,
2424
text-based user interface modelled on the popular `k9s`_ Kubernetes monitor.
2525

26+
It displays a summary of the environments, where: -
27+
28+
- A green tick indicates that the authenticator service has issued a token for the service
29+
- The service version is displayed for those that are running
30+
- A **NO RESPONSE** banner is displayed for services that are not responding
31+
2632
.. _k9s: https://k9scli.io
2733
.. _squonk2-python-client: https://github.com/InformaticsMatters/squonk2-python-client
2834
.. _textual: https://github.com/Textualize/textual

src/squeck/widgets/env.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
)
2525

2626
_NO_RESPONSE_TEXT: str = "- NO RESPONSE -"
27+
_UI_HOSTNAME_POSTFIX: str = "/data-manager-ui"
2728

2829

2930
class EnvWidget(Widget): # type: ignore
@@ -147,7 +148,9 @@ def render(self) -> Panel:
147148

148149
ui_hostname: Optional[str] = self.environment.ui_hostname
149150
if ui_hostname:
150-
ui_hostname_text: Text = Text(ui_hostname + " ", style=_KEY_VALUE_STYLE)
151+
ui_hostname_text: Text = Text(
152+
ui_hostname + _UI_HOSTNAME_POSTFIX + " ", style=_KEY_VALUE_STYLE
153+
)
151154
if ui_api_version == _NO_RESPONSE_TEXT:
152155
ui_hostname_text.append(common.CROSS)
153156
else:

0 commit comments

Comments
 (0)