From 880c3453ee8fc0fabbde0afb752a17894cd579a0 Mon Sep 17 00:00:00 2001 From: gregfromstl Date: Tue, 5 Nov 2024 21:53:29 +0000 Subject: [PATCH] [Dashboard] Feature: Overview Page Empty State (#5312) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Completes: - CNCT-2181 - CNCT-2175 Adds the Project Overview page empty state, set to "Coming Soon" copy for now ![Screenshot 2024-11-05 at 12 44 44 PM](https://github.com/user-attachments/assets/25289323-777c-41a6-b51d-2a7cf795bb37) --- ## PR-Codex overview This PR primarily focuses on enhancing UI components, improving type exports, and refining styles across various files in the application. It introduces new features and fixes, particularly in the `ProjectOverviewHeader` and `EmptyState` components, while updating SVG assets. ### Detailed summary - Updated `className` styles in `DatePickerWithRange` and `app-footer`. - Exported `DurationId` type in `date-range-selector`. - Added background styling in `layout.tsx`. - Made `projectStub` function exportable. - Adjusted CSS variables for light and dark themes in `globals.css`. - Modified routing in `TeamOverviewPage` and `ProjectOverviewPage`. - Enhanced `RangeSelector` to handle computed ranges. - Introduced `EmptyState` and `ProjectOverviewHeader` components with new UI elements. - Added new SVG assets for various icons. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- .../assets/tw-icons/account-abstraction.svg | 26 ++++ .../dashboard/public/assets/tw-icons/auth.svg | 27 ++++ apps/dashboard/public/assets/tw-icons/pay.svg | 31 ++++ .../public/assets/tw-icons/social-auth.svg | 30 ++++ .../public/assets/tw-icons/wallets.svg | 28 ++++ .../src/@/components/blocks/app-footer.tsx | 2 +- .../@/components/ui/DatePickerWithRange.tsx | 2 +- apps/dashboard/src/@/styles/globals.css | 4 +- .../SecondaryNav/account-button.client.tsx | 13 +- .../[team_slug]/(team)/TeamOverviewPage.tsx | 2 +- .../components/EmptyState.stories.tsx | 41 +++++ .../[project_slug]/components/EmptyState.tsx | 145 ++++++++++++++++++ .../ProjectOverviewHeader.stories.tsx | 42 +++++ .../components/ProjectOverviewHeader.tsx | 19 +++ .../[team_slug]/[project_slug]/layout.tsx | 7 +- .../team/[team_slug]/[project_slug]/page.tsx | 27 +++- .../src/app/team/[team_slug]/layout.tsx | 2 +- .../analytics/date-range-selector.tsx | 2 +- .../components/analytics/range-selector.tsx | 37 ++++- apps/dashboard/src/stories/stubs.ts | 2 +- 20 files changed, 467 insertions(+), 22 deletions(-) create mode 100644 apps/dashboard/public/assets/tw-icons/account-abstraction.svg create mode 100644 apps/dashboard/public/assets/tw-icons/auth.svg create mode 100644 apps/dashboard/public/assets/tw-icons/pay.svg create mode 100644 apps/dashboard/public/assets/tw-icons/social-auth.svg create mode 100644 apps/dashboard/public/assets/tw-icons/wallets.svg create mode 100644 apps/dashboard/src/app/team/[team_slug]/[project_slug]/components/EmptyState.stories.tsx create mode 100644 apps/dashboard/src/app/team/[team_slug]/[project_slug]/components/EmptyState.tsx create mode 100644 apps/dashboard/src/app/team/[team_slug]/[project_slug]/components/ProjectOverviewHeader.stories.tsx create mode 100644 apps/dashboard/src/app/team/[team_slug]/[project_slug]/components/ProjectOverviewHeader.tsx diff --git a/apps/dashboard/public/assets/tw-icons/account-abstraction.svg b/apps/dashboard/public/assets/tw-icons/account-abstraction.svg new file mode 100644 index 00000000000..36061a2f9c6 --- /dev/null +++ b/apps/dashboard/public/assets/tw-icons/account-abstraction.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/dashboard/public/assets/tw-icons/auth.svg b/apps/dashboard/public/assets/tw-icons/auth.svg new file mode 100644 index 00000000000..606088e1c00 --- /dev/null +++ b/apps/dashboard/public/assets/tw-icons/auth.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/dashboard/public/assets/tw-icons/pay.svg b/apps/dashboard/public/assets/tw-icons/pay.svg new file mode 100644 index 00000000000..a282686883a --- /dev/null +++ b/apps/dashboard/public/assets/tw-icons/pay.svg @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/dashboard/public/assets/tw-icons/social-auth.svg b/apps/dashboard/public/assets/tw-icons/social-auth.svg new file mode 100644 index 00000000000..c21c1a0061f --- /dev/null +++ b/apps/dashboard/public/assets/tw-icons/social-auth.svg @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/dashboard/public/assets/tw-icons/wallets.svg b/apps/dashboard/public/assets/tw-icons/wallets.svg new file mode 100644 index 00000000000..a110bfdf19e --- /dev/null +++ b/apps/dashboard/public/assets/tw-icons/wallets.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/dashboard/src/@/components/blocks/app-footer.tsx b/apps/dashboard/src/@/components/blocks/app-footer.tsx index 1660984f689..8ffad479b3c 100644 --- a/apps/dashboard/src/@/components/blocks/app-footer.tsx +++ b/apps/dashboard/src/@/components/blocks/app-footer.tsx @@ -19,7 +19,7 @@ export function AppFooter(props: AppFooterProps) { return (