mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-02-03 13:24:28 +01:00
This commit integrates the newly created `SettingsView` into the `MainLayout`, allowing users to access and interact with the settings through the main user interface of the app. When the user selects the settings tab from the `SideBarView`, the `SettingsView` is displayed alongside the `ChatView`, maintaining consistent layout aesthetics with other views like `TaskView`. Key Changes: - A new condition has been added in the `ValueListenableBuilder` within the `MainLayout` to check if the selected view is `'SettingsView'`. - When `'SettingsView'` is selected, `SettingsView` is rendered with the same width as `TaskView`, and `ChatView` is displayed next to it. - The state of the skill tree is reset when navigating to `SettingsView` to ensure a clean state. This integration ensures a seamless user experience, allowing users to navigate and configure app settings easily and efficiently from the main layout of the app.