When the frontend is waiting on data for a panel, a spinning wheel is shown. This is fine for quick tasks, like Metadata, but an annoying user experience for longer tasks, such as Transcription, and Upload or Keyframes for longer videos.
Showing a progress bar instead is more interactive. Instrumentation for this exists in the websocket types, more precisely BackendProgress at
|
export interface BackendProgress extends BackendMessage { |
|
progress: number; |
|
} |
Hijacking the tqdm library seems like a good option.
This might be a good option of how to visualize the loading bar: https://flowbite.com/docs/components/progress/
When the frontend is waiting on data for a panel, a spinning wheel is shown. This is fine for quick tasks, like Metadata, but an annoying user experience for longer tasks, such as Transcription, and Upload or Keyframes for longer videos.
Showing a progress bar instead is more interactive. Instrumentation for this exists in the websocket types, more precisely
BackendProgressatveridash/frontend/src/useBackend.ts
Lines 12 to 14 in af11f03
Hijacking the tqdm library seems like a good option.
This might be a good option of how to visualize the loading bar: https://flowbite.com/docs/components/progress/