@jrpool/kilotest 60.0.7 → 60.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lhm.plugin.json +1 -1
- package/openapi-3.0.yaml +1 -1
- package/openapi.yaml +1 -1
- package/package.json +1 -1
- package/server.json +1 -1
- package/style.css +9 -9
- package/web/listIssues/index.ts +4 -4
- package/web/listViolators/index.ts +1 -1
package/lhm.plugin.json
CHANGED
package/openapi-3.0.yaml
CHANGED
|
@@ -2,7 +2,7 @@ openapi: 3.0.3
|
|
|
2
2
|
info:
|
|
3
3
|
title: Kilotest API
|
|
4
4
|
description: 'Kilotest is an ensemble testing and reporting service for front-end web quality. It uses an ensemble of 12 rule engines to test web pages for front-end quality (accessibility, usability, and web standards, including HTML, CSS, ARIA, and WCAG). Kilotest acts as a web server for human users, an MCP server for AI platforms, and an API for programmatic access. With this API you can request that a page be tested or retested, discover available reports, incrementally retrieve facts from a report: from what reports are available, to what issues were reported in one report, to what elements violated one issue, to what diagnoses rule engines gave for one violation.'
|
|
5
|
-
version: 60.0.
|
|
5
|
+
version: 60.0.9
|
|
6
6
|
license:
|
|
7
7
|
name: MIT
|
|
8
8
|
url: https://github.com/jrpool/kilotest/blob/main/LICENSE
|
package/openapi.yaml
CHANGED
|
@@ -2,7 +2,7 @@ openapi: 3.1.0
|
|
|
2
2
|
info:
|
|
3
3
|
title: Kilotest API
|
|
4
4
|
description: 'Kilotest is an ensemble testing and reporting service for front-end web quality. It uses an ensemble of 12 rule engines to test web pages for front-end quality (accessibility, usability, and web standards, including HTML, CSS, ARIA, and WCAG). Kilotest acts as a web server for human users, an MCP server for AI platforms, and an API for programmatic access. With this API you can request that a page be tested or retested, discover available reports, incrementally retrieve facts from a report: from what reports are available, to what issues were reported in one report, to what elements violated one issue, to what diagnoses rule engines gave for one violation.'
|
|
5
|
-
version: 60.0.
|
|
5
|
+
version: 60.0.9
|
|
6
6
|
license:
|
|
7
7
|
name: MIT
|
|
8
8
|
identifier: MIT
|
package/package.json
CHANGED
package/server.json
CHANGED
package/style.css
CHANGED
|
@@ -118,6 +118,15 @@ legend {
|
|
|
118
118
|
li, p {
|
|
119
119
|
line-height: 1.5;
|
|
120
120
|
}
|
|
121
|
+
ol.links li > a, p.links > a, ul.links li > a, ul.nav li > a {
|
|
122
|
+
display: block;
|
|
123
|
+
box-sizing: border-box;
|
|
124
|
+
min-height: 44px;
|
|
125
|
+
min-width: 44px;
|
|
126
|
+
margin-right: 1rem;
|
|
127
|
+
padding-left: 0.25rem;
|
|
128
|
+
padding-top: 0.5rem;
|
|
129
|
+
}
|
|
121
130
|
p {
|
|
122
131
|
margin: 0.5rem 0;
|
|
123
132
|
}
|
|
@@ -180,15 +189,6 @@ ul {
|
|
|
180
189
|
ul.pseudoTopLevel {
|
|
181
190
|
list-style: disc;
|
|
182
191
|
}
|
|
183
|
-
ul.links li > a, ul.nav li > a {
|
|
184
|
-
display: block;
|
|
185
|
-
box-sizing: border-box;
|
|
186
|
-
min-height: 44px;
|
|
187
|
-
min-width: 44px;
|
|
188
|
-
margin-right: 1rem;
|
|
189
|
-
padding-left: 0.25rem;
|
|
190
|
-
padding-top: 0.5rem;
|
|
191
|
-
}
|
|
192
192
|
ul.nav {
|
|
193
193
|
padding-inline-start: 0.25rem;
|
|
194
194
|
}
|
package/web/listIssues/index.ts
CHANGED
|
@@ -165,13 +165,13 @@ const getHistory = async (
|
|
|
165
165
|
});
|
|
166
166
|
// Initialize the lines with a list of the reports, or a statement that there is only one.
|
|
167
167
|
const lines = history.lines.length > 1
|
|
168
|
-
? [`${margin}<ol>`, ...history.lines, `${margin}</ol>`]
|
|
168
|
+
? [`${margin}<ol class="links">`, ...history.lines, `${margin}</ol>`]
|
|
169
169
|
: [`${margin}<p>This is the only available report about the page.</p>`];
|
|
170
170
|
// If this report is the latest about the page:
|
|
171
171
|
if (isLatest) {
|
|
172
172
|
// Add a link to the form for requesting a retest to the lines.
|
|
173
173
|
lines.push(
|
|
174
|
-
`${margin}<p><a href="/requestRetestForm.html/${reportID}">Request a retest</a></p>`
|
|
174
|
+
`${margin}<p class="links"><a href="/requestRetestForm.html/${reportID}">Request a retest</a></p>`
|
|
175
175
|
);
|
|
176
176
|
}
|
|
177
177
|
// Replace the bare list items with the assembled section lines.
|
|
@@ -238,7 +238,7 @@ const populateQuery = async (reportID: string, query: Record<string, any>) => {
|
|
|
238
238
|
// Add the start of a list item to the lines.
|
|
239
239
|
detailsLines.push(`${margin} <li>`);
|
|
240
240
|
// Add a heading summarizing the issue to the lines.
|
|
241
|
-
detailsLines.push(`${margin} <
|
|
241
|
+
detailsLines.push(`${margin} <h3>${summary}</h3>`);
|
|
242
242
|
// Add the issue facts to the lines.
|
|
243
243
|
detailsLines.push(
|
|
244
244
|
...getIssueFactsLines(report, issueID, `${margin} `, 'pseudoTopLevel')
|
|
@@ -246,7 +246,7 @@ const populateQuery = async (reportID: string, query: Record<string, any>) => {
|
|
|
246
246
|
// Add the start of a link list to the lines.
|
|
247
247
|
detailsLines.push(`${margin} <ul class="nav">`);
|
|
248
248
|
const whereQuestionString = 'Where was the issue found?';
|
|
249
|
-
const labelString = `
|
|
249
|
+
const labelString = `The ${description} page exhibits the ${summary} issue. Where was the issue found?`;
|
|
250
250
|
const href = `href="/listViolators.html/${issueID}/${reportID}"`;
|
|
251
251
|
const label = `aria-label="${labelString}"`;
|
|
252
252
|
const whereLink = `<a ${href} ${label}>${whereQuestionString}</a>`;
|
|
@@ -109,7 +109,7 @@ const populateQuery = async (
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
const href
|
|
112
|
-
= `/listDiagnoses.html/${issueID}/${reportID}/${catalogIndex}?pathID=${pathID}`;
|
|
112
|
+
= `/listDiagnoses.html/${issueID}/${reportID}/${catalogIndex}?pathID=${encodeURIComponent(pathID)}`;
|
|
113
113
|
const questionString = 'What diagnoses were reported';
|
|
114
114
|
const labelString = `${questionString} for violator ${index + 1}?`;
|
|
115
115
|
lines.push(
|