Skip to content

feat: sort web file manager columns by name, size or date - #63

Merged
prokrypt merged 1 commit into
developmentfrom
feat/web-file-sort
Sep 29, 2026
Merged

prokrypt merged 1 commit into
developmentfrom
feat/web-file-sort

Conversation

@prokrypt

Copy link
Copy Markdown
Owner

Before: the web file manager always lists folders first, then EPUBs, then other files, each group alphabetical.

After: clicking the Name, Size or Modified header sorts by that column, and clicking it again reverses the order. The active column shows ▲ or ▼. Folders always stay on top in A to Z order. The chosen sort is kept in sessionStorage, so it carries over as you open other folders in the same tab. Until you pick a sort, the original order is unchanged.

How: hydrate() now stores the fetched list, and the table markup moved into renderFileTable(), so a header click re-renders without fetching the list again. Sorting uses one compareFiles() comparator. There are no firmware changes; only the generated web page grows.

Sizes vs development 9b0c70d:

  • default (C3): about +300 B flash, RAM +0
  • x4-pro-light-sleep: +320 B flash, RAM +0

🤖 Generated with Claude Code

https://claude.ai/code/session_01XgLRarbAmBVepTPKCK7mgd


Generated by Claude Code

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XgLRarbAmBVepTPKCK7mgd
@prokrypt
prokrypt merged commit 354f7de into development Sep 29, 2026
9 checks passed
@prokrypt
prokrypt deleted the feat/web-file-sort branch September 29, 2026 21:47
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.

2 participants