@jrpool/kilotest 43.0.2 → 44.0.1
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/aceconfig.js +1 -1
- package/api/getReport.js +1 -1
- package/api/listDiagnoses.js +2 -2
- package/api/listIssues.js +4 -4
- package/api/listReports.js +3 -3
- package/api/listViolators.js +3 -3
- package/api/requestRetest.js +3 -3
- package/api/requestTest.js +3 -3
- package/docs/AI-TOOLS.md +2 -2
- package/docs/SERVICE.md +5 -5
- package/index.html +2 -2
- package/index.js +31 -30
- package/llms-full.txt +8 -8
- package/llms.txt +7 -7
- package/package.json +1 -1
- package/robots.txt +8 -8
- package/sitemap.xml +3 -3
- package/util.js +25 -25
- package/web/{testOrder → enqueue}/index.js +6 -4
- package/web/{recActionForm → enqueueForm}/index.html +1 -1
- package/web/{recActionForm → enqueueForm}/index.js +1 -1
- package/web/{reportsExpungeForm → expungeReportsForm}/index.html +1 -1
- package/web/{reportsExpungeForm → expungeReportsForm}/index.js +4 -4
- package/web/{reportHideForm → hideReportForm}/index.html +1 -1
- package/web/{diagnoses → listDiagnoses}/index.js +7 -5
- package/web/{reportIssues → listIssues}/index.html +1 -1
- package/web/{reportIssues → listIssues}/index.js +12 -12
- package/web/{targets → listReports}/index.html +1 -1
- package/web/{targets → listReports}/index.js +11 -11
- package/web/{rules → listRules}/index.js +1 -1
- package/web/{issues → listTopIssues}/index.js +4 -4
- package/web/{reportIssue → listViolators}/index.js +6 -6
- package/web/manage/index.html +7 -7
- package/web/manage/index.js +1 -1
- package/web/{reportsPruneForm → pruneReportsForm}/index.html +1 -1
- package/web/{reportsPruneForm → pruneReportsForm}/index.js +4 -4
- package/web/reannotate/index.js +1 -1
- package/web/reannotateForm/index.js +11 -11
- package/web/{wcagRenew → renewWCAG}/index.js +1 -1
- package/web/{wcagRenewForm → renewWCAGForm}/index.html +1 -1
- package/web/{retestRec → requestRetest}/index.html +1 -1
- package/web/{retestRec → requestRetest}/index.js +4 -5
- package/web/{retestRecForm → requestRetestForm}/index.html +2 -2
- package/web/{retestRecForm → requestRetestForm}/index.js +1 -1
- package/web/{testRec → requestTest}/index.html +1 -1
- package/web/{testRec → requestTest}/index.js +5 -6
- package/web/{testRecForm → requestTestForm}/index.html +1 -1
- package/web/{testRecForm → requestTestForm}/index.js +2 -3
- package/web/{reportsRewindForm → rewindReportsForm}/index.html +1 -1
- package/web/{reportsRewindForm → rewindReportsForm}/index.js +4 -4
- package/web/tutorial/index.html +1 -1
- package/web/tutorial/index.js +1 -1
- package/web/{reportUnhideForm → unhideReportForm}/index.html +1 -1
- /package/web/{testOrder → enqueue}/index.html +0 -0
- /package/web/{reportHideForm → hideReportForm}/index.js +0 -0
- /package/web/{diagnoses → listDiagnoses}/index.html +0 -0
- /package/web/{rules → listRules}/index.html +0 -0
- /package/web/{issues → listTopIssues}/index.html +0 -0
- /package/web/{reportIssue → listViolators}/index.html +0 -0
- /package/web/{wcagRenew → renewWCAG}/index.html +0 -0
- /package/web/{wcagRenewForm → renewWCAGForm}/index.js +0 -0
- /package/web/{reportUnhideForm → unhideReportForm}/index.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
index.js
|
|
3
|
-
|
|
3
|
+
Serves a form for requesting a test.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
// IMPORTS
|
|
@@ -10,9 +10,8 @@ const path = require('path');
|
|
|
10
10
|
|
|
11
11
|
// FUNCTIONS
|
|
12
12
|
|
|
13
|
-
// Returns a test recommendation form.
|
|
14
13
|
exports.answer = async () => {
|
|
15
|
-
// Get the
|
|
14
|
+
// Get the test request form template.
|
|
16
15
|
let answerPage = await fs.readFile(path.join(__dirname, 'index.html'), 'utf8');
|
|
17
16
|
// Return it.
|
|
18
17
|
return {
|
|
@@ -52,7 +52,7 @@ exports.answer = async (_, search) => {
|
|
|
52
52
|
const [timeStamp, jobID] = reportName.slice(0, -5).split('-');
|
|
53
53
|
// Get a summary of it.
|
|
54
54
|
const reportFacts = await getReportData(timeStamp, jobID);
|
|
55
|
-
const {error, issueCount,
|
|
55
|
+
const {error, issueCount, preventedEngineCount, url} = reportFacts;
|
|
56
56
|
// If this failed:
|
|
57
57
|
if (error) {
|
|
58
58
|
// Return why.
|
|
@@ -65,7 +65,7 @@ exports.answer = async (_, search) => {
|
|
|
65
65
|
timeStamp,
|
|
66
66
|
jobID,
|
|
67
67
|
issueCount,
|
|
68
|
-
|
|
68
|
+
preventedEngineCount,
|
|
69
69
|
url
|
|
70
70
|
});
|
|
71
71
|
}
|
|
@@ -81,9 +81,9 @@ exports.answer = async (_, search) => {
|
|
|
81
81
|
let anyDeletable = false;
|
|
82
82
|
// For each summary:
|
|
83
83
|
reportSpecs.forEach((spec, index) => {
|
|
84
|
-
const {timeStamp, jobID, issueCount,
|
|
84
|
+
const {timeStamp, jobID, issueCount, preventedEngineCount, url} = spec;
|
|
85
85
|
const jobName = `${timeStamp}-${jobID}`;
|
|
86
|
-
const specString = `<code>${url}</code> (<code>${jobName}</code>): preventions ${
|
|
86
|
+
const specString = `<code>${url}</code> (<code>${jobName}</code>): preventions ${preventedEngineCount}, issues ${issueCount}`;
|
|
87
87
|
// If its report is the latest report on a target with at least 2 reports:
|
|
88
88
|
if (reportSpecs[index - 1]?.url === url && reportSpecs[index + 1]?.url !== url) {
|
|
89
89
|
// Add a line with a deletion checkbox.
|
package/web/tutorial/index.html
CHANGED
|
@@ -419,7 +419,7 @@
|
|
|
419
419
|
<p>In this practicum, which rule engines discovered both <code>autocomplete</code> defects?</p>
|
|
420
420
|
<ol>
|
|
421
421
|
<li><label><input type="radio" name="q4" value="a"> All 10 rule engines</label></li>
|
|
422
|
-
<li><label><input type="radio" name="q4" value="b"> Six of the rule engines></li>
|
|
422
|
+
<li><label><input type="radio" name="q4" value="b"> Six of the rule engines</label></li>
|
|
423
423
|
<li><label><input type="radio" name="q4" value="c"> Only Testaro and HTML CodeSniffer</label></li>
|
|
424
424
|
<li><label><input type="radio" name="q4" value="d"> None of the rule engines</label></li>
|
|
425
425
|
</ol>
|
package/web/tutorial/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<main>
|
|
15
15
|
<h1><a href="/">Kilotest</a>: Declassify report as experimental</h1>
|
|
16
16
|
<p>Choose a report to declassify as experimental.</p>
|
|
17
|
-
<form action="/
|
|
17
|
+
<form action="/unhideReportForm.html">
|
|
18
18
|
<fieldset>
|
|
19
19
|
<legend>Reports</legend>
|
|
20
20
|
__reports__
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|