Compare commits

...

4 Commits

Author SHA1 Message Date
582ce6b2b6 web: empty() always speaks its label
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (mypy, mypy, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (pylint, pylint, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (rest, , mypy,pylint) (push) Waiting to run
Tests / test (push) Waiting to run
Tests / web-coverage (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 02:26:15 +01:00
ca59039ba0 web: icon rail nav, spoken-only page heads
Sidebar paints a glyph and digit per section, the palette button a
magnifier and ⌃K; page titles, subtitles and the Actions heading are
spoken only. web/scripts/visible_words.mjs lists chrome words in the
built pages (146 -> 4, the command-button labels).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 02:23:47 +01:00
f5f921ebf4 web: icons for job state, notices, empty, copy
Partial textgate rework: job state pills, notices, empty and
loading states, copy button and timeline legend paint icons; the
old wording is spoken only. Guard test covers these pieces.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 02:20:43 +01:00
a80652e91a deps(web): astro 7.4.8, typescript-eslint 8.72.2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 02:20:21 +01:00
27 changed files with 543 additions and 525 deletions

View File

@ -20,7 +20,7 @@
},
"dependencies": {
"@kuhyx/web-ui": "github:kuhyx/utils#web_ui-v0.5.0&path:/web_ui",
"astro": "7.4.7"
"astro": "7.4.8"
},
"devDependencies": {
"@astrojs/check": "0.9.12",
@ -35,7 +35,7 @@
"globals": "17.14.0",
"jsdom": "31.0.0",
"typescript": "6.0.3",
"typescript-eslint": "8.72.1",
"typescript-eslint": "8.72.2",
"vitest": "5.1.0"
}
}

View File

@ -172,10 +172,10 @@ importers:
dependencies:
'@kuhyx/web-ui':
specifier: github:kuhyx/utils#web_ui-v0.5.0&path:/web_ui
version: https://codeload.github.com/kuhyx/utils/tar.gz/decf5824e609b099f9455be93c4d09b4c1fd6cae#path:/web_ui(astro@7.4.7(@types/node@26.6.6)(yaml@2.9.1))
version: https://codeload.github.com/kuhyx/utils/tar.gz/decf5824e609b099f9455be93c4d09b4c1fd6cae#path:/web_ui(astro@7.4.8(@types/node@26.6.6)(yaml@2.9.1))
astro:
specifier: 7.4.7
version: 7.4.7(@types/node@26.6.6)(yaml@2.9.1)
specifier: 7.4.8
version: 7.4.8(@types/node@26.6.6)(yaml@2.9.1)
devDependencies:
'@astrojs/check':
specifier: 0.9.12
@ -203,7 +203,7 @@ importers:
version: 10.14.0(supports-color@7.2.0)
eslint-plugin-astro:
specifier: 3.2.1
version: 3.2.1(@typescript-eslint/parser@8.72.1(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript-eslint@8.72.1(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))
version: 3.2.1(@typescript-eslint/parser@8.72.2(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript-eslint@8.72.2(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))
globals:
specifier: 17.14.0
version: 17.14.0
@ -214,11 +214,11 @@ importers:
specifier: 6.0.3
version: 6.0.3
typescript-eslint:
specifier: 8.72.1
version: 8.72.1(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
specifier: 8.72.2
version: 8.72.2(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
vitest:
specifier: 5.1.0
version: 5.1.0(@types/node@26.6.6)(@vitest/coverage-v8@5.1.0)(jsdom@31.0.0)(vite@8.3.5(@types/node@26.6.6)(yaml@2.9.1))
version: 5.1.0(@types/node@26.6.6)(@vitest/coverage-v8@5.1.0)(jsdom@31.0.0)(vite@8.3.7(@types/node@26.6.6)(yaml@2.9.1))
packages:
@ -734,13 +734,6 @@ packages:
'@emnapi/core': 1.11.3
'@emnapi/runtime': 1.11.3
'@napi-rs/wasm-runtime@1.2.6':
resolution: {integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==}
engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0}
peerDependencies:
'@emnapi/core': 1.11.3
'@emnapi/runtime': 1.11.3
'@napi-rs/wasm-runtime@1.2.7':
resolution: {integrity: sha512-zJccwplOAbgfZju95IUHazLnx9RAPtPN2YGJXI6UbrgeaR9QfPjGrQL6ERkSAtnVCA4Q+83ApGyaX5zdpCaKkQ==}
engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0}
@ -751,209 +744,105 @@ packages:
'@oslojs/encoding@1.1.0':
resolution: {integrity: sha512-70wQhgYmndg4GCPxPPxPGevRKqTIJ2Nh4OkiMWmDAVYsTQ+Ta7Sq+rPevXyXGdzr30/qZBnyOalCszoMxlyldQ==}
'@oxc-project/types@0.155.0':
resolution: {integrity: sha512-SeE8JPwW1xs1tHeNycjUtUBdhorRa8o4jlvjwk49R7/Z291i+4DQa7JJIgOm/TaYQZx+QrPQbVJ/9c8dMIZN8Q==}
'@oxc-project/types@0.157.0':
resolution: {integrity: sha512-95iTox1qdt6WGWce3xwNOVayByOfLaYAq+qGPpub6NWbBh9sv0GG3+zyfh9ZBCO/jVu5A0EWI+qQI7g6fevjxg==}
'@oxc-project/types@0.156.0':
resolution: {integrity: sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==}
'@pkgr/core@0.3.6':
resolution: {integrity: sha512-SEeaJLb3qBNF/OaXnaR1NmmBbFYk1zC0ZH/52fATcRPLFg/p791YrcyFFy44Bo9sLaGuSuLp5Q6axbb/O+v/RA==}
engines: {node: ^14.18.0 || >=16.0.0}
'@rolldown/binding-android-arm-eabi@1.2.15':
resolution: {integrity: sha512-aLcgK9gIJ3YRvrrtfSBbRa27F5WrpiTaPulnFpsHPxpUHgFlSgnU4854MHwoRGEBhfRJDWCS2WQ7lIjskE9Olw==}
'@rolldown/binding-android-arm-eabi@1.2.18':
resolution: {integrity: sha512-ubTG+4KlidvioxjOFdsdEa2F6JVGZb8m2ByJUqQ7fYzUeT1cEn194POcsQ10PKH4p//q0YQn4SB3YpSuzcA1Yg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm]
os: [android]
'@rolldown/binding-android-arm-eabi@1.3.0':
resolution: {integrity: sha512-zjq+pUSE36RJG9nJXqrRfMCOxekzVhlaYMtFELHaOcRH4UqTnkWhbTbEixKEawsb0ZTVMRbn8RLYcuU4DYk8qg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm]
os: [android]
'@rolldown/binding-android-arm64@1.2.15':
resolution: {integrity: sha512-xD7DdZCrbThKuxNg7ooQmvp07ys4J/pnSEMTG3/OdOWl6daC67m/Q4fL78sRHMxTH/N4fGUbYhcPM0MF5WFHkg==}
'@rolldown/binding-android-arm64@1.2.18':
resolution: {integrity: sha512-2Xa1t/JeFGTZn5TbzgPppcCftF8sCVnTNvrIvoSdcZhoFzAuVy1L3xxQUQ4sfWDtwVzg1u6Yi1R3SlJugRNV2Q==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [android]
'@rolldown/binding-android-arm64@1.3.0':
resolution: {integrity: sha512-HdnCiSmMGgEILGVLU1o4dcOblLGj8sMnqEFrDY/S7KRti1nTQHAqGGs2AniPspbK90AFS3pM23K/R0J3hPQXYQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [android]
'@rolldown/binding-darwin-arm64@1.2.15':
resolution: {integrity: sha512-m2WuQ6r0B4OTYxyPpNLtXaMRbRDUbG8YQV2Q3KTdSSK8Th6KHCnC8jVCJt8bvYeSB5WivkkNbc85mKadaSdOxA==}
'@rolldown/binding-darwin-arm64@1.2.18':
resolution: {integrity: sha512-iUzw9HshVvrWci9gVXjxWS7/M/IcLvNo67vu2c/w9zKBz4hIvPRixdUpIW/iCfhldLaq9ER2hecsI9UY5z0/yA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [darwin]
'@rolldown/binding-darwin-arm64@1.3.0':
resolution: {integrity: sha512-TkQ2JGC8/9UxoCeH5dSJj1gxuFhzw200QTJJd2YNPRXznSSM4XvpKV2Cs+RM2BcM8sa6xa4rmXNuiJ64+1993g==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [darwin]
'@rolldown/binding-darwin-x64@1.2.15':
resolution: {integrity: sha512-5RtnsHM36nodM9WbMy+zip0LGS/G+y5wro5RHrpOlr4ac24+1zSi9kiV2MP1myZeZ/ifEHfulQcWjnAXzc2C2A==}
'@rolldown/binding-darwin-x64@1.2.18':
resolution: {integrity: sha512-XuDHFzbFEtZl0QGJi92+fmG67tfnp1iZ9VOeDkwasGyTq2VG3/5PnJnvAr+MTzFh/rNScJ3VhN+XpZyyGsN7Jw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [darwin]
'@rolldown/binding-darwin-x64@1.3.0':
resolution: {integrity: sha512-Gr+iZW50RJZo4BPUazaDh/Azx7W0Rl04sy2MkXD+H4RkxzUX5hIrjaVw1BK+XHsccKExQAmCy6DhvRLlUzaYUg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [darwin]
'@rolldown/binding-freebsd-x64@1.2.15':
resolution: {integrity: sha512-g3l09pyFqhu+135JKkbkwiKGQmwU5hUMUPJ4VdBADvuqR8d33L6H578rh8m7rtxbdp+VmX/+nzI7nvhSZlzpUQ==}
'@rolldown/binding-freebsd-x64@1.2.18':
resolution: {integrity: sha512-MM8opLfsLK15oEXDz6iBc0t3ahu+ew9jsAmha+ovZ33hSwYgqo7YmpRITqFTfW7xA71BLEQ3jJdTsaCmhB1c9w==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [freebsd]
'@rolldown/binding-freebsd-x64@1.3.0':
resolution: {integrity: sha512-RwAtx8peSqUoBf8pxE0L62xKXBNnA3BtdFV+07t13t0TQoASCtV9tnU67aKKMRZSiD06SU07chB5B8fWFdW3gQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [freebsd]
'@rolldown/binding-linux-arm-gnueabihf@1.2.15':
resolution: {integrity: sha512-nIe3VugI97nGQtspPxDqA4sXMUpeiocKIP/CqpY/u/vgbT+alX+cVxu1C/oVBPKg4feNTmYovE91v4DgXvXNwQ==}
'@rolldown/binding-linux-arm-gnueabihf@1.2.18':
resolution: {integrity: sha512-J6EoCWiy5RnFQzHrKyHXXevZ9lukQfGpnchX/zG/k/WC2nc9O9XyS1JgA8kI9VxMFggMbCPjpv7LcikriXfehw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm]
os: [linux]
'@rolldown/binding-linux-arm-gnueabihf@1.3.0':
resolution: {integrity: sha512-ow8fq6kYaIx75D0EVT5GeF4DcawcEYYXJ2CvEaOzyygW1jtVDQU/9o5YYidctHBRDUgPzGaTNB6n/VMTmd1ymw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm]
os: [linux]
'@rolldown/binding-linux-arm64-gnu@1.2.15':
resolution: {integrity: sha512-iTBjXx+B5QSvgI89lJfmqh4wTh8NabR1YZIIN3hNx4zSG0EVfVqkOvLulNpG4251pbd6/IAmZ/LefVk1Y4rPhw==}
'@rolldown/binding-linux-arm64-gnu@1.2.18':
resolution: {integrity: sha512-HIkFuLF7CdDeki+1aCZLLbLq0hk/PHntb+z4/YCTo47JbksTD6jJEELIz92tYROmDmvMrNqUMqBi71BkJLDR+A==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
libc: [glibc]
'@rolldown/binding-linux-arm64-gnu@1.3.0':
resolution: {integrity: sha512-PLOWuiz+rdqSgiLgN7bxvy6DjXLj8gnJxzRS243LNnLi96VeyB7VFsC3eblcKv3Xwd3jQqJfbCWRhLijTIZyvQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
libc: [glibc]
'@rolldown/binding-linux-arm64-musl@1.2.15':
resolution: {integrity: sha512-uN26XOnVR7rqQupG3V9oAG2EGGatWjcJHOeDOHUFCh4TBWmP2tHTFoVN13aYbwfm0aHqJAEmcwhAu6sooIjfqQ==}
'@rolldown/binding-linux-arm64-musl@1.2.18':
resolution: {integrity: sha512-4oqWItLLYt7IceOnElCct8T2ek5p7PmD7LN04TRJRXGo5f3HtKTgGH6PhYRFK4C2ICkq/LMUU0BVPvvlAKhm8g==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
libc: [musl]
'@rolldown/binding-linux-arm64-musl@1.3.0':
resolution: {integrity: sha512-CQ/k85cc342j5SnZ/gT9p132NXZRGTgLRhfItdYqUg+jpvL5HYFve0GB+zQDCYGwDjtDWIoqKSOitkmZMZc/tw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
libc: [musl]
'@rolldown/binding-linux-ppc64-gnu@1.2.15':
resolution: {integrity: sha512-9nWkcdd+H+XhaA3fQIwpHnKIrfx/PQ6rO0pivr78Og07tXlUlctBBJoEYLPfhTmCR/QxEVdn6uPjHV5SymPhdw==}
'@rolldown/binding-linux-ppc64-gnu@1.2.18':
resolution: {integrity: sha512-+AkRly5SrCEgnPhGRfub7pucASYEC2fTsxZg7VCcnozpA2+Wn/gCYy1t7LuJS67/xyJu/7noYBJncDUkbwgw2A==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [ppc64]
os: [linux]
libc: [glibc]
'@rolldown/binding-linux-ppc64-gnu@1.3.0':
resolution: {integrity: sha512-wk+ZG7xDP2px3cQRFoNoNp52/w1O5hTTtciHxuastreMOp8isYUTCpcG/rEYnSQBI+nycN+B9d9pBGua+qvV7w==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [ppc64]
os: [linux]
libc: [glibc]
'@rolldown/binding-linux-s390x-gnu@1.2.15':
resolution: {integrity: sha512-Ggh0ciFjLwIusLSLz7LZYEaGdxOAUJXI+Qu5JCbhPJJHEt8vP+IjRATTJheiJsdzzTYgUiHUiw3X1Ea3ZpMBdA==}
'@rolldown/binding-linux-s390x-gnu@1.2.18':
resolution: {integrity: sha512-Ttg1r9vVykMnQrE/GwYO9icKtXiuiMfRe/w74xJkeoVuvhRG+WtT6LEMOf58Yl63yd77lhHzO8Y55R8CC3XALA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [s390x]
os: [linux]
libc: [glibc]
'@rolldown/binding-linux-s390x-gnu@1.3.0':
resolution: {integrity: sha512-sEgyZt72Rj7V5q6OZ7A4U2I5v4EMGEv3Fp5QmoncmKbUMTrGmpyH7MwENfERGbfUYjxdBmktw4JJLys5I1aQNQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [s390x]
os: [linux]
libc: [glibc]
'@rolldown/binding-linux-x64-gnu@1.2.15':
resolution: {integrity: sha512-FHg60rS6DBePAYZ9X9F67x+JObFdmgn6tupA1C/a3B+CufFmTD4mX+e8M75tCiAO3foR/6xwVBI0KQiI7sn/rw==}
'@rolldown/binding-linux-x64-gnu@1.2.18':
resolution: {integrity: sha512-xX1Tt4o5jUMma0vJsXp5eRZA9nOuyigb2dKJMMzZRmzMxLYGE9PaKKSqHPzPvSQgM8ZOEacSTQwDQcwWfh0xmQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
libc: [glibc]
'@rolldown/binding-linux-x64-gnu@1.3.0':
resolution: {integrity: sha512-PvL0BoBUwVugK1pFd+zyVk1L9F6ucmQ7oF2dpy8zKPHNlbW2zrU9Jst3fWYfG7z3owjxqhwAvi5G4o0AikrJMw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
libc: [glibc]
'@rolldown/binding-linux-x64-musl@1.2.15':
resolution: {integrity: sha512-/cvV/7v5VGz/moiz0XKRj2dE8DzsKyhIu1KpOvJGPjRywg3yscON889UGvAe8zfiJLHup7VLjBduoGWi3HusWQ==}
'@rolldown/binding-linux-x64-musl@1.2.18':
resolution: {integrity: sha512-4VVlGI5K2kociZlW3lSN8VjG3TW5yQIlAcfCdBXMgGjJxZll15Fa4ocRHXHvIVVnwlibCw/NQajJrNDiqqpiiw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
libc: [musl]
'@rolldown/binding-linux-x64-musl@1.3.0':
resolution: {integrity: sha512-5N4DdzAmLtnyuh027H6ViC99BeoA4T0RwKS6qUrl6zY70AKRsNDrnEZeWnqrKmDRFxXmv8zf9yhF2DxN/SfyGQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
libc: [musl]
'@rolldown/binding-openharmony-arm64@1.2.15':
resolution: {integrity: sha512-MyzC5Hrv/sm+Z7TSGKP/j8001RO2xQm1zOpCNVL4j0cY/VhBZviludA2YFQ7i4lH6ZAXxQm0lcMdBzM+99mE7w==}
'@rolldown/binding-openharmony-arm64@1.2.18':
resolution: {integrity: sha512-PApTsgH1jLYuyy3tSCz9De82Gq5qXwi7vImVZhEzTgX1C4150Cp5M2ZfL3pLvbCvbEHL0oJeC6pd6podtv8Y5w==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [openharmony]
'@rolldown/binding-openharmony-arm64@1.3.0':
resolution: {integrity: sha512-Tz+2b+yF5eVRGX3DWebn2JIvZkNYI1gkafI+nF2fau2zeQDOpBAS8w1PxHi4ke//NIOE6+2DNYyq1veIjzAXqQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [openharmony]
'@rolldown/binding-wasm32-wasi@1.3.0':
resolution: {integrity: sha512-ntK6OFor3nQtS1TenZP5wX59oPpkKEmour3AipGHB32u+Z8QXxjVdG+7vNSvgerRWIj6vjg4XpKu42slb0vlXQ==}
engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0}
cpu: [wasm32]
'@rolldown/binding-win32-arm64-msvc@1.2.15':
resolution: {integrity: sha512-+PgYiS+AH5omy6L45ZLxybasauJaj3M8buoT83D+nzPmCayXlxUV9hydhciCKVyIg0B/v0BtXPDE1uGqNwCPpg==}
'@rolldown/binding-win32-arm64-msvc@1.2.18':
resolution: {integrity: sha512-J2XjWjx/SP+4x0H4r6dz3Vzb5WVkg7re40Do9K7HJ3sK2/xcmZrWwakXlSwaMvOkvruLJCD4CL/3wqsIR/thgg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [win32]
'@rolldown/binding-win32-arm64-msvc@1.3.0':
resolution: {integrity: sha512-ldH38lBlOpS+b4fbSG9euQjhYXLE18PIz5hyvf6gvFfyVLodRE/Tsu4jV8UmPqjjce6lotmUUwscxPuer4lczQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [win32]
'@rolldown/binding-win32-x64-msvc@1.2.15':
resolution: {integrity: sha512-HFZd2QNQYn1JbIi+Hpd7H+r/lkWxcfIu28nirZ6eCn2LafuvmExMlb/P96Sfx5tf7pPArw39IdhmCF8vmV+NhQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [win32]
'@rolldown/binding-win32-x64-msvc@1.3.0':
resolution: {integrity: sha512-HglhUzUPuXNTGFt5ZwJalSEvavhFSl+nxpQM9urkzkt+2oGI1ZSwgyytk9aGw15/0kk1TCHPc57nv3DdiG8/yQ==}
'@rolldown/binding-win32-x64-msvc@1.2.18':
resolution: {integrity: sha512-XwRJxRQvkuEtS0hIIt29QrqPJ+JzMJSNYHJw4ae/mc6uEarfRG1ceyg4HmmWiBdL/YCb6g7N5BLbSvmRJRYZHw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [win32]
@ -1051,23 +940,23 @@ packages:
'@types/unist@3.0.3':
resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==}
'@typescript-eslint/eslint-plugin@8.72.1':
resolution: {integrity: sha512-5CokTWXpmbylfFabsbvHC0CAw3XLaGnoa+nFJX5FR592h/LoZsENUE6p/rg5xvkKrFEXz6pYmgI29AgXc2N3BQ==}
'@typescript-eslint/eslint-plugin@8.72.2':
resolution: {integrity: sha512-222PKFXKihmFpi/pS5njoBgdAqsPhj2/GBmFbrNw8Tq8gEG9Sv+kSlKFy4u2q+mJv9ZzJgM2Gkv/bUzRZwZw5g==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
'@typescript-eslint/parser': ^8.72.1
'@typescript-eslint/parser': ^8.72.2
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
typescript: '>=4.8.4 <6.1.0'
'@typescript-eslint/parser@8.72.1':
resolution: {integrity: sha512-ZGwZP4OCfyA0AQTpEAMWz+rtX01DRhQWW5hB0ucKDEIX5U7jdmPSaMx94rQfaPAQzIYz2BimOgKOJtjfpRFQ9g==}
'@typescript-eslint/parser@8.72.2':
resolution: {integrity: sha512-llP+T1YuJOLlxEciP6OyQGtz5SMxyn+9LA2BvZw5RmToGVa1y4beEDVQL6Gje7T5WFYh19WREjDCN9Ev4gm5AA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
typescript: '>=4.8.4 <6.1.0'
'@typescript-eslint/project-service@8.72.1':
resolution: {integrity: sha512-fAuVMkwdO/huI8nyo/WKnNKf6Gag93S56Rh3Ts5mGcavwSdaN8tRg1gCeIGX8PF+nzp1BjGfO4gHhGzW1J6jTg==}
'@typescript-eslint/project-service@8.72.2':
resolution: {integrity: sha512-6y5dLTZdHhI8Eh3yIQ/bfQhRKwn5e+TpJj64o18Cngc0iW/BCrVvrr6zGYqXPnYH31u6YXAYiFh0+qxX5mybJw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
typescript: '>=4.8.4 <6.1.0'
@ -1076,14 +965,18 @@ packages:
resolution: {integrity: sha512-lC/t6eMCZZQAAKZEYGL6RDVSuFehpdmMT6h+nJIjIa6oylN/PwDgDVtEIbB7O9xFfZYtZAYLoLlDNWKJhtF+uQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@typescript-eslint/tsconfig-utils@8.72.1':
resolution: {integrity: sha512-e4D5R5vpeAEPBxT2BAzsFQL3sbwyeeeo5+aczgNSRK1V734jE7pTqaGFU+fXapWEQwnZbpFaTn32+Z8DwS6OTg==}
'@typescript-eslint/scope-manager@8.72.2':
resolution: {integrity: sha512-iIoMJ6/8c1/QpFNyFjU0d1YzPco4MsZjQw0k3V+vfzNWAFmUmvhlyMoYEoYYDQZXc+J6Gi1X5XcxlzW2taIIGQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@typescript-eslint/tsconfig-utils@8.72.2':
resolution: {integrity: sha512-+h3iCgZXuTNtoLXcnnjP12ZUHLMqoUcIHPfQrFEXTUqvb9dF8QK9b5nv5VtSo5fLkdHuks8ehbTzZj3rImAm9w==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
typescript: '>=4.8.4 <6.1.0'
'@typescript-eslint/type-utils@8.72.1':
resolution: {integrity: sha512-iY2wlmyrXJmx4yxUGP3aYCFF3cA/6ShddOKmLU2dx7LnEykbAM8WThlxZEfd1NddqceF6eJmZUayxx9oKIYNlg==}
'@typescript-eslint/type-utils@8.72.2':
resolution: {integrity: sha512-STfkR38qIdhfkLpgtXnUjAzsNy4xouqiBO0lrVc/Wpk9Kem5/aHXUx1J8dGC16zpdYN1+yc2ILQ28er1kXX7ag==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
@ -1093,14 +986,18 @@ packages:
resolution: {integrity: sha512-LmE5IhQet1BWOWEXqBrVtBPsMAOQ6Nzk35d+WLh3mk4EUF33sqlfxjio1MdYeSvKSG5skactKKuixBIKXhL4Rw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@typescript-eslint/typescript-estree@8.72.1':
resolution: {integrity: sha512-DAlUoUV93hIvrtIQLwCbmZQYVZwOMhiHJrOVUUIWicFZaIYjTRqlY3I/NZevfkLmSqkNHRu2qYDcq9lrn16oOQ==}
'@typescript-eslint/types@8.72.2':
resolution: {integrity: sha512-Xfn37OLZx03+PCU7qWx9DTv2FCRh1E6fk2+wONeNY15HXIwtcwuveaSwVpGAUptkNmPQegRxW5JyRel9T7wrog==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@typescript-eslint/typescript-estree@8.72.2':
resolution: {integrity: sha512-pQEGqIK/cqEvKivVWaFLYpe7XYejFxfuAOi4mu1oAWFvIo36aRHI9esRFTUxcIy/z8N482RJyH+LpZB0ZIU7Ow==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
typescript: '>=4.8.4 <6.1.0'
'@typescript-eslint/utils@8.72.1':
resolution: {integrity: sha512-5v5liypurJBFHCBNqh/RjsymAD+VWcE0djuGY/BUqp5fC3Qn+luWDEksjuTtWjPn6i5zQlUtkZCRG/CYG0yCkA==}
'@typescript-eslint/utils@8.72.2':
resolution: {integrity: sha512-hv3eRYbpPbbpezuax1EfGrzpa3C4ySgNZkPUkLOWOAjU8HsOKowEDAr8C7nsNl1C+SBSKDpvno6VKHnlhvp9iA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
@ -1110,6 +1007,10 @@ packages:
resolution: {integrity: sha512-SB8xqipSzZHUePCCLNeYxqnxq83X61/qzNhjQGbTfjxGZIeOEP7tBgWYX05Tcd6CgE02WdTJnh5b8kMZJ/+bnQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@typescript-eslint/visitor-keys@8.72.2':
resolution: {integrity: sha512-NAGrjn0Pitjqzq/GkgMC4kBYm233PQ8GffyQ9+kTA3AlNQYEzOf25EIM02BAHZv5FRJSpHpJk+OGUxVkOB93GQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@ungap/structured-clone@1.4.0':
resolution: {integrity: sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==}
@ -1256,8 +1157,8 @@ packages:
resolution: {integrity: sha512-WavQUarfgwSbpCq4xsdcIBdX5KArfI2d6DD8EIloJIMthnB1508iNpx4C77EhUyMd03LpEt8HAPzwF/cG0V39g==}
engines: {node: ^22.22.3 || ^24.16.0 || >=26.3.0}
astro@7.4.7:
resolution: {integrity: sha512-fH54IOaCkZY1paEjygKn8CPfuJ3w8ns7PourcPML5AouJkQuTBqBQ2RbbIbBhutZbg2qn5se6Yl9DYybzqjC0Q==}
astro@7.4.8:
resolution: {integrity: sha512-xBcOeUvOQGPDKeHiIRJCKNZStf+TyPEJ2kHrUBKpVEyEdhhPfHd0T9GP8NVvaA3I7aKPn6SGy8xEcvWPym4GsA==}
engines: {node: '>=22.23.4', npm: '>=9.6.5', pnpm: '>=7.1.0'}
hasBin: true
peerDependencies:
@ -1877,6 +1778,10 @@ packages:
resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==}
engines: {node: 18 || 20 || >=22}
mri@1.2.0:
resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==}
engines: {node: '>=4'}
mrmime@2.0.1:
resolution: {integrity: sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==}
engines: {node: '>=10'}
@ -1990,6 +1895,10 @@ packages:
resolution: {integrity: sha512-YUbWYCgErwnMAVkjUnYa+KlMBzGpHwiIt/DE7f0G33AuX2LH9UcTk6KgWxd3zRU+pN3u/C+Xl3EnMLM4Hea7Sg==}
engines: {node: ^10 || ^12 || >=14}
postcss@8.5.32:
resolution: {integrity: sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==}
engines: {node: ^10 || ^12 || >=14}
prelude-ls@1.2.1:
resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
engines: {node: '>= 0.8.0'}
@ -2061,13 +1970,8 @@ packages:
retext-smartypants@6.2.0:
resolution: {integrity: sha512-kk0jOU7+zGv//kfjXEBjdIryL1Acl4i9XNkHxtM7Tm5lFiCog576fjNC9hjoR7LTKQ0DsPWy09JummSsH1uqfQ==}
rolldown@1.2.15:
resolution: {integrity: sha512-6odND+fel5zVw3I4Yc2e69gvguDnX0CAAGiNDZSq4ik5WUcaLrkD2GLuog0XcODbor31hZ5ayEMgVDno+KPV5g==}
engines: {node: ^20.19.0 || >=22.12.0}
hasBin: true
rolldown@1.3.0:
resolution: {integrity: sha512-7j1jdVlzWzbRat9EDMsB/QmyMcc6hOO0vbcma8LGjBTmKlpS5Hem+5fpntc/HoRV5tLrG+Qo6I1ZHV/ZuL5S8g==}
rolldown@1.2.18:
resolution: {integrity: sha512-C1uuT3UR60SShuCaPQFAAZyefJCWZlAKB02BV3BuPE2Rs4fevRQltEKoFO2tV5W9/eJhU5RieV6vJj3euulfNQ==}
engines: {node: ^20.19.0 || >=22.12.0}
hasBin: true
@ -2223,8 +2127,8 @@ packages:
typescript-auto-import-cache@0.3.6:
resolution: {integrity: sha512-RpuHXrknHdVdK7wv/8ug3Fr0WNsNi5l5aB8MYYuXhq2UH5lnEB1htJ1smhtD5VeCsGr2p8mUDtd83LCQDFVgjQ==}
typescript-eslint@8.72.1:
resolution: {integrity: sha512-3Li9FfPmQp45nxEtFD1ZCrYFI3cYK5kpyNtmm1H7lMagm8u9sy6PTjy3ytwQZs7KNukOyKFHAZ6z6GjYFeaeXw==}
typescript-eslint@8.72.2:
resolution: {integrity: sha512-c/+AKMW1KB81r28Sp0AAdcyXj5dzNmAsZFcsrxKbZTKmcBK2xIwBR31dcSYSDu3bKmzXe8GKrSxO+eDQ401Uzg==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
@ -2247,10 +2151,6 @@ packages:
undici-types@8.9.0:
resolution: {integrity: sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==}
undici@8.12.1:
resolution: {integrity: sha512-usz3OVQBeh1LxNn0DzU0voLXMgn5CU/WUdpBsY6Ti5afNao+vTkmn4H/NxoXolc10cOqe2+YIG0Hspq2rsl64w==}
engines: {node: '>=22.19.0'}
undici@8.12.4:
resolution: {integrity: sha512-8Mx+uNKKER2bA4AdtedkqRbwUCIJFr2nJckXRe5yrDqzePqwLP7VNcctN8/XdmDSbF7mS+jJKIszlL+vbam1VA==}
engines: {node: '>=22.19.0'}
@ -2354,8 +2254,8 @@ packages:
vfile@6.0.3:
resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==}
vite@8.3.5:
resolution: {integrity: sha512-z1YpjieJ9g0ebTmQpLBv/oq9E3F9EIlOe+7LahW8SrE3LTiG3udBRUXQOlYXP9b+IC2q2phHeVxj9xGlw34OEQ==}
vite@8.3.7:
resolution: {integrity: sha512-oxh0dMxrayBr33ScJvvBJ2HBQ2jc1TBrXKR2NyL/MJ9WPuX19mN2DXWUmywKdyw5RFVQBo8hmtb2FMC0LHrnng==}
engines: {node: ^20.19.0 || >=22.12.0}
hasBin: true
peerDependencies:
@ -3070,9 +2970,9 @@ snapshots:
'@keyv/serialize@1.1.1': {}
'@kuhyx/web-ui@https://codeload.github.com/kuhyx/utils/tar.gz/decf5824e609b099f9455be93c4d09b4c1fd6cae#path:/web_ui(astro@7.4.7(@types/node@26.6.6)(yaml@2.9.1))':
'@kuhyx/web-ui@https://codeload.github.com/kuhyx/utils/tar.gz/decf5824e609b099f9455be93c4d09b4c1fd6cae#path:/web_ui(astro@7.4.8(@types/node@26.6.6)(yaml@2.9.1))':
dependencies:
astro: 7.4.7(@types/node@26.6.6)(yaml@2.9.1)
astro: 7.4.8(@types/node@26.6.6)(yaml@2.9.1)
'@napi-rs/wasm-runtime@1.2.4(@emnapi/core@1.11.3)(@emnapi/runtime@1.11.3)':
dependencies:
@ -3080,13 +2980,6 @@ snapshots:
'@emnapi/runtime': 1.11.3
'@tybys/wasm-util': 0.10.4
'@napi-rs/wasm-runtime@1.2.6(@emnapi/core@1.11.3)(@emnapi/runtime@1.11.3)':
dependencies:
'@emnapi/core': 1.11.3
'@emnapi/runtime': 1.11.3
'@tybys/wasm-util': 0.10.4
optional: true
'@napi-rs/wasm-runtime@1.2.7(@emnapi/core@1.11.3)(@emnapi/runtime@1.11.3)':
dependencies:
'@emnapi/core': 1.11.3
@ -3096,107 +2989,53 @@ snapshots:
'@oslojs/encoding@1.1.0': {}
'@oxc-project/types@0.155.0': {}
'@oxc-project/types@0.157.0': {}
'@oxc-project/types@0.156.0': {}
'@pkgr/core@0.3.6': {}
'@rolldown/binding-android-arm-eabi@1.2.15':
'@rolldown/binding-android-arm-eabi@1.2.18':
optional: true
'@rolldown/binding-android-arm-eabi@1.3.0':
'@rolldown/binding-android-arm64@1.2.18':
optional: true
'@rolldown/binding-android-arm64@1.2.15':
'@rolldown/binding-darwin-arm64@1.2.18':
optional: true
'@rolldown/binding-android-arm64@1.3.0':
'@rolldown/binding-darwin-x64@1.2.18':
optional: true
'@rolldown/binding-darwin-arm64@1.2.15':
'@rolldown/binding-freebsd-x64@1.2.18':
optional: true
'@rolldown/binding-darwin-arm64@1.3.0':
'@rolldown/binding-linux-arm-gnueabihf@1.2.18':
optional: true
'@rolldown/binding-darwin-x64@1.2.15':
'@rolldown/binding-linux-arm64-gnu@1.2.18':
optional: true
'@rolldown/binding-darwin-x64@1.3.0':
'@rolldown/binding-linux-arm64-musl@1.2.18':
optional: true
'@rolldown/binding-freebsd-x64@1.2.15':
'@rolldown/binding-linux-ppc64-gnu@1.2.18':
optional: true
'@rolldown/binding-freebsd-x64@1.3.0':
'@rolldown/binding-linux-s390x-gnu@1.2.18':
optional: true
'@rolldown/binding-linux-arm-gnueabihf@1.2.15':
'@rolldown/binding-linux-x64-gnu@1.2.18':
optional: true
'@rolldown/binding-linux-arm-gnueabihf@1.3.0':
'@rolldown/binding-linux-x64-musl@1.2.18':
optional: true
'@rolldown/binding-linux-arm64-gnu@1.2.15':
'@rolldown/binding-openharmony-arm64@1.2.18':
optional: true
'@rolldown/binding-linux-arm64-gnu@1.3.0':
'@rolldown/binding-win32-arm64-msvc@1.2.18':
optional: true
'@rolldown/binding-linux-arm64-musl@1.2.15':
optional: true
'@rolldown/binding-linux-arm64-musl@1.3.0':
optional: true
'@rolldown/binding-linux-ppc64-gnu@1.2.15':
optional: true
'@rolldown/binding-linux-ppc64-gnu@1.3.0':
optional: true
'@rolldown/binding-linux-s390x-gnu@1.2.15':
optional: true
'@rolldown/binding-linux-s390x-gnu@1.3.0':
optional: true
'@rolldown/binding-linux-x64-gnu@1.2.15':
optional: true
'@rolldown/binding-linux-x64-gnu@1.3.0':
optional: true
'@rolldown/binding-linux-x64-musl@1.2.15':
optional: true
'@rolldown/binding-linux-x64-musl@1.3.0':
optional: true
'@rolldown/binding-openharmony-arm64@1.2.15':
optional: true
'@rolldown/binding-openharmony-arm64@1.3.0':
optional: true
'@rolldown/binding-wasm32-wasi@1.3.0':
dependencies:
'@emnapi/core': 1.11.3
'@emnapi/runtime': 1.11.3
'@napi-rs/wasm-runtime': 1.2.6(@emnapi/core@1.11.3)(@emnapi/runtime@1.11.3)
optional: true
'@rolldown/binding-win32-arm64-msvc@1.2.15':
optional: true
'@rolldown/binding-win32-arm64-msvc@1.3.0':
optional: true
'@rolldown/binding-win32-x64-msvc@1.2.15':
optional: true
'@rolldown/binding-win32-x64-msvc@1.3.0':
'@rolldown/binding-win32-x64-msvc@1.2.18':
optional: true
'@rolldown/pluginutils@1.0.1': {}
@ -3262,7 +3101,7 @@ snapshots:
picocolors: 1.1.1
redent: 3.0.0
optionalDependencies:
vitest: 5.1.0(@types/node@26.6.6)(@vitest/coverage-v8@5.1.0)(jsdom@31.0.0)(vite@8.3.5(@types/node@26.6.6)(yaml@2.9.1))
vitest: 5.1.0(@types/node@26.6.6)(@vitest/coverage-v8@5.1.0)(jsdom@31.0.0)(vite@8.3.7(@types/node@26.6.6)(yaml@2.9.1))
'@testing-library/user-event@14.6.8(@testing-library/dom@10.4.2)':
dependencies:
@ -3309,14 +3148,14 @@ snapshots:
'@types/unist@3.0.3': {}
'@typescript-eslint/eslint-plugin@8.72.1(@typescript-eslint/parser@8.72.1(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)':
'@typescript-eslint/eslint-plugin@8.72.2(@typescript-eslint/parser@8.72.2(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)':
dependencies:
'@eslint-community/regexpp': 4.12.2
'@typescript-eslint/parser': 8.72.1(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
'@typescript-eslint/scope-manager': 8.72.1
'@typescript-eslint/type-utils': 8.72.1(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
'@typescript-eslint/utils': 8.72.1(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
'@typescript-eslint/visitor-keys': 8.72.1
'@typescript-eslint/parser': 8.72.2(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
'@typescript-eslint/scope-manager': 8.72.2
'@typescript-eslint/type-utils': 8.72.2(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
'@typescript-eslint/utils': 8.72.2(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
'@typescript-eslint/visitor-keys': 8.72.2
eslint: 10.14.0(supports-color@7.2.0)
ignore: 7.0.6
natural-compare: 1.4.0
@ -3325,22 +3164,22 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@typescript-eslint/parser@8.72.1(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)':
'@typescript-eslint/parser@8.72.2(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)':
dependencies:
'@typescript-eslint/scope-manager': 8.72.1
'@typescript-eslint/types': 8.72.1
'@typescript-eslint/typescript-estree': 8.72.1(supports-color@7.2.0)(typescript@6.0.3)
'@typescript-eslint/visitor-keys': 8.72.1
'@typescript-eslint/scope-manager': 8.72.2
'@typescript-eslint/types': 8.72.2
'@typescript-eslint/typescript-estree': 8.72.2(supports-color@7.2.0)(typescript@6.0.3)
'@typescript-eslint/visitor-keys': 8.72.2
debug: 4.4.3(supports-color@7.2.0)
eslint: 10.14.0(supports-color@7.2.0)
typescript: 6.0.3
transitivePeerDependencies:
- supports-color
'@typescript-eslint/project-service@8.72.1(supports-color@7.2.0)(typescript@6.0.3)':
'@typescript-eslint/project-service@8.72.2(supports-color@7.2.0)(typescript@6.0.3)':
dependencies:
'@typescript-eslint/tsconfig-utils': 8.72.1(typescript@6.0.3)
'@typescript-eslint/types': 8.72.1
'@typescript-eslint/tsconfig-utils': 8.72.2(typescript@6.0.3)
'@typescript-eslint/types': 8.72.2
debug: 4.4.3(supports-color@7.2.0)
typescript: 6.0.3
transitivePeerDependencies:
@ -3351,15 +3190,20 @@ snapshots:
'@typescript-eslint/types': 8.72.1
'@typescript-eslint/visitor-keys': 8.72.1
'@typescript-eslint/tsconfig-utils@8.72.1(typescript@6.0.3)':
'@typescript-eslint/scope-manager@8.72.2':
dependencies:
'@typescript-eslint/types': 8.72.2
'@typescript-eslint/visitor-keys': 8.72.2
'@typescript-eslint/tsconfig-utils@8.72.2(typescript@6.0.3)':
dependencies:
typescript: 6.0.3
'@typescript-eslint/type-utils@8.72.1(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)':
'@typescript-eslint/type-utils@8.72.2(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)':
dependencies:
'@typescript-eslint/types': 8.72.1
'@typescript-eslint/typescript-estree': 8.72.1(supports-color@7.2.0)(typescript@6.0.3)
'@typescript-eslint/utils': 8.72.1(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
'@typescript-eslint/types': 8.72.2
'@typescript-eslint/typescript-estree': 8.72.2(supports-color@7.2.0)(typescript@6.0.3)
'@typescript-eslint/utils': 8.72.2(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
debug: 4.4.3(supports-color@7.2.0)
eslint: 10.14.0(supports-color@7.2.0)
ts-api-utils: 2.5.0(typescript@6.0.3)
@ -3369,12 +3213,14 @@ snapshots:
'@typescript-eslint/types@8.72.1': {}
'@typescript-eslint/typescript-estree@8.72.1(supports-color@7.2.0)(typescript@6.0.3)':
'@typescript-eslint/types@8.72.2': {}
'@typescript-eslint/typescript-estree@8.72.2(supports-color@7.2.0)(typescript@6.0.3)':
dependencies:
'@typescript-eslint/project-service': 8.72.1(supports-color@7.2.0)(typescript@6.0.3)
'@typescript-eslint/tsconfig-utils': 8.72.1(typescript@6.0.3)
'@typescript-eslint/types': 8.72.1
'@typescript-eslint/visitor-keys': 8.72.1
'@typescript-eslint/project-service': 8.72.2(supports-color@7.2.0)(typescript@6.0.3)
'@typescript-eslint/tsconfig-utils': 8.72.2(typescript@6.0.3)
'@typescript-eslint/types': 8.72.2
'@typescript-eslint/visitor-keys': 8.72.2
debug: 4.4.3(supports-color@7.2.0)
minimatch: 10.2.6
semver: 7.8.5
@ -3384,12 +3230,12 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@typescript-eslint/utils@8.72.1(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)':
'@typescript-eslint/utils@8.72.2(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)':
dependencies:
'@eslint-community/eslint-utils': 4.10.1(eslint@10.14.0(supports-color@7.2.0))
'@typescript-eslint/scope-manager': 8.72.1
'@typescript-eslint/types': 8.72.1
'@typescript-eslint/typescript-estree': 8.72.1(supports-color@7.2.0)(typescript@6.0.3)
'@typescript-eslint/scope-manager': 8.72.2
'@typescript-eslint/types': 8.72.2
'@typescript-eslint/typescript-estree': 8.72.2(supports-color@7.2.0)(typescript@6.0.3)
eslint: 10.14.0(supports-color@7.2.0)
typescript: 6.0.3
transitivePeerDependencies:
@ -3400,6 +3246,11 @@ snapshots:
'@typescript-eslint/types': 8.72.1
eslint-visitor-keys: 5.0.1
'@typescript-eslint/visitor-keys@8.72.2':
dependencies:
'@typescript-eslint/types': 8.72.2
eslint-visitor-keys: 5.0.1
'@ungap/structured-clone@1.4.0': {}
'@vitest/coverage-v8@5.1.0(vitest@5.1.0)':
@ -3412,7 +3263,7 @@ snapshots:
obug: 3.0.0
std-env: 4.3.0
tinyrainbow: 3.2.0
vitest: 5.1.0(@types/node@26.6.6)(@vitest/coverage-v8@5.1.0)(jsdom@31.0.0)(vite@8.3.5(@types/node@26.6.6)(yaml@2.9.1))
vitest: 5.1.0(@types/node@26.6.6)(@vitest/coverage-v8@5.1.0)(jsdom@31.0.0)(vite@8.3.7(@types/node@26.6.6)(yaml@2.9.1))
'@vitest/istanbul-lib-coverage@2.1.0': {}
@ -3420,14 +3271,14 @@ snapshots:
dependencies:
'@vitest/istanbul-lib-coverage': 2.1.0
'@vitest/mocker@5.1.0(vite@8.3.5(@types/node@26.6.6)(yaml@2.9.1))':
'@vitest/mocker@5.1.0(vite@8.3.7(@types/node@26.6.6)(yaml@2.9.1))':
dependencies:
'@jridgewell/trace-mapping': 0.3.31
'@vitest/spy': 5.1.0
estree-walker: 3.0.3
magic-string: 1.4.5
optionalDependencies:
vite: 8.3.5(@types/node@26.6.6)(yaml@2.9.1)
vite: 8.3.7(@types/node@26.6.6)(yaml@2.9.1)
'@vitest/spy@5.1.0': {}
@ -3561,7 +3412,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
astro@7.4.7(@types/node@26.6.6)(yaml@2.9.1):
astro@7.4.8(@types/node@26.6.6)(yaml@2.9.1):
dependencies:
'@astrojs/compiler-rs': 0.5.2
'@astrojs/internal-helpers': 0.13.1
@ -3590,6 +3441,7 @@ snapshots:
jsonc-parser: 3.3.1
magic-string: 1.4.5
magicast: 0.5.5
mri: 1.2.0
mrmime: 2.0.1
neotraverse: 1.0.1
obug: 3.0.0
@ -3598,7 +3450,7 @@ snapshots:
package-manager-detector: 1.9.0
piccolore: 0.1.3
picomatch: 4.0.7
rolldown: 1.3.0
rolldown: 1.2.18
shiki: 4.6.0
smol-toml: 1.9.1
svgo: 4.1.0
@ -3610,10 +3462,9 @@ snapshots:
unifont: 1.0.3
unstorage: 1.17.6
verkit: 0.5.0
vite: 8.3.5(@types/node@26.6.6)(yaml@2.9.1)
vitefu: 1.1.3(vite@8.3.5(@types/node@26.6.6)(yaml@2.9.1))
vite: 8.3.7(@types/node@26.6.6)(yaml@2.9.1)
vitefu: 1.1.3(vite@8.3.7(@types/node@26.6.6)(yaml@2.9.1))
xxhash-wasm: 1.1.0
yargs-parser: 22.0.0
zod: 4.6.7
optionalDependencies:
sharp: 0.35.5(@types/node@26.6.6)
@ -3824,7 +3675,7 @@ snapshots:
escape-string-regexp@4.0.0: {}
eslint-plugin-astro@3.2.1(@typescript-eslint/parser@8.72.1(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript-eslint@8.72.1(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)):
eslint-plugin-astro@3.2.1(@typescript-eslint/parser@8.72.2(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript-eslint@8.72.2(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)):
dependencies:
'@eslint-community/eslint-utils': 4.10.1(eslint@10.14.0(supports-color@7.2.0))
'@jridgewell/sourcemap-codec': 1.6.0
@ -3837,8 +3688,8 @@ snapshots:
postcss-selector-parser: 7.1.7
synckit: 0.11.13
optionalDependencies:
'@typescript-eslint/parser': 8.72.1(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
typescript-eslint: 8.72.1(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
'@typescript-eslint/parser': 8.72.2(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
typescript-eslint: 8.72.2(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
transitivePeerDependencies:
- supports-color
@ -4224,6 +4075,8 @@ snapshots:
dependencies:
brace-expansion: 5.0.9
mri@1.2.0: {}
mrmime@2.0.1: {}
ms@2.1.3: {}
@ -4324,6 +4177,12 @@ snapshots:
picocolors: 1.1.1
source-map-js: 1.2.2
postcss@8.5.32:
dependencies:
nanoid: 3.3.20
picocolors: 1.1.1
source-map-js: 1.2.2
prelude-ls@1.2.1: {}
prettier@3.9.10: {}
@ -4381,48 +4240,26 @@ snapshots:
nlcst-to-string: 4.0.0
unist-util-visit: 5.2.0
rolldown@1.2.15:
rolldown@1.2.18:
dependencies:
'@oxc-project/types': 0.155.0
'@oxc-project/types': 0.156.0
'@rolldown/pluginutils': 1.0.1
optionalDependencies:
'@rolldown/binding-android-arm-eabi': 1.2.15
'@rolldown/binding-android-arm64': 1.2.15
'@rolldown/binding-darwin-arm64': 1.2.15
'@rolldown/binding-darwin-x64': 1.2.15
'@rolldown/binding-freebsd-x64': 1.2.15
'@rolldown/binding-linux-arm-gnueabihf': 1.2.15
'@rolldown/binding-linux-arm64-gnu': 1.2.15
'@rolldown/binding-linux-arm64-musl': 1.2.15
'@rolldown/binding-linux-ppc64-gnu': 1.2.15
'@rolldown/binding-linux-s390x-gnu': 1.2.15
'@rolldown/binding-linux-x64-gnu': 1.2.15
'@rolldown/binding-linux-x64-musl': 1.2.15
'@rolldown/binding-openharmony-arm64': 1.2.15
'@rolldown/binding-win32-arm64-msvc': 1.2.15
'@rolldown/binding-win32-x64-msvc': 1.2.15
rolldown@1.3.0:
dependencies:
'@oxc-project/types': 0.157.0
'@rolldown/pluginutils': 1.0.1
optionalDependencies:
'@rolldown/binding-android-arm-eabi': 1.3.0
'@rolldown/binding-android-arm64': 1.3.0
'@rolldown/binding-darwin-arm64': 1.3.0
'@rolldown/binding-darwin-x64': 1.3.0
'@rolldown/binding-freebsd-x64': 1.3.0
'@rolldown/binding-linux-arm-gnueabihf': 1.3.0
'@rolldown/binding-linux-arm64-gnu': 1.3.0
'@rolldown/binding-linux-arm64-musl': 1.3.0
'@rolldown/binding-linux-ppc64-gnu': 1.3.0
'@rolldown/binding-linux-s390x-gnu': 1.3.0
'@rolldown/binding-linux-x64-gnu': 1.3.0
'@rolldown/binding-linux-x64-musl': 1.3.0
'@rolldown/binding-openharmony-arm64': 1.3.0
'@rolldown/binding-wasm32-wasi': 1.3.0
'@rolldown/binding-win32-arm64-msvc': 1.3.0
'@rolldown/binding-win32-x64-msvc': 1.3.0
'@rolldown/binding-android-arm-eabi': 1.2.18
'@rolldown/binding-android-arm64': 1.2.18
'@rolldown/binding-darwin-arm64': 1.2.18
'@rolldown/binding-darwin-x64': 1.2.18
'@rolldown/binding-freebsd-x64': 1.2.18
'@rolldown/binding-linux-arm-gnueabihf': 1.2.18
'@rolldown/binding-linux-arm64-gnu': 1.2.18
'@rolldown/binding-linux-arm64-musl': 1.2.18
'@rolldown/binding-linux-ppc64-gnu': 1.2.18
'@rolldown/binding-linux-s390x-gnu': 1.2.18
'@rolldown/binding-linux-x64-gnu': 1.2.18
'@rolldown/binding-linux-x64-musl': 1.2.18
'@rolldown/binding-openharmony-arm64': 1.2.18
'@rolldown/binding-win32-arm64-msvc': 1.2.18
'@rolldown/binding-win32-x64-msvc': 1.2.18
satteri@0.11.6:
dependencies:
@ -4606,12 +4443,12 @@ snapshots:
dependencies:
semver: 7.8.5
typescript-eslint@8.72.1(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3):
typescript-eslint@8.72.2(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3):
dependencies:
'@typescript-eslint/eslint-plugin': 8.72.1(@typescript-eslint/parser@8.72.1(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
'@typescript-eslint/parser': 8.72.1(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
'@typescript-eslint/typescript-estree': 8.72.1(supports-color@7.2.0)(typescript@6.0.3)
'@typescript-eslint/utils': 8.72.1(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
'@typescript-eslint/eslint-plugin': 8.72.2(@typescript-eslint/parser@8.72.2(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
'@typescript-eslint/parser': 8.72.2(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
'@typescript-eslint/typescript-estree': 8.72.2(supports-color@7.2.0)(typescript@6.0.3)
'@typescript-eslint/utils': 8.72.2(eslint@10.14.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
eslint: 10.14.0(supports-color@7.2.0)
typescript: 6.0.3
transitivePeerDependencies:
@ -4627,8 +4464,6 @@ snapshots:
undici-types@8.9.0: {}
undici@8.12.1: {}
undici@8.12.4: {}
unified@11.0.5:
@ -4646,7 +4481,7 @@ snapshots:
css-tree: 3.2.1
fnv1a-64: 0.1.2
std-env: 4.3.0
undici: 8.12.1
undici: 8.12.4
unist-util-is@6.0.1:
dependencies:
@ -4700,26 +4535,26 @@ snapshots:
'@types/unist': 3.0.3
vfile-message: 4.0.3
vite@8.3.5(@types/node@26.6.6)(yaml@2.9.1):
vite@8.3.7(@types/node@26.6.6)(yaml@2.9.1):
dependencies:
lightningcss: 1.33.0
picomatch: 4.0.7
postcss: 8.5.31
rolldown: 1.2.15
postcss: 8.5.32
rolldown: 1.2.18
tinyglobby: 0.2.17
optionalDependencies:
'@types/node': 26.6.6
fsevents: 2.3.3
yaml: 2.9.1
vitefu@1.1.3(vite@8.3.5(@types/node@26.6.6)(yaml@2.9.1)):
vitefu@1.1.3(vite@8.3.7(@types/node@26.6.6)(yaml@2.9.1)):
optionalDependencies:
vite: 8.3.5(@types/node@26.6.6)(yaml@2.9.1)
vite: 8.3.7(@types/node@26.6.6)(yaml@2.9.1)
vitest@5.1.0(@types/node@26.6.6)(@vitest/coverage-v8@5.1.0)(jsdom@31.0.0)(vite@8.3.5(@types/node@26.6.6)(yaml@2.9.1)):
vitest@5.1.0(@types/node@26.6.6)(@vitest/coverage-v8@5.1.0)(jsdom@31.0.0)(vite@8.3.7(@types/node@26.6.6)(yaml@2.9.1)):
dependencies:
'@types/chai': 5.2.3
'@vitest/mocker': 5.1.0(vite@8.3.5(@types/node@26.6.6)(yaml@2.9.1))
'@vitest/mocker': 5.1.0(vite@8.3.7(@types/node@26.6.6)(yaml@2.9.1))
chai: 6.3.0
es-module-lexer: 2.3.2
expect-type: 1.4.0
@ -4730,7 +4565,7 @@ snapshots:
tinybench: 6.2.2
tinyexec: 1.3.1
tinyglobby: 0.2.17
vite: 8.3.5(@types/node@26.6.6)(yaml@2.9.1)
vite: 8.3.7(@types/node@26.6.6)(yaml@2.9.1)
why-is-node-running: 3.2.1
optionalDependencies:
'@types/node': 26.6.6

View File

@ -0,0 +1,50 @@
// Textgate check over the built site: list every chrome word a page paints
// before its custom elements hydrate (layout, page heads, command-button
// labels). Spoken-only text (.sr-only, aria-hidden, the focus-only skip link)
// is ignored. Exit 1 when any page paints a word, so it works as a gate.
//
// Usage: node scripts/visible_words.mjs [distDir] (run `pnpm build` first)
import { readdirSync, readFileSync, statSync } from 'node:fs'
import { join, relative } from 'node:path'
import { JSDOM } from 'jsdom'
const WORD_RE = /[A-Za-z]{2,}/
const SPOKEN = '.sr-only, [aria-hidden="true"], .skip, script, style, template'
/** @param {string} dir @returns {string[]} */
function htmlFiles(dir) {
return readdirSync(dir).flatMap((name) => {
const p = join(dir, name)
if (statSync(p).isDirectory()) return htmlFiles(p)
return name.endsWith('.html') ? [p] : []
})
}
/** @param {string} html @returns {string[]} */
export function visibleWords(html) {
const { document } = new JSDOM(html).window
for (const el of document.querySelectorAll(SPOKEN)) el.remove()
const out = []
const walker = document.createTreeWalker(document.body, 4 /* SHOW_TEXT */)
for (let n = walker.nextNode(); n; n = walker.nextNode()) {
const t = n.textContent?.trim() ?? ''
if (WORD_RE.test(t)) out.push(t)
}
// command-button paints its label attribute once it hydrates.
for (const el of document.querySelectorAll('command-button[label]')) {
const t = el.getAttribute('label') ?? ''
if (WORD_RE.test(t)) out.push(`[button] ${t}`)
}
return out
}
const dist = process.argv[2] ?? 'dist'
let total = 0
for (const file of htmlFiles(dist).sort()) {
const words = visibleWords(readFileSync(file, 'utf8'))
total += words.length
if (words.length) console.log(`${relative(dist, file)} (${words.length}): ${words.join(' | ')}`)
}
console.log(`total: ${total}`)
process.exit(total ? 1 : 0)

View File

@ -45,14 +45,14 @@ describe('<runner-dialog> start failures', () => {
it('has no fallback for a command without one', async () => {
openRunner([makeSpec('scan')], 'scan', { extra: { 'POST /api/jobs': apiError(502, 'daemon_unreachable') } })
submit(await found('Run scan'))
await waitText('Root daemon unreachable')
await vi.waitFor(() => { expect(document.querySelector('[data-code="daemon_unreachable"]')).not.toBeNull() })
expect(text()).not.toContain('terminal instead')
})
it('copes with a garbled reply', async () => {
openRunner([makeSpec('scan')], 'scan', { extra: { 'POST /api/jobs': new Reply(200, undefined, '{garbled') } })
submit(await found('Run scan'))
await waitText('Unexpected server error')
await vi.waitFor(() => { expect(document.querySelector('[data-code="http"]')).not.toBeNull() })
})
it('shows Starting… while waiting', async () => {

View File

@ -7,6 +7,6 @@ const { title = 'Actions' } = Astro.props
---
<section class="actions-block" aria-label={title}>
<h2>{title}</h2>
<h2 class="sr-only">{title}</h2>
<div class="cmd-grid"><slot /></div>
</section>

View File

@ -1,5 +1,5 @@
---
// Page title, optional subtitle (text prop or `sub` slot) and action buttons
// Page title and optional subtitle (spoken only, textgate) plus action buttons
// (default slot). Was ui/Page.tsx PageHead.
interface Props {
title: string
@ -11,9 +11,9 @@ const hasActions = Astro.slots.has('default')
<header class="page-head">
<div>
<h1>{title}</h1>
{sub && <p class="sub">{sub}</p>}
{Astro.slots.has('sub') && <p class="sub"><slot name="sub" /></p>}
<h1 class="sr-only">{title}</h1>
{sub && <p class="sr-only">{sub}</p>}
{Astro.slots.has('sub') && <p class="sr-only"><slot name="sub" /></p>}
</div>
{hasActions && <div class="page-actions"><slot /></div>}
</header>

View File

@ -11,7 +11,8 @@ describe('<job-progress> log', () => {
const { el, send } = mountJob()
send('log', { level: 'info', message: 'hello' })
send('log', { level: 'warning', message: 'careful' })
expect(sel(el, 'summary')).toHaveTextContent('Log (2 lines)')
expect(sel(el, '.log-count')).toHaveTextContent('2')
expect(sel(el, 'summary')).toHaveAttribute('aria-label', '2 lines')
expect(el.querySelectorAll('.log li')).toHaveLength(2)
expect(sel(el, '.log-info')).toHaveTextContent('10:00:00 hello')
expect(sel(el, '.log-warning')).toHaveTextContent('careful')
@ -46,7 +47,7 @@ describe('<job-progress> log', () => {
it('says nothing has been printed yet', () => {
const { el } = mountJob()
expect(sel(el, '.log')).toHaveTextContent('No output yet.')
expect(sel(el, '.log-empty')).toHaveAttribute('aria-label', 'No output yet.')
})
it('rebuilds the list when the newest-lines window slides', () => {
@ -79,7 +80,7 @@ describe('<job-progress> lifecycle', () => {
el.remove()
document.body.append(el)
expect(sel(el, 'section')).not.toBe(section)
expect(sel(el, 'summary')).toHaveTextContent('Log (1 lines)')
expect(sel(el, '.log-count')).toHaveTextContent('1')
expect(sel(el, 'details')).toHaveAttribute('open')
})
})

View File

@ -27,10 +27,11 @@ describe('eta', () => {
describe('<job-progress>', () => {
it('starts from the fetched job and shows "Starting…" before any progress', async () => {
const { el } = mountJob({ job: { state: 'running' } })
expect(text(el)).toContain('Starting…')
expect(text(el)).toContain('Queued')
expect(sel(el, 'h3')).toHaveTextContent('Job')
await vi.waitFor(() => { expect(text(el)).toContain('Running') })
expect(sel(el, '.job-label')?.textContent).toBe('')
expect(sel(el, 'section')).toHaveAttribute('data-state', 'queued')
expect(sel(el, '.pill')).toHaveAttribute('aria-label', 'queued')
expect(sel(el, 'h3')?.textContent).toBe('')
await vi.waitFor(() => { expect(sel(el, 'section')).toHaveAttribute('data-state', 'running') })
expect(sel(el, 'h3')).toHaveTextContent('Scan')
expect(sel(el, '[role=progressbar]')).not.toHaveAttribute('aria-valuenow')
expect(sel(el, 'section')).toHaveAttribute('aria-label', 'Job Scan')
@ -45,17 +46,17 @@ describe('<job-progress>', () => {
const { el, send } = mountJob()
send('progress', { step: 3, total: 10, label: 'Scanning library', item: 'Hollow Knight', eta_seconds: 9 })
expect(sel(el, '.job-label')).toHaveTextContent('Scanning library')
expect(text(el)).toContain('Step 3 of 10')
expect(sel(el, '.job-step')).toHaveTextContent('3/10')
expect(sel(el, '.job-item')).toHaveTextContent('Hollow Knight')
expect(sel(el, '.job-eta')).toHaveTextContent('about 0:09 left')
expect(sel(el, '.job-eta')).toHaveTextContent('0:09')
expect(sel(el, '[role=progressbar]')).toHaveAttribute('aria-valuenow', '30')
})
it('says "working…" for an unbounded phase', () => {
const { el, send } = mountJob()
send('progress', { step: 4, total: null, label: 'Reading' })
expect(sel(el, '.job-eta')).toHaveTextContent('working…')
expect(text(el)).not.toMatch(/Step \d/)
expect(sel(el, '.job-eta')?.textContent).toBe('')
expect(sel(el, '.job-step')).toBeNull()
expect(sel(el, '[role=progressbar]')).not.toHaveAttribute('aria-valuenow')
})
@ -72,7 +73,7 @@ describe('<job-progress>', () => {
send('progress', { step: 1, total: 5, label: 'Working' })
await vi.advanceTimersByTimeAsync(10_000)
send('progress', { step: 2, total: 5, label: 'Working' })
expect(sel(el, '.job-eta')).toHaveTextContent('about 0:15 left')
expect(sel(el, '.job-eta')).toHaveTextContent('0:15')
})
it('falls back to the fetched job’s progress', async () => {
@ -83,15 +84,14 @@ describe('<job-progress>', () => {
it('shows the connection state', () => {
const { el, es } = mountJob()
expect(text(el)).toContain('Reconnecting')
expect(sel(el, '.dot')).toHaveClass('dot-off')
es.onopen?.()
expect(text(el)).toContain('Live')
expect(sel(el, '.dot')).toHaveClass('dot-live')
})
it('works without a job-id attribute', () => {
document.body.innerHTML = '<job-progress></job-progress>'
expect(document.body.firstElementChild?.querySelector('h3')).toHaveTextContent('Job')
expect(document.body.firstElementChild?.querySelector('section')).toHaveAttribute('aria-label', 'Job ')
})
})
@ -101,8 +101,9 @@ describe('<job-progress> waiting for input', () => {
send('prompt', { prompt_id: 'q', kind: 'text', message: 'Name?' })
expect(sel(el, 'form')).toBeNull()
send('state', { state: 'waiting_input' })
expect(text(el)).toContain('Waiting for your answer')
expect(sel(el, '.job-eta')).toHaveTextContent('paused')
expect(sel(el, 'section')).toHaveAttribute('data-state', 'waiting_input')
expect(sel(el, '.job-label')).toHaveTextContent('⏳')
expect(sel(el, '.job-eta')?.textContent).toBe('')
expect(sel(el, 'form')).toHaveAttribute('aria-label', 'Job question')
expect(button(el, 'Cancel job')).toBeInTheDocument()
expect(sel(el, '[role=progressbar]')?.className).toContain('bar-warning')
@ -144,14 +145,14 @@ describe('<job-progress> when finished', () => {
const { el, send } = mountJob({ cancellable: true })
send('state', { state: 'succeeded' })
send('result', { ok: true, summary: 'All 12 scanned' })
expect(sel(el, '.job-label')).toHaveTextContent('Completed')
expect(text(el)).toContain('Done')
expect(sel(el, '.job-label')).toHaveTextContent('✅')
expect(sel(el, 'section')).toHaveAttribute('data-state', 'succeeded')
expect(text(el)).toContain('All 12 scanned')
expect(sel(el, '[role=progressbar]')).toHaveAttribute('aria-valuenow', '100')
expect(sel(el, '[role=progressbar]')?.className).toContain('bar-success')
expect(text(el)).not.toContain('Cancel job')
expect(el.querySelector('[aria-label="Cancel job"]')).toBeNull()
expect(sel(el, 'details')).toHaveAttribute('open')
expect(text(el)).toContain('No output.')
expect(sel(el, '.log-empty')).toHaveAttribute('aria-label', 'No output.')
expect(sel(el, '.job-sub')).toBeNull()
expect(sel(el, '.dot')).toBeNull()
})
@ -160,11 +161,11 @@ describe('<job-progress> when finished', () => {
const failed = mountJob()
failed.send('state', { state: 'failed' })
failed.send('result', { ok: false, summary: 'boom' })
expect(text(failed.el)).toContain('Did not complete')
expect(sel(failed.el, '.job-label')).toHaveTextContent('Failed')
expect(sel(failed.el, 'section')).toHaveAttribute('data-state', 'failed')
expect(sel(failed.el, '.job-label')).toHaveTextContent('⛔')
expect(sel(failed.el, '[role=progressbar]')?.className).toContain('bar-danger')
const cancelled = mountJob()
cancelled.send('state', { state: 'cancelled' })
expect(sel(cancelled.el, '.job-label')).toHaveTextContent('Cancelled')
expect(sel(cancelled.el, '.job-label')).toHaveTextContent('🚫')
})
})

View File

@ -26,12 +26,12 @@ export function eta(p: Progress, live: LiveJob, now: number): number | null {
}
const DONE: ReadonlySet<JobState> = new Set(['succeeded', 'failed', 'cancelled'])
const FINISHED_LABEL: Record<'succeeded' | 'failed' | 'cancelled', string> = {
succeeded: 'Completed',
failed: 'Failed',
cancelled: 'Cancelled',
const DONE_LABEL: Record<'succeeded' | 'failed' | 'cancelled', string> = {
succeeded: '✅',
failed: '⛔',
cancelled: '🚫',
}
const isDone = (s: JobState): s is keyof typeof FINISHED_LABEL => DONE.has(s)
const isDone = (s: JobState): s is keyof typeof DONE_LABEL => DONE.has(s)
export class JobProgressElement extends LiveElement {
private cancel = new Action(() => api.cancelJob(this.jobId), () => {
@ -125,9 +125,10 @@ export class JobProgressElement extends LiveElement {
const fraction = finished ? 1 : progress && progress.total !== null && progress.total > 0 ? progress.step / progress.total : null
const tone = state === 'failed' ? 'danger' : state === 'succeeded' ? 'success' : waiting ? 'warning' : 'accent'
const remaining = progress && !finished && !waiting ? eta(progress, live, now) : null
const title = job ? commandLabel(job.command) : 'Job'
const title = job ? commandLabel(job.command) : ''
f.section.className = compact ? 'job job-compact' : 'job'
f.section.dataset.state = state
f.section.setAttribute('aria-label', `Job ${job ? commandLabel(job.command) : id}`)
f.title.textContent = title
f.badge.replaceChildren(stateBadge(state))
@ -137,21 +138,20 @@ export class JobProgressElement extends LiveElement {
? ''
: h(
'span',
{ class: live.connected ? 'dot dot-live' : 'dot dot-off', title: live.connected ? 'Live' : 'Reconnecting…' },
h('span', { class: 'sr-only' }, live.connected ? 'Live' : 'Reconnecting'),
{ class: live.connected ? 'dot dot-live' : 'dot dot-off', role: 'img', 'aria-label': live.connected ? 'Live' : 'Reconnecting' },
),
)
f.phase.replaceChildren(
h(
'span',
{ class: 'job-label' },
isDone(state) ? FINISHED_LABEL[state] : waiting ? 'Waiting for your answer' : (progress?.label ?? 'Starting…'),
isDone(state) ? DONE_LABEL[state] : waiting ? '⏳' : (progress?.label ?? ''),
),
!finished && progress && progress.total !== null
? h('span', { class: 'job-step' }, `Step ${progress.step} of ${progress.total}`)
? h('span', { class: 'job-step' }, `${progress.step}/${progress.total}`)
: '',
)
f.bar.replaceChildren(progressBar(fraction, progress?.label ?? 'Progress', tone))
f.bar.replaceChildren(progressBar(fraction, progress?.label ?? '', tone))
f.sub.replaceChildren(
...(finished
? []
@ -163,7 +163,7 @@ export class JobProgressElement extends LiveElement {
h(
'span',
{ class: 'job-eta' },
remaining !== null ? `about ${clock(remaining)} left` : waiting ? 'paused' : progress?.total === null ? 'working…' : '',
remaining !== null ? clock(remaining) : '',
),
),
]),
@ -171,7 +171,7 @@ export class JobProgressElement extends LiveElement {
this.updatePrompt(f, live, state)
f.result.replaceChildren(
...(live.result
? [notice(live.result.ok ? 'success' : 'danger', live.result.ok ? 'Done' : 'Did not complete', live.result.summary)]
? [notice(live.result.ok ? 'success' : 'danger', null, live.result.summary)]
: []),
)
f.actions.replaceChildren(
@ -183,8 +183,8 @@ export class JobProgressElement extends LiveElement {
{ class: 'actions' },
h(
'button',
{ type: 'button', class: 'btn btn-ghost', disabled: this.cancel.pending, onclick: () => void this.cancel.run() },
this.cancel.pending ? 'Cancelling…' : 'Cancel job',
{ type: 'button', class: 'btn btn-ghost', disabled: this.cancel.pending, onclick: () => void this.cancel.run(), 'aria-label': this.cancel.pending ? 'Cancelling…' : 'Cancel job' },
this.cancel.pending ? '⏳' : '✕',
),
),
]
@ -204,14 +204,18 @@ export class JobProgressElement extends LiveElement {
private updateLog(f: NonNullable<JobProgressElement['frame']>, live: LiveJob, finished: boolean, compact: boolean): void {
const logs = live.logs
f.summary.textContent = `Log (${logs.length} lines)`
f.summary.replaceChildren(
h('span', { class: 'log-count-icon', 'aria-hidden': 'true' }, '📋'),
h('span', { class: 'log-count', 'aria-hidden': 'true' }, String(logs.length)),
)
f.summary.setAttribute('aria-label', `${logs.length} lines`)
// Open once on errors or at the end; after that the user owns the toggle.
if (!this.autoOpened && !compact && (finished || logs.some((l) => l.level === 'error'))) {
f.details.open = true
this.autoOpened = true
}
if (logs.length === 0) {
f.log.replaceChildren(h('li', { class: 'muted' }, finished ? 'No output.' : 'No output yet.'))
f.log.replaceChildren(h('li', { class: 'muted log-empty', 'aria-label': finished ? 'No output.' : 'No output yet.' }, finished ? '—' : ''))
this.logCount = 0
return
}

View File

@ -3,17 +3,18 @@ import type { JobState } from '../api/jobContract'
import { progressBar, stateBadge } from './progress'
describe('stateBadge', () => {
it.each<[JobState, string, string]>([
['queued', 'Queued', 'neutral'],
['running', 'Running', 'accent'],
['waiting_input', 'Needs your input', 'warning'],
['succeeded', 'Succeeded', 'success'],
['failed', 'Failed', 'danger'],
['cancelled', 'Cancelled', 'neutral'],
])('labels %s', (state, label, tone) => {
it.each<[JobState, string]>([
['queued', 'neutral'],
['running', 'accent'],
['waiting_input', 'warning'],
['succeeded', 'success'],
['failed', 'danger'],
['cancelled', 'neutral'],
])('labels %s', (state, tone) => {
const el = stateBadge(state)
expect(el.textContent).toBe(label)
expect(el.getAttribute('aria-label')).toBe(state)
expect(el.className).toBe(`pill pill-${tone}`)
expect(el.querySelector('.pill-icon')).not.toBeNull()
})
})

View File

@ -3,13 +3,13 @@
import type { JobState } from '../api/jobContract'
import { h } from '../lib/dom'
const STATE_LABEL: Record<JobState, string> = {
queued: 'Queued',
running: 'Running',
waiting_input: 'Needs your input',
succeeded: 'Succeeded',
failed: 'Failed',
cancelled: 'Cancelled',
const STATE_ICON: Record<JobState, string> = {
queued: '⏸️',
running: '▶️',
waiting_input: '⚠️',
succeeded: '✅',
failed: '⛔',
cancelled: '🚫',
}
const STATE_TONE: Record<JobState, string> = {
@ -22,7 +22,7 @@ const STATE_TONE: Record<JobState, string> = {
}
export function stateBadge(state: JobState): HTMLSpanElement {
return h('span', { class: `pill pill-${STATE_TONE[state]}` }, STATE_LABEL[state])
return h('span', { class: `pill pill-${STATE_TONE[state]}`, 'aria-label': state }, h('span', { class: 'pill-icon', 'aria-hidden': 'true' }, STATE_ICON[state]))
}
export type BarTone = 'accent' | 'success' | 'danger' | 'warning'

View File

@ -38,7 +38,7 @@ const href = (to: string) => (to === '/' ? '/' : `${to}/`)
<aside class="sidebar">
<div class="brand">
<span class="brand-mark" aria-hidden="true"></span>
<span>Backlog<br />Enforcer</span>
<span class="sr-only">Backlog Enforcer</span>
</div>
<nav aria-label="Sections">
<ul class="nav">
@ -49,9 +49,11 @@ const href = (to: string) => (to === '/' ? '/' : `${to}/`)
href={href(n.to)}
class={isActive(n.to) ? 'nav-link active' : 'nav-link'}
aria-current={isActive(n.to) ? 'page' : undefined}
aria-label={n.label}
aria-keyshortcuts={`Alt+${n.key}`}
>
<span>{n.label}</span>
<kbd aria-hidden="true">Alt {n.key}</kbd>
<span class="nav-icon" aria-hidden="true">{n.icon}</span>
<kbd aria-hidden="true">{n.key}</kbd>
</a>
</li>
))
@ -61,8 +63,8 @@ const href = (to: string) => (to === '/' ? '/' : `${to}/`)
</aside>
<div class="main-col">
<header class="topbar">
<button type="button" class="btn btn-ghost palette-btn" data-open-palette aria-keyshortcuts="Control+K">
Commands <kbd>Ctrl K</kbd>
<button type="button" class="btn btn-ghost palette-btn" data-open-palette aria-keyshortcuts="Control+K" aria-label="Commands">
<span aria-hidden="true">🔍</span> <kbd aria-hidden="true">⌃K</kbd>
</button>
<job-indicator></job-indicator>
<span class="grow"></span>

View File

@ -37,17 +37,16 @@ describe('timelineChart', () => {
it('shows a fallback message with fewer than two games', () => {
const box = chart(1)
expect(box.textContent).toContain('Not enough games in scope to draw a timeline.')
expect(box.querySelector('h2')?.textContent).toBe('Completion timeline')
expect(box.querySelector('.empty-icon')).not.toBeNull()
expect(box.querySelector('.sr-only')?.textContent).toBe('Not enough games in scope to draw a timeline.')
expect(box.querySelector('svg')).toBeNull()
})
it('draws an SVG line for the hours basis', () => {
const box = chart(3, 'leisure')
expect(box.querySelector('h2')?.textContent).toBe('Completion timeline · leisure')
expect(box.querySelector('svg.chart-svg')).not.toBeNull()
expect(box.querySelector('path.line')?.getAttribute('d')).toMatch(/^M[\d.]+ [\d.]+ L/)
expect(box.querySelector('path.area')?.getAttribute('d')).toMatch(/ Z$/)
expect(box.querySelector('.hint')?.textContent).toMatch(/shortest games first/)
})
it('labels the y axis in games and the x axis in dates from now', () => {

View File

@ -56,7 +56,7 @@ export function timelineSvg(pts: readonly TimelinePoint[], now: Date = new Date(
const area = `${path} L${sx(maxDay).toFixed(1)} ${sy(0).toFixed(1)} L${sx(0).toFixed(1)} ${sy(0).toFixed(1)} Z`
const fractions = [0, 0.25, 0.5, 0.75, 1]
const root = svg('svg', { viewBox: `0 0 ${W} ${H}`, class: 'chart-svg', role: 'img', 'aria-label': 'Completion timeline' })
const root = svg('svg', { viewBox: `0 0 ${W} ${H}`, class: 'chart-svg', role: 'img', 'aria-label': 'Games completion timeline chart' })
for (const g of fractions.map((f) => Math.round(f * maxGames))) {
const group = svg('g', {})
group.append(
@ -72,7 +72,7 @@ export function timelineSvg(pts: readonly TimelinePoint[], now: Date = new Date(
return root
}
/** The whole `.chart` box: title, SVG (or why there is none) and caption. */
/** The whole `.chart` box: SVG (or why there is none) and caption. */
export function timelineChart(
result: EstimateResult,
filters: Filters,
@ -82,17 +82,13 @@ export function timelineChart(
const pts = timelinePoints(result, filters, state)
const box = document.createElement('div')
box.className = 'chart'
const title = document.createElement('h2')
const hint = document.createElement('p')
hint.className = 'hint'
if (pts.length < 2) {
title.textContent = 'Completion timeline'
hint.textContent = 'Not enough games in scope to draw a timeline.'
box.append(title, hint)
const hint = document.createElement('p')
hint.className = 'hint empty-state'
hint.innerHTML = '<span class="empty-icon" aria-hidden="true">📭</span><span class="sr-only">Not enough games in scope to draw a timeline.</span>'
box.append(hint)
return box
}
title.textContent = `Completion timeline · ${filters.basis}`
hint.textContent = 'Cumulative games finished over time (shortest games first).'
box.append(title, timelineSvg(pts, now), hint)
box.append(timelineSvg(pts, now))
return box
}

View File

@ -6,5 +6,5 @@ import Shell from '../layouts/Shell.astro'
<Shell title="Not found">
<PageHead title="Not found" sub="There is no screen at this address." />
<div class="actions"><a href="/" class="btn btn-primary">Back to the dashboard</a></div>
<div class="actions"><a href="/" class="btn btn-primary" aria-label="Back to the dashboard"><span aria-hidden="true">🏠</span></a></div>
</Shell>

View File

@ -28,7 +28,6 @@ describe('<game-table> planner', () => {
expect(big()).toBe('2')
await user.click(panel().getByRole('button', { name: 'Rush' }))
expect(document.querySelector('.card.active .card-title')?.textContent).toBe('Rush')
expect(document.querySelector('.chart h2')?.textContent).toBe('Completion timeline · rush')
expect(hash().get('basis')).toBe('rush')
const box = within(table()).getAllByRole('checkbox')[0]
@ -42,13 +41,13 @@ describe('<game-table> planner', () => {
expect(big()).toBe('2')
expect(box.closest('tr')).not.toHaveClass('excluded')
await user.type(screen.getByPlaceholderText(/Search games/i), 'Alpha')
await user.type(screen.getByLabelText('Search games'), 'Alpha')
expect(names()).toEqual(['Alpha'])
await user.click(screen.getByRole('button', { name: /Reset to CLI defaults/i }))
expect(big()).toBe('2')
expect(names()).toHaveLength(2)
expect(screen.getByPlaceholderText(/Search games/i)).toHaveValue('')
expect(screen.getByLabelText('Search games')).toHaveValue('')
expect(location.hash).toBe('')
})
@ -85,11 +84,11 @@ describe('<game-table> planner', () => {
it('restores sort, search, column and planner filters from the hash on load', async () => {
history.replaceState(null, '', '/backlog/#sort=name&dir=desc&q=a&f.rush=1..15&f.proton=gold&basis=worst')
await show()
expect(screen.getByPlaceholderText(/Search games/i)).toHaveValue('a')
expect(screen.getByLabelText('Search games')).toHaveValue('a')
expect(screen.getByRole('spinbutton', { name: 'Rush min' })).toHaveValue(1)
expect(screen.getByRole('spinbutton', { name: 'Rush max' })).toHaveValue(15)
expect(screen.getByRole('combobox', { name: 'Filter ProtonDB' })).toHaveValue('gold')
expect(header('Game').textContent).toBe('Game ▼')
expect(header('Game').textContent).toBe('🎮 ▼')
expect(panel().getByRole('button', { name: 'Worst' })).toHaveClass('active')
expect(names()).toEqual(['Alpha'])
})

View File

@ -11,14 +11,14 @@ afterEach(() => {
describe('<game-table> table', () => {
it('renders the row count', async () => {
await show()
expect(screen.getByText('Games (3)')).toBeInTheDocument()
expect(document.querySelector('.games-count')?.textContent).toBe('3')
})
it('sorts by leisure ascending by default', async () => {
await show()
expect(names()).toEqual(['Beta', 'Gamma', 'Alpha'])
expect(header('Leisure')).toHaveAttribute('aria-sort', 'ascending')
expect(header('Leisure').textContent).toBe('Leisure ▲')
expect(header('Leisure').textContent).toBe('🐢 ▲')
})
it('toggles sort direction when a header is clicked', async () => {
@ -50,13 +50,13 @@ describe('<game-table> table', () => {
it('filters by a typo-tolerant search and keeps focus while typing', async () => {
const { user } = await show()
const box = screen.getByPlaceholderText(/Search games/i)
const box = screen.getByLabelText('Search games')
await user.type(box, 'gama')
expect(names()).toEqual(['Gamma'])
expect(document.activeElement).toBe(box)
expect(screen.getByPlaceholderText(/Search games/i)).toBe(box)
expect(screen.getByLabelText('Search games')).toBe(box)
expect(hash().get('q')).toBe('gama')
expect(screen.getByText('Games (1)')).toBeInTheDocument()
expect(document.querySelector('.games-count')?.textContent).toBe('1')
})
it('narrows rows by a text column filter without losing focus', async () => {
@ -116,12 +116,12 @@ describe('<game-table> table', () => {
it('caps the table and notes the overflow', async () => {
await show(Array.from({ length: 301 }, (_, i) => makeGame({ app_id: i + 1, name: `Game ${i}` })))
expect(screen.getByText(/Showing first 300 of 301/i)).toBeVisible()
expect(screen.getByText('300/301')).toBeVisible()
expect(table().querySelectorAll('tbody tr')).toHaveLength(300)
})
it('hides the overflow note under the cap', async () => {
await show()
expect(screen.getByText(/Showing first 300/i)).not.toBeVisible()
expect(document.querySelector('.overflow-hint')).not.toBeVisible()
})
})

View File

@ -36,16 +36,30 @@ export function hltbUrl(game: WebGame): string {
const optionLabel = (c: Column, v: string) => (c.key === 'keep' ? (v === 'kept' ? 'Kept' : 'Excluded') : v)
// Textgate: column headers are pictograms; the column name is the button's
// aria-label (spoken only), the sort arrow stays visible.
const COLUMN_ICON: Record<ColumnKey, string> = {
name: '🎮',
completion: '%',
playtime: '⏱',
rush: '🐇',
leisure: '🐢',
worst: '🐌',
count_comp: '#',
proton: '🐧',
keep: '📌',
}
export class PlannerTable {
readonly el: HTMLElement
private readonly opts: PlannerTableOptions
private readonly count = h('h2')
private readonly search = h('input', { type: 'search', placeholder: 'Search games…', 'aria-label': 'Search games' })
private readonly count = h('span', { class: 'games-count', 'aria-label': 'Visible games' })
private readonly search = h('input', { type: 'search', 'aria-label': 'Search games', placeholder: '' })
private readonly heads: [Column, HTMLTableCellElement, HTMLButtonElement][] = []
private readonly inputs = new Map<string, HTMLInputElement | HTMLSelectElement>()
private readonly selects: [Column, HTMLSelectElement][] = []
private readonly tbody = h('tbody')
private readonly overflow = h('p', { class: 'hint' })
private readonly overflow = h('span', { class: 'overflow-hint' })
private readonly rows = new Map<number, RowEls>()
constructor(opts: PlannerTableOptions) {
@ -66,13 +80,15 @@ export class PlannerTable {
show(all: readonly GameRow[], visible: readonly GameRow[], table: TableState): void {
this.syncOptions(all, table)
this.syncHeads(table)
this.count.textContent = `Games (${visible.length})`
this.count.textContent = String(visible.length)
this.count.setAttribute('aria-label', `${visible.length} visible games`)
const trs = visible.slice(0, DISPLAY_CAP).map((r) => this.rowFor(r))
const current = this.tbody.children
// Re-order only when the order changed: moving a row would blur its checkbox.
if (trs.length !== current.length || trs.some((tr, i) => current[i] !== tr)) this.tbody.replaceChildren(...trs)
this.overflow.hidden = visible.length <= DISPLAY_CAP
this.overflow.textContent = `Showing first ${DISPLAY_CAP} of ${visible.length}. Use search to narrow.`
this.overflow.textContent = `${DISPLAY_CAP}/${visible.length}`
this.overflow.setAttribute('aria-label', `Showing first ${DISPLAY_CAP} of ${visible.length} games`)
}
private build(): HTMLElement {
@ -86,7 +102,7 @@ export class PlannerTable {
}
if (c.filter === 'range') {
const bound = (side: 'min' | 'max') =>
field(`${c.key}.${side}`, h('input', { type: 'number', inputmode: 'decimal', placeholder: side, 'aria-label': `${c.label} ${side}` }))
field(`${c.key}.${side}`, h('input', { type: 'number', inputmode: 'decimal', placeholder: side === 'min' ? '≥' : '≤', 'aria-label': `${c.label} ${side}` }))
return h('td', { class: 'range-filter' }, h('div', {}, bound('min'), bound('max')))
}
if (c.filter === 'select') {
@ -94,11 +110,11 @@ export class PlannerTable {
this.selects.push([c, select])
return h('td', {}, field(c.key, select))
}
return h('td', {}, field(c.key, h('input', { type: 'search', placeholder: 'Filter…', 'aria-label': `Filter ${c.label}` })))
return h('td', {}, field(c.key, h('input', { type: 'search', placeholder: '', 'aria-label': `Filter ${c.label}` })))
}
const headCell = (c: Column): HTMLTableCellElement => {
const button = h('button', { type: 'button', class: 'sort-btn' }, c.label)
const th = h('th', { class: c.numeric ? 'num clickable' : 'clickable', scope: 'col' }, button)
const button = h('button', { type: 'button', class: 'sort-btn', 'aria-label': c.label }, COLUMN_ICON[c.key])
const th = h('th', { class: c.numeric ? 'num clickable' : 'clickable', scope: 'col', 'aria-label': c.label }, button)
th.addEventListener('click', () => {
this.opts.onSort(c.key)
})
@ -177,7 +193,7 @@ export class PlannerTable {
for (const [c, th, button] of this.heads) {
const active = c.key === table.sort
const arrow = active ? (table.asc ? ' ▲' : ' ▼') : ''
button.textContent = `${c.label}${arrow}`
button.textContent = `${COLUMN_ICON[c.key]}${arrow}`
if (active) th.setAttribute('aria-sort', table.asc ? 'ascending' : 'descending')
else th.removeAttribute('aria-sort')
}

View File

@ -233,7 +233,7 @@ describe('Dashboard', () => {
expect(document.querySelectorAll('.rows .row-link')).toHaveLength(5)
const first = document.querySelector('a[href="/jobs/?id=a"]')
expect(first).toHaveTextContent('Scan')
expect(first).toHaveTextContent('Succeeded')
expect(first?.querySelector('.pill')).toHaveAttribute('aria-label', 'succeeded')
expect(screen.queryByText(/No jobs yet/)).not.toBeInTheDocument()
})

View File

@ -41,7 +41,7 @@ describe('jobs list', () => {
expect(screen.getByText('1:05')).toBeInTheDocument()
expect(screen.getByText('Picked 5')).toBeInTheDocument()
expect(screen.getByText('Scanning')).toBeInTheDocument()
expect(screen.getAllByText('Running')).toHaveLength(2)
expect(screen.getAllByLabelText('running')).toHaveLength(2)
})
it('keeps the table and its links across ticks, updating only durations', async () => {

View File

@ -2,19 +2,21 @@ import type { SectionPath } from '../commands/catalog'
export interface NavItem {
to: SectionPath | '/jobs'
/** Spoken only (aria-label); the sidebar paints `icon`. */
label: string
blurb: string
/** Alt+<key> accelerator, shown in the sidebar. */
icon: string
/** Alt+<key> accelerator, shown in the sidebar as the bare digit. */
key: string
}
export const NAV: NavItem[] = [
{ to: '/', label: 'Dashboard', blurb: 'Status, budget and quick actions', key: '1' },
{ to: '/backlog', label: 'Backlog', blurb: 'Planner, stats and the full game list', key: '2' },
{ to: '/picks', label: 'Picks', blurb: 'Check, done, pick, scan, manual picks', key: '3' },
{ to: '/gaming', label: 'Gaming', blurb: 'Daily budget, reset, block, unblock', key: '4' },
{ to: '/library', label: 'Library', blurb: 'All your games, installed, install, uninstall, hide', key: '5' },
{ to: '/store', label: 'Store', blurb: 'Unblock, buy DLC, exceptions', key: '6' },
{ to: '/jobs', label: 'Jobs', blurb: 'Running and past jobs', key: '7' },
{ to: '/system', label: 'System', blurb: 'Daemon, server, backups, reset, setup', key: '8' },
{ to: '/', label: 'Dashboard', blurb: 'Status, budget and quick actions', icon: '🏠', key: '1' },
{ to: '/backlog', label: 'Backlog', blurb: 'Planner, stats and the full game list', icon: '📚', key: '2' },
{ to: '/picks', label: 'Picks', blurb: 'Check, done, pick, scan, manual picks', icon: '🎯', key: '3' },
{ to: '/gaming', label: 'Gaming', blurb: 'Daily budget, reset, block, unblock', icon: '🎮', key: '4' },
{ to: '/library', label: 'Library', blurb: 'All your games, installed, install, uninstall, hide', icon: '🗂️', key: '5' },
{ to: '/store', label: 'Store', blurb: 'Unblock, buy DLC, exceptions', icon: '🛒', key: '6' },
{ to: '/jobs', label: 'Jobs', blurb: 'Running and past jobs', icon: '⚙️', key: '7' },
{ to: '/system', label: 'System', blurb: 'Daemon, server, backups, reset, setup', icon: '🖥️', key: '8' },
]

View File

@ -45,7 +45,8 @@ kbd {
/* ── Shell ── */
.shell {
display: grid;
grid-template-columns: 13rem minmax(0, 1fr);
/* Icon rail: nav paints glyph + digit only (textgate). */
grid-template-columns: 6rem minmax(0, 1fr);
min-height: 100dvh;
}
.sidebar {
@ -86,6 +87,7 @@ kbd {
.nav-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--surface-2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.nav-link kbd { opacity: 0.7; }
.nav-icon { font-size: var(--text-subtitle); line-height: 1; }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar {

View File

@ -7,9 +7,11 @@ export function setValue(input: HTMLInputElement, value: string): void {
input.dispatchEvent(new Event('input', { bubbles: true }))
}
/** The button inside `root` whose text is exactly `text`. */
/** The button inside `root` whose text or (icon-only buttons) aria-label is exactly `text`. */
export function button(root: ParentNode, text: string): HTMLButtonElement {
const found = [...root.querySelectorAll('button')].find((b) => b.textContent === text)
const found = [...root.querySelectorAll('button')].find(
(b) => b.textContent === text || b.getAttribute('aria-label') === text,
)
if (!found) throw new Error(`no button "${text}"`)
return found
}

View File

@ -0,0 +1,64 @@
// Guard test (textgate-rework R6): the reworked web UI pieces paint no chrome
// words. Spoken-only text (aria-label, .sr-only, aria-hidden) and content the
// caller passes in (game names, server messages) are allowed.
import { beforeEach, describe, expect, it } from 'vitest'
import { installEventSource } from './harness'
import { mountJob } from './jobHelpers'
import { ApiFailure } from '../api/client'
import { timelineChart } from '../lib/charts/timeline'
import { errorNotice, loading } from '../ui/build'
import type { EstimateResult } from '../estimate'
import type { Filters } from '../types'
const WORD_RE = /[A-Za-z]{2,}/
function spokenOnly(el: Element | null): boolean {
for (let cur = el; cur; cur = cur.parentElement) {
if (cur.classList.contains('sr-only') || cur.getAttribute('aria-hidden') === 'true' || (cur instanceof HTMLElement && cur.hidden)) return true
}
return false
}
/** Visible text nodes holding a word of 2+ letters, minus `allowed` content. */
function visibleWords(root: Element, allowed: readonly string[] = []): string[] {
const out: string[] = []
const walker = document.createTreeWalker(root, NodeFilter.SHOW_TEXT)
for (let n = walker.nextNode(); n; n = walker.nextNode()) {
const t = n.textContent?.trim() ?? ''
if (!WORD_RE.test(t) || spokenOnly(n.parentElement) || allowed.includes(t)) continue
out.push(t)
}
return out
}
beforeEach(installEventSource)
describe('textgate guard: no chrome words', () => {
it('job progress: queued, waiting and finished states', () => {
const { el, send } = mountJob()
expect(visibleWords(el)).toEqual([])
send('state', { state: 'waiting_input' })
expect(visibleWords(el)).toEqual([])
send('state', { state: 'failed' })
expect(visibleWords(el)).toEqual([])
})
it('timeline chart with nothing in scope', () => {
const result = { included: [], excluded: [] } as unknown as EstimateResult
const filters = { basis: 'leisure' } as unknown as Filters
const chart = timelineChart(result, filters, { pace_games_per_day: 0 } as never)
document.body.append(chart)
expect(visibleWords(chart)).toEqual([])
})
it('error notice shows only the icon and the server message', () => {
const el = errorNotice(new ApiFailure('busy', 'boom', 409))
expect(visibleWords(el, ['boom'])).toEqual([])
expect(el.getAttribute('aria-label')).toMatch(/Another job is running/)
})
it('loading indicator', () => {
expect(visibleWords(loading('games'))).toEqual([])
})
})

View File

@ -10,10 +10,11 @@ describe('copyButton without a clipboard', () => {
vi.stubGlobal('navigator', {})
const errors = vi.fn()
window.addEventListener('error', errors)
const btn = copyButton('abc', 'Copy it')
const btn = copyButton('abc')
btn.click()
window.removeEventListener('error', errors)
expect(errors).not.toHaveBeenCalled()
expect(btn.textContent).toBe('Copy it')
// Icon stays as clipboard icon since copy failed
expect(btn.textContent).toBe('📋')
})
})

View File

@ -15,27 +15,31 @@ describe('notice', () => {
expect(full.querySelector('.notice-title')?.textContent).toBe('Title')
expect(full.querySelector('.notice-text')?.textContent).toBe('body')
const bare = notice('success', null)
expect(bare.children).toHaveLength(0)
expect(bare.querySelector('.notice-icon')).not.toBeNull()
expect(bare.querySelector('.notice-text')).toBeNull()
expect(bare.querySelector('.notice-title')).toBeNull()
})
})
describe('errorNotice', () => {
it('explains an ApiFailure with detail, hint and extras', () => {
const el = errorNotice(new ApiFailure('busy', 'Job j1 runs', 409), h('em', {}, 'extra'))
expect(el).toHaveTextContent('Another job is running')
expect(el).toHaveAttribute('data-code', 'busy')
expect(el.getAttribute('aria-label')).toContain('Another job is running')
expect(el.getAttribute('aria-label')).toContain('Only one state-changing job')
expect(el).toHaveTextContent('Job j1 runs')
expect(el).toHaveTextContent('Only one state-changing job')
expect(el).not.toHaveTextContent('Another job is running')
expect(el.querySelector('em')).not.toBeNull()
})
it('omits the detail line when the message is empty', () => {
const el = errorNotice(new ApiFailure('busy', '', 409))
expect(el.querySelectorAll('p')).toHaveLength(1)
expect(el.querySelectorAll('p')).toHaveLength(0)
})
})
describe('copyButton and commandLine', () => {
it('copies, shows Copied, then restores the label', async () => {
it('copies, shows check icon, then restores clipboard icon', async () => {
vi.useFakeTimers()
const writeText = vi.fn(() => Promise.resolve())
vi.stubGlobal('navigator', { clipboard: { writeText } })
@ -43,13 +47,11 @@ describe('copyButton and commandLine', () => {
btn.click()
await vi.advanceTimersByTimeAsync(0)
expect(writeText).toHaveBeenCalledWith('sudo x')
expect(btn.textContent).toBe('Copied')
expect(btn.textContent).toBe('✅')
expect(btn.getAttribute('aria-label')).toBe('Copied')
await vi.advanceTimersByTimeAsync(2000)
expect(btn.textContent).toBe('Copy')
})
it('uses a custom label', () => {
expect(copyButton('x', 'Grab').textContent).toBe('Grab')
expect(btn.textContent).toBe('📋')
expect(btn.getAttribute('aria-label')).toBe('Copy command')
})
it('commandLine shows the command beside its copy button', () => {
@ -60,27 +62,31 @@ describe('copyButton and commandLine', () => {
})
describe('small builders', () => {
it('loading names what is loading', () => {
it('loading has a spinner and sr-only label', () => {
const el = loading('jobs')
expect(el).toHaveTextContent('Loading jobs…')
expect(el.querySelector('.spinner')).not.toBeNull()
expect(el.querySelector('.sr-only')?.textContent).toBe('Loading jobs')
expect(el.getAttribute('role')).toBe('status')
})
it('empty, pill and link', () => {
expect(empty('Nothing').className).toBe('empty')
expect(pill('danger', 'x').className).toBe('pill pill-danger')
it('empty has an icon and passes through children', () => {
const el = empty('Nothing')
expect(el.className).toBe('empty')
expect(el.querySelector('.empty-icon')?.textContent).toBe('📭')
})
it('pill has an icon for known tones', () => {
const el = pill('danger', 'x')
expect(el.className).toBe('pill pill-danger')
expect(el.querySelector('.pill-icon')).not.toBeNull()
})
it('link is an anchor', () => {
const a = link('/library/', 'Open')
expect(a.getAttribute('href')).toBe('/library/')
expect(a.className).toBe('btn btn-ghost btn-small')
expect(link('/x/', 'Y', 'custom').className).toBe('custom')
})
it('facts lays out label/value rows', () => {
const el = facts([['A', '1'], ['B', h('b', {}, '2')]])
expect(el.querySelectorAll('.fact')).toHaveLength(2)
expect(el.querySelector('dt')?.textContent).toBe('A')
expect(el.querySelectorAll('dd')[1].textContent).toBe('2')
})
})
describe('card', () => {
@ -96,7 +102,7 @@ describe('card', () => {
const asideOnly = card(null, 'b', { aside: 'right' })
expect(asideOnly.querySelector('h2')).toBeNull()
expect(asideOnly.querySelector('.box-head')).toHaveTextContent('right')
expect(asideOnly.hasAttribute('aria-label')).toBe(false)
expect(asideOnly.getAttribute('aria-label')).toBe('')
const titleOnly = card('T', 'b')
expect(titleOnly.className).toBe('box')
expect(titleOnly.querySelector('.box-head')?.children).toHaveLength(1)
@ -105,3 +111,12 @@ describe('card', () => {
expect(none).toHaveTextContent('b')
})
})
describe('facts', () => {
it('lays out label/value rows', () => {
const el = facts([['A', '1'], ['B', h('b', {}, '2')]])
expect(el.querySelectorAll('.fact')).toHaveLength(2)
expect(el.querySelector('dt')?.textContent).toBe('A')
expect(el.querySelectorAll('dd')[1].textContent).toBe('2')
})
})

View File

@ -7,36 +7,46 @@ import { h, type Child } from '../lib/dom'
export type Tone = 'info' | 'success' | 'warning' | 'danger'
const TONE_ICON: Record<Tone, string> = {
info: 'ℹ️',
success: '✅',
warning: '⚠️',
danger: '⛔',
}
export function notice(tone: Tone, title: string | null, ...children: Child[]): HTMLDivElement {
return h(
const el = h(
'div',
{ class: `notice notice-${tone}`, role: tone === 'danger' ? 'alert' : 'status' },
h('span', { class: 'notice-icon', 'aria-hidden': 'true' }, TONE_ICON[tone]),
title ? h('strong', { class: 'notice-title' }, title) : null,
children.length ? h('div', { class: 'notice-text' }, ...children) : null,
)
if (children.length) {
el.append(h('div', { class: 'notice-text' }, ...children))
}
return el
}
/** An ApiFailure (or anything thrown) as a titled, actionable message. */
export function errorNotice(error: unknown, ...children: Child[]): HTMLDivElement {
// Textgate: the explanation (title + hint) is spoken only; the ⛔ icon,
// danger tone and the server's own message stay visible.
const e = explain(error)
return notice(
'danger',
e.title,
e.detail ? h('p', { class: 'm0' }, e.detail) : null,
h('p', { class: 'm0 muted' }, e.hint),
...children,
)
const el = notice('danger', null, e.detail ? h('p', { class: 'm0' }, e.detail) : null, ...children)
el.dataset.code = e.code
el.setAttribute('aria-label', `${e.title}. ${e.hint}`)
return el
}
export function copyButton(text: string, label = 'Copy'): HTMLButtonElement {
const btn = h('button', { type: 'button', class: 'btn btn-ghost btn-small' }, label)
export function copyButton(text: string): HTMLButtonElement {
const btn = h('button', { type: 'button', class: 'btn btn-ghost btn-small', 'aria-label': 'Copy command' }, '📋')
btn.addEventListener('click', () => {
// No clipboard API outside a secure context: the command stays selectable.
if (!('clipboard' in navigator)) return
void navigator.clipboard.writeText(text).then(() => {
btn.textContent = 'Copied'
btn.textContent = '✅'
btn.setAttribute('aria-label', 'Copied')
setTimeout(() => {
btn.textContent = label
btn.textContent = '📋'
btn.setAttribute('aria-label', 'Copy command')
}, 2000)
})
})
@ -49,11 +59,17 @@ export function commandLine(command: string): HTMLDivElement {
}
export function loading(what: string): HTMLParagraphElement {
return h('p', { class: 'loading', role: 'status' }, h('span', { class: 'spinner', 'aria-hidden': 'true' }), ` Loading ${what}…`)
return h('p', { class: 'loading', role: 'status' }, h('span', { class: 'spinner', 'aria-hidden': 'true' }), h('span', { class: 'sr-only' }, `Loading ${what}`))
}
export function empty(...children: Child[]): HTMLParagraphElement {
return h('p', { class: 'empty' }, ...children)
/** Empty-state marker: 📭 painted, the caller's sentence spoken only. */
export function empty(label: string): HTMLParagraphElement {
return h(
'p',
{ class: 'empty', 'aria-label': label },
h('span', { class: 'empty-icon', 'aria-hidden': 'true' }, '📭'),
h('span', { class: 'sr-only' }, label),
)
}
export interface CardOptions {
@ -64,7 +80,7 @@ export interface CardOptions {
export function card(title: string | null, body: Child, { aside, className = '' }: CardOptions = {}): HTMLElement {
const head =
title || aside ? h('div', { class: 'box-head' }, title ? h('h2', {}, title) : null, aside ?? null) : null
return h('section', { class: `box ${className}`.trim(), 'aria-label': title }, head, body)
return h('section', { class: `box ${className}`.trim(), 'aria-label': title ?? '' }, head, body)
}
/** Label/value rows; values are right-aligned so they line up across cards. */
@ -76,8 +92,20 @@ export function facts(rows: readonly (readonly [Child, Child])[]): HTMLDListElem
)
}
const TONE_PILL_ICON: Record<string, string> = {
info: 'ℹ️',
success: '✅',
warning: '⚠️',
danger: '⛔',
kept: '📌',
excluded: '🚫',
idle: '⏸️',
running: '▶️',
}
export function pill(tone: string, text: string): HTMLSpanElement {
return h('span', { class: `pill pill-${tone}` }, text)
const icon = TONE_PILL_ICON[tone] ?? ''
return h('span', { class: `pill pill-${tone}` }, icon && h('span', { class: 'pill-icon', 'aria-hidden': 'true' }, icon), text)
}
export function link(href: string, text: Child, className = 'btn btn-ghost btn-small'): HTMLAnchorElement {