Skip to content

[REF] runbot: replace jQuery usages with vanilla JS across frontend - #1494

Open
pparidans wants to merge 4 commits into
19.0from
19.0-frontend-no-jquery-app
Open

[REF] runbot: replace jQuery usages with vanilla JS across frontend#1494
pparidans wants to merge 4 commits into
19.0from
19.0-frontend-no-jquery-app

Conversation

@pparidans

Copy link
Copy Markdown
Contributor

Clean up remaining jQuery dependencies in runbot.js and stats.js:

  • Convert [data-runbot] click handling to native DOM event listeners and drop $.ready.
  • Read shift key state directly via event.native.shiftKey in Chart.js click events.
  • Rewrite legend generation in stats.js using native DOM methods (createElement, replaceChildren).

@pparidans pparidans self-assigned this Aug 14, 2026
@C3POdoo
C3POdoo requested a review from a team August 14, 2026 13:52
@pparidans
pparidans force-pushed the 19.0-frontend-no-jquery-app branch from 1c9b055 to 8fb36e4 Compare August 17, 2026 07:47
Replace the jQuery click delegation in `runbot.js` with a native DOM
event listener.

Note: `document.addEventListener` call doesn't need to wait for
DOMContentLoaded event, hence removing the equivalent `$.ready` wrapper
(`$(function () { ... })`).
Remove the global `shifted` variable and jQuery `keyup`/`keydown` event
listener in `stats.js`. Shift key detection is now read directly from
`event.native.shiftKey` in the Chart.js click callback.
- Replace jQuery DOM creation with native API (i.e. `createElement` and
  `replaceChildren()`).
- Use native `addEventListener` for legend item toggles.
- Fix implicit global variable scoping in dataset loop.
With all first-party consumers converted, remove the jQuery asset,
vendored sources, and ESLint globals.
@pparidans
pparidans force-pushed the 19.0-frontend-no-jquery-app branch from 8fb36e4 to a861b96 Compare August 20, 2026 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant