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

Adds differentiation in messaging between debit/credit amounts #2539

Merged
merged 2 commits into from
Jul 27, 2023

Conversation

joepavitt
Copy link
Contributor

Description

Update messaging to be a function of whether Stripe credit is +ve/-ve.

When in credit:

Screenshot 2023-07-27 at 13 55 34

When in debit:

Screenshot 2023-07-27 at 13 55 02

Related Issue(s)

Closes #2416

Checklist

@joepavitt joepavitt requested a review from Steve-Mcl July 27, 2023 13:02
@Steve-Mcl
Copy link
Contributor

Looks good.

one question, what is shown when there is zero credit/debit? Are elements hidden or does it state $0 debit? or $0 credit?

@joepavitt
Copy link
Contributor Author

No credit/debit:

Screenshot 2023-07-27 at 14 07 09

@codecov
Copy link

codecov bot commented Jul 27, 2023

Codecov Report

Merging #2539 (1bf695e) into main (8da2139) will decrease coverage by 38.26%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main   #2539       +/-   ##
==========================================
- Coverage   39.84%   1.59%   -38.26%     
==========================================
  Files         494     494               
  Lines       17690   17690               
  Branches     4125    4127        +2     
==========================================
- Hits         7049     282     -6767     
- Misses      10641   17408     +6767     
Flag Coverage Δ
backend ?
frontend 1.59% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
...pages/instance/components/InstanceChargesTable.vue 0.00% <0.00%> (ø)
...pages/instance/components/InstanceCreditBanner.vue 0.00% <0.00%> (ø)

... and 174 files with indirect coverage changes

Copy link
Contributor

@Steve-Mcl Steve-Mcl left a comment

Choose a reason for hiding this comment

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

Approved. But one question I have is do we need a banner for debit balance? 🤔

Probably not - but ...

Happy to merge as is Joe - will wait your signal.

@joepavitt
Copy link
Contributor Author

I don't think so at this stage. I suspect, if someone owes us money, we'll just be taking it from them anyway. If situation arises and we need that banner, then, new issue. Out of scope of the original issue raised here.

@joepavitt joepavitt merged commit 11af176 into main Jul 27, 2023
2 of 3 checks passed
@joepavitt joepavitt deleted the 2416-debit-message branch July 27, 2023 13:23
@Pezmc
Copy link
Contributor

Pezmc commented Aug 7, 2023

I believe this PR introduced a bug when the user doesn't owe or has credit anything for anything:

Screenshot 2023-08-07 at 12 07 12

Tracking in #2562

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

Successfully merging this pull request may close these issues.

Mismatched credit text / values when money is owed
3 participants