[
https://issues.apache.org/jira/browse/ATLAS-5185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Prasad P. Pawar updated ATLAS-5185:
-----------------------------------
Description:
h2. Summary
This ticket addresses two related UI issues in React UI:
# {*}Logout localStorage Key Mismatch{*}: When users log out from React UI,
the application sets localStorage.atlas_ui = "v3", but the login redirect logic
only checks localStorage.last_ui_load. This causes users to be redirected to
Classic UI instead of React UI after logout and subsequent login.
# {*}Missing Logo in Collapsed Sidebar{*}: When the left sidebar is collapsed,
the Apache Atlas logo (apache-atlas-logo.svg) should be displayed in the
header, similar to how atlas_logo.svg is displayed when the sidebar is expanded.
h2. Issue 1: Logout localStorage Key Mismatch
h3. Steps to Reproduce
# Login to Atlas React UI (v3)
# Perform any actions in React UI
# Click Logout from React UI
# Login again to Atlas
# Observe which UI loads
h3. Expected Behavior
* After logging out from React UI and logging in again, user should be
redirected to React UI (/n3/index.html)
* The logout action should preserve the UI preference for the next login
session
h3. Actual Behavior
* After logging out from React UI and logging in again, user is redirected to
Classic UI (/index.html)
* This happens because the login redirect logic checks
localStorage.last_ui_load, but React UI sets localStorage.atlas_ui on logout
h3. Root Cause
The login redirect logic in dashboardv2/public/js/modules/atlasLogin.js (line
102) checks:
var lastUILoad = window.localStorage && window.localStorage.last_ui_load;
was:
Summary
When users log out from React UI, the application sets
`localStorage.setItem("atlas_ui", "v3")`, but the login redirect logic only
checks `localStorage.last_ui_load`. This mismatch causes users to be redirected
to Classic UI instead of React UI after logout and subsequent login.
Steps to Reproduce
1. Login to Atlas React UI (v3)
2. Perform any actions in React UI
3. Click Logout from React UI
4. Login again to Atlas
5. Observe which UI loads
Expected Behavior
- After logging out from React UI and logging in again, user should be
redirected to React UI (`/n3/index.html`)
- The logout action should preserve the UI preference for the next login
session
Actual Behavior
- After logging out from React UI and logging in again, user is redirected to
Classic UI (`/index.html`)
- This happens because the login redirect logic checks
`localStorage.last_ui_load`, but React UI sets `localStorage.atlas_ui` on logout
Root Cause
The login redirect logic in `dashboardv2/public/js/modules/atlasLogin.js` (line
102) checks:script
var lastUILoad = window.localStorage && window.localStorage.last_ui_load;
> [REACT UI] Fix logout localStorage key mismatch and add Apache Atlas logo in
> header when sidebar is collapsed
> -------------------------------------------------------------------------------------------------------------
>
> Key: ATLAS-5185
> URL: https://issues.apache.org/jira/browse/ATLAS-5185
> Project: Atlas
> Issue Type: Bug
> Components: atlas-webui
> Affects Versions: 3.0.0
> Reporter: Prasad P. Pawar
> Assignee: Prasad P. Pawar
> Priority: Major
>
> h2. Summary
> This ticket addresses two related UI issues in React UI:
> # {*}Logout localStorage Key Mismatch{*}: When users log out from React UI,
> the application sets localStorage.atlas_ui = "v3", but the login redirect
> logic only checks localStorage.last_ui_load. This causes users to be
> redirected to Classic UI instead of React UI after logout and subsequent
> login.
> # {*}Missing Logo in Collapsed Sidebar{*}: When the left sidebar is
> collapsed, the Apache Atlas logo (apache-atlas-logo.svg) should be displayed
> in the header, similar to how atlas_logo.svg is displayed when the sidebar is
> expanded.
> h2. Issue 1: Logout localStorage Key Mismatch
> h3. Steps to Reproduce
> # Login to Atlas React UI (v3)
> # Perform any actions in React UI
> # Click Logout from React UI
> # Login again to Atlas
> # Observe which UI loads
> h3. Expected Behavior
> * After logging out from React UI and logging in again, user should be
> redirected to React UI (/n3/index.html)
> * The logout action should preserve the UI preference for the next login
> session
> h3. Actual Behavior
> * After logging out from React UI and logging in again, user is redirected
> to Classic UI (/index.html)
> * This happens because the login redirect logic checks
> localStorage.last_ui_load, but React UI sets localStorage.atlas_ui on logout
> h3. Root Cause
> The login redirect logic in dashboardv2/public/js/modules/atlasLogin.js (line
> 102) checks:
> var lastUILoad = window.localStorage && window.localStorage.last_ui_load;
--
This message was sent by Atlassian Jira
(v8.20.10#820010)