Repository navigation
Conversation
Click a column header to sort the session list; again to reverse. Type compares as text; size and modified time compare numerically from the raw values, and the name by the server's own natural-order rank, so the two never disagree. Unparseable values go last either way. The sort is stable, so equal rows keep the server's order, and the choice and the header's keyboard focus survive the 5 s auto-refresh. Also escape the file name in the per-file delete's confirm handler: its JSON quotes ended the attribute early, so the delete went through with no confirmation.
|
Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head This adds sortable session/type/size/modified columns to the log lists and fixes the per-file delete confirmation, which on the base templates never compiled and so deleted without asking. The JS and new template tests pass, and only one cosmetic nit remains. Minor (1)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The session list on the log pages (owner, admin, and shared read-only access) can now be sorted by clicking a column header, and gains a type column showing the file extension (
tlog,bin,ts,mkv).Sorting
aria-sort.session10vssession9, or a same-second-2recording vs its original.<main>. The chosen sort is kept insessionStorage, with an in-memory fallback, and re-applied after each refresh. It also carries over between dates.auto-refresh.jsnow fires apagebeforeupdateevent just before the swap so focus can be captured.Fix
onsubmitput atojsonstring inside a double-quoted attribute. Its quotes ended the attribute early, so the handler was invalid and a click deleted the file without asking. It is now escaped, on both templates.Testing
tests/js/table_sort_test.cjs) runs the script against a fake table. It covers:pageupdate;