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

add ability to edit a conversation title #1921

Merged
merged 4 commits into from
Oct 3, 2023
Merged

add ability to edit a conversation title #1921

merged 4 commits into from
Oct 3, 2023

Conversation

fontanierh
Copy link
Contributor

No description provided.

@fontanierh fontanierh requested review from spolu and PopDaph October 2, 2023 15:36
Copy link
Contributor

@spolu spolu left a comment

Choose a reason for hiding this comment

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

Left a few comments, looks generally good but I don't quite understand the comment?

className="w-full rounded-md font-bold"
value={editedTitle}
onChange={(e) => setEditedTitle(e.target.value)}
// this is to make sure the save button click
Copy link
Contributor

Choose a reason for hiding this comment

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

Comments are sentences :) Upper-case and a . at the end

This comment is intriguing. Just enough to hook you up, not enough to understand :p

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Clarified

</div>
</div>
) : (
<IconButton
Copy link
Contributor

Choose a reason for hiding this comment

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

The alignment is not perfect here the icon is a bit above the text? Can we tweak it a bit?

Also that gray looks not super sharp maybe we can use the flavour that is darker?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

}
);
await mutate(
`/api/w/${owner.sId}/assistant/conversations/${conversationId}`
Copy link
Contributor

Choose a reason for hiding this comment

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

You want to mutate conversations as well to update the left-hand pane?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed. That's a whole lot of refetching for just a title :(

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@fontanierh fontanierh requested a review from spolu October 3, 2023 08:43
@fontanierh fontanierh merged commit 1a3353e into main Oct 3, 2023
1 check passed
@fontanierh fontanierh deleted the feat/edit-title branch October 3, 2023 10:30
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