Open Suvarna-Thejas-CE opened 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.
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)
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:
Points-based use case (PROGRESS)![image](https://github.com/CareEvolution/MyDataHelpsUI/assets/60715340/65445741-42d3-4e47-8cc6-907afbf3bbe3)
Completed-based use case (STOP COVID)![image](https://github.com/CareEvolution/MyDataHelpsUI/assets/60715340/4500b486-ff1c-40fb-b63b-567846a2b0d0)
Feels like this could be accomplished with 1 component if you parameterize: