aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/src/components
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-165-5/+371
| | | | 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-163-79/+340
| | | | 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
|
* chore: add dev dependency for prek in pyproject.toml and uv.lockHsiangNianian2026-01-161-2/+7
| | | | Included the 'prek' package as a development dependency in both pyproject.toml and uv.lock, specifying version 0.2.28 to enhance development capabilities.
* feat: enhance settings view with AI assistant configuration optionsHsiangNianian2026-01-161-0/+386
| | | | Expanded the SettingsView component to include new features for managing the AI assistant, such as selecting language models, configuring response settings, and applying preset personas. Added a button to open the configuration editor for JSON settings. This update improves user interaction with the assistant and provides more control over its behavior and settings.
* feat: add assistant view and configuration editor componentsHsiangNianian2026-01-164-5/+843
| | | | Introduced a new AssistantView component for enhanced interaction with the AI assistant, allowing users to send messages and receive responses. Implemented a ConfigEditorModal for editing configuration files with JSON validation and history management. Updated the App component to integrate these new features, improving user experience and functionality in managing AI settings.
* feat: Add interactive Saturn effect controls in HomeView and enhance ↵HsiangNianian2026-01-152-3/+81
| | | | ParticleBackground for external mouse handling
* feat: Implement local version fetching and enhance version type detection to ↵HsiangNianian2026-01-152-0/+3
| | | | support modpacks in version management
* feat: Add functionality to list installed game versions in the application, ↵HsiangNianian2026-01-151-35/+113
| | | | enhancing version management and user experience in BottomBar
* feat: Enhance text formatting in HomeView by adding support for italicized ↵HsiangNianian2026-01-151-0/+1
| | | | text using single asterisks
* feat: Implement logout confirmation dialog and enhance account status ↵HsiangNianian2026-01-151-6/+17
| | | | display in BottomBar for improved user experience
* feat: Add version installation and check functionality to enhance mod loader ↵HsiangNianian2026-01-151-24/+125
| | | | support in the application
* feat: Implement custom dropdown components for version selection in ↵HsiangNianian2026-01-154-54/+362
| | | | BottomBar and ModLoaderSelector, enhancing user interaction and UI consistency
* style: Update select element styles in ModLoaderSelector for improved UI ↵HsiangNianian2026-01-151-2/+2
| | | | consistency and user interaction
* feat: Add debug and log upload settings to SettingsView for enhanced user ↵HsiangNianian2026-01-151-2/+45
| | | | control and customization
* fix: Clean up main.rs by removing unused imports and updating variable names ↵HsiangNianian2026-01-151-1/+1
| | | | for clarity; enhance HomeView.svelte by correcting emoji processing logic
* docs: Update README.md with enhanced feature descriptions, improved UI ↵HsiangNianian2026-01-151-1/+13
| | | | terminology, and added installation instructions; update image alt text for accessibility
* style: Update BottomBar component for improved UI and accessibility, ↵HsiangNianian2026-01-151-31/+23
| | | | including layout adjustments and icon integration
* feat: Enhance HomeView component with release loading, markdown parsing, and ↵HsiangNianian2026-01-151-29/+175
| | | | improved UI elements
* style: Refactor ModLoaderSelector component for enhanced UI and accessibilityHsiangNianian2026-01-151-51/+36
|
* style: Update UI components for improved appearance and consistencyHsiangNianian2026-01-152-27/+58
|
* feat(java): Implement Java catalog management and download featuresBegonia, HE2026-01-151-57/+318
| | | | | | | | - Added commands to fetch and refresh the Java catalog, cancel downloads, and manage pending downloads. - Enhanced the Java download modal in the UI to support version selection, download progress, and pending downloads. - Introduced new types for Java catalog, download progress, and pending downloads. - Updated settings store to handle Java catalog state, download progress, and pending downloads. - Improved user experience with loading states, error handling, and status notifications for Java installations.
* 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: re-integrate Java download UI into new component architectureBegonia, HE2026-01-141-0/+77
| | | | | | | | - Add Java download functionality to settings store - Add JavaDownloadInfo type definition - Add Download Java button and modal to SettingsView - Support JRE/JDK selection with version picker - Maintain integration with Adoptium API backend
* feat: enhance dark mode support across UI componentsHsiangNianian2026-01-148-102/+124
| | | | | | | | - 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-147-378/+571
| | | | | | | | | - 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
|
* feat: add ModLoaderSelector component for managing mod loader installationsHsiangNianian2026-01-141-0/+245
|
* Revert "feat: add functionality to retrieve installed game versions"简律纯2026-01-141-5/+2
|
* Merge pull request #16 from NtskwK/feat/enabled-version简律纯2026-01-141-2/+5
|\
* | Update ui/src/components/VersionsView.svelte简律纯2026-01-141-1/+1
| | | | | | Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* | Update ui/src/components/SettingsView.svelte简律纯2026-01-141-1/+1
| | | | | | Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* | Update download threads help text to clarify max value reasoningcopilot-swe-agent[bot]2026-01-141-1/+1
| | | | | | | | Co-authored-by: HsiangNianian <44714368+HsiangNianian@users.noreply.github.com>
* | Update ui/src/components/SettingsView.svelte简律纯2026-01-141-0/+1
| | | | | | Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* | feat: enhance StatusToast component with key block for improved renderingHsiangNianian2026-01-141-18/+24
| |
* | feat: add download settings for concurrent download threadsHsiangNianian2026-01-141-0/+23
| |
* | 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: add functionality to retrieve installed game versionsNatsuu2026-01-141-2/+5
| |
* | feat: implement version search functionality in VersionsViewNatsuu2026-01-141-1/+19
|/
* chore: add for attributes to labels in BottomBar and SettingsView componentsNatsuu2026-01-142-10/+16
|
* refactor: split App.svelte into componentsNatsuu2026-01-147-0/+499