twenty/front
Ruslan fd9467c54d
feat: Add seed people and companies data for demo environment (#2207) (#2307)
* feat: seed companies and people data

* init DataSeedDemoWorkspaceCommand to handle:
- seedCoreSchema()
- seedMetadataSchema()

* feature: Seed workspace with demo data

- delete workspace
- initDemo() with prefillWorkspaceWithDemoObjects()

* added companies-demo.ts with data
* added people-demo.ts with data

* added workspaceId to seedFeatureFlags()

* delete previous CoreSchema before seedCoreSchema

* added workspaceMemberPrefillData

* getDemoWorkspaces() to get DEMO_WORKSPACES from config

* defined DemoSeedUserIds

- created core/demo/ to keep modified seedCoreSchema() there
- DemoSeedUserIds with new set of users and Ids

* generateOpportunities() to seed demo opportunities (limit = 50)

* Code review and fixes

* Fix

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-12-02 18:37:45 +01:00
..
.storybook Fix Frontend modules tests (#2688) 2023-11-28 23:33:34 +01:00
public Fix Frontend modules tests (#2688) 2023-11-28 23:33:34 +01:00
scripts chore: inject enviroment at the ./front deployment phase (#2174) (#2179) 2023-10-22 12:36:36 +02:00
src feat: Add seed people and companies data for demo environment (#2207) (#2307) 2023-12-02 18:37:45 +01:00
.env.example Chore(front): Add more typeguards (#2136) 2023-10-24 09:26:47 +02:00
.eslintrc-ci.js No console eslint (#2251) 2023-11-06 23:50:06 +01:00
.eslintrc.js Eslint prevent duplicate import (#2516) 2023-11-16 12:26:43 +01:00
.gitignore Refactor client config (#529) 2023-07-07 11:10:42 -07:00
.nvmrc feat: create ViewField model (#961) 2023-07-27 09:12:26 -07:00
.prettierrc eslint prettier error on windows #1798 (#1804) 2023-10-03 16:48:52 +02:00
codegen-metadata.js Split components into object-metadata and object-record (#2425) 2023-11-10 15:54:32 +01:00
codegen.js Split components into object-metadata and object-record (#2425) 2023-11-10 15:54:32 +01:00
craco.config.js Fixes (#2256) 2023-10-27 11:25:14 +02:00
jest.config.js Reorganize frontend and install Craco to alias modules (#190) 2023-06-04 11:23:09 +02:00
nyc.config.js 2062 view edit an api key (#2231) 2023-10-26 11:32:44 +02:00
package.json Feat/error boundaries (#2779) 2023-12-01 22:06:38 +01:00
tsconfig.json Feat/show page metadata (#2234) 2023-10-27 11:06:07 +02:00
tsup.config.js fix-svgr-issue-with-tsup (#2429) 2023-11-10 18:25:14 +01:00
tsup.ui.index.tsx UI Component docs (Display & Feedback components) (#2453) 2023-11-22 22:35:34 +01:00
yarn.lock Feat/error boundaries (#2779) 2023-12-01 22:06:38 +01:00