Upgrade dependencies to latest stable versions and modernize admin media UI#4
Draft
Upgrade dependencies to latest stable versions and modernize admin media UI#4
Conversation
- Update cropperjs ^1.5 → ^1.6.2 (latest stable) - Update dropzone ^5.7 → ^5.9.3 (latest stable) - Update vendored dist files (cropper.min.js/css, dropzone.min.js/css) - Modernize gallery.css with CSS variables, flexbox, transitions, CSS spinner - Modernize base-grid.php with Bootstrap 5 grid, lazy loading, accessibility - Modernize base-gallery.php with card/shadow design - Modernize dropzone modal.php with centered dialog, better UX - Modernize dropzone template.php with modern file preview cards - Rewrite _init-cropper.js: dark overlay editor, SVG icons, keyboard shortcuts - Improve _init-dropzone.js: better event handling, drop area feedback - Fix _media-manage.js: remove deprecated $.size(), event delegation, fallback notifications Co-authored-by: gabrielsolomon <17990591+gabrielsolomon@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update package and UI for improved UX and compatibility
Upgrade dependencies to latest stable versions and modernize admin media UI
Feb 27, 2026
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.
Bumps
cropperjsanddropzoneto their latest stable versions, replaces outdated vendored dist files, and rewrites the admin gallery/upload UI with modern patterns.Dependency upgrades
cropperjs:^1.5→^1.6.2(API-compatible, bug fixes)dropzone:^5.7→^5.9.3(v6 still in beta)_cropper.min.js/cssand_dropzone.min.js/csswith updated buildsCSS (
gallery.css)object-fit: coverfor consistent thumbnails::after.dz-upload-areadrag-and-drop zone with hover state,.dz-file-cardpreview card stylesPHP views
base-grid.php: Bootstrap 5 grid (g-3),loading="lazy",htmlspecialchars()on filenames, default-image star badge, semanticariaattributesbase-gallery.php: Card withshadow-sm, icon +fw-semiboldtitledropzone/modal.php: Centered dialog (modal-dialog-centered), upload requirements panel, progress bar with live percentage, reorganized footer withme-autoalignmentdropzone/template.php:dz-file-cardgrid with image preview, 3px progress bar, icon-only action buttons, drag-and-drop hint areaJavaScript
_init-cropper.js: Full-screen dark editor overlay with inline SVG toolbar; keyboard shortcuts (Enter= confirm,Esc= cancel); replaced$.param()withURLSearchParams_init-dropzone.js: Null-safe DOM queries,const/let, drop area shown/hidden on file add/remove, live upload percentage_media-manage.js: Fixed deprecated$.size()→.length; event delegation for dynamic gallery items; notification abstraction supporting$.jGrowl,toastr, orconsole.logfallback🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.