Skip to content

Restore the optional snippet ID column and ID search #551

Description

@code-snippets-bot

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions