-
Notifications
You must be signed in to change notification settings - Fork 69
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
Improved feedback when subscribing/unsubscribing to community #1499
Conversation
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.
LGTM
if (event.value) { | ||
showSnackbar(AppLocalizations.of(GlobalContext.context)!.subscriptionRequestSent); | ||
} else { | ||
showSnackbar(AppLocalizations.of(GlobalContext.context)!.unsubscriptionRequestSent); |
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.
I'm not sure we need this one since I don't believe unsubscripions have the same delay as subscriptions where the can be in pending
for a while. But I'll leave that up to you!
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.
I'm not actually too sure how the pending states work in this situation, so I just applied it to both! I can remove the unsubscription one though since you may be correct here!
If you know of a way to trigger the pending state, let me know and I can test it out
What happens if you test this on an instance that isn't yours? Do you get the "subscription request sent" message only? |
It'll still show both the subscription request and the confirmation afterwards (similar to the video demo) |
Here's my understanding of how things work.
I think what I would recommend is...
What do you think? |
Thanks for the response! I think I did pretty much what you suggested but with a slight change (I didn't see your message before 😅) The logic goes like this:
Here's some demo videos to show the differences: Subscribing to local community (very slow connection): Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-07-16.at.15.02.34.mp4Subscribing to local community (fast connection): Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-07-16.at.15.03.15.mp4Subscribing to federated community: Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-07-16.at.15.04.14.mp4Unsubscribing from federated community: Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-07-16.at.15.05.16.mp4Unsubscribing from local community (slow connection): Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-07-16.at.15.06.11.mp4 |
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.
Haha we were on the same wavelength. This looks perfect, thank you!!
Pull Request Description
This is a super small PR which adds snackbar messages for subscribing and unsubscribing from communities.
Issue Being Fixed
Issue Number: #1423
Screenshots / Recordings
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-07-16.at.09.39.05.mp4
Checklist
semanticLabel
s where applicable for accessibility?