adaptable-debug
Summary
- Diagnoses a Grid that is on screen and not doing what you expect
- Reads the running Grid before it changes any source
The adaptable-debug AI Skill works out why a running Grid is not doing what you expect.
The AI Skill can help you with:
- A feature (e.g. Layout, Format Column, Styled Column, Calculated Column, Alert etc.) that is not applied
- Wrong columns or rows displayed
- State that does not save, load or migrate
- What the Grid is doing right now
- A support case, or feedback on the Skills, when it cannot be fixed
Caution
- Do not use this for compile or type errors, or to add a feature (use
adaptable-dev) - Nor to add AdapTable for the first time (use
adaptable-setup) or to upgrade (useadaptable-upgrade)
The Trades layout is in the dropdown but not applied at start-up — why?
The Negative PnL Format Column is not showing in the browser — why?
The Grid is blank and there is nothing in the console — what is wrong?
Why are these rows missing from the Grid?
How it Works
The running Grid is the evidence the Skill requires.
The agent reads your Grid before it touches your source.
The workflow is as follows:
- It confirms which app and page the Grid is on, and that the dev server is the one on screen
- It reads the page, then checks what it collected against your columns
- It compares the live State with the
initialStatein your source - It fixes the source, never the saved State, then reloads and reads the page again
Note
- The bug it finds most often is saved State sitting on top of a source edit
- A user, or an earlier session, saved a section, and every source edit since has merged underneath it
- The fix is a Revision on that section of
initialState, which replaces just that section on the next load - Clearing the store would discard the user's saved work
Deep Dive
What it reads from the page, and the files every Skill shares
| What the agent asks |
|
| What it writes |
|
| What it runs |
|
| When it is finished |
|
Deep Dive
Taking a look inside the Skill
Examples
Fix a running Grid
Skill
A Layout that does not apply
The Trades layout is in the dropdown but not applied at start-up — why?
- Confirms which app and page the Grid is on, and that it is running
- Reads the running Grid through the DevTools In-page API with its browser tool (or asks you to paste three lines into the browser console): errors and warnings, recent actions, the columns, and the Layout part of State
- Checks the State it read against your columns
- Compares it with the
initialStatein your source: a Layout saved in the browser from an earlier session is loading on top of your edit - Proposes the fix at the source — a
Revisionon the Layout section, so your change replaces the saved one on the next load — instead of clearing the browser storage, which would wipe users' saved work
The cause, the evidence that proves it (the saved Layout next to the one in your source), and a one-line change to the source.
After the change, the agent reloads the page and reads the Layout again: it matches the source and the logs are clean.