Skip to content

Expose "show recently updated first" as a visible link - #103

Open
turlamai wants to merge 1 commit into
racket:masterfrom
turlamai:recently-updated-sort
Open

turlamai wants to merge 1 commit into
racket:masterfrom
turlamai:recently-updated-sort

Conversation

@turlamai

Copy link
Copy Markdown

Fixes #6.

Problem

The main index can already sort by recency — clicking the blank space to the left of the "Package" column heading sorts by the hidden last-updated column — but as the issue comment puts it, this is "incredibly difficult to discover". Visitors currently have no way to find recently updated packages.

Change

Add an explicit "Show recently updated first." link next to the package count on the main index. It triggers the exact same client-side sort that the hidden blank-space click performs (tablesorter sort on the hidden column), so no server-side behavior changes. The link only reorders the current listing — no JavaScript-free behavior is lost.

Notes

An alternative would be a visible "Updated" column; that changes the table layout and seems better left for the front-page redesign discussed in #53. This is the minimal discoverability fix.

The main index has always been able to sort by the hidden last-updated
column, but the only way to trigger it is clicking the blank space to
the left of the "Package" heading, which is effectively
undiscoverable (issue racket#6). Add an explicit link next to the package
count that triggers the same client-side sort.
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.

Search/filter for "new" packages

1 participant