twenty/packages/twenty-ui
Ana Sofia Marin Alexandre f06cdbdfc6
refactor webhookAnalytics call and enrich analytics module (#8253)
**TLDR**

Refactor WebhoonAnalytics Graph to a more abstract version
AnalyticsGraph (in analytics module). Thus enabling the components to be
used on different instances (ex: new endpoint, new kind of graph).

**In order to test:**

1. Set ANALYTICS_ENABLED to true
2. Set TINYBIRD_JWT_TOKEN to the ADMIN token from the workspace
twenty_analytics_playground
3. Set TINYBIRD_JWT_TOKEN to the datasource or your admin token from the
workspace twenty_analytics_playground
4. Create a Webhook in twenty and set wich events it needs to track
5. Run twenty-worker in order to make the webhooks work.
6. Do your tasks in order to populate the data
7. Enter to settings> webhook>your webhook and the statistics section
should be displayed.

---------

Co-authored-by: Félix Malfait <felix@twenty.com>
2024-11-08 10:00:51 +01:00
..
__mocks__ Refactor default value for select (#5343) 2024-05-10 10:26:46 +02:00
.storybook added typechecking for all ts files (#6466) 2024-08-20 11:05:13 +02:00
scripts Fix Storybook Configuration for Windows Development Environment (#7904) 2024-10-21 18:28:31 +02:00
src refactor webhookAnalytics call and enrich analytics module (#8253) 2024-11-08 10:00:51 +01:00
.eslintrc.cjs fix: fix storybook:build memory allocation error in CI (#5284) 2024-05-03 19:19:21 +02:00
jest.config.ts Refactor default value for select (#5343) 2024-05-10 10:26:46 +02:00
package.json Bump to 0.32 (#8324) 2024-11-05 00:19:05 +01:00
project.json Clarify storybook tests (#6073) 2024-06-30 20:02:13 +02:00
README.md fix: attempt to fix Dockerfile front build (#5020) 2024-04-18 11:24:39 +02:00
setupTests.ts chore: include react components in twenty-ui test config (#4709) 2024-04-04 12:30:49 +02:00
tsconfig.build.json added typechecking for all ts files (#6466) 2024-08-20 11:05:13 +02:00
tsconfig.dev.json add field config new icons (#6996) 2024-09-13 15:07:38 +02:00
tsconfig.json refactor webhookAnalytics call and enrich analytics module (#8253) 2024-11-08 10:00:51 +01:00
tsconfig.spec.json chore: add incremental typecheck to twenty-ui (#4947) 2024-04-15 12:15:29 +02:00
tsconfig.storybook.json chore: add incremental typecheck to twenty-ui (#4947) 2024-04-15 12:15:29 +02:00
vite.config.ts added typechecking for all ts files (#6466) 2024-08-20 11:05:13 +02:00

Twenty UI

This library was generated with Nx.

Building

Run npx nx build twenty-ui to build the library.

Storybook Server

Run npx nx start twenty-ui to start the storybook development server on localhost:6006.

Running unit tests

Run npx nx test twenty-ui to execute the unit tests via Jest.