Skip to content

move preferred pane function to be used by solid panes and folder pane - #912

Merged
SharonStrats merged 2 commits into
stagingfrom
add-preferred-pane
Oct 26, 2026
Merged

SharonStrats merged 2 commits into
stagingfrom
add-preferred-pane

Conversation

@SharonStrats

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI 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.

🟡 Changes recommended

The exact root-export assertion omits the newly exported helper and will fail until its expected list is updated.

1 open issue
What changed in this PR

Adds a shared preferred-pane helper for use by Solid panes and the folder pane.

Changes:

  • Selects a pane by mint class, then focus request, then registry order.
  • Adds unit tests for selection precedence.
  • Bumps the package version to 5.0.2-4.
File Description
test/​unit/​file-explorer/​relevant-panes.test.ts Tests preferred-pane selection and fallbacks.
src/​lib/​file-explorer/​relevant-panes.ts Exports the shared getPreferredPane helper.
package.json Updates the package version.
package-lock.json Synchronizes the lockfile version.

Review effort: Balanced

Comment thread src/lib/file-explorer/relevant-panes.ts
@SharonStrats
SharonStrats merged commit d8daf98 into staging Oct 26, 2026
9 checks passed
@SharonStrats
SharonStrats deleted the add-preferred-pane branch October 26, 2026 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants