improved scoring ui + removed test data filters
Some checks failed
PHPUnit / test (push) Has been cancelled

This commit is contained in:
2026-06-08 19:38:37 +02:00
parent 11bae269e9
commit 3211d35b43
6 changed files with 317 additions and 200 deletions

View File

@ -1,21 +1,3 @@
/** Dev fixture prefixes (import script / dev_fixture.php). */
export function isDevTestClientCode(code) {
const c = String(code ?? '').trim();
return c.toUpperCase().startsWith('DEV-CL-');
}
export function isDevTestUsername(username) {
return String(username ?? '').trim().toLowerCase().startsWith('dev_');
}
export function testDataRowClassForClient(clientCode) {
return isDevTestClientCode(clientCode) ? ' row-test-data' : '';
}
export function testDataRowClassForUser(username) {
return isDevTestUsername(username) ? ' row-test-data' : '';
}
const STABLE_KEY_RE = /^[a-zA-Z][a-zA-Z0-9_]*$/;
/** Local question id from full questionID (hash__q5 → q5). */