Comments (8)
Phase 3 right?
from ioweb2016.
As well as #104 I/we also need to do a review of the UI pieces.
The text next to the checkbox last year did not match the behaviour, so that probably needs updating.
Also, Firebase allows us to have real-time updates, so the UI should respond to those.
from ioweb2016.
The schedule page will be very different this year. We'll definitely need
your help making the toasts work well with firebase.
On Fri, Feb 19, 2016, 5:26 AM Mat Scales [email protected] wrote:
As well as #104 #104 I/we
also need to do a review of the UI pieces.The text next to the checkbox last year did not match the behaviour, so
that probably needs updating.Also, Firebase allows us to have real-time updates, so the UI should
respond to those.—
Reply to this email directly or view it on GitHub
#103 (comment)
.
from ioweb2016.
Has this been fixed by #104 ? If not could we add more background about what that bug is?
from ioweb2016.
What's this bug? Is it to use Propel?
from ioweb2016.
Yes, it is to use Propel. PR incoming soon, but I'm working through the UX of how we interact with Firebase.
Here are the notes I'm using to work this out, for future reference.
Possible bad behaviour that we need to guard against:
- List of subscriptions in FB grows indefinitely
- Checkbox starts as 'off' on page load, which causes unsubscribe every time for all clients
- Toggling checkbox to 'on' while offline disables the button forever (doesn't recover when coming back onlione)
- Other client toggles on, this client prompts for permission
- Cannot subscribe when offline
- Toggle can be on when there is actually no subscription
There are three things that have state - the local subscription, the checkbox, and Firebase.
When local subscription changes from 'off' to 'on':
- Set checkbox to on
- Set checkbox to enabled
- Set FB to on
When local subscription changes from 'off' to 'error':
- Set checkbox to off
- Set checkbox to enabled
- Show a message
- Leave FB as is
When local subscription changes from 'on' to 'off':
- Set checkbox to off
- Set checkbox to enabled
- Set FB to off
- Remove existing subscription from FB
When FB changes from 'on' to 'off':
- If local subscription, show message saying you were remotely unsubscribed?
- Unsubscribe
- Set checkbox to off
- Set checkbox to enabled
When FB changes from 'off' to 'on':
- Leave local subscription as is
- Leave checkbox as is
When checkbox is clicked while off
- Subscribe
- Disable checkbox
- (checkbox should animate while disabled)
When checkbox is clicked while disabled
- Do nothing
When checkbox is clicked while on
- Unsubscribe
- Disable checkbox
- (checkbox should animate while disabled)
from ioweb2016.
Should we also cache the checkbox state for offline?
Yea, I think the easiest is to always disable the checkbox if you're offline since there's no way for the user to make that change. Pretty sure we did that last year instead of worrying about the offline -> online case.
from ioweb2016.
@ebidel the state of the checkbox should be based on whether we have a local subscription. This can be initially checked offline anyway.
from ioweb2016.
Related Issues (20)
- Scroll current time into view when opened HOT 1
- Featured Session cards don't show their background images HOT 3
- Gradient scrim too dark on homepage
- Session: details video shows replay video over YT video
- Device synced with my iPhone and I can't delete it or change settings to see HOT 2
- Report network information API connection to GA
- Investigate lazy loading multiple vulcanized bundles
- Unexpected token - Gulp HOT 1
- error while compiling HOT 6
- Surface number of crbugs.com filed against a feature on list
- Surface UMA metric on feature card
- wct fails locally on router suite HOT 6
- dev_appserver.py is missing HOT 1
- [email protected] dependency incompatible with Linux HOT 1
- Npm install wont work HOT 2
- 404 Page -> Spelling error in title HOT 3
- Build Error: Error: spawn go ENOENT
- Your 2016 I/O site is still up... and has a countdown timer saying it starts in 11 hours (it actually starts in 1 hour, 13 minutes)
- Will there be a ioweb2017? HOT 4
- events.js: 137 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ioweb2016.