Skip to content
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

ProgressBar Wrapper #162

Open
Suvarna-Thejas-CE opened this issue Nov 27, 2023 · 2 comments
Open

ProgressBar Wrapper #162

Suvarna-Thejas-CE opened this issue Nov 27, 2023 · 2 comments

Comments

@Suvarna-Thejas-CE
Copy link
Contributor

Think that we can introduce a wrapper component that utilizes #99 to fit various use cases around progress bars.

Two use cases off the top of my head:

  • Points-based use case (PROGRESS)
    image

  • Completed-based use case (STOP COVID)
    image

Feels like this could be accomplished with 1 component if you parameterize:

  • Title ("Current Points" or "Completed Weekly Surveys")
  • Progress
  • Total Required
  • Unit
  • Completion Action (Need help for a better name, but this would be "next reward" or "complete task".
@Suvarna-Thejas-CE
Copy link
Contributor Author

I think this could also handle ProgressBar Steps like in the example below if Total Required (maybe that should be renamed to steps), was an array.
image

@chrisnowak
Copy link
Contributor

Could consider whether this is actually a single component or is just 3 separate components...other than the "Current level: Contributor" the other 2 are just text blocks that can be achieved with the view builder potentialy (esp if points are just a custom field).

Of course there could be more advanced logic that makes it not work and may be easier to drop it in as one monolithic thing (if we find this is a common enough pattern)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants