From 47866c7a19d9045fe808483a982089abe47b0204 Mon Sep 17 00:00:00 2001 From: Hedda Hubertz Date: Mon, 27 May 2024 13:13:56 +0200 Subject: [PATCH 1/6] [ui] Update all instances of StatBus to Statbus for consistency --- app/src/app/dashboard/page.tsx | 4 ++-- app/src/app/getting-started/page.tsx | 2 +- app/src/app/getting-started/summary/page.tsx | 8 ++++---- app/src/app/layout.tsx | 2 +- app/src/app/login/page.tsx | 2 +- app/src/app/page.tsx | 2 +- app/src/app/reports/page.tsx | 4 ++-- app/src/app/search/page.tsx | 2 +- app/src/components/navbar.tsx | 4 ++-- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/app/src/app/dashboard/page.tsx b/app/src/app/dashboard/page.tsx index 186288590..ba32c0c0e 100644 --- a/app/src/app/dashboard/page.tsx +++ b/app/src/app/dashboard/page.tsx @@ -13,13 +13,13 @@ import { StatisticalVariableCountCard } from "@/app/dashboard/statistical-variab import { Database, Gauge } from "lucide-react"; export const metadata: Metadata = { - title: "StatBus | Dashboard", + title: "Statbus | Dashboard", }; export default async function Dashboard() { return (
-

StatBus Status Dashboard

+

Statbus Status Dashboard

Welcome

- In this onboarding guide we will try to help you get going with StatBus. + In this onboarding guide we will try to help you get going with Statbus. We will assist you in selecting an activity standard and you will get to upload your first region data set.

diff --git a/app/src/app/getting-started/summary/page.tsx b/app/src/app/getting-started/summary/page.tsx index d1ebe9bbd..444414a9c 100644 --- a/app/src/app/getting-started/summary/page.tsx +++ b/app/src/app/getting-started/summary/page.tsx @@ -30,16 +30,16 @@ export default async function OnboardingCompletedPage() {

Summary

The following steps needs to be complete in order to have a fully - functional StatBus. If you have not completed some of the steps, you can + functional Statbus. If you have not completed some of the steps, you can click the links to complete the steps.

@@ -71,7 +71,7 @@ export default async function OnboardingCompletedPage() { numberOfLegalUnits ? (
- Start using StatBus + Start using Statbus
) : null} diff --git a/app/src/app/layout.tsx b/app/src/app/layout.tsx index cddbb845d..190f2c788 100644 --- a/app/src/app/layout.tsx +++ b/app/src/app/layout.tsx @@ -13,7 +13,7 @@ import TimeContextProvider from "@/app/time-context-provider"; const inter = Inter({ subsets: ["latin"] }); export const metadata: Metadata = { - title: "StatBus", + title: "Statbus", description: "Simple To Use, Simple To Understand, Simply useful!", }; diff --git a/app/src/app/login/page.tsx b/app/src/app/login/page.tsx index b6cbf55a5..d9b5f40d5 100644 --- a/app/src/app/login/page.tsx +++ b/app/src/app/login/page.tsx @@ -18,7 +18,7 @@ export default function LoginPage() {
StatBus Logo -

StatBus Data Drilldown

+

Statbus Data Drilldown

Gain data insights by drilling through the bar charts below

diff --git a/app/src/app/search/page.tsx b/app/src/app/search/page.tsx index 163f60186..4ffde61e6 100644 --- a/app/src/app/search/page.tsx +++ b/app/src/app/search/page.tsx @@ -10,7 +10,7 @@ import { CartProvider } from "@/app/search/cart-provider"; import { createClient } from "@/lib/supabase/server"; export const metadata: Metadata = { - title: "StatBus | Search statistical units", + title: "Statbus | Search statistical units", }; export default async function SearchPage({ diff --git a/app/src/components/navbar.tsx b/app/src/components/navbar.tsx index 0e22f0c02..f098c00f5 100644 --- a/app/src/components/navbar.tsx +++ b/app/src/components/navbar.tsx @@ -13,7 +13,7 @@ export function NavbarSkeleton() { return (
- StatBus Logo + Statbus Logo
); @@ -26,7 +26,7 @@ export default async function Navbar() {
- StatBus Logo + Statbus Logo {session.data.session?.user && (
From 0f92eac9536a433adba72c04c2fab9a7ba526778 Mon Sep 17 00:00:00 2001 From: Hedda Hubertz Date: Mon, 27 May 2024 13:39:57 +0200 Subject: [PATCH 2/6] [ui] Make command palette accessible with both 'command+shift+K' and 'command+shift+k' --- app/src/components/command-palette/command-palette.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/components/command-palette/command-palette.tsx b/app/src/components/command-palette/command-palette.tsx index 7ff6cf8bd..109f1052c 100644 --- a/app/src/components/command-palette/command-palette.tsx +++ b/app/src/components/command-palette/command-palette.tsx @@ -42,7 +42,11 @@ export function CommandPalette() { }; const keydown = (e: KeyboardEvent) => { - if (e.key === "k" && (e.metaKey || e.ctrlKey) && e.shiftKey) { + if ( + (e.key === "k" || e.key === "K") && + (e.metaKey || e.ctrlKey) && + e.shiftKey + ) { e.preventDefault(); open(); } From b3f82ed600d5802890962c27309a7e0872e08065 Mon Sep 17 00:00:00 2001 From: Hedda Hubertz Date: Mon, 27 May 2024 14:00:40 +0200 Subject: [PATCH 3/6] [ui] Update CSV export to include turnover --- app/src/app/api/search/export/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/app/api/search/export/route.ts b/app/src/app/api/search/export/route.ts index 890110960..f9da0dbd7 100644 --- a/app/src/app/api/search/export/route.ts +++ b/app/src/app/api/search/export/route.ts @@ -18,7 +18,7 @@ export async function GET(request: Request) { searchParams.set( "select", - "tax_ident, name, unit_type, primary_activity_category_id, physical_region_id, employees, physical_country_iso_2, sector_code, sector_name, legal_form_code, legal_form_name" + "tax_ident, name, unit_type, primary_activity_category_id, physical_region_id, employees, turnover, physical_country_iso_2, sector_code, sector_name, legal_form_code, legal_form_name" ); const statisticalUnitsResponse = await getStatisticalUnits(searchParams); From 7befb2456798d3ed05a381fd3fe7344b79099db6 Mon Sep 17 00:00:00 2001 From: Hedda Hubertz Date: Wed, 29 May 2024 11:29:41 +0200 Subject: [PATCH 4/6] [ui] Fix layout issue on getting started page in Edge --- app/src/app/getting-started/layout.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/app/getting-started/layout.tsx b/app/src/app/getting-started/layout.tsx index f8227fda3..b05d24fac 100644 --- a/app/src/app/getting-started/layout.tsx +++ b/app/src/app/getting-started/layout.tsx @@ -8,11 +8,11 @@ export default function GettingStartedLayout({ readonly progress: React.ReactNode; }) { return ( -
-