-
Notifications
You must be signed in to change notification settings - Fork 22
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
Auth + async answer + loading indicator in placeholder #135
Conversation
…into async_api_wrapper # Conflicts: # ragna/_ui/central_view.py
@pierrotsmnrd I've pushed 094105c to get rid of all the sync API calls. Unfortunately, this PR seems to be mixed with #137 and I'm facing issues there. Meaning, I can't properly review this one. |
Thanks for that, that's the piece I have been looking for. I wish One issue though : Now the The two PRs are not "mixed", the branch |
…into async_api_wrapper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor comment for simplification, but we can do that in a follow-up PR. Thanks Pierre!
async def get_components(self): | ||
return (await self.client.get("/components")).raise_for_status().json() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can do that in a follow-up, but we shouldn't need this anymore, right? We could just set this as an instance variable in __init__
and access it from there. The components will never change at runtime.
Async answer for a better, non-blocking UX when asking a question.
Making it async revealed the default loading indicator of Panel's chat message, so I replaced it with one with Ragna's colors.
UPDATE : also contains Auth after a rebase, see PR #137