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

Progress on Cards Seperator #32

Open
meceware opened this issue Jan 15, 2025 · 0 comments
Open

Progress on Cards Seperator #32

meceware opened this issue Jan 15, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@meceware
Copy link
Owner

The cards separator can be turned into a progress bar as below. However the start date of the subscriptions is not known and using createdAt doesn't make sense in this case.

<div className='flex w-full h-0.5'>
  <div className='w-[40%] bg-orange-500'></div>
  <div className='w-[60%] bg-border'></div>
</div>

The progress bar calculation can be the progress in a year for infinite subscriptions (when untilDate is null) and can be calculated based on untilDate. The calcuation is already available under SubscriptionPaymentCount -> getPaymentCount which needs some improvements based on the algorithm.

@meceware meceware added the enhancement New feature or request label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant