Skip to content

Add column settings cog to Terms listing (#315) - #756

Closed
0xSm0ky wants to merge 1 commit into
LuteOrg:developfrom
0xSm0ky:feat/terms-column-settings
Closed

0xSm0ky wants to merge 1 commit into
LuteOrg:developfrom
0xSm0ky:feat/terms-column-settings

Conversation

@0xSm0ky

@0xSm0ky 0xSm0ky commented Oct 3, 2026

Copy link
Copy Markdown

Fixes #315.

What

The Terms listing lacked the settings cog that the Books and Bookmarks listings already have. This adds the same datatables config widget (the gear icon) to the Terms page, giving:

  • Column visibility control (show/hide columns)
  • Entries-per-page control, moved into the widget alongside it

How

Mirrors the existing Books/Bookmarks implementation:

  • Adds the #datatables_config_widget (gear) and #datatables_config_items markup.
  • Adds a colvis button to the terms datatable, scoped to the content columns (excludes the row-select checkbox and the hidden TermID/LanguageID columns).
  • Reuses the shared move_datatables_controls_to_config_widget helper and the gear toggle.

The existing Export CSV button (triggered from the Actions menu) now also lives inside the config widget, consistent with how the Books page surfaces its buttons.

Testing

Verified end-to-end with Playwright against the running app: the gear toggles the config popup, the colvis control lists the 7 content columns and hides/shows them, and there are no JS console errors.

The Terms listing lacked the settings cog present on the Books and
Bookmarks listings. Add the shared datatables config widget (the gear
icon) with a column-visibility (colvis) control scoped to the content
columns, and move the page-length and button controls into it, matching
the existing Books/Bookmarks pattern.

Fixes #315
@0xSm0ky 0xSm0ky closed this by deleting the head repository Oct 17, 2026
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.

Add wheel/cog to Terms page

1 participant