Skip to content

Skills: opt the grid into DataTables assets (fix empty grid) - #131

Merged
WebTigers merged 1 commit into
mainfrom
fix/skills-datatables-optin
Aug 17, 2026
Merged

Skills: opt the grid into DataTables assets (fix empty grid)#131
WebTigers merged 1 commit into
mainfrom
fix/skills-datatables-optin

Conversation

@WebTigers

Copy link
Copy Markdown
Owner

Symptom

The Agent Skills grid (/admin/settings/agent/skills) rendered with no data.

Cause

admin.phtml loads the DataTables library + tiger.datatable.js only when a view sets $view->useDataTables (assets are opt-in per screen, like Chart.js). Agent_SkillsController::indexAction never set it, so tigerDataTable() was undefined and the grid's init returned silently. The server was returning a correct 129-row envelope all along (verified as the apache user).

Fix

Set $this->view->useDataTables = true in indexAction — the same opt-in every other datatable screen uses (Access user/org, Code, CMS, Media).

Test

SkillsControllerTest dispatches the action (rendering off) and asserts 200 + title + useDataTables === true — the direct regression guard (mirrors CodeControllerTest).

🤖 Generated with Claude Code

The Skills manager showed no data: the admin layout loads DataTables +
tiger.datatable.js ONLY when a view sets $view->useDataTables (admin.phtml),
and Agent_SkillsController::indexAction never set it. So tigerDataTable() was
undefined on the page and the grid's init bailed silently — the server was
returning a correct 129-row envelope the whole time.

- Set $this->view->useDataTables = true in indexAction (matches every other
  datatable screen, e.g. Access user/org, Code).
- SkillsControllerTest: assert the shell dispatches 200, sets its title, and
  opts into DataTables — the direct regression guard.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@WebTigers
WebTigers merged commit fca7737 into main Aug 17, 2026
12 of 14 checks passed
@WebTigers
WebTigers deleted the fix/skills-datatables-optin branch August 17, 2026 11:14
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