-
Notifications
You must be signed in to change notification settings - Fork 44
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
Upload Progress Bar #1502
base: dev
Are you sure you want to change the base?
Upload Progress Bar #1502
Conversation
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.
The rest looks good. However, I was not able to test this not locally, as this would require setting up the worker.
<li>Presentation Video: <b x-text="progress.PRES === null ? 'skipped' : `${progress.PRES}%`"></b></li> | ||
<li>Camera Video: <b x-text="progress.CAM === null ? 'skipped' : `${progress.CAM}%`"></b></li> | ||
<li>Combined Video: | ||
<div x-data="{ currentVal: progress.COMB, minVal: 0, maxVal: 100 }" class="flex h-4 w-full overflow-hidden rounded-radius bg-surface-alt dark:bg-surface-dark-alt" role="progressbar" aria-label="default progress bar" :aria-valuenow="currentVal" :aria-valuemin="minVal" :aria-valuemax="maxVal"> |
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.
The documentation recommends to use the native element whenever possible. If this is possible and doesn't overcomplicate things, we should probably follow this advice.
If we keep the role, we can leave out the :aria-valuemin="minVal" :aria-valuemax="maxVal"
as this defaults to 0 and 100 respectively.
</div> | ||
</li> | ||
<li>Presentation Video: | ||
<div x-data="{ currentVal: progress.PRES, minVal: 0, maxVal: 100 }" class="flex h-4 w-full overflow-hidden rounded-radius bg-surface-alt dark:bg-surface-dark-alt" role="progressbar" aria-label="default progress bar" :aria-valuenow="currentVal" :aria-valuemin="minVal" :aria-valuemax="maxVal"> |
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.
Same here.
</div> | ||
</li> | ||
<li>Camera Video: | ||
<div x-data="{ currentVal: progress.CAM, minVal: 0, maxVal: 100 }" class="flex h-4 w-full overflow-hidden rounded-radius bg-surface-alt dark:bg-surface-dark-alt" role="progressbar" aria-label="default progress bar" :aria-valuenow="currentVal" :aria-valuemin="minVal" :aria-valuemax="maxVal"> |
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.
And here.
Motivation and Context
fixes issue #1213
Description
added a progress bar for the upload of videos in the admin panel
Steps for Testing
Prerequisites:
Screenshots