You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bf66a5f
Browse filesBrowse the repository at this point in the historyBrowse files
feat: initial AGGrid extension — Scribunto library for AG Grid data grids
AGGrid is a MediaWiki extension (MW 1.43+, requires Scribunto) exposing a Lua
library, mw.ext.aggrid.render( gridOptions ), that renders AG Grid Community
data grids on wiki pages.
- The Lua table mirrors AG Grid's gridOptions 1:1 (columnDefs and rowData
required). PHP validates it, normalizes Lua 1-indexed sequences into JSON
arrays, and emits a <div class="ext-aggrid"> placeholder carrying the config
in a Sanitizer-reserved data-mw-aggrid-options attribute (returned via a strip
marker). The hook is wired via HookHandlers implementing Scribunto's
ScribuntoExternalLibrariesHook.
- Client-side, the vendored AG Grid Community 35.3.0 UMD bundle is loaded from
its static asset URL (ResourceLoader's wikimedia/minify <= 2.10.0 corrupts
AG Grid's ES2020 BigInt literals) and mounted on each placeholder via
mw.hook('wikipage.content'), with an ext-aggrid--init guard against
double-mounting.
- Meta/tooling/CI adapted from TabberNeue (lint, Phan, PHPUnit, Vitest,
dependabot, release-please); ResourceLoader/ForeignResources wiring from
FloatingUI.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments