@@ -4,6 +4,11 @@ import {
44} from '../actions/AppRootPresentationActions';
55import { AppRouteContract } from '../navigation/AppRouteContract';
66import { AppShellState, CONNECT_INTENT_AUTO } from '../state/AppShellState';
7+ import {
8+ SettingsPlacement,
9+ SettingsPlacementPolicy,
10+ SettingsSheetKind
11+ } from '../policy/SettingsPlacementPolicy';
712import { GeneralChatPageState } from '../state/GeneralChatPageState';
813import { DeviceDirectoryState } from '../state/DeviceDirectoryState';
914import { RemotePageState } from '../state/RemotePageState';
@@ -17,6 +22,8 @@ import { SidebarWorkspaceSection } from './SidebarWorkspaceSection';
1722@ComponentV2
1823export struct AppSidebarSurface {
1924 @Param shellState: AppShellState = new AppShellState();
25+ @Param sessionDetailsPlacement: SettingsPlacement =
26+ SettingsPlacementPolicy.compactBottom(SettingsSheetKind.SessionDetails);
2027 @Param remotePageState: RemotePageState = new RemotePageState();
2128 @Param deviceDirectoryState: DeviceDirectoryState = new DeviceDirectoryState();
2229 @Param generalPageState: GeneralChatPageState = new GeneralChatPageState();
@@ -27,6 +34,7 @@ export struct AppSidebarSurface {
2734 build() {
2835 AppSidebar({
2936 sessions: this.generalPageState.recentSessions(),
37+ sessionDetailsPlacement: this.sessionDetailsPlacement,
3038 pinnedSessionId: this.generalPageState.pinnedSessionId(),
3139 selectedSessionId: AppRouteContract.isGeneralComposerRoute(this.shellState.activeRoute) ?
3240 this.generalPageState.conversation.activeSession.sessionId : '',
@@ -134,6 +142,7 @@ export struct AppSettingsSurface {
134142 })
135143 } else {
136144 SettingsSheet({
145+ sheetState: this.shellState.settingsSheet,
137146 generalChatApiUrl: this.generalPageState.apiUrl,
138147 generalChatModelName: this.generalPageState.modelName,
139148 hasGeneralChatApiKey: this.generalPageState.hasApiKey,
@@ -145,6 +154,7 @@ export struct AppSettingsSurface {
145154 onOpenAccount: this.actions.onSettings.openAccount,
146155 onTestGeneralChatConfig: this.actions.onSettings.testGeneral,
147156 onSaveGeneralChatConfig: this.actions.onSettings.saveGeneral,
157+ onSelectGeneralChatModel: this.actions.onSettings.selectGeneralModel,
148158 onSetLanguage: this.actions.onSettings.setLanguage,
149159 onClose: this.actions.onSettings.close
150160 })
0 commit comments