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

Ask for a reason when reporting assistants #825

Merged
merged 5 commits into from
Feb 15, 2024

Conversation

nsarrazin
Copy link
Collaborator

@nsarrazin nsarrazin commented Feb 14, 2024

Empty Filled reason
image Screenshot from 2024-02-14 17-54-41

Maxed reason to 128 chars, should work with the slack webhook integration.

@nsarrazin nsarrazin added enhancement New feature or request assistants Related to the assistants feature labels Feb 14, 2024
@@ -46,7 +46,7 @@
role="presentation"
tabindex="-1"
bind:this={backdropEl}
on:click={handleBackdropClick}
on:click|stopPropagation={handleBackdropClick}
Copy link
Collaborator

Choose a reason for hiding this comment

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

just to be sure, this doesn't affect other use cases of Modal. Right ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I tested our other modals and it doesn't, but I think we needed this line anyway: otherwise when you have two modals, clicking the backdrop would close all of them instead of the topmost one

Copy link
Collaborator

@mishig25 mishig25 left a comment

Choose a reason for hiding this comment

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

lgtm !

@nsarrazin
Copy link
Collaborator Author

Alright, going to check the slack integration in prod then!

@nsarrazin nsarrazin merged commit 3109a5e into main Feb 15, 2024
3 checks passed
@nsarrazin nsarrazin deleted the feature/report_assistant_reason branch February 15, 2024 11:00
ice91 pushed a commit to ice91/chat-ui that referenced this pull request Oct 30, 2024
* Show modal asking for assistant report reason

* fix disabled button styling

* parse with zod

* Update src/routes/settings/assistants/[assistantId]/ReportModal.svelte

Co-authored-by: Victor Muštar <victor.mustar@gmail.com>

* use a text area with max-w

---------

Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assistants Related to the assistants feature enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants