Skip to content

Commit 4bf1b28

Browse files
committed
Remove CI columns from speller overview table
- Removed Doc CI, Core CI, and Deploy CI columns - Added addSpellerTableHeader() with only 4 columns - Reduced table from 7 to 4 columns: Documentation, Repository, Lemma Count, Issues
1 parent 8499eb0 commit 4bf1b28

1 file changed

Lines changed: 24 additions & 6 deletions

File tree

assets/js/spellertable.js

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,20 +82,41 @@ function addNegSpellerUnorderedList(repos, mainFilter, filters) {
8282

8383
// Main table view for spellcheckers
8484

85+
function addSpellerTableHeader() {
86+
// Creating and adding data to first row of the table
87+
let row_1 = document.createElement('tr');
88+
let heading_1 = document.createElement('th');
89+
heading_1.innerHTML = 'Documen­tation';
90+
let heading_2 = document.createElement('th');
91+
heading_2.innerHTML = 'Reposi­tory';
92+
let heading_3 = document.createElement('th');
93+
heading_3.innerHTML = 'Lemma Count';
94+
let heading_4 = document.createElement('th');
95+
heading_4.innerHTML = 'Issues';
96+
heading_4.setAttribute('style', 'width: 15%;');
97+
98+
row_1.appendChild(heading_1);
99+
row_1.appendChild(heading_2);
100+
row_1.appendChild(heading_3);
101+
row_1.appendChild(heading_4);
102+
103+
return row_1;
104+
}
105+
85106
function addSpellerRepoTable(repos, mainFilter, filters) {
86107
let table = document.createElement('table');
87108
let thead = document.createElement('thead');
88109
let tbody = document.createElement('tbody');
89110

90111
table.appendChild(thead);
91112
table.appendChild(tbody);
92-
thead.appendChild(addTableHeader(true)); // Add lemma count column
113+
thead.appendChild(addSpellerTableHeader());
93114

94115
// Handle case where GitHub API data is not available
95116
if (!repos || !Array.isArray(repos)) {
96117
const errorRow = document.createElement('tr');
97118
const errorCell = document.createElement('td');
98-
errorCell.colSpan = 7; // Match number of columns in header
119+
errorCell.colSpan = 4; // Match number of columns in header
99120
errorCell.innerHTML = '<strong>⚠️ GitHub repository data is temporarily unavailable</strong><br><em>This usually resolves automatically. Please try refreshing the page in a few minutes.</em>';
100121
errorCell.style.textAlign = 'center';
101122
errorCell.style.padding = '30px 20px';
@@ -121,7 +142,7 @@ function addSpellerRepoTable(repos, mainFilter, filters) {
121142
}
122143
// If no repos found, inform the user:
123144
if (!tbody.firstChild) {
124-
tbody.appendChild(addEmptyRow(7));
145+
tbody.appendChild(addEmptyRow(4));
125146
}
126147
return table;
127148
}
@@ -138,9 +159,6 @@ function addSpellerTR(repo) {
138159
row.appendChild(addRepo(repo));
139160
row.appendChild(addLemmaCount(repo));
140161
row.appendChild(addIssues(repo));
141-
row.appendChild(addRDoc(repo));
142-
row.appendChild(addCoreCI(repo));
143-
row.appendChild(addCI(repo));
144162

145163
return row;
146164
}

0 commit comments

Comments
 (0)