Skip to content

Commit 8c8962b

Browse files
db-console: change the name of the "Hot Ranges" page to "Top Ranges"
Previously, the UI referred to high-activity ranges as "hot ranges", which implied they were necessarily experiencing high load or activity. This was inadequate because ranges shown may simply be the highest by some measure (QPS, CPU usage, etc.) without being truly "hot". To address this, this patch renames the "hot ranges" page and related UI components to "top ranges" to more accurately reflect that these are the top-ranked ranges by various metrics rather than necessarily experiencing high activity. Release note (ui change): The "Hot Ranges" page in the DB Console has been renamed to "Top Ranges" to better reflect that it shows the highest-ranked ranges by various metrics, not necessarily ranges experiencing high activity. Fixes: #147330 Epic: CRDB-43150 Release note (ui change): Changes the name of the "Hot Ranges" page to "Top Ranges".
1 parent 5069471 commit 8c8962b

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

pkg/ui/workspaces/db-console/src/app.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,10 +473,15 @@ export const App: React.FC<AppProps> = (props: AppProps) => {
473473
{/* hot ranges */}
474474
<Route
475475
exact
476-
path={`/hotranges`}
476+
path={`/topranges`}
477477
component={HotRangesPage}
478478
/>
479479
{/* old route redirects */}
480+
<Route
481+
exact
482+
path={`/hotranges`}
483+
component={HotRangesPage}
484+
/>
480485
<Redirect
481486
exact
482487
from="/cluster"

pkg/ui/workspaces/db-console/src/views/app/components/layoutSidebar/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ export class Sidebar extends React.Component<SidebarProps> {
5252
isHidden: () => this.props.isSingleNodeCluster,
5353
},
5454
{
55-
path: "/hotranges",
56-
text: "Hot Ranges",
57-
activeFor: ["/hotranges", "/reports/range"],
55+
path: "/topranges",
56+
text: "Top Ranges",
57+
activeFor: ["/hotranges", "/hotranges", "/reports/range"],
5858
},
5959
{ path: "/jobs", text: "Jobs", activeFor: [] },
6060
{ path: "/schedules", text: "Schedules", activeFor: [] },

pkg/ui/workspaces/db-console/src/views/hotRanges/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ const HotRangesPage = () => {
9797

9898
return (
9999
<React.Fragment>
100-
<Helmet title="Hot Ranges" />
101-
<h3 className="base-heading">Hot Ranges</h3>
100+
<Helmet title="Top Ranges" />
101+
<h3 className="base-heading">Top Ranges</h3>
102102
<Text className={cx("hotranges-description")}>
103-
The Hot Ranges table shows ranges receiving a high number of reads or
103+
The Top Ranges table shows ranges receiving a high number of reads or
104104
writes. By default, the table is sorted by ranges with the highest QPS
105105
(queries per second). <br />
106106
Use this information to

0 commit comments

Comments
 (0)