invoiceninja / admin-portal

Invoice Ninja: Desktop/mobile admin portal built with Flutter
https://demo.invoiceninja.com
Other
1.62k stars 547 forks source link

Should honor browser's current focus state #258

Open lonix1 opened 3 years ago

lonix1 commented 3 years ago

What version of Invoice Ninja are you running? ie v4.5.25 / v5.0.30 5.1.47

What environment are you running? Docker

Have you checked log files (storage/logs/) Please provide redacted output n/a

Have you searched existing issues? yes

Have you reported this to Slack/forum before posting? no

Describe the bug IN does not honor browser's current focus state

Steps To Reproduce Easiest to see with a multiple-monitor setup if you have one, if not then open a browser and some other app side by side.

Why is this a problem? It breaks the cursor metaphor ("this field has focus"). And more importantly, because of that issue, I made the mistake of assuming I'm typing in IN, whereas I was actually typing into a different app (or vice versa). This may cause nasty/surprising problems.

Expected behavior When the browser loses focus, IN should release focus too - it could listen for the on/off focus events in javascript.

Screenshots no

Additional context no

(v5) Can you replicate the issue on our demo site? https://demo.invoiceninja.com yes

hillelcoren commented 3 years ago

Hi,

I'm not sure I understand this, I don't see a difference in behavior between IN and Gmail?

lonix1 commented 3 years ago

Sorry I don't use gmail so don't know. Are you saying that gmail form fields remain blinking even if the browser doesn't have focus? (So for example you could have "focus" blinking in both gmail forms and in microsoft word at the same time)

If so that's really! weird and contrary to norms on windows and linux desktops. I'm not sure about macs.

You've undoubtedly seen this in other desktop apps - maybe I didn't explain myself properly? I'll try find a video or something to illustrate what I mean.

hillelcoren commented 3 years ago

I see what you mean about the blinking cursor, does it cause any problems other than possibly being visually distracting?

lonix1 commented 3 years ago

Yes, e.g.:

I expect this exact user "journey" will occur to many people - at least those with multiple monitors, or who have two windows side by side (eg on a widescreen).

hillelcoren commented 3 years ago

Thanks, that makes sense. I'll look into it..

lonix1 commented 3 years ago

If you're working on a single non-wide monitor - perhaps most people? - then this problem exists but won't manifest.

I think many though who deal with finances will have multiple windows open. The bookkeeper at my last job had more monitors than me, and I'm a dev! (Yes that's called jealousy :smile: )

hillelcoren commented 3 years ago

I believe this is the underlying issue, if you'd please upvote the issue it helps get it noticed

https://github.com/flutter/flutter/issues/21193

lonix1 commented 3 years ago

Done.

You might consider creating a pinned thread on the forums site with a list of upstream issues to be upvoted - I saw something similar in another open source app, can't remember which though.

Many of the users on the forums are also devs, so they have github accounts, and if you ask them to lend support they will.

hillelcoren commented 3 years ago

Thanks for the suggestion, that's a good idea!

hillelcoren commented 3 years ago

FYI.. I've created a label for now:

https://github.com/invoiceninja/admin-portal/issues?q=is%3Aissue+is%3Aopen+label%3Aflutter