Skip to content

Commit

Permalink
Merge pull request #322 from dittybijil/main
Browse files Browse the repository at this point in the history
Fix style issue
  • Loading branch information
geovlazar authored Jan 27, 2025
2 parents 1a875e3 + a785a41 commit 3bd41f7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
16 changes: 9 additions & 7 deletions lib/service/qualityfolio/package.auto.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1219,6 +1219,8 @@ LEFT JOIN
ON
t.test_case_id = r.test_case_id;
select
''## Failed Rate'' as description_md,
Expand Down Expand Up @@ -1800,10 +1802,10 @@ WHERE bd.test_case_id = $id;
SELECT ''html'' as component,
''<style>
tr.actualClass-passed td.Status {
tr.actualClass-passed td.State {
color: green !important; /* Default to red */
}
tr.actualClass-failed td.Status {
tr.actualClass-failed td.State {
color: red !important; /* Default to red */
}
.btn-list {
Expand Down Expand Up @@ -1872,7 +1874,7 @@ WHERE bd.test_case_id = $id;
SELECT
step_name as ''Activity'',
step_status as ''Activity Status'',
step_status as ''State'',
''actualClass-''||step_status as _sqlpage_css_class,
step_start_time as ''Start Time'',
step_end_time as ''End Time''
Expand Down Expand Up @@ -2166,13 +2168,13 @@ INSERT INTO sqlpage_files (path, contents, last_modified) VALUES (
SELECT ''html'' as component,
''<style>
tr td.Status {
tr td.State {
color: blue !important; /* Default to blue */
}
tr.rowClass-passed td.Status {
tr.rowClass-passed td.State {
color: green !important; /* Default to red */
}
tr.rowClass-failed td.Status {
tr.rowClass-failed td.State {
color: red !important; /* Default to red */
}
.btn-list {
Expand Down Expand Up @@ -2206,7 +2208,7 @@ SET current_page = ($offset / $limit) + 1;
test_case_title AS "title",
group_name AS "group",
case when test_status is not null then test_status
else ''TODO'' END AS "Status",
else ''TODO'' END AS "State",
''rowClass-''||test_status as _sqlpage_css_class,
created_by as "Created By",
formatted_test_case_created_at as "Created On",
Expand Down
16 changes: 9 additions & 7 deletions lib/service/qualityfolio/package.sql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ LEFT JOIN
ON
t.test_case_id = r.test_case_id;
select
'## Failed Rate' as description_md,
Expand Down Expand Up @@ -790,10 +792,10 @@ WHERE bd.test_case_id = $id;
SELECT 'html' as component,
'<style>
tr.actualClass-passed td.Status {
tr.actualClass-passed td.State {
color: green !important; /* Default to red */
}
tr.actualClass-failed td.Status {
tr.actualClass-failed td.State {
color: red !important; /* Default to red */
}
.btn-list {
Expand Down Expand Up @@ -865,7 +867,7 @@ WHERE bd.test_case_id = $id;
SELECT
step_name as 'Activity',
step_status as 'Activity Status',
step_status as 'State',
'actualClass-'||step_status as _sqlpage_css_class,
step_start_time as 'Start Time',
step_end_time as 'End Time'
Expand Down Expand Up @@ -1116,13 +1118,13 @@ WHERE rn.id = $id;
SELECT 'html' as component,
'<style>
tr td.Status {
tr td.State {
color: blue !important; /* Default to blue */
}
tr.rowClass-passed td.Status {
tr.rowClass-passed td.State {
color: green !important; /* Default to red */
}
tr.rowClass-failed td.Status {
tr.rowClass-failed td.State {
color: red !important; /* Default to red */
}
.btn-list {
Expand Down Expand Up @@ -1153,7 +1155,7 @@ WHERE rn.id = $id;
test_case_title AS "title",
group_name AS "group",
case when test_status is not null then test_status
else 'TODO' END AS "Status",
else 'TODO' END AS "State",
'rowClass-'||test_status as _sqlpage_css_class,
created_by as "Created By",
formatted_test_case_created_at as "Created On",
Expand Down

0 comments on commit 3bd41f7

Please sign in to comment.