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
pmeier
left a comment
There was a problem hiding this comment.
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.
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