Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

We need UX elements to expose connectivity information #19

Closed
yaronyg opened this issue Aug 7, 2015 · 9 comments
Closed

We need UX elements to expose connectivity information #19

yaronyg opened this issue Aug 7, 2015 · 9 comments
Assignees

Comments

@yaronyg
Copy link
Member

yaronyg commented Aug 7, 2015

#63 will add events to the replication manager to state when we have discovered someone and when we are connected to the. So now we need a way to expose that information in the UX so that people can quickly see if they have successfully found/connected to anyone.

@deadlyfingers
Copy link
Contributor

A toggle button can be added into Postcard toolbar to show/hide console log.

@deadlyfingers
Copy link
Contributor

Also add button to delete doucments db here

@deadlyfingers
Copy link
Contributor

I have a developer interface available to help show this, but need to wire up the native console logs to the webview textarea... or will this be done with Thali logger?

@yaronyg
Copy link
Member Author

yaronyg commented Nov 3, 2015

11/3 - There is an interface that is here but it needs to be wired up.

@yaronyg yaronyg added in progress and removed ready labels Nov 3, 2015
@deadlyfingers
Copy link
Contributor

@mattpodwysocki what I do need to get native logs in the webview textarea console. Is it just a case of making a route for thalilogger function - if so is it a stream?

@yaronyg yaronyg changed the title We need UX elements to explose connectivity information We need UX elements to expose connectivity information Nov 10, 2015
@deadlyfingers
Copy link
Contributor

Matt is going to fire an event using socket.io which I can listen to and update the webview textarea.

@mattpodwysocki
Copy link
Contributor

@deadlyfingers here is the way to emit both the network changed data as well as the peers:

manager._emitter.on('peerAvailabilityChanged', function (peers) {
  io.emit('peerAvailabilityChanged', peers); // this is a list of peers, pick peerName if you want or peerIdentifier
});

manager._emitter.on('networkChanged', function (isAvailable) {
  io.emit('networkChanged', isAvailable);
});

@deadlyfingers
Copy link
Contributor

@DrJukka noticed an issue while testing networkChanged on Android
postcard app becomes unresponsive.

PostcardApp is not responding.
Would you like to close it?
  • To recreate turn on Aeroplane mode.

@DrJukka
Copy link

DrJukka commented Nov 12, 2015

Can we reproduce this and have logs ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants