Skip to content

Commit

Permalink
[ui] Rename 'Upload Regions' to 'Upload Region Hierarchy'
Browse files Browse the repository at this point in the history
  • Loading branch information
hhssb committed Oct 31, 2024
1 parent 2b9a702 commit 9e35342
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 16 deletions.
2 changes: 1 addition & 1 deletion app/src/app/getting-started/@progress/default.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function SetupStatus() {
<li className="mb-6">
<NavItem
done={!!numberOfRegions}
title="2. Upload Regions"
title="2. Upload Region Hierarchy"
href="/getting-started/upload-regions"
subtitle={`${numberOfRegions} regions uploaded`}
/>
Expand Down
2 changes: 1 addition & 1 deletion app/src/app/getting-started/upload-regions/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function UploadRegionsPage() {

return (
<section className="space-y-8">
<h1 className="text-center text-2xl">Upload Regions</h1>
<h1 className="text-center text-2xl">Upload Region Hierarchy</h1>
<p>
Upload a CSV file containing the regions you want to use in your
analysis.
Expand Down
4 changes: 3 additions & 1 deletion app/src/app/regions/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ export default function RegionPage() {

return (
<main className="mx-auto flex w-full max-w-5xl flex-col py-8 md:py-12">
<h1 className="text-center mb-6 text-xl lg:mb-12 lg:text-2xl">Regions</h1>
<h1 className="text-center mb-6 text-xl lg:mb-12 lg:text-2xl">
Region Hierarchy
</h1>
<section className="space-y-3">
<TableFilters
setQueries={setQueries}
Expand Down
32 changes: 19 additions & 13 deletions app/src/components/command-palette/command-palette.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ export function CommandPalette() {
<DialogTitle>Command Palette</DialogTitle>
</VisuallyHidden>
<VisuallyHidden>
<DialogDescription>Fast access to all functionality</DialogDescription>
<DialogDescription>
Fast access to all functionality
</DialogDescription>
</VisuallyHidden>
<CommandInput placeholder="Type a command or search..." />
<CommandList>
Expand Down Expand Up @@ -143,10 +145,12 @@ export function CommandPalette() {
value="Upload Regions"
>
<Upload className="mr-2 h-4 w-4" />
<span>Upload Regions</span>
<span>Upload Region Hierarchy</span>
</CommandItem>
<CommandItem
onSelect={() => navigate("/getting-started/upload-custom-sectors")}
onSelect={() =>
navigate("/getting-started/upload-custom-sectors")
}
value="Upload Sectors"
>
<Upload className="mr-2 h-4 w-4" />
Expand All @@ -164,7 +168,9 @@ export function CommandPalette() {
<CommandItem
value="Upload Custom Activity Category Standards"
onSelect={() =>
navigate("/getting-started/upload-custom-activity-standard-codes")
navigate(
"/getting-started/upload-custom-activity-standard-codes"
)
}
>
<Upload className="mr-2 h-4 w-4" />
Expand All @@ -185,15 +191,15 @@ export function CommandPalette() {
<span>Upload Establishments</span>
</CommandItem>
<CommandItem
onSelect={() =>
navigate("/import/establishments-without-legal-unit")
}
value="Upload Establishments Without Legal Unit"
>
<Upload className="mr-2 h-4 w-4" />
<span>Upload Establishments Without Legal Unit</span>
</CommandItem>
<CommandItem onSelect={() => navigate("/profile")} value="Profile">
onSelect={() =>
navigate("/import/establishments-without-legal-unit")
}
value="Upload Establishments Without Legal Unit"
>
<Upload className="mr-2 h-4 w-4" />
<span>Upload Establishments Without Legal Unit</span>
</CommandItem>
<CommandItem onSelect={() => navigate("/profile")} value="Profile">
<User className="mr-2 h-4 w-4" />
<span>Profile</span>
</CommandItem>
Expand Down

0 comments on commit 9e35342

Please sign in to comment.