Skip to content

Conversation

@haraldschilly
Copy link
Contributor

This is just a trivial fix: directories had a (?) icon, but should have their folder icon.

Screenshot from 2025-11-27 15-41-53

@haraldschilly haraldschilly marked this pull request as ready for review November 27, 2025 14:45
@haraldschilly haraldschilly added the PR-TODO-cocalc2 merge/migrate this PR into CoCalc2 in the future label Dec 4, 2025
@williamstein williamstein requested a review from Copilot December 4, 2025 17:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes an issue where directories in starred or recent file lists were displaying with a question mark icon (?) instead of the appropriate folder icon. The fix adds directory detection logic based on the trailing slash convention used throughout the codebase.

Key Changes

  • Added directory detection by checking if filenames end with /
  • Directories now display with "folder-open" icon instead of falling through to the unknown file type icon

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@haraldschilly haraldschilly added PR-positive review ready to merge and removed PR-needs review labels Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR-positive review ready to merge PR-TODO-cocalc2 merge/migrate this PR into CoCalc2 in the future

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants