aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/src/components/VersionsView.svelte
Commit message (Collapse)AuthorAgeFilesLines
* fix: complete Instance/Profile System isolation and state managementHsiangNianian2026-01-181-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ## Overview Fixed critical multi-instance isolation bugs where versions, mod loaders, and instance state were not properly isolated between instances. These changes ensure full data isolation and consistent instance metadata. ## Bug Fixes - P0 (Critical Isolation Issues) ### 1. Backend: get_versions() command isolation - Problem: Used global app_data_dir instead of instance-specific game_dir - Fix: Added instance_id parameter, now queries instance.game_dir - Impact: Versions are now properly isolated per instance ### 2. Frontend: delete_version missing instanceId - Problem: Frontend passed only versionId, not instanceId - Fix: Updated VersionsView.svelte to pass instanceId parameter - Impact: Version deletion now targets correct instance ### 3. Frontend: get_version_metadata missing instanceId - Problem: Metadata queries didn't specify which instance to check - Fix: Updated VersionsView.svelte to pass instanceId parameter - Impact: Version info displayed per-instance correctly ### 4. Frontend: Instance switching doesn't refresh versions - Problem: Switching instances didn't reload version list - Fix: Added $effect hook in GameState to watch activeInstanceId changes - Impact: Version list auto-refreshes on instance switch ## Bug Fixes - P1 (State Synchronization) ### 5. Backend: install_fabric doesn't update Instance.mod_loader - Problem: Instance.mod_loader field wasn't updated after installation - Fix: Added instance_state.update_instance() call - Impact: Instance metadata stays in sync ### 6. Backend: install_forge doesn't update Instance.mod_loader - Problem: Instance.mod_loader field wasn't updated after installation - Fix: Added instance_state.update_instance() call - Impact: Instance metadata stays in sync ### 7. Backend: delete_version doesn't clean up Instance state - Problem: Deleting version didn't clear Instance.version_id or .mod_loader - Fix: Added cleanup logic to clear stale references - Impact: Instance state remains valid after deletion ## Testing - Added comprehensive integration tests in instance_isolation_tests.rs - Tests document 10 key scenarios for multi-instance isolation - All code compiles cleanly with no errors
* feat: add InstancesView component and integrate instance management into the UIHsiangNianian2026-01-161-2/+12
| | | | Introduced a new InstancesView component for managing game instances, allowing users to create, edit, delete, and duplicate instances. Updated the App.svelte to include the InstancesView and modified various components to ensure instance selection is handled correctly. Enhanced the ModLoaderSelector and VersionsView to check for active instances before performing actions. Updated the Sidebar to include navigation to the new InstancesView.
* feat: enhance Java version management for Minecraft versionsHsiangNianian2026-01-161-33/+292
| | | | Added functionality to determine and validate the required Java version for Minecraft versions, including checks for compatibility with older versions. Implemented event emissions for version installation and deletion, and updated the UI to reflect Java version requirements and installation status. Improved version metadata handling and added support for deleting versions.
* chore: apply prek auto-fixes [skip ci]HsiangNianian2026-01-161-1/+0
|
* feat: Implement local version fetching and enhance version type detection to ↵HsiangNianian2026-01-151-0/+2
| | | | support modpacks in version management
* fix(ui): correct styling bugs and code quality issuesBegonia, HE2026-01-141-1/+1
| | | | | | - Fix missing h- prefix in VersionsView height class (-40 → h-40) - Correct typo in SaturnEffect comment (Warn → Warm White) - Remove double space in App.svelte class attribute
* feat: enhance dark mode support across UI componentsHsiangNianian2026-01-141-24/+24
| | | | | | | | - Updated BottomBar, HomeView, LoginModal, ModLoaderSelector, SettingsView, Sidebar, StatusToast, and VersionsView components for improved dark mode styling. - Adjusted color schemes for various elements to ensure better visibility and aesthetics in dark mode. - Added a theme property to settings to enforce dark mode as the default. - Refactored version badges in VersionsView for better color differentiation. - Enhanced button and input styles for consistency in both light and dark themes.
* feat: Enhance UI components and add visual effectsHsiangNianian2026-01-141-98/+86
| | | | | | | | | - Updated Sidebar component styles for improved aesthetics and usability. - Refactored VersionsView component with a new layout and enhanced version filtering. - Improved DownloadMonitor and GameConsole components for better performance and visual consistency. - Added new settings for GPU acceleration and visual effects in settings store. - Introduced ParticleBackground component with customizable effects (Constellation and Saturn). - Implemented ConstellationEffect and SaturnEffect classes for dynamic background animations.
* feat: enhance VersionsView with modded version support and filtering optionsHsiangNianian2026-01-141-37/+231
|
* Update ui/src/components/VersionsView.svelte简律纯2026-01-141-1/+1
| | | Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* feat: optimize search filtering by using normalized query for better accuracyNatsuu2026-01-141-2/+5
|
* fix: search query character replacement to use replaceAll for better accuracyNatsuu2026-01-141-1/+1
|
* feat: enhance search functionality by trimming and replacing characters in ↵Natsuu2026-01-141-1/+1
| | | | search query
* feat: implement version search functionality in VersionsViewNatsuu2026-01-141-1/+19
|
* refactor: split App.svelte into componentsNatsuu2026-01-141-0/+34