mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 22:14:28 +01:00
This commit introduces the `SettingsViewModel` class, part of the MVVM architecture, responsible for managing the state and business logic for the settings feature of the app. This ViewModel is associated with the `SettingsView`. Features Managed by this ViewModel: - Dark Mode: Toggle the state of Dark Mode and notify listeners. - Developer Mode: Toggle the state of Developer Mode and notify listeners. - Base URL: Update the state of Base URL and notify listeners. - Continuous Mode Steps: Increment and decrement the number of Continuous Mode Steps and notify listeners. Each change in the state is followed by a notification to the listeners to rebuild the UI components that depend on this state, ensuring a reactive UI. To-do comments have been added where the state needs to be persisted or synchronized with a server.