You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d8c20b4
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(admin): convert the last two tables and drop DataTables (#21035)
The account activity and API token tables on the user detail page were
the last on DataTables. Both are now configured by `tabulator-*`
attributes, so their DataTables setup in `warehouse.js` goes and nothing
replaces it. Columns DataTables hid by default (IP address, hashed IP
address, deprecated permissions) are marked `tabulator-visible="false"`
and reached through the header menu, which also replaces the copy, CSV
and column-visibility buttons.
Neither needs a view change: events and API tokens already arrive
newest-first. Headers use tristate sorting, so a third click restores
that order. A token that was never used now shows a blank Last Used
rather than "None", so it sorts after the used ones in either direction.
With no tables left on it, DataTables goes, along with its stylesheets
and the sidebar-toggle handler that recalculated its column widths. The
production admin JavaScript bundle drops from 1.48 MiB to 1.20 MiB.
The `datatables.net` entries under `overrides` in package.json stay.
They pin transitive versions still pulled in by admin-lte, so removing
them is a separate dependency change.
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
{# TODO: Make this dataTables-enabled for sorting, filtering, etc. See Account Activity for an example. #}
591
+
{# TODO: Make this a Tabulator table for sorting and filtering: add `data-tabulator` and `tabulator-*` attributes. See Account Activity for an example. #}
Copy file name to clipboardExpand all lines: warehouse/admin/templates/admin/projects/project_observations_list.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@
16
16
<divclass="card">
17
17
<divclass="card-body">
18
18
{% if observations %}
19
-
{# TODO: Make this dataTables-enabled for sorting, filtering, etc. See Account Activity for an example. #}
19
+
{# TODO: Make this a Tabulator table for sorting and filtering: add `data-tabulator` and `tabulator-*` attributes. See Account Activity for an example. #}
Copy file name to clipboardExpand all lines: warehouse/admin/templates/admin/projects/release_detail.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -251,7 +251,7 @@ <h3>Observations</h3>
251
251
</div>
252
252
<divclass="card-body">
253
253
{% if observations %}
254
-
{# TODO: Make this dataTables-enabled for sorting, filtering, etc. See Account Activity for an example. #}
254
+
{# TODO: Make this a Tabulator table for sorting and filtering: add `data-tabulator` and `tabulator-*` attributes. See Account Activity for an example. #}
0 commit comments