Add "Stop Sharing" ability
Users should be able to temporarily or permanently stop sharing access. Screen mocks are in https://projects.invisionapp.com/share/FZ1KBVV7K#/screens/43436357?maintainScrollPosition=false
Changes needed:
- Add an "Available for sharing" screen overlay the first time the user clicks on "Share Access" (slide 14b)
- When sharing is active, we should add the share icon in the top right of uProxy
- Add a "Stop Sharing" button to the UI
- Give user a predefined list of options for how long to stop sharing
- After saving, update text and change "Stop Sharing" to "Start Sharing"
- When the user has stopped sharing, the uProxy core needs to reject all incoming requests for proxying
- Contacts of a user who has clicked "Stop Sharing" should see them as offline on the "Get Access" tab.
- e.g. if Alice is permissioned to get access through Bob, yet Bob has clicked Stop Sharing, Alice should see Bob as an offline trusted contact on the Get tab (trusted because she still has permission through Bob). However on the Share Access tab, Bob should still appear as online.
Updated mock for toggling sharing state: https://beta-dot-folio.googleplex.com/izzie/uProxy/110614#%2FArtboard%203.png%3Fz=half&c=hidden
This turns out to be complex, and messy, and after deeper thinking, we're not sure it's a helpful thing. I'll setup a meeting to discuss.
Original idea was to send a new instance message to each of your peers if you change your sharing status. However, this sends an undesirable amount of messages over the signaling channel. Instead two possible solutions to consider:
- Send instance updates to only the peers who are getting access from you. Can use the existing "revoke access" mechanism, and set a bit somewhere to indicate that this is only temporarily.
- Simulate offline behaviour. Trigger the social network into telling your peers you're offline. This will also save the messiness of notifying users about your "not sharing" state; appearing offline implies that you're not available.
@dborkan we now have this on a per-user basis, is it important to be able to cut off all sharing with one click?
I'm fine with closing this. Long ago we thought this was a must-have, but then we decided that it both wasn't so important and there were some issues with implementation.