feat(invite-email): make OCM invite email optional and improve UI#14
Conversation
|
Hi @redblom and @mickenordin, I've been tinkering with the app a bit, could you take a look at my changes when you have a moment? |
|
This could be the opportunity to also add the 'Cc invite to sender' option/checkbox when sending an invite. |
|
There are now discrepancies in terminology regarding token, invite link, (base64) between the create invite and accept invite form. That must be fixed. |
|
Can the 'optional message' field become a multi-line text field again? |
I'm not sure what this is, Cc to who? like I, as an invite creator send an email to the recipient of invite and also myself?
Yes, I feel this too, we can discuss about this
Yes, I can make it multi line again |
Yes, send the invite also to myself (ie. the inviter). So just a checkbox something like this:
|
Simple Mode
I didn't have SMTP so I cannot see the next page :-) If you can test it on SUNET test and see how it looks would be great @mickenordin
Advanced Mode
Trying to add a share while the email checkbox is on and the email filed is empty Re designed the copy section and add a bit of explanation for "non-technical" people, I think this part needs some polishing anyway
Manual accept form
I've decided to make it more configurable like this: @redblom I have implemented the changes we discussed (including the updated wording for the invite details). When you have a moment, could you please take another look and let me know what you think? |
280c35f to
7a8cc14
Compare
d6a02e3 to
9b66ad3
Compare
a5432b0 to
aed6433
Compare
aed6433 to
299aea5
Compare
|
@MahdiBaghbani - can you rebase and squash maybe ? |
3984fd6 to
a4ce368
Compare
952e001 to
84ae6e9
Compare
|
@MahdiBaghbani - tested locally and came up with the recommendations below. New Invite:The email_optional flag:
The email:
Accept invite forms (popup & manual):
Accept invite form (manual):
All invites list:
Settings:
|
|
OK! glad you liked it. |
If you can manage, great, else just give a shout and I can try to do it.
Yes! It belongs in there :) |
d27eef7 to
bdc4766
Compare
1018ef3 to
ab8337b
Compare
Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
ab8337b to
6c6e79f
Compare







OCM Invites: Optional Email and UI Improvements
Email is Now Optional
The backend was already set up to handle NULL emails (thanks, database schema!), but the code was still checking for it. Now you can create invites without email, perfect for when you just want to share a link manually. (in my case test suite)
Invite Labels
Now there's an optional label field so you can tag invites with something like "Giuseppe from CERN" or "Test invite for demo". Makes searching way easier, especially for link-only invites.
I just reused the existing
recipient_namecolumn, so no database migrations needed. until the invite accepted by remote the label lives there, after it would be replaced by the actual name returned by remoteUI
The invite details page :
Everything is backward compatible, existing invites with email work exactly like before. No breaking changes here as far as I've tested, if you test it on the SUNET test drive it would be great!
Gallery
Pop up changes, email toggle, invalid or not configured smtp error, etc
Creating a test invite with no email