Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testsuite: UI Enhancements and Code Cleanup for Test Suite Summary #8502

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions Maintenance/test_handling/Summary_Script.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function platformContainer(platforms) {
const tplArray = platform.tpl;
const $toggleButton = $('<button>', {
text: 'Third Party Libraries',
class: 'tpl-toggle-button',
class: 'tpl-toggle-button toggle-button',
click: function() {
$tplTable.toggle();
}
Expand All @@ -193,17 +193,15 @@ function platformContainer(platforms) {
$('<th>', { text: 'Version' }).appendTo($headerRow);
$headerRow.appendTo($thead);
tplArray.forEach(tpl => {
$('<tr>').append(
$('<td>').html(`<a href="#" class="tpl-link" data-tpl="${tpl.name}">${tpl.name}</a>`),
const $row = $('<tr>').append(
$('<td>').text(tpl.name),
$('<td>').text(tpl.version || 'N/A'),
).appendTo($tbody);
$row.addClass('tpl-row');
$row.click(function() {
showVersionsForTPL(tpl.name);
});
});
$('.tpl-link').click(function(event) {
event.preventDefault();
const tplName = $(this).data('tpl');
showVersionsForTPL(tplName);
});

const letters = ['n', 'w', 'o', 'r'];
letters.forEach(letter => {
const $letterContainer = $('<div>', { class: 'letter_container ' + letter }).appendTo($container);
Expand Down
4 changes: 2 additions & 2 deletions Maintenance/test_handling/create_testresult_page
Original file line number Diff line number Diff line change
Expand Up @@ -884,8 +884,8 @@ sub create_summary_page {
</select>
<br>
<div>
<button id="open-all">Open All</button>
<button id="close-all">Close All</button>
<button id="open-all" class="toggle-button">Open All</button>
<button id="close-all" class="toggle-button">Close All</button>
</div>
<div id="main_container">
<div id="platform_container"></div>
Expand Down
36 changes: 14 additions & 22 deletions Maintenance/test_handling/testresult.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@ TABLE.result TD > a.package_name {
}

.toggle-button {
text-decoration: underline;
color: #333;
background-color: #f0f0f0;
border: 1px solid #ccc;
cursor: pointer;
text-align: center;
border-radius: 5px;
}

.summary-content{
Expand Down Expand Up @@ -145,29 +150,20 @@ TABLE.result TD > a.package_name {

.tpl-toggle-button {
display: inline-block;
margin-bottom: 10px;
padding: 6px 12px;
padding: 0.3em 0.5em;
font-size: 14px;
color: #333;
background-color: #f0f0f0;
border: 1px solid #ccc;
cursor: pointer;
text-align: center;
text-decoration: underline;
}

.tpl-toggle-button:hover {
.toggle-button:hover {
background-color: #e0e0e0;
}

.tpl-link {
color: #0000EE;
text-decoration: underline;
.tpl-row {
cursor: pointer;
}

.tpl-link:hover {
color: #1A0DAB;
.tpl-row:hover td {
background-color: #d1d1d1 !important;
}

/* TPL Modal */
Expand Down Expand Up @@ -248,20 +244,16 @@ table.tablesorter thead th.tablesorter-headerDesc {
padding-right: 20px;
}

table.tablesorter tbody tr:nth-child(odd) {
table.tablesorter tbody tr:nth-child(odd) td {
background-color: #e6e6e6;
}

table.tablesorter tbody tr:nth-child(even) {
table.tablesorter tbody tr:nth-child(even) td {
background-color: #f0f0f0;
}

table.tablesorter tbody td {
padding: 8px;
border: 1px solid #ccc;
text-align: left;
}

table.tablesorter tbody tr:hover {
background-color: #d1d1d1
}
}