cockroachdb / cockroachdb/cockroach

db-console: Replace back button functionality with bread crumbs

Open
#136,034 0 comments 0 reactions 0 assignees View on GitHub
C-enhancement T-observability
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

Having back buttons that go back in a users browser history (similar to the back button of a browser) can be confusing to users. Instead of having these buttons, pages in db-console should have bread crumbs which provide hard links to previous pages.

Looking in the repo for places where `history.goBack()` is called results in the following:
https://github.com/cockroachdb/cockroach/blob/d5f328ea6f3efd8fbe631c97d59f7b74307d22f9/pkg/ui/workspaces/db-console/src/views/cluster/containers/nodeOverview/index.tsx#L139
https://github.com/cockroachdb/cockroach/blob/d5f328ea6f3efd8fbe631c97d59f7b74307d22f9/pkg/ui/workspaces/cluster-ui/src/insights/workloadInsightDetails/statementInsightDetails.tsx#L133
https://github.com/cockroachdb/cockroach/blob/d5f328ea6f3efd8fbe631c97d59f7b74307d22f9/pkg/ui/workspaces/cluster-ui/src/insights/workloadInsightDetails/transactionInsightDetails.tsx#L128
https://github.com/cockroachdb/cockroach/blob/d5f328ea6f3efd8fbe631c97d59f7b74307d22f9/pkg/ui/workspaces/cluster-ui/src/jobs/jobDetailsPage/jobDetails.tsx#L268

These pages should be changed to have bread crumbs to return to the "parent" page.

Jira issue: CRDB-44831

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.