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

fix(ui): fix deletion issue for topmost quick reply #21

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ Theses are just some examples of the hidden costs that are not so apparent from

#### **Do you intend to add a new feature or change an existing one?**

* Suggest your change in our [Discord Channel](https://discord.gg/xnpWDYQMAq) and start writing code.
* Suggest your change in our [Discord Channel](https://discord.gg/rNb9t2MFkG) and start writing code.

* Do not open an issue on GitHub until you have collected positive feedback about the change. GitHub issues are primarily intended for bug reports and fixes.

#### **Do you have questions about the source code?**

* Ask any question about how to use Hexabot in our [Discord Channel](https://discord.gg/xnpWDYQMAq).
* Ask any question about how to use Hexabot in our [Discord Channel](https://discord.gg/rNb9t2MFkG).


Hexabot's Community Edition is a volunteer effort. We encourage you to pitch in and join us!
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Hexabot
![App Screenshot](https://www.hexabot.ai/assets/images/screencast.gif)

## Description

Expand Down Expand Up @@ -92,7 +93,7 @@ Please refer to our contribution policy first : [How to contribute to Hexabot](.
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](./CODE_OF_CONDUCT.md)


Feel free to join us on [Discord](https://discord.gg/xnpWDYQMAq)
Feel free to join us on [Discord](https://discord.gg/rNb9t2MFkG)

## License
This software is licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ We ask that you allow us sufficient time to investigate and patch the vulnerabil

Thank you for contributing to the security of Hexabot.

If you have any questions about this policy, feel free to reach out to us in our [Discord Server](https://discord.gg/xnpWDYQMAq).
If you have any questions about this policy, feel free to reach out to us in our [Discord Server](https://discord.gg/rNb9t2MFkG).
2 changes: 1 addition & 1 deletion api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ For detailed information about the API routes and usage, refer to the API docume
## Contributing
We welcome contributions from the community! Whether you want to report a bug, suggest new features, or submit a pull request, your input is valuable to us.

Feel free to join us on [Discord](https://discord.gg/xnpWDYQMAq)
Feel free to join us on [Discord](https://discord.gg/rNb9t2MFkG)

## License
This software is licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
Expand Down
2 changes: 1 addition & 1 deletion frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The live chat widget will be accessible at http://localhost:5173.
## Contributing
We welcome contributions from the community! Whether you want to report a bug, suggest new features, or submit a pull request, your input is valuable to us.

Feel free to join us on [Discord](https://discord.gg/xnpWDYQMAq)
Feel free to join us on [Discord](https://discord.gg/rNb9t2MFkG)

## License
This software is licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type QuickRepliesInput = {
minInput?: number;
};


const QuickRepliesInput: FC<QuickRepliesInput> = ({
value,
onChange,
Expand Down Expand Up @@ -65,7 +66,15 @@ const QuickRepliesInput: FC<QuickRepliesInput> = ({
};

useEffect(() => {
onChange(quickReplies.map(({ value }) => value));
if (
quickReplies.length === 1 &&
quickReplies[0]?.value?.title?.trim() === "" &&
quickReplies[0]?.value?.payload?.trim() === ""
) {
onChange([]);
} else {
onChange(quickReplies.map(({ value }) => value));
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [quickReplies]);

Expand Down
2 changes: 1 addition & 1 deletion nlu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ huggingface-cli lfs-enable-largefiles .
## Contributing
We welcome contributions from the community! Whether you want to report a bug, suggest new features, or submit a pull request, your input is valuable to us.

Feel free to join us on [Discord](https://discord.gg/xnpWDYQMAq)
Feel free to join us on [Discord](https://discord.gg/rNb9t2MFkG)

## License
This software is licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
Expand Down
2 changes: 1 addition & 1 deletion widget/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ You can customize the look and feel of the chat widget by modifying the widget
## Contributing
We welcome contributions from the community! Whether you want to report a bug, suggest new features, or submit a pull request, your input is valuable to us.

Feel free to join us on [Discord](https://discord.gg/xnpWDYQMAq)
Feel free to join us on [Discord](https://discord.gg/rNb9t2MFkG)

## License
This software is licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
Expand Down