-
Notifications
You must be signed in to change notification settings - Fork 1
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
Per 9237 gift storage interface #248
Conversation
a008365
to
4ee9a12
Compare
08444a5
to
bc94459
Compare
be06693
to
3dfe053
Compare
Can you rebase this on main and fix the conflicts? |
52950c3
to
b6dd618
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may have been preexisting, but I can now reach https://ng.permanent.org:4200/app/(private//dialog:storage/done) and see an empty screen in the modal. I think we always want something to appear in the modal, likely the "add storage" page by default.
More concerning, I tried gifting 1.2 GB of storage, which is not allowed since we are limiting to whole numbers of gigabytes. I got a 500 error back from the server with the message SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for type bigint: "-1288490188.8"CONTEXT: unnamed portal parameter $1 = '...'
. but the user-facing message was "Success!" We should also remove the decimal point from the placeholder text and have it just read "0" or similar to make it clear that users need to send only whole numbers of gbs as gifts. Here is the slack conversation where Robert suggested sticking to whole gbs for gifting. Mind you, the server error should have been a validation issue, not a sql error, so I'm also looking into that.
@cecilia-donnelly I have pushed some changes, could you please recheck? thanks |
556df8e
to
acee8a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for validating the storage amount is a whole number! However, just disabling the button is very confusing. Can you add a red box around the problematic entry or something like that? (cc @k8lyn6 since this is really a design question - is there language you'd like to use for the error if a person tries to give 1.5 GB and we're only allowing them to gift integer gbs of storage?)
@cecilia-donnelly How about: "Storage can only be gifted in 1GB increments." |
@cecilia-donnelly @k8lyn6 should there be a message for invalid email addresses as well? |
8106702
to
57a5255
Compare
@cecilia-donnelly users can gift storage to people who aren't Permanent members, correct? I don't think we normally have a message for invalid email addresses, so I don't think we need one here. |
898b112
to
f29b7ab
Compare
@k8lyn6 i have added a message if the string is not a valid message (e.g andrei instead of [email protected]) |
Note that @k8lyn6 and I talked about this earlier and we should hold off on merging/deploying this until we fix a couple backend bugs. Notably https://permanent.atlassian.net/browse/PER-9327. |
d9e87eb
to
92202e3
Compare
@k8lyn6 @cecilia-donnelly @meisekimiu I have tested this with the backend changes, and it looks good so I would say it can be reviewed |
5248e82
to
3cc3b3e
Compare
c67fc46
to
60040ee
Compare
This pr's purpose is the implementation of the gift storage interface. I have added a new tab to the dropdown for the gift component. I have created a new component which in which the new form lies where the user must input the email, amount and the message. Upon confirmation a new modal pops up for confirmation.
d8acc73
to
5cd7b95
Compare
This pr's purpose is the implementation of the gift storage interface.
I have added a new tab to the storage dialog accessed from the dropdown for the gift component. I have created a new component which in which the new form lies where the user must input the email, amount and the message. Upon confirmation a new modal pops up for confirmation.