feat: add model browser and downloads drawer#319
Draft
Kosinkadink wants to merge 2 commits into
Draft
Conversation
b5b3d12 to
c25b009
Compare
- Add Model Browser tab to ModelsView with folder sidebar, searchable file list (name, size, date), and show-in-folder action - Add global Downloads Drawer accessible from sidebar, replacing the inline DownloadsPanel in ModelsView - Backend: add getModelFolders/getModelFiles IPC handlers that scan shared model directories - Add ModelFileInfo type, preload bindings, and i18n keys Co-authored-by: Amp <amp@ampcode.com> Amp-Thread-ID: https://ampcode.com/threads/T-019d29a1-effe-7670-be7c-424140001724
c25b009 to
712b505
Compare
…-downloads-drawer
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.
Summary
Adds two new features to the Models view:
1. Model Browser
A new Browse Models tab in ModelsView with:
getModelFolders/getModelFiles) that scan shared model directories2. Downloads Drawer
A global slide-out drawer accessible from the sidebar that:
DownloadsPanelthat was embedded in ModelsViewChanges
src/types/ipc.ts—ModelFileInfotype,getModelFolders/getModelFilesAPI methodssrc/main/lib/models.ts—listModelFolders/listModelFilesbackend functionssrc/main/lib/ipc.ts— IPC handlers for model file listingsrc/preload/index.ts— preload bindingssrc/renderer/src/components/ModelBrowser.vue— new file browser componentsrc/renderer/src/components/DownloadsDrawer.vue— new drawer componentsrc/renderer/src/views/ModelsView.vue— tab switcher, removed DownloadsPanelsrc/renderer/src/App.vue— drawer wiring + sidebar download buttonsrc/renderer/src/assets/main.css— toolbar tabs, drawer styleslocales/en.json— new i18n keys