Skip to content
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

menu bar improvements #3

Closed
jbenet opened this issue Jun 5, 2015 · 25 comments
Closed

menu bar improvements #3

jbenet opened this issue Jun 5, 2015 · 25 comments

Comments

@jbenet
Copy link
Member

jbenet commented Jun 5, 2015

the menu bar should give some info on the node, like:

  • say what ports it's on (swarm, gateway, api)
  • stats (maybe under a sub-menu):
    • uptime
    • of peers connected

    • bandwidth numbers

and maybe it should have some more options:

  • "Open" should be "Open Web Console" or "Open Web UI" or "Open Admin Console" or something...
  • "Open Web Console in Browser" (opens in a normal browser, just in case)
  • "Configuration" (opens config in an editor)
  • "Restart" (kills the node and reboots it)
  • "Check for Update" (checks for update-- we need to figure this out)
@bcomnes
Copy link
Contributor

bcomnes commented Jun 5, 2015

I couldn't find a way to dynamically update the tray menu contents last I checked but I'm totally 👍 on these stats. https://github.com/maxogden/menubar Fakes a menu using html/css and is dynamically updatable if we can't dynamically update the native menu system.

@jbenet
Copy link
Member Author

jbenet commented Jun 6, 2015

html menu means we can draw whatever we want, which is nice

otoh, native menus are more ok with people. im down for whatever, if we do html, we should use it creatively.

@krl
Copy link
Contributor

krl commented Jun 13, 2015

You can update the context menu, but that also closes the menu for the user, for now i'm doing something like this:

menu

@jbenet

@jbenet
Copy link
Member Author

jbenet commented Jun 14, 2015

@krl good stuff!

  • "run daemon" is not very intuitive for end users. This is a tricky UI, because we want to give people the idea of "turning something On and Off". maybe "connect to swarm" could be grayed out when daemon is offline.

Maybe something like:

IPFS local node running ...
Stop IPFS node
[ ] Online (connected to swarm)
---
Open Console Window
Open Console in Browser
---
Exit

Hmm not sure. Maybe:

(Experimenting. probably want a real designer to figure this out, not me)

@jbenet
Copy link
Member Author

jbenet commented Jun 14, 2015

btw, we can use arbitrary web page as a menu. see https://github.com/maxogden/ScreenCat

@krl
Copy link
Contributor

krl commented Jun 14, 2015

jbenet: in osx that is, it seems like linux/windows support for this is not in. i could look at enabling that, but do we want to go that path?

@krl
Copy link
Contributor

krl commented Jun 14, 2015

i'm really into your designs though.

@krl
Copy link
Contributor

krl commented Jun 14, 2015

An alternative in the meantime i just thought of colud be using radio buttons.

( ) idle, off, eh? whatever to call it
( ) run local node
( ) run connected node


[ ] check for updates

@jbenet
Copy link
Member Author

jbenet commented Jun 14, 2015

@krl i think we'll get a lot more mileage out of an HTML window.

@krl
Copy link
Contributor

krl commented Jun 14, 2015

from: https://github.com/atom/electron/blob/master/docs/api/tray.md

Platform limitations:

On OS X clicked event will be ignored if the tray icon has context menu.
On Linux app indicator will be used if it is supported, otherwise GtkStatusIcon will be used instead.
App indicator will only be showed when it has context menu.
When app indicator is used on Linux, clicked event is ignored.

So if you want to keep exact same behaviors on all platforms, you should not rely on clicked event and always attach a context menu to the tray icon.

It seems to be the case that you cannot even get the 'clicked' event in gnome for example.

@krl krl closed this as completed Jun 14, 2015
@krl krl reopened this Jun 14, 2015
@krl
Copy link
Contributor

krl commented Jun 14, 2015

hmm actually: electron/electron#1741

I'll investigate this.

@bcomnes
Copy link
Contributor

bcomnes commented Jun 15, 2015

Those mockups look amazing! I don't know how to do the cool dropbox style window arrow, but everything else looks totally doable and nice.

@jbenet
Copy link
Member Author

jbenet commented Jun 17, 2015

@bcomnes on the transparency, we could actually have a nice space background instead of making it transparent, which gets us 50% of the way there.

@krl do you need frontend help to make all this look super nice? If it's not your thing we can find someone who is good at it. (we should allocate resources optimally)

@krl
Copy link
Contributor

krl commented Jun 17, 2015

Yeah, i'm not spending a lot of time on the design now, just getting something that looks decent and that works. I think having a designer go over it would be ideal.

@whyrusleeping
Copy link
Member

how would the drop 'down' thing work for people (like me) who have their tray at the bottom of the screen?

@jbenet
Copy link
Member Author

jbenet commented Jun 17, 2015

drop up! /o\

On Wed, Jun 17, 2015 at 12:55 PM, Jeromy Johnson notifications@github.com
wrote:

how would the drop 'down' thing work for people (like me) who have their
tray at the bottom of the screen?


Reply to this email directly or view it on GitHub
#3 (comment).

@krl
Copy link
Contributor

krl commented Jun 18, 2015

@jbenet Ok, the stats shown in your example, is there a way to actually get them from the api, or from the client without daemon running?

@jbenet
Copy link
Member Author

jbenet commented Jun 18, 2015

@krl maybe we should add an ipfs repo stat command

@krl
Copy link
Contributor

krl commented Jun 21, 2015

+1 repo stat command

@jbenet
Copy link
Member Author

jbenet commented Jun 22, 2015

@krl let's try getting it in this next sprint for you.

@daviddias
Copy link
Member

@jbenet what are your thoughts on a settings/preferences page, UI'wise?

@jbenet
Copy link
Member Author

jbenet commented Aug 11, 2015

@diasdavid yeah we can do settings. what are the things we would have there?

@daviddias
Copy link
Member

Some that I have in my mind

  • repo/folder
  • ports
  • reset Node (updating key pair)
  • start on boot
  • bandwith used
  • language
  • link to help
  • user

@dignifiedquire
Copy link
Member

@diasdavid @jbenet let's extract individual items from here into separate issues.

hacdias added a commit that referenced this issue Dec 1, 2017
# This is the 1st commit message:

start redesign

Too many updates to explain in a commit. See PR :O

add size and objects number

fix addresses and remove agent version

persist file history

# This is the commit message #2:

outer space

# This is the commit message #3:

add files to right

# This is the commit message #4:

update

# This is the commit message #5:

relative working thing

# This is the commit message #6:

updates

# This is the commit message #7:

new font and icons

# This is the commit message #8:

close #515

# This is the commit message #9:

solve objectOf wrong type

# This is the commit message #10:

update
hacdias added a commit that referenced this issue Dec 1, 2017
# This is the 1st commit message:

# This is a combination of 2 commits.
# This is the 1st commit message:

start redesign

Too many updates to explain in a commit. See PR :O

add size and objects number

fix addresses and remove agent version

persist file history

outer space

add files to right

update

relative working thing

updates

new font and icons

close #515

solve objectOf wrong type

update

update

# This is the commit message #2:

update

# This is the commit message #2:

remove images

# This is the commit message #3:

add images

# This is the commit message #4:

Delete offline-icon.png
# This is the commit message #5:

Delete space.jpg
# This is the commit message #6:

Add files via upload
@hacdias hacdias mentioned this issue Dec 1, 2017
20 tasks
@daviddias
Copy link
Member

The only item missing after #516 is merged is #523

hacdias added a commit that referenced this issue Aug 29, 2019
# This is the 1st commit message:

try gh actions

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #2:

add build

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #3:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #4:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #5:

add gh token

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #6:

fix names

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #7:

add chrome-log driver

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #8:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #9:

xvfb?

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #10:

install xvfb

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #11:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #12:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #13:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #14:

add screensize

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #15:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #16:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #17:

xvfb-maybe

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #18:

chore!

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
hacdias added a commit that referenced this issue Sep 2, 2019
# This is the 1st commit message:

try gh actions

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #2:

add build

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #3:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #4:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #5:

add gh token

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #6:

fix names

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #7:

add chrome-log driver

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #8:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #9:

xvfb?

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #10:

install xvfb

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #11:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #12:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #13:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #14:

add screensize

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #15:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #16:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #17:

xvfb-maybe

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #18:

chore!

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
hacdias added a commit that referenced this issue Sep 2, 2019
# This is the 1st commit message:

try gh actions

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #2:

add build

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #3:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #4:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #5:

add gh token

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #6:

fix names

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #7:

add chrome-log driver

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #8:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #9:

xvfb?

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #10:

install xvfb

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #11:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #12:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #13:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #14:

add screensize

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #15:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #16:

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #17:

xvfb-maybe

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

# This is the commit message #18:

chore!

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants