refactor: overhaul home UI and audio playback reliability
Redesign the home page and voice stream panel into a compact dock layout to improve the chat experience. Implement a flush mechanism in the PCM playback worklet to handle the resampler tail, preventing premature session termination due to phantom outstanding playback. Fix document filter visibility in settings to ensure controls remain accessible when no results match, and refactor transcript insertion to maintain correct user/assistant ordering.
This commit is contained in:
@@ -203,6 +203,13 @@ export class SettingsPage implements OnInit, OnDestroy {
|
||||
readonly activeFilter = signal<DocumentStatus | 'all'>('all');
|
||||
readonly activeOnly = signal<boolean>(false);
|
||||
|
||||
/**
|
||||
* True when a document filter (status other than "all", or active-only) is applied. Keeps
|
||||
* the filter controls + table shell visible even when the filter matches zero rows, so the
|
||||
* user can change/reset the filter instead of the whole panel vanishing.
|
||||
*/
|
||||
readonly hasActiveFilters = computed(() => this.activeFilter() !== 'all' || this.activeOnly());
|
||||
|
||||
readonly hasActiveDocuments = computed(() => this.documents().some((d) => d.is_active));
|
||||
|
||||
readonly currentUserRole = computed<'admin' | 'user' | null>(() => {
|
||||
|
||||
Reference in New Issue
Block a user