CareEvolution / MyDataHelpsUI

MyDataHelps UI React Component Library
MIT License
1 stars 1 forks source link

ProgressBar Wrapper #162

Open Suvarna-Thejas-CE opened 7 months ago

Suvarna-Thejas-CE commented 7 months ago

Think that we can introduce a wrapper component that utilizes https://github.com/CareEvolution/MyDataHelpsUI/pull/99 to fit various use cases around progress bars.

Two use cases off the top of my head:

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

Suvarna-Thejas-CE commented 7 months ago

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 commented 7 months ago

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)