diff --git a/patches/0027-Make-an-instance-group-from-the-library-s-free-space.patch b/patches/0027-Make-an-instance-group-from-the-library-s-free-space.patch new file mode 100644 index 0000000..d5ca519 --- /dev/null +++ b/patches/0027-Make-an-instance-group-from-the-library-s-free-space.patch @@ -0,0 +1,88 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Modrinth Enhanced +Date: Fri, 18 Sep 2026 10:42:13 +0200 +Subject: [PATCH] Make an instance group from the library's free space + +Right-clicking the empty space around the library offered a new instance +and nothing else, so making a group meant finding the toolbar button. +The same menu now offers it, and opens the dialog that button does. +--- + .../src/components/ui/library/index.vue | 4 ++++ + apps/app-frontend/src/pages/Index.vue | 16 ++++++++++++++-- + 2 files changed, 18 insertions(+), 2 deletions(-) + +diff --git a/apps/app-frontend/src/components/ui/library/index.vue b/apps/app-frontend/src/components/ui/library/index.vue +index 20000b6..1849835 100644 +--- a/apps/app-frontend/src/components/ui/library/index.vue ++++ b/apps/app-frontend/src/components/ui/library/index.vue +@@ -53,6 +53,7 @@ const { + currentDeleteInstances, + clearLibraryInstanceSelection, + deleteInstance, ++ openNewGroupModal, + handleInstanceIconSaved, + selectedLibraryInstances, + setSelectedLibraryInstances, +@@ -260,6 +261,9 @@ watch(selectedLibraryInstances, (selectedInstances) => { + anchorInstance.value = null + } + }) ++ ++// So the page's own menu, on the free space around the library, can offer it. ++defineExpose({ openNewGroupModal }) + + + diff --git a/scripts/check.sh b/scripts/check.sh index d798b17..fe7bf73 100755 --- a/scripts/check.sh +++ b/scripts/check.sh @@ -178,6 +178,8 @@ check "right-clicking one hides it" \ contains "$WORKTREE/apps/app-frontend/src/App.vue" 'openSidebarMenu' check "an instance can be deleted from the sidebar" \ contains "$WORKTREE/apps/app-frontend/src/components/ui/QuickInstanceSwitcher.vue" 'askToDelete' +check "the library's free space offers a new group" \ + contains "$WORKTREE/apps/app-frontend/src/pages/Index.vue" 'openNewGroupModal()' check "the news section can be collapsed" \ contains "$WORKTREE/apps/app-frontend/src/App.vue" 'setNewsCollapsed' check "the right sidebar has a fold button" \