Repository navigation
[3.0] Add drag-and-drop package selection - #9907
Open
boredskull wants to merge 1 commit into
Open
boredskull wants to merge 1 commit into
boredskull wants to merge 1 commit into
Conversation
Add a native, progressively enhanced drop target to the existing package upload form while keeping standard file selection and the existing server-side upload and validation workflow unchanged. Signed-off-by: boredskull <boredskullgaming@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request introduces drag-and-drop package selection to the SMF 3.0 Package Manager as an initial step towards modernising the package management experience.
Although SMF's underlying package management system has evolved considerably, the administrative interface has retained much of its traditional workflow across successive major versions.
With SMF 3.0 introducing significant architectural improvements, this presents an opportunity to improve the usability and accessibility of package management while retaining the existing installation system.
Changes introduced
1. Drag-and-drop package selection
Administrators can now select a package by dragging a file from their computer into the designated upload area.
.zip,.tgzand.tar.gz.2. Accessibility improvements
The upload interface has been updated to improve accessibility and clarity.
aria-live="polite"region to announce the selected filename to assistive technologies.The intention is to improve the experience for administrators without requiring a particular input method.
3. Language support
A new language string has been introduced in
Languages/en_US/Packages.php:package_upload_drop_hintThis provides the upload area's instructions through SMF's existing language system, allowing translations to be added without modifying the package manager template.
4. Existing package functionality is preserved
The change is deliberately limited to the package upload interface.
It does not alter:
The standard form submission remains in place, allowing the existing SMF package manager to process uploaded files as before.
Files modified
Themes/default/Packages.template.phpLanguages/en_US/Packages.phpNo additional libraries, dependencies, database migrations or configuration settings are introduced.
Rationale
The package manager is an important part of SMF's administration interface, yet uploading and managing packages continues to rely on a largely traditional workflow.
Modern administrators increasingly expect straightforward file selection, clear feedback and accessible controls.
Introducing drag-and-drop selection provides a relatively small usability improvement without requiring changes to the established package installation engine.
This contribution is intended to be native SMF 3.0 functionality rather than a dependency on an external modification.
It may also provide a starting point for considering additional package manager interface improvements during SMF 3.0 development, subject to the development team's preferences.
Compatibility and testing
The proposed change targets the
release-3.0development branch.The GitHub source diff has been reviewed to confirm that the changes are confined to the upload template and language strings.
The following checks remain necessary before merging:
No live SMF 3.0 integration testing or comprehensive browser accessibility testing has yet been completed.
Future considerations
This pull request is intentionally focused on package selection rather than a complete package manager redesign.
Further improvements could include clearer package status indicators, a more informative package management dashboard, improved installation feedback and a more consistent administrative workflow.
Those changes would be better considered separately to keep this contribution straightforward to review and maintain.
Issues References (Fixes|Related|Closes)
No existing issue is directly referenced.
This pull request proposes a usability and accessibility enhancement to the native SMF 3.0 Package Manager.