apache / couchdb-fauxton

Fauxton is the new Web UI for CouchDB

Home Page:https://github.com/apache/couchdb-fauxton

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a meaningfull message when the user session expires in Databases tab

meafs opened this issue · comments

Expected Behavior

Usually when the user session expires, all the other tabs such as Setup, Active Tasks, Configuration show a toast message: Failed to .... You're not a server admin. But the Databases tab shows just loading. (I'm referring to the sidebar items as tabs here)

The expected behaviour should be a user friendly message prompting the user to login. But I see only a loading animation without a hint.

Current Behavior

Use the same checking in Databases tab too like those available in other tabs.

Possible Solution

Just like other tabs, show a user friendly toast.

Steps to Reproduce (for bugs)

  1. Login in Fauxton
  2. Keep the Databases tab and wait for the session to end
  3. Loading bars will infinitely move up and down. Like below:

Fauxton

No message is shown to the user until he moves to a new tab like (Set up/ Configuration) etc.

Context

I had to login again and again multiple times.

Your Environment

  • Version used: 3.1.1
  • Browser Name and version: Chromium 93.0.4577.82
  • Operating System and version (desktop or mobile): Ubuntu 20.04 64 bit
  • Link to your project: N/A

Hello @meafs, I'm on Chrome/ Window and was able to replicate your behavior, can I work on this to maybe display the same message as the other tabs?

Cheers,

@pas-trop-de-zele Sure. That will be great 😄