Skip to content

UI: Replace "Create File" and "Create Folder" with a "New" dropdown#5574

Open
voidvalue-dev wants to merge 1 commit intopterodactyl:1.0-developfrom
voidvalue-dev:cesarmr-github-patch-5
Open

UI: Replace "Create File" and "Create Folder" with a "New" dropdown#5574
voidvalue-dev wants to merge 1 commit intopterodactyl:1.0-developfrom
voidvalue-dev:cesarmr-github-patch-5

Conversation

@voidvalue-dev
Copy link
Contributor

This PR replaces the separate "Create File" and "Create Folder" buttons with a single "New" dropdown button.

Motivation

  • Both actions are closely related and commonly used together.
  • Reduces visual clutter by minimizing the number of buttons.
  • Aligns with modern UI patterns seen in Windows and more...

Changes

  • Removed:

    • “Create File” button
    • “Create Folder” button
  • Added:

    • “New” button with dropdown
      • Folder
      • File
2026-02-15.22-52-11.mp4

(I opened it some time ago and it had support, but I deleted the fork, so I am recreating it)

Rename NewDirectoryButton to NewButton and replace separate "New File" NavLink + directory button with a single dropdown. NewButton provides a "New" button that opens a dropdown with "File" (NavLink to /server/:id/files/new) and "Folder" (opens directory creation dialog) options, and uses icons and DropdownMenu styling. Update FileManagerContainer to import and use NewButton, remove now-unused imports and inline NavLink/Button usage, and adjust dialog state naming. General cleanup of related imports and minor refactor to centralize the new-file route handling.
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