Problem
The React-based snippets management screen introduced in 3.10 no longer provides an optional snippet ID column, and its search does not include snippet IDs.
The previous list table included an ID column that users could enable through Screen Options. The current baseTableColumns definition does not include an ID column. The current client-side filter searches only name, desc, code, and tags.
This makes it difficult to locate and verify snippets when an ID is referenced by Safe Mode, an error report, an edit URL, an integration, or site-specific documentation.
A previous issue about persistence of the optional ID column was fixed in #73, but that does not cover its removal from the current interface.
Expected behavior
- Restore an optional
ID column in the table view.
- Keep the column hidden by default and expose it through Screen Options.
- Allow users to locate a snippet by its exact numeric ID.
- Preserve existing text search across names, descriptions, code, and tags.
- Ensure ID lookup behaves correctly for local and network snippets.
Acceptance criteria
- Enabling the ID column displays the stored snippet ID and persists across page loads.
- Searching for a snippet by exact ID returns the corresponding snippet.
- Existing text and
@line: search behavior does not regress.
- Add component coverage for ID-column visibility and ID search.
Problem
The React-based snippets management screen introduced in 3.10 no longer provides an optional snippet ID column, and its search does not include snippet IDs.
The previous list table included an
IDcolumn that users could enable through Screen Options. The currentbaseTableColumnsdefinition does not include an ID column. The current client-side filter searches onlyname,desc,code, andtags.This makes it difficult to locate and verify snippets when an ID is referenced by Safe Mode, an error report, an edit URL, an integration, or site-specific documentation.
A previous issue about persistence of the optional ID column was fixed in #73, but that does not cover its removal from the current interface.
Expected behavior
IDcolumn in the table view.Acceptance criteria
@line:search behavior does not regress.