Flood-UI / flood

A web UI for rTorrent, qBittorrent and Transmission with a Node.js backend and React frontend. Migrate to v4: https://github.com/jesec/flood/wiki/Migrate-from-older-versions-of-Flood.
https://flood.js.org
GNU General Public License v3.0
1.81k stars 173 forks source link

[UX suggestion] Adding hostname to title for easier identification #367

Open NoLooseEnds opened 7 years ago

NoLooseEnds commented 7 years ago

It would be nice to see the hostname of the server that runs Flood in the title, ie. like this:

flood__firefly_

If you have multiple instances of flood across different servers, it's great to see which is one.

I tried to make a commit. It works, but I am not experienced with Node.js, and it seems that it's not the correct way to do it.

For somebody experienced, I think it should be an easy fix. I got my info from here: https://stackoverflow.com/questions/20553554/node-js-return-hostname

wopian commented 7 years ago

Using the hostname wasn't/isn't really an ideal solution, as if you run Flood twice on the same server, they'd have the same hostname

Allowing users to give their Flood instance a name and display it like Flood [firefly] I 👍. Maybe give users the option of just having the name too, e.g Firefly instead of Flood [firefly].

NoLooseEnds commented 7 years ago

@wopian I never thought of that use case.

Is it common to run multiple instances of rtorrent/flood on the same server as the same user? (I get ie. seedbox setups with multiple different users, but that shouldn't be a issue).

Maybe it's possible to add an option on first launch (maybe that defaults to hostname), and then being able to change it in settings/conf.

randomnonsense commented 7 years ago

This could be useful. Perhaps let people add their own ident strings in config.js. The name "flood" is not needed as the favicon is easily distinguishable. But definitely, some kind of tab identification would be nice.