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:
PeymanHonarjoo
2026-10-10 17:47:51 +03:30
parent be17544f2d
commit 28590c6dce
16 changed files with 1092 additions and 534 deletions
@@ -16,6 +16,12 @@
min-height: 460px;
}
/* A live call replaces the composer: the call bar (rendered by the page) sits where the input was,
so the wrapper collapses instead of leaving an empty 72px box under it. */
.ai-chat-input-wrapper.stream-open {
min-height: 0;
}
/* Layers cross-fade */
.composer-layer,
.voice-layer {
@@ -57,14 +63,6 @@
transform: translateY(0) scale(1);
}
:host-context(.has-messages) {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 10;
}
/* ---------- Chat composer ---------- */
.chat-composer {
/* The composer lays itself out RTL explicitly: Plus on the right edge, Send on the left.
@@ -128,7 +126,6 @@
}
.composer-textarea::-webkit-scrollbar-thumb {
background: var(--muted);
border: none;
border-radius: 9999px;
}
@@ -2,6 +2,7 @@
class="ai-chat-input-wrapper"
[class.voice-active]="anyVoiceActive()"
[class.dictation-active]="isVoiceMode()"
[class.stream-open]="streamOpen()"
[attr.data-voice-state]="voiceState()"
(keydown.escape)="onEscape()"
>
@@ -207,4 +208,4 @@
</div>
}
</div>
</div>
</div>