Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Implement an indeterminate state for the progress bar #2200

Merged
merged 5 commits into from
Jun 14, 2022

Conversation

JammingBen
Copy link
Contributor

@JammingBen JammingBen commented Jun 13, 2022

Description

We've added an indeterminate state to the progress bar.

I've decided to build the indeterminate state myself (okay, with quite some help from StackOverflow :D) because the integration of Vuetify is a bit more complex than I anticipated. We can still do this later if neccessary.

Related Issue

Needed for owncloud/web#7105

Screenshots (if appropriate):

image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

@JammingBen JammingBen self-assigned this Jun 13, 2022
@JammingBen JammingBen marked this pull request as ready for review June 13, 2022 13:32
Copy link
Contributor

@kulmann kulmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nitpicks about the max prop. in general awesome, looking forward to seeing it integrated in web 🤩

@JammingBen JammingBen requested a review from kulmann June 14, 2022 08:36
required: false,
default: undefined,
validator: value => {
return value >= 0
Copy link
Contributor

@kulmann kulmann Jun 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't behave correctly:

  • undefined is valid but fails in validation
  • 0 is invalid but succeeds in validation

Copy link
Contributor Author

@JammingBen JammingBen Jun 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh right. value > 0 should do the trick though, right? Or am I missing something? 🤔 You can still set undefined with this validator.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh? undefined > 0 evaluates to false for me

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it doesn't trigger the validator at all since it's the default. that might be...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it doesn't trigger the validator at all since it's the default. that might be...

Yes that's what I meant :D The check itself would return false of course

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok then 😁

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@kulmann kulmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice 🤩

@kulmann kulmann merged commit b9dfa8e into master Jun 14, 2022
@delete-merged-branch delete-merged-branch bot deleted the progress-bar-indeterminate branch June 14, 2022 09:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants