Skip to content

feat: keep sidebar folders alphabetized across file sort modes - #258

Open
n00ki wants to merge 1 commit into
bholmesdev:mainfrom
n00ki:feat/improved-sorting
Open

feat: keep sidebar folders alphabetized across file sort modes#258
n00ki wants to merge 1 commit into
bholmesdev:mainfrom
n00ki:feat/improved-sorting

Conversation

@n00ki

@n00ki n00ki commented Aug 11, 2026

Copy link
Copy Markdown

Rationale

Sorting by Recent is useful for finding active files, but it also reordered folders and disrupted intentionally organized workspace structures such as 00 Inbox and 02 Notes.

This change separates those concerns: folders remain a stable, alphabetical navigation structure, while files continue to follow the selected Recent or Name order. It keeps Hubble’s streamlined sorting controls while making Recent more practical for structured workspaces.

Alternatives considered

I explored adding ascending and descending directions to both Recent - based on modification time, and Name. While useful in some editors, four sorting choices added complexity without addressing the primary issue: selecting Recent disrupted intentionally organized folder structures.

I therefore kept Hubble’s existing Recent / Name model and separated folder ordering from file ordering. Sorting directions can still be considered independently in the future.

Summary

  • Keep the existing Recent and Name options.
  • Apply the selected sorting mode only to files.
  • Keep folders naturally sorted A–Z and before files at every level.
  • Preserve the existing Recent icon and stored preference.
  • Improve the sort trigger’s accessible label and tooltip.

Testing

  • pnpm check
  • pnpm check:react-compiler
  • pnpm build:desktop
  • UI test suite
  • Verified sorting and folder order in the Electron app

@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

@n00ki is attempting to deploy a commit to the bholmesdev's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

Keeps sidebar folders A–Z (natural sort) at every depth while Recent/Name apply only to files, including pinned. Drops unused folder modifiedAt plumbing, tightens sort control a11y copy, and adds focused tree-sort tests.

Concerns

None material. Natural numeric/case-insensitive name compare is an intentional alpha-mode behavior change and is covered by tests.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve


Reviewed by a Warp Factory agent.

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.

1 participant