zero01101 / openOutpaint

local offline javascript and html canvas outpainting gizmo for stable diffusion webUI API 🐠
MIT License
503 stars 44 forks source link

alerts are not visible #151

Closed vladmandic closed 3 weeks ago

vladmandic commented 1 year ago

most modern browsers suppress alert() on page load, so critical messages do not even show up

for example, this is only visible in browsers console log as alert was suppressed by browser

The host is online, but the API seems to be disabled.

why not use a div element in top-right to show messages and get rid of all alerts?

originally opened in https://github.com/zero01101/openOutpaint-webUI-extension/issues/17, but i think its better fitted here.

seijihariki commented 1 year ago

That is a thing I have considered since the beginning... Just continued ignoring the issue... I think it wouldn't be really hard. Will mark as good first issue for now.

vladmandic commented 1 year ago

bonus would be:

seijihariki commented 1 year ago

Hi, @vladmandic! I pushed some changed the other day that switch to a custom notification system for alerts. Confirmations were also migrated, but prompt() instances still not. Can you see it this seems to be an okay start?

vladmandic commented 1 year ago

@seijihariki i see the notification box in bottom left show up when i switch model, but its barely noticeable. still a good start. btw, i don't see notifications if im using standard model instead of inpainiting one?

seijihariki commented 1 year ago

Notification should not have anything to do with the selected model, I think. I remember @zero01101 had done some changes to inpainting model detection, so he would probably know to answer that.

I will see what I can do so the notifications are more prominent.

zero01101 commented 1 year ago

yeah, the only actionable notification that should have anything to do with the selected model would be the first-time-online check alerting you if your currently selected model isn't Inpainting and offering you an option to switch to a detected Inpainting model

otherwise currently the only indication that the model isn't Inpainting is the color of the option in the select list... I don't believe it ever actually notified you on switching that it was non inpainting?

is it just that the timeout on the model switch notification is too short?

that API endpoint I added for checking unet counts isn't actually used anywhere yet, it just kinda hangs out being pointless lol; it's actually pretty slow :(

seijihariki commented 3 weeks ago

Will be closing this issue for now... We can reopen it in the future.