Update integration service and search-assistant host component

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
master
2026-03-30 17:26:14 +03:00
parent 8536a6c707
commit 4a570b2842
2 changed files with 16 additions and 5 deletions

View File

@@ -29,6 +29,8 @@ export class IntegrationService {
search?: string;
page?: number;
pageSize?: number;
sortBy?: string;
sortDescending?: boolean;
} = {}): Observable<IntegrationListResponse> {
let httpParams = new HttpParams();
@@ -50,6 +52,12 @@ export class IntegrationService {
if (params.pageSize) {
httpParams = httpParams.set('pageSize', params.pageSize.toString());
}
if (params.sortBy) {
httpParams = httpParams.set('sortBy', params.sortBy);
}
if (params.sortDescending !== undefined) {
httpParams = httpParams.set('sortDescending', params.sortDescending.toString());
}
return this.http.get<IntegrationListResponse>(this.baseUrl, { params: httpParams });
}

View File

@@ -88,9 +88,10 @@ interface TrailBubble { x: number; y: number; size: number; delay: number; }
</div>
</header>
<!-- ═══ Content: single view at a time ═══ -->
<!-- ═══ Content: both views exist in DOM, visibility toggled ═══ -->
<div class="ah__content">
@if (stella.drawerView() === 'chat') {
<!-- Chat view (hidden, not destroyed, when search is active) -->
<div class="ah__view" [class.ah__view--hidden]="stella.drawerView() !== 'chat'">
@if (chatVisible()) {
<stellaops-chat
[tenantId]="context.tenantId() ?? 'default'"
@@ -101,8 +102,10 @@ interface TrailBubble { x: number; y: number; size: number; delay: number; }
(searchForMore)="onSearchForMore($event)"
/>
}
} @else {
<!-- Full-panel search view -->
</div>
<!-- Search view (hidden when chat is active) -->
<div class="ah__view" [class.ah__view--hidden]="stella.drawerView() !== 'search'">
<div class="ah__search-view">
<div class="ah__search-bar">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><line x1="16.5" y1="16.5" x2="21" y2="21"/></svg>
@@ -131,7 +134,7 @@ interface TrailBubble { x: number; y: number; size: number; delay: number; }
}
</div>
</div>
}
</div>
</div>
</section>
</div>