cockroachdb / cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
https://www.cockroachlabs.com
Other
30.16k stars 3.82k forks source link

ui: fix bug where index details page link is broken in cc console #135941

Open kyle-a-wong opened 13 hours ago

kyle-a-wong commented 13 hours ago

Fixes the url used in cc console when clicking on an index from the table details index tab. This bug only affects clusters in version 24.3.

Also changes the index details page breadcrumbs to always render the same breadcrumb, always linking to the new databases pages. There is no longer a need define seperate logic for CC console and db console because both have converged to the same path definitions for the databases, database details, and table details pages.

Lastly, this commit fixes a small bug that exists in the legacy BreadCrumb component that can cause bread crumb links to disappear due to the modification of the component prop using, using .pop() on the items array.

Part of: https://github.com/cockroachdb/cockroach/issues/135857 Epic: none Release note: none

cockroach-teamcity commented 13 hours ago

This change is Reviewable