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

Adjust API error UI on AskNoora #26

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tommybru
Copy link
Collaborator

What:

Edits the UI when AskNoora API call fails. The new version better communicate to the user that they have to try again later and that the default reply is not a real response.

Old

Screenshot 2023-11-12 at 5 41 43 PM

New

Screenshot 2023-11-12 at 7 49 04 PM

How:

  • Adds a success parameter on the API result call and use it to conditionally render a successful reply or one asking users to try again

  • Edits the default reply to be "Noora couldn't think of a reply. Please try again later."

Testing

I do not yet have access to the Azure API, if it could be tested that where I have placed the success = True actually works with our API call.

Copy link

vercel bot commented Nov 13, 2023

@tommybru is attempting to deploy a commit to the stanford-oval Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant