Arun Sarin created HDDS-15148:
---------------------------------
Summary: Prevent 404 error when toggling to Old UI from the
"Cluster Capacity" tab.
Key: HDDS-15148
URL: https://issues.apache.org/jira/browse/HDDS-15148
Project: Apache Ozone
Issue Type: Bug
Reporter: Arun Sarin
The "Cluster Capacity" feature is an addition to the New UI. Currently, when a
user is on a cluster capacity page that only exists in the New UI and clicks
the "Switch to Old UI" toggle, the application attempts to load the same path
in the old UI. Since that path doesn't exist there, the user is met with a
*"404 Page Not Found :("* error.
This creates a "broken" feel and forces the user to manually navigate back to a
working page.
Instead of a blind toggle, we should implement a conditional redirect logic:
# *Path Validation:* When the "Switch to Old UI" toggle is clicked, check if
the current route has a corresponding partner in the Old UI.
# *Conditional Redirect:*
** If a match exists: Switch as normal.
** If NO match exists (e.g., Cluster Capacity): Redirect the user to the
{*}Old UI Overview/Dashboard{*}.
# *User Communication (Toast):* Display a brief notification (3-5 seconds)
upon arrival in the Old UI:
_"The 'Cluster Capacity' view is only available in the New UI. We've returned
you to the Dashboard."_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]