From 8aae3fe94c12049beeff32b158741040af9bbf04 Mon Sep 17 00:00:00 2001 From: John Mosesman Date: Sat, 20 Apr 2024 19:36:34 -0500 Subject: [PATCH] Hero images (#45) * Update images * cut --- .../embedded-portal/embedded-portal.tsx | 6 + .../file-feed/[spaceId]/workspace.tsx | 2 +- .../project-onboarding/workspace.tsx | 6 + lib/services/seed.ts | 75 ---- public/images/embedded-portal-hero.svg | 212 ++++----- public/images/file-feed-hero.svg | 286 ++++++------- public/images/project-onboarding-hero.svg | 401 +++++++++--------- 7 files changed, 459 insertions(+), 529 deletions(-) diff --git a/app/(authenticated)/(content)/embedded-portal/embedded-portal.tsx b/app/(authenticated)/(content)/embedded-portal/embedded-portal.tsx index 4e8d0c2..2888e7c 100644 --- a/app/(authenticated)/(content)/embedded-portal/embedded-portal.tsx +++ b/app/(authenticated)/(content)/embedded-portal/embedded-portal.tsx @@ -13,6 +13,7 @@ import { } from "@/lib/workflow-constants"; import { Step } from "@/components/shared/step-list"; import HeaderContent from "@/components/shared/header-content"; +import SVG from "react-inlinesvg"; export default function EmbeddedPortal({ flatfileSpaceId, @@ -81,6 +82,11 @@ export default function EmbeddedPortal({ + + ); } diff --git a/app/(authenticated)/(content)/file-feed/[spaceId]/workspace.tsx b/app/(authenticated)/(content)/file-feed/[spaceId]/workspace.tsx index 68311c8..777ebdf 100644 --- a/app/(authenticated)/(content)/file-feed/[spaceId]/workspace.tsx +++ b/app/(authenticated)/(content)/file-feed/[spaceId]/workspace.tsx @@ -119,7 +119,7 @@ export default function Workspace({ ); diff --git a/app/(authenticated)/(content)/project-onboarding/workspace.tsx b/app/(authenticated)/(content)/project-onboarding/workspace.tsx index 5872c80..4f3acb6 100644 --- a/app/(authenticated)/(content)/project-onboarding/workspace.tsx +++ b/app/(authenticated)/(content)/project-onboarding/workspace.tsx @@ -8,6 +8,7 @@ import { PROJECT_ONBOARDING_ITEM, SAMPLE_DATA_FILENAME, } from "@/lib/workflow-constants"; +import SVG from "react-inlinesvg"; export default function Workspace({ spaceId }: { spaceId: string }) { const steps: Step[] = [ @@ -54,6 +55,11 @@ export default function Workspace({ spaceId }: { spaceId: string }) { + + ); } diff --git a/lib/services/seed.ts b/lib/services/seed.ts index 26ab0f1..f7ca17b 100644 --- a/lib/services/seed.ts +++ b/lib/services/seed.ts @@ -13,7 +13,6 @@ export class SeedService { await this.upsertAttributes(userId); await this.upsertCategories(userId); await this.upsertSuppliers(userId); - // await this.upsertProducts(userId); } static async upsertAttributes(userId: string) { @@ -918,80 +917,6 @@ export class SeedService { return suppliers[randomIndex].id; } - // static async upsertProducts(userId: string) { - // const attrs = [ - // { - // externalProductId: "prod100", - // name: faker.commerce.product(), - // description: faker.commerce.productDescription(), - // price: 100, - // quantity: 1, - // imageUrl: "https://loremflickr.com/100/100?lock=7826533007753216", - // supplierId: await this.getRandomSupplierId(userId), // Random supplier - // categoryId: await this.getRandomCategoryId(userId), // Random category - // }, - // { - // externalProductId: "prod200", - // name: faker.commerce.product(), - // description: faker.commerce.productDescription(), - // price: 100, - // quantity: 1, - // imageUrl: "https://loremflickr.com/100/100?lock=7826533007753216", - // supplierId: await this.getRandomSupplierId(userId), // Random supplier - // categoryId: await this.getRandomCategoryId(userId), // Random category - // }, - // { - // externalProductId: "prod300", - // name: faker.commerce.product(), - // description: faker.commerce.productDescription(), - // price: 100, - // quantity: 1, - // imageUrl: "https://loremflickr.com/100/100?lock=7826533007753216", - // supplierId: await this.getRandomSupplierId(userId), // Random supplier - // categoryId: await this.getRandomCategoryId(userId), // Random category - // }, - // { - // externalProductId: "prod400", - // name: faker.commerce.product(), - // description: faker.commerce.productDescription(), - // price: 100, - // quantity: 1, - // imageUrl: "https://loremflickr.com/100/100?lock=7826533007753216", - // supplierId: await this.getRandomSupplierId(userId), // Random supplier - // categoryId: await this.getRandomCategoryId(userId), // Random category - // }, - // { - // externalProductId: "prod500", - // name: faker.commerce.product(), - // description: faker.commerce.productDescription(), - // price: 100, - // quantity: 1, - // imageUrl: "https://loremflickr.com/100/100?lock=7826533007753216", - // supplierId: await this.getRandomSupplierId(userId), // Random supplier - // categoryId: await this.getRandomCategoryId(userId), // Random category - // }, - // ]; - - // for (const a of attrs) { - // await prismaClient.product.upsert({ - // where: { - // userId_externalProductId: { - // userId, - // externalProductId: a.externalProductId, - // }, - // }, - // create: { - // ...a, - // userId, - // }, - // update: { - // ...a, - // userId, - // }, - // }); - // } - // } - private static async upsertUser() { const data = { email: "test@test.com", diff --git a/public/images/embedded-portal-hero.svg b/public/images/embedded-portal-hero.svg index 8ad52b9..1c6cca3 100644 --- a/public/images/embedded-portal-hero.svg +++ b/public/images/embedded-portal-hero.svg @@ -1,114 +1,114 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + diff --git a/public/images/file-feed-hero.svg b/public/images/file-feed-hero.svg index 249fb90..b94e1dd 100644 --- a/public/images/file-feed-hero.svg +++ b/public/images/file-feed-hero.svg @@ -1,148 +1,148 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + diff --git a/public/images/project-onboarding-hero.svg b/public/images/project-onboarding-hero.svg index f0a21db..86bc5ff 100644 --- a/public/images/project-onboarding-hero.svg +++ b/public/images/project-onboarding-hero.svg @@ -1,205 +1,198 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +