Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove new conversation input bar animation #9534

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

spolu
Copy link
Contributor

@spolu spolu commented Dec 19, 2024

Description

The Input Bar translation to the bottom of the conversation going from new to a conversation is not hardware accelerated. It's tricky to hardware accelerate (though possible) as it requires using translate but it would mean computing various value that we don't today as we rely on the layout of the page and the stickyness to the bottom of the input bar.

This PR proposes to remove all these transitions as they are clearly buggy and visually not appealing in favor of snapping things around immediately (as does chatGPT probably for the same reasons).

Risk

Low

Deploy Plan

  • deploy fonrt

@spolu spolu requested a review from Duncid December 19, 2024 11:18
@@ -22,12 +22,14 @@ import { classNames } from "@app/lib/utils";

export function ConversationTitle({
owner,
conversationId,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can have a conversationId before we have a conversation (shallow page change before the swr hook is executed)

@@ -231,12 +231,12 @@ export function ConversationContainer({
});
} else {
// We start the push before creating the message to optimize for instantaneity as well.
setActiveConversationId(conversationRes.value.sId);
void router.push(
await router.push(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

required so that we snap once the shallow URL change is done so that everyone snap at the same time (title in, conversation in, assistant out)

@spolu spolu merged commit 97902e7 into main Dec 19, 2024
7 checks passed
@spolu spolu deleted the spolu-remove_new_convo_animations branch December 19, 2024 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants