mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #692] [MERGED] feat: full-screen File Browser for game assets with multi-select bulk operations #4732
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4732
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/692
Author: @Gunterlie
Created: 5/11/2026
Status: ✅ Merged
Merged: 5/12/2026
Merged by: @LukaTheHero
Base:
main← Head:file-browser📝 Commits (10+)
ed2f9d8Fix mobile tracker text preview clipping (#685)1827598Restore same-turn game skill checks30c5179feat: add full-screen File Browser for game assetse7cd55bMerge remote-tracking branch 'upstream/main' into file-browser1ff1c28feat: file browser polish — upload fixes, audio player, dropdowns, search, image info, text editor2115de1fix: use FileText icon for text files in browserd7f0abcrefactor(file-browser): extract all sub-components and add editor polish183548bMerge remote-tracking branch 'upstream/main' into file-browser02c67c3feat(server): add bulk move/copy/delete endpoints for game assets2799a19feat(file-browser): multi-select with bulk move/copy/delete for files📊 Changes
24 files changed (+3538 additions, -55 deletions)
View changed files
➕
packages/client/src/components/game-assets/ActionDropdown.tsx(+77 -0)➕
packages/client/src/components/game-assets/AssetGrid.tsx(+232 -0)➕
packages/client/src/components/game-assets/AudioPlayerModal.tsx(+86 -0)➕
packages/client/src/components/game-assets/FileEditorModal.tsx(+235 -0)➕
packages/client/src/components/game-assets/FolderTree.tsx(+97 -0)➕
packages/client/src/components/game-assets/GameAssetsBrowserView.tsx(+848 -0)➕
packages/client/src/components/game-assets/ImageInfoPopover.tsx(+96 -0)➕
packages/client/src/components/game-assets/ImagePreviewModal.tsx(+110 -0)➕
packages/client/src/components/game-assets/SearchInput.tsx(+73 -0)➕
packages/client/src/components/game-assets/Toolbar.tsx(+328 -0)➕
packages/client/src/components/game-assets/constants.tsx(+36 -0)➕
packages/client/src/components/game-assets/encode-asset-path.ts(+19 -0)➕
packages/client/src/components/game-assets/utils.tsx(+65 -0)📝
packages/client/src/components/layout/AppShell.tsx(+55 -26)📝
packages/client/src/components/layout/TopBar.tsx(+21 -1)➕
packages/client/src/hooks/use-game-assets.ts(+288 -0)➕
packages/client/src/lib/format.ts(+19 -0)📝
packages/client/src/stores/ui.store.ts(+25 -1)📝
packages/server/src/app.ts(+3 -2)📝
packages/server/src/db/seed-game-assets.ts(+33 -10)...and 4 more files
📄 Description
Linked issue
Closes #691
Why this change
Managing game assets (music, sfx, ambient audio, sprites, backgrounds) currently forces users to leave the engine and use their OS file manager or external tools. There is no in-engine way to browse the
data/game-assets/tree, preview files, organize content between categories, or batch-clean up unused assets. This creates friction for content creators who need to quickly verify sprites, audition audio cues, or move files between folders without context-switching out of the app. This PR adds a full-screen File Browser overlay that brings asset management directly into the engine.Discord discussion: https://discord.com/channels/1417099416812392641/1503430688915984494
What changed
New UI (
packages/client/src/components/game-assets/)GameAssetsBrowserView.tsx— main orchestration component (~780 lines, down from 1632 after component extraction)Toolbar.tsx— breadcrumb, search, view toggle, upload/new/rescan/open buttons, column dropdownsAssetGrid.tsx— grid + list views with always-visible checkboxes for file multi-selectFolderTree.tsx— sidebar folder tree with chevron expand/collapseSearchInput.tsx— responsive search (collapses to icon on mobile)ImagePreviewModal.tsx— full-screen image preview with togglable metadata side panelAudioPlayerModal.tsx— audio player with MIME type hints and download fallbackImageInfoPopover.tsx— responsive image info popover (desktop card / mobile bottom sheet)FileEditorModal.tsx— text file editor with line numbers, tab-to-spaces, Markdown preview toggle, keyboard shortcuts (Ctrl+S save, Esc close with unsaved-changes guard)ActionDropdown.tsx— 3-dot action menu with outside-click and scroll-close handlingconstants.tsx— category icons + default folder descriptionsutils.tsx— file-type helpers (isImage,isAudio,isEditableText,FileIcon,countItems)New hooks (
packages/client/src/hooks/use-game-assets.ts)useMoveGameAssetsBulk,useCopyGameAssetsBulk,useDeleteGameAssetsBulkNew server routes (
packages/server/src/routes/game-assets.routes.ts)POST /game-assets/move-bulk— batch move files to target folderPOST /game-assets/copy-bulk— batch copy files to target folderPOST /game-assets/delete-bulk— batch delete files{ succeeded, failed }arrays for per-file success/failure reportingShared constants (
packages/shared/src/constants/game-assets.ts)IMAGE_EXTS,AUDIO_EXTS,TEXT_EXTS,AUDIO_MIME_MAPexported for client+server reuseUtilities
packages/client/src/lib/format.ts—formatBytes,formatDateValidation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Not yet manually tested in-browser. The following need human verification:
Docs and release impact
UI evidence (if applicable)
Summary by CodeRabbit
New Features
Bug Fixes & UX
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.