Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.

Commit

Permalink
Building out the Collaboration tables for each state
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicfarr committed Oct 31, 2022
1 parent 9ddf1df commit ef6b869
Show file tree
Hide file tree
Showing 11 changed files with 443 additions and 127 deletions.
15 changes: 15 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"dependencies": {
"@emotion/react": "^11.9.3",
"@emotion/styled": "^11.9.3",
"@faker-js/faker": "^7.6.0",
"@mui/icons-material": "^5.10.3",
"@mui/material": "^5.8.5",
"aws-amplify": "^4.3.24",
Expand Down
150 changes: 137 additions & 13 deletions src/api/data.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { faker } from "@faker-js/faker";

export const CATEGORIES = [
"FOOD",
"FASHION",
Expand Down Expand Up @@ -101,7 +103,9 @@ export const collaborations = [
proposal: 1,
state: "APPLIED",
application: {
details: "Influencer 1 application details ",
details: faker.random.words(faker.random.numeric(2)),
posts: 2,
reels: 0,
},
influencer: 1,
},
Expand All @@ -110,7 +114,9 @@ export const collaborations = [
proposal: 1,
state: "APPLIED",
application: {
details: "Influencer 4 application details ",
details: faker.random.words(faker.random.numeric(2)),
posts: 0,
reels: 1,
},
influencer: 4,
},
Expand All @@ -119,7 +125,9 @@ export const collaborations = [
proposal: 1,
state: "APPLIED",
application: {
details: "Influencer 5 application details ",
details: faker.random.words(faker.random.numeric(2)),
posts: 1,
reels: 1,
},
influencer: 5,
},
Expand All @@ -128,7 +136,9 @@ export const collaborations = [
proposal: 1,
state: "APPROVED",
application: {
details: "Influencer 2 application details",
details: faker.random.words(faker.random.numeric(2)),
posts: 3,
reels: 0,
},
influencer: 2,
},
Expand All @@ -137,7 +147,9 @@ export const collaborations = [
proposal: 1,
state: "REJECTED",
application: {
details: "Influencer 3 application details",
details: faker.random.words(faker.random.numeric(2)),
posts: 0,
reels: 1,
},
influencer: 3,
},
Expand All @@ -146,14 +158,13 @@ export const collaborations = [
export const proposals = [
{
id: 1,
title:
"Ipsum ipsum do qui Lorem ex proident consectetur do deserunt adipisicing ipsum. Reprehenderit duis magna do culpa non adipisicing dolore labore enim qui incididunt nisi anim. Occaecat anim enim velit occaecat aliqua pariatur id nisi. Esse esse ex laborum voluptate sit. Pariatur dolore occaecat et dolor ex.",
title: "Organic Cocktails",
creativeGuidance:
"Exercitation elit quis duis excepteur velit labore in sit Lorem in Lorem.",
name: "name",
image: "https://dummyimage.com/300",
values: ["ORGANIC"],
categories: ["FOOD"],
"advice or information aimed at resolving a problem or difficulty, especially as given by someone in authority. eg He looked to his father for inspiration and guidance",
name: "OrganiGin Cafe",
image: faker.image.abstract(300, 300, true),
values: ["SUSTAINABLE", "ORGANIC", "RECYCLED", "VEGAN"],
categories: ["FOOD", "FASHION", "FITNESS", "PET", "CATEGORY5"],
created: "2022-10-24T01:02:02.012Z",
proposalMonth: "December",
proposalYear: "2022",
Expand All @@ -167,7 +178,7 @@ export const proposals = [
image: "https://dummyimage.com/300",
values: ["ORGANIC"],
categories: ["FOOD"],
created: "2022-10-29T11:22:32.012Z",
created: "2022-10-21T11:22:32.012Z",
proposalMonth: "November",
proposalYear: "2022",
},
Expand All @@ -184,3 +195,116 @@ export const proposals = [
proposalYear: "2023",
},
];

export const influencers = [
{
id: 1,
givenName: "Harry",
familyName: "Potter",
email: "[email protected]",
instaHandle: "harry_scar",
website: "https://hp.hogwarts.wiz",
address: "4 Privit Drive, Surrey WD25 7LR",
bio: "Harry James[58] Potter (b. 31 July 1980)[1] was an English half-blood[2] wizard, and one of the most famous wizards of modern times. The only child and son of James and Lily Potter (née Evans), Harry's birth was overshadowed by a prophecy, naming either himself or Neville Longbottom as the one with the power to vanquish Lord Voldemort, the most powerful and feared Dark Wizard in the world. After half of the prophecy was reported to Voldemort, courtesy of Severus Snape, Harry was chosen as the target due to his many similarities with the Dark Lord. In turn, this caused the Potter family to go into hiding.",
image: faker.image.abstract(300, 300, true),
audienceAge13To17Split: 10,
audienceAge18To24Split: 10,
audienceAge25To34Split: 10,
audienceAge35To44Split: 20,
audienceAge45To54Split: 20,
audienceAge55To64Split: 20,
audienceAge65PlusSplit: 10,
audienceFemaleSplit: 50,
audienceMaleSplit: 50,
CATEGORIES: ["FOOD", "FASHION", "FITNESS"],
VALUES: ["SUSTAINABLE", "ORGANIC", "RECYCLED", "VEGAN"],
},
{
id: 2,
givenName: faker.name.firstName(),
familyName: faker.name.lastName(),
email: faker.internet.email(),
instaHandle: faker.name.middleName(),
website: faker.internet.url(),
address: faker.address.streetAddress(),
bio: faker.random.words(45),
image: faker.image.abstract(300, 300, true),
audienceAge13To17Split: 10,
audienceAge18To24Split: 10,
audienceAge25To34Split: 10,
audienceAge35To44Split: 20,
audienceAge45To54Split: 20,
audienceAge55To64Split: 20,
audienceAge65PlusSplit: 10,
audienceFemaleSplit: 50,
audienceMaleSplit: 50,
CATEGORIES: ["FOOD", "FASHION", "FITNESS"],
VALUES: ["SUSTAINABLE", "ORGANIC", "RECYCLED", "VEGAN"],
},
{
id: 3,
givenName: faker.name.firstName(),
familyName: faker.name.lastName(),
email: faker.internet.email(),
instaHandle: faker.name.middleName(),
website: faker.internet.url(),
address: faker.address.streetAddress(),
bio: faker.random.words(45),
image: faker.image.abstract(300, 300, true),
audienceAge13To17Split: 10,
audienceAge18To24Split: 10,
audienceAge25To34Split: 10,
audienceAge35To44Split: 20,
audienceAge45To54Split: 20,
audienceAge55To64Split: 20,
audienceAge65PlusSplit: 10,
audienceFemaleSplit: 50,
audienceMaleSplit: 50,
CATEGORIES: ["FOOD", "FASHION", "FITNESS"],
VALUES: ["SUSTAINABLE", "ORGANIC", "RECYCLED", "VEGAN"],
},
{
id: 4,
givenName: faker.name.firstName(),
familyName: faker.name.lastName(),
email: faker.internet.email(),
instaHandle: faker.name.middleName(),
website: faker.internet.url(),
address: faker.address.streetAddress(),
bio: faker.random.words(45),
image: faker.image.abstract(300, 300, true),
audienceAge13To17Split: 10,
audienceAge18To24Split: 10,
audienceAge25To34Split: 10,
audienceAge35To44Split: 20,
audienceAge45To54Split: 20,
audienceAge55To64Split: 20,
audienceAge65PlusSplit: 10,
audienceFemaleSplit: 50,
audienceMaleSplit: 50,
CATEGORIES: ["FOOD", "FASHION", "FITNESS"],
VALUES: ["SUSTAINABLE", "ORGANIC", "RECYCLED", "VEGAN"],
},
{
id: 5,
givenName: faker.name.firstName(),
familyName: faker.name.lastName(),
email: faker.internet.email(),
instaHandle: faker.name.middleName(),
website: faker.internet.url(),
address: faker.address.streetAddress(),
bio: faker.random.words(45),
image: faker.image.abstract(300, 300, true),
audienceAge13To17Split: 10,
audienceAge18To24Split: 10,
audienceAge25To34Split: 10,
audienceAge35To44Split: 20,
audienceAge45To54Split: 20,
audienceAge55To64Split: 20,
audienceAge65PlusSplit: 10,
audienceFemaleSplit: 50,
audienceMaleSplit: 50,
CATEGORIES: ["FOOD", "FASHION", "FITNESS"],
VALUES: ["SUSTAINABLE", "ORGANIC", "RECYCLED", "VEGAN"],
},
];
13 changes: 13 additions & 0 deletions src/containers/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { ProposalStep4 } from "../presentation/proposal/ProposalStep4";
import { Values } from "../presentation/values/Values";
import { YourDetails } from "../presentation/YourDetails";
import { Dev } from "../test/Dev";
import { CollaborationList } from "./collaborations/CollaborationList";
import { Dashboard } from "./Dashboard";
import HomePage from "./HomePage";
import { OnboardingSteps } from "./onboading/OnboardingSteps";
Expand Down Expand Up @@ -97,6 +98,18 @@ function App() {
/>
<Route path="proposal/new" element={<NewCollaborationProposal />} />
<Route path="proposal/view/:id" element={<ProposalView />} />
<Route
path="proposal/view/:id/collaborations/applied"
element={<CollaborationList state="APPLIED" />}
/>
<Route
path="proposal/view/:id/collaborations/approved"
element={<CollaborationList state="APPROVED" />}
/>
<Route
path="proposal/view/:id/collaborations/rejected"
element={<CollaborationList state="REJECTED" />}
/>
<Route
path="proposal/edit/:id/details"
element={
Expand Down
Loading

0 comments on commit ef6b869

Please sign in to comment.