From 6e6277d521284039d5009afee1cd7573cf9069ca Mon Sep 17 00:00:00 2001 From: Sycun <165354365+Sycun@users.noreply.github.com> Date: Fri, 13 Nov 2026 21:02:11 +0800 Subject: [PATCH] fix(tasks): load goal task controller from the app entrypoint --- scripts/long-tasks-browser.test.cjs | 29 ++++++++++++++++---- web/static/css/long-tasks.css | 3 ++ web/static/js/long-tasks-entrypoint.test.cjs | 20 ++++++++++++++ web/static/js/long-tasks.js | 5 ++-- web/templates/index.html | 9 +++--- 5 files changed, 55 insertions(+), 11 deletions(-) create mode 100644 web/static/js/long-tasks-entrypoint.test.cjs diff --git a/scripts/long-tasks-browser.test.cjs b/scripts/long-tasks-browser.test.cjs index fd601580..a4d148bb 100644 --- a/scripts/long-tasks-browser.test.cjs +++ b/scripts/long-tasks-browser.test.cjs @@ -13,17 +13,26 @@ const read = f => fs.readFileSync(path.join(root, f), 'utf8'); test('goal task page: authenticated controls, stable polling, XSS, report and responsive layout', async () => { const template = read('web/templates/index.html'); const pageHTML = template.slice(template.indexOf('