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

[Feat] add edit message and retry generation #128

Merged
merged 35 commits into from
Dec 7, 2024
Merged

Conversation

a-ghorbani
Copy link
Owner

@a-ghorbani a-ghorbani commented Dec 5, 2024

Description

Adds a long-press menu for chat bubbles (+few other changes, see below):

For user messages:
- Copy: Copies the message to the clipboard
- Edit: Lets the user edit any previous message and restart from there.

For model responses:
- Copy: Same as above.
- Regenerate: Regenerates the response.
- Regenerate with: Regenerates the response with another available model.

Additional changes:

  • Introduced new menu components: Menu, MenuItem, SubMenu
  • Refactored theme colors.
  • Renamed the chat Input component to ChatInput
  • Updated/refactored tests and mocks affected by these changes.

Known Issue:

  • Menu does not inject onSubmenuOpen and onSubmenuClose into Submenu.

Fixes #62
Fixes #61

Platform Affected

  • iOS
  • Android

Checklist

  • Necessary comments have been made.
  • I have tested this change on:
    • iOS Simulator/Device
    • Android Emulator/Device
  • Unit tests and integration tests pass locally.

@a-ghorbani a-ghorbani marked this pull request as ready for review December 7, 2024 09:48
@a-ghorbani a-ghorbani merged commit a45fcb7 into main Dec 7, 2024
3 checks passed
@a-ghorbani a-ghorbani deleted the feat/add-edit-retry branch December 7, 2024 09:54
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.

[Feat]: Edit previous messages [Feat]: Add option to regenerate
1 participant