Skip to content

Commit 4ebf27f

Browse files
committed
Content and styling changes of the status titles
1 parent 8aa7b56 commit 4ebf27f

2 files changed

Lines changed: 40 additions & 26 deletions

File tree

tui/components.py

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ def compose(self):
2424

2525

2626
class ScriptOutputType(str, Enum):
27-
UNIT_TEST_OUTPUT_TEXT = "Unit tests: "
28-
CONFORMANCE_TEST_OUTPUT_TEXT = "Conformance tests: "
27+
UNIT_TEST_OUTPUT_TEXT = "Unit tests output: "
28+
CONFORMANCE_TEST_OUTPUT_TEXT = "Conformance tests output: "
2929
TESTING_ENVIRONMENT_OUTPUT_TEXT = "Testing environment preparation execution output: "
3030

3131
@staticmethod
@@ -260,8 +260,8 @@ def _refresh_content(self) -> None:
260260

261261
def on_mount(self) -> None:
262262
"""Initialize default labels on mount."""
263-
self.module_text = "module: "
264-
self.functionality_text = "functionality:"
263+
self.module_text = "Module: "
264+
self.functionality_text = "Functionality:"
265265
self._refresh_content()
266266

267267
def compose(self):
@@ -326,7 +326,7 @@ def on_mount(self) -> None:
326326
self._refresh_content()
327327

328328
def compose(self):
329-
yield Static("latest test scripts", classes="test-scripts-title")
329+
yield Static("testing status", classes="test-scripts-title")
330330
with Vertical(classes="test-scripts-box"):
331331
self.unit_widget = Static(self.unit_test_text, classes="test-script-row")
332332
self.conformance_widget = Static(self.conformance_test_text, classes="test-script-row")
@@ -378,24 +378,26 @@ def on_mount(self) -> None:
378378

379379
def compose(self):
380380
yield RenderingInfoBox()
381-
yield ProgressItem(
382-
self.IMPLEMENTING_FUNCTIONALITY_TEXT,
383-
id=TUIComponents.FRID_PROGRESS_RENDER_FR.value,
384-
)
385-
if self.unittests_script is not None:
381+
yield Static("rendering status", classes="frid-state-machine-title")
382+
with Vertical(classes="frid-state-machine-box"):
386383
yield ProgressItem(
387-
self.UNIT_TEST_VALIDATION_TEXT,
388-
id=TUIComponents.FRID_PROGRESS_UNIT_TEST.value,
384+
self.IMPLEMENTING_FUNCTIONALITY_TEXT,
385+
id=TUIComponents.FRID_PROGRESS_RENDER_FR.value,
389386
)
390-
yield ProgressItem(
391-
self.REFACTORING_TEXT,
392-
id=TUIComponents.FRID_PROGRESS_REFACTORING.value,
393-
)
394-
if self.conformance_tests_script is not None:
387+
if self.unittests_script is not None:
388+
yield ProgressItem(
389+
self.UNIT_TEST_VALIDATION_TEXT,
390+
id=TUIComponents.FRID_PROGRESS_UNIT_TEST.value,
391+
)
395392
yield ProgressItem(
396-
self.CONFORMANCE_TEST_VALIDATION_TEXT,
397-
id=TUIComponents.FRID_PROGRESS_CONFORMANCE_TEST.value,
393+
self.REFACTORING_TEXT,
394+
id=TUIComponents.FRID_PROGRESS_REFACTORING.value,
398395
)
396+
if self.conformance_tests_script is not None:
397+
yield ProgressItem(
398+
self.CONFORMANCE_TEST_VALIDATION_TEXT,
399+
id=TUIComponents.FRID_PROGRESS_CONFORMANCE_TEST.value,
400+
)
399401

400402

401403
class LogEntry(Vertical):

tui/styles.css

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Screen {
77
margin: 0 2;
88
}
99

10-
/* Codeplain Header Box */
10+
/* Codeplain Header Box - *codeplain (version)*/
1111
#codeplain-header {
1212
dock: top;
1313
margin: 1 0;
@@ -53,15 +53,16 @@ We might need those at some point, so just commenting them out for now.
5353
height: auto;
5454
}
5555

56-
/* Rendering Info Box */
56+
/* Module Status */
5757
RenderingInfoBox {
5858
height: auto;
5959
margin: 1 0;
6060
}
6161

62+
/* Module Status box border */
6263
.rendering-info-box {
6364
height: auto;
64-
border: solid #E0FF6E;
65+
border: solid #888;
6566
padding: 0 1;
6667
}
6768

@@ -70,7 +71,12 @@ RenderingInfoBox {
7071
}
7172

7273
.rendering-info-title {
73-
color: #E0FF6E;
74+
color: #888;
75+
margin-bottom: 0;
76+
}
77+
78+
.frid-state-machine-title {
79+
color: #888;
7480
margin-bottom: 0;
7581
}
7682

@@ -105,7 +111,6 @@ ProgressItem {
105111
}
106112

107113
#frid-progress-header {
108-
margin-bottom: 1;
109114
margin-left: 2;
110115
margin-right: 2;
111116
color: #FFF;
@@ -122,21 +127,28 @@ TestScriptsContainer {
122127
height: auto;
123128
}
124129

130+
/* Latest script output container */
125131
.test-scripts-box {
126132
height: auto;
127133
color: #888;
128-
border: solid #E0FF6E;
134+
border: solid #888;
129135
padding: 0 1;
130136
}
131137

132138
.test-scripts-title {
133-
color: #E0FF6E;
139+
color: #888;
134140
margin-bottom: 0;
135141
}
136142

137143
.test-script-row {
138144
color: #FFF;
139145
}
146+
147+
/* State machine container border */
148+
.frid-state-machine-box {
149+
border: solid #888;
150+
padding: 0 1;
151+
}
140152
#unit-test-script-output-widget,
141153
#conformance-tests-script-output-widget,
142154
#testing-environment-script-output-widget {

0 commit comments

Comments
 (0)