[ 
https://issues.apache.org/jira/browse/ATLAS-5185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18051739#comment-18051739
 ] 

ASF subversion and git services commented on ATLAS-5185:
--------------------------------------------------------

Commit 8733e69450b2f51cc5e7660b09dd9f6ea88022e5 in atlas's branch 
refs/heads/ATLAS-5185 from Prasad Pawar
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=8733e6945 ]

ATLAS-5185: [REACT UI] Fix logout localStorage key mismatch and add Apache 
Atlas logo in header when sidebar is collapsed


> [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)

Reply via email to