Skip to content

Commit 5ad32e1

Browse files
google-genai-botcopybara-github
authored andcommitted
ADK changes
PiperOrigin-RevId: 813276845
1 parent 3b9440e commit 5ad32e1

16 files changed

+713
-112
lines changed

src/app/components/chat/chat.component.html

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,11 @@
3434
>
3535
}
3636
<mat-drawer class="side-drawer" #sideDrawer mode="side" appResizableDrawer>
37-
@if (isApplicationSelectorEnabledObs | async) {
38-
<div class="app-select-container">
39-
<mat-select
40-
class="app-select"
41-
(selectionChange)="onAppSelection($event)"
42-
[placeholder]="isLoadingApps() ? 'Loading...' : 'Select an agent'"
43-
[formControl]="selectedAppControl"
44-
>
45-
@if (apps$ | async; as availableApps) {
46-
@for (appName of availableApps; track appName) {
47-
<mat-option class="app-name-option" [value]="appName">{{ appName }}</mat-option>
48-
}
49-
}
50-
@if (selectedAppControl.value && isLoadingApps()) {
51-
<mat-option class="app-name-option" [value]="selectedAppControl.value">{{ selectedAppControl.value }}</mat-option>
52-
}
53-
</mat-select>
54-
</div>
55-
}
5637
<app-side-panel
38+
[isApplicationSelectorEnabledObs]="isApplicationSelectorEnabledObs"
39+
[apps$]="apps$"
40+
[isLoadingApps]="isLoadingApps"
41+
[selectedAppControl]="selectedAppControl"
5742
[showSidePanel]="showSidePanel"
5843
[appName]="appName"
5944
[userId]="userId"
@@ -80,6 +65,7 @@
8065
(page)="handlePageEvent($event)"
8166
(closeSelectedEvent)="closeSelectedEvent()"
8267
(openImageDialog)="openViewImageDialog($event)"
68+
(appSelectionChange)="onAppSelection($event)"
8369
>
8470
</app-side-panel>
8571
</mat-drawer>

src/app/components/chat/chat.component.scss

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,6 @@ button {
257257
margin-right: 20px;
258258
}
259259

260-
.app-select {
261-
width: 100%;
262-
}
263-
264260
.empty-state-container {
265261
color: #eee;
266262
height: 100%;
@@ -350,30 +346,6 @@ button {
350346
font-size: 14px;
351347
}
352348

353-
.app-select-container {
354-
width: 35%;
355-
margin-top: 12px;
356-
background-color: #212123;
357-
margin-left: 10px;
358-
height: 30px;
359-
display: flex;
360-
justify-content: space-between;
361-
padding-left: 20px;
362-
padding-right: 20px;
363-
border-radius: 10px;
364-
padding-top: 5px;
365-
}
366-
367-
.app-select-container {
368-
@include mat.select-overrides(
369-
(
370-
placeholder-text-color: #8ab4f8,
371-
enabled-trigger-text-color: #8ab4f8,
372-
enabled-arrow-color: #8ab4f8,
373-
)
374-
);
375-
}
376-
377349
.adk-checkbox {
378350
position: fixed;
379351
bottom: 0;
@@ -470,12 +442,3 @@ button {
470442
::ng-deep .mat-drawer {
471443
border-right: 1px solid #444746 !important;
472444
}
473-
474-
.app-name-option,
475-
.app-select {
476-
color: #9aa0a6;
477-
font-family: 'Google Sans Mono', monospace;
478-
font-style: normal;
479-
font-weight: 400;
480-
padding-left: unset;
481-
}

src/app/components/event-tab/event-tab.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
@if (isTraceView()) {
2525
<p>Trace</p>
2626
}
27-
@if (traceData()) {
27+
@if (traceData().length > 0) {
2828
<mat-button-toggle-group name="fontStyle" aria-label="Font Style" style="scale: 0.8" [(ngModel)]="view">
2929
<mat-button-toggle value="events">Events</mat-button-toggle>
3030
@if (isTraceEnabledObs | async) {

0 commit comments

Comments
 (0)