Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Conversation

@keegangeorge
Copy link
Member

@keegangeorge keegangeorge commented Feb 26, 2025

πŸ” Overview

This update ensures that the streaming for discoveries is smoother, especially on first update.

βž• More details

To help with smoother streaming, the discovery preview (which was being tracked as a separate property in the JS logic) will be removed and the entire discovery content will be shown/hidden via the existing CSS. The preview was already receiving the full update even though it was visually hidden, so removing the separate property shouldn't have any negative performance hit. Visually hiding it with CSS only will help simplify the component and also allow for smoother streaming. We will instead remove the buffered streaming approach and instead use typing timers similar to what we did for streaming summarization.

No related tests as streaming animations are difficult to test.

πŸ“Έ Screenshots

← Before

Screen.Recording.2025-02-26.at.18.40.34.mov
Screen.Recording.2025-02-26.at.18.41.09.mov

β†’ After

Screen.Recording.2025-02-26.at.18.37.44.mov
Screen.Recording.2025-02-26.at.18.37.00.mov

To help with smoother streaming, discovery preview will be shown/hidden
via existing CSS only instead of JS too. The preview already contained
the full update it was just being visually hidden so there should be no
performance difference than before.
@keegangeorge keegangeorge marked this pull request as ready for review February 27, 2025 02:43
@keegangeorge keegangeorge merged commit e159520 into main Feb 27, 2025
6 checks passed
@keegangeorge keegangeorge deleted the discovery-smooth-stream branch February 27, 2025 15:32
keegangeorge added a commit that referenced this pull request Feb 27, 2025
## πŸ” Overview
This update ensures that the streaming for discoveries is smoother, especially on first update.


## βž• More details
To help with smoother streaming, the discovery preview (which was being tracked as a separate property in the JS logic) will be removed and the entire discovery content will be shown/hidden via the existing CSS. The preview was already receiving the full update even though it was visually hidden, so removing the separate property shouldn't have any negative performance hit. Visually hiding it with CSS only will help simplify the component and also allow for smoother streaming. We will instead remove the buffered streaming approach and instead use typing timers similar to what we did for streaming summarization. 

No related tests as streaming animations are difficult to test.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants