Some checks failed
App Prod-Parity E2E Dispatch / dispatch (push) Failing after 10s
CD Storybook UI / build (push) Failing after 3m25s
CD Storybook UI / dispatch (push) Has been skipped
CD deploy main / website-changed-files (push) Successful in 18m8s
CI Agent Skills / changed-files-check (push) Successful in 18m9s
CI Create App E2E minimal / changed-files-check (push) Successful in 24s
CI Create App / changed-files-check (push) Successful in 26s
CI Docs / changed-files-check (push) Successful in 26s
CI Emails / changed-files-check (push) Successful in 28s
CI Example App Hello World / changed-files-check (push) Successful in 23s
CI Front / changed-files-check (push) Has been skipped
CI Example App Postcard / changed-files-check (push) Successful in 27s
CI UI / changed-files-check (push) Has been skipped
CI Utils Test / changed-files-check (push) Successful in 45s
CI Twenty Apps / discover (push) Successful in 1m3s
CD deploy main / deploy-main (push) Failing after 3s
CI Agent Skills / agent-skills-validate (push) Has been skipped
CI Create App / create-app-test (lint) (push) Has been skipped
CI Emails / emails-test (push) Has been skipped
CI Front / front-task (lingui:compile) (push) Has been skipped
CI Front / front-task (lint) (push) Has been skipped
CI Example App Postcard / example-app-postcard (push) Has been skipped
CI UI / ui-task (lint) (push) Has been skipped
CI UI / ui-task (pack-size) (push) Has been skipped
CI UI / ui-task (size) (push) Has been skipped
CI UI / ui-task (test) (push) Has been skipped
CI UI / ui-task (typecheck) (push) Has been skipped
CI Utils Test / utils-test (push) Has been skipped
CI Twenty Apps / ${{ matrix.app.name }} (push) Has been skipped
CI Emails / ci-emails-status-check (push) Successful in 2s
CI Example App Hello World / ci-example-app-hello-world-status-check (push) Successful in 2s
CI Example App Postcard / ci-example-app-postcard-status-check (push) Successful in 3s
CI UI / ui-sb-test (push) Has been skipped
CI Utils Test / ci-utils-test-status-check (push) Successful in 2s
CI Twenty Apps / ci-twenty-apps-status-check (push) Successful in 2s
CI UI / ci-ui-status-check (push) Successful in 2s
CI Desktop / desktop (push) Failing after 1m8s
Push docs to Crowdin / Push documentation to Crowdin (push) Failing after 55s
Push translations to Crowdin / Extract and upload translations (push) Failing after 5s
Push website translations to Crowdin / Extract and upload website translations (push) Failing after 5s
CI Create App / create-app-test (test) (push) Has been skipped
CI Create App / create-app-test (typecheck) (push) Has been skipped
CI Docs / docs-lint (push) Has been skipped
CI Example App Hello World / example-app-hello-world (push) Has been skipped
CI Front / front-task (lingui:extract) (push) Has been skipped
CI Front / front-task (test) (push) Has been skipped
CI Front / front-task (typecheck) (push) Has been skipped
CI UI / ui-sb-build (push) Failing after 1m32s
CI Twenty Apps / ${{ matrix.app.name }} (${{ matrix.server-source }}) (push) Has been skipped
CI Agent Skills / agent-skills-publish (push) Has been skipped
CI Create App / ci-create-app-status-check (push) Successful in 2s
CI Agent Skills / agent-skills-remote-source (push) Has been skipped
CI Create App E2E minimal / create-app-e2e-minimal (push) Has been cancelled
CI E2E Main / e2e-test (push) Has been cancelled
CI Front / front-sb-build (push) Has been cancelled
CI Front / front-build (push) Has been cancelled
CI Create App E2E minimal / ci-create-app-e2e-minimal-status-check (push) Has been cancelled
CI E2E Main / ci-e2e-main-status-check (push) Has been cancelled
CI E2E Main / notify-main-ci-failure (push) Has been cancelled
CI E2E Main / qa-scout-comment (push) Has been cancelled
CI Front / front-sb-test (push) Has been cancelled
CI Front / front-sb-screenshots (push) Has been cancelled
CI Front / ci-front-status-check (push) Has been cancelled
DPA Sub-Processor Sync / sync-subprocessors (push) Failing after 3s
AI Catalog Sync / sync-catalog (push) Failing after 2s
104 lines
3.5 KiB
Markdown
104 lines
3.5 KiB
Markdown
# Setup
|
|
|
|
Follow these steps to get your app running locally.
|
|
|
|
## Prerequisites
|
|
|
|
- Node.js (version specified in `.nvmrc`)
|
|
- Yarn 4
|
|
- Docker (to run the local Twenty server)
|
|
- A Fathom OAuth client
|
|
- A public HTTPS URL forwarding to the local Twenty server
|
|
|
|
Register this OAuth callback in Fathom:
|
|
|
|
```text
|
|
https://<development-host>/auth/apps/callback
|
|
```
|
|
|
|
Set Twenty's `SERVER_URL` to that same public host. The connection hook registers
|
|
this destination with Fathom automatically:
|
|
|
|
```text
|
|
https://<development-host>/webhooks/server/72b52885-e1ba-419f-8e2e-052700f2c9f2?connectionId=<connected-account-id>
|
|
```
|
|
|
|
The ID is the **Fathom webhook resolver** logic function. Deliveries are routed
|
|
to the workspace that made the connection, so no per-workspace domain is needed.
|
|
|
|
## Steps
|
|
|
|
1. Install dependencies:
|
|
|
|
```bash
|
|
yarn install
|
|
```
|
|
|
|
2. Start the local Twenty server:
|
|
|
|
```bash
|
|
yarn twenty docker:start
|
|
```
|
|
|
|
Check the server status at any time with `yarn twenty docker:status`.
|
|
|
|
3. Set `FATHOM_CLIENT_ID` and `FATHOM_CLIENT_SECRET` as server variables in
|
|
Twenty.
|
|
|
|
4. Start the development server and sync your app:
|
|
|
|
```bash
|
|
yarn twenty dev
|
|
```
|
|
|
|
5. Open [http://localhost:2020](http://localhost:2020), log in with the default development credentials: `tim@apple.dev` / `tim@apple.dev`, and connect Fathom from Settings. The connection hook registers the signed webhook and starts a 31-day import.
|
|
|
|
6. Import older history when needed with an authenticated request:
|
|
|
|
```bash
|
|
curl -X POST https://<development-host>/s/fathom/backfill \
|
|
-H "Authorization: Bearer <api-key-or-access-token>" \
|
|
-H "Content-Type: application/json" \
|
|
-d '{"days": 30}'
|
|
```
|
|
|
|
The import runs through the requesting user's Fathom connection.
|
|
|
|
## Media import behaviour
|
|
|
|
Fathom prepares the downloadable file after the transcript is ready, so a Call
|
|
Recording stays in Processing until its media lands or is settled as
|
|
unavailable.
|
|
|
|
- A daily reconciliation pass scans local Call Recordings started in the last
|
|
seven days and resumes media imports inactive for at least 30 minutes.
|
|
- Media imports respect Fathom's `Retry-After` delay for up to three retries.
|
|
Continued throttling leaves the import unfinished for the daily recovery
|
|
pass; recordings outside its seven-day window need Sync Fathom Call.
|
|
- Media is skipped for recordings above 500 MB, for recordings Fathom has no
|
|
downloadable media for, and for limited-access shares the connected account
|
|
may view but not download. The reason is recorded on the Fathom recording
|
|
import so automatic syncs do not retry a settled failure.
|
|
- Running Sync Fathom Call clears a recorded reason and tries once more, which
|
|
is how a re-shared recording gets its media.
|
|
|
|
Import pacing is best-effort: concurrent jobs can reserve overlapping slots.
|
|
After Fathom creates a download, Twenty retries saving its ID up to three total
|
|
attempts. A crash or failed save can still cause a later retry to request
|
|
another download generation; provider creation and local persistence are not
|
|
atomic.
|
|
|
|
## Verifying your setup
|
|
|
|
- `yarn lint` - Lint the project with oxlint
|
|
- `yarn typecheck` - Type-check the project
|
|
- `yarn test:unit` - Run unit tests
|
|
- `yarn test` - Run integration tests
|
|
|
|
## Troubleshooting
|
|
|
|
Disconnect and reconnect Fathom after changing the webhook URL or the webhook
|
|
scopes, so Fathom receives the new registration.
|
|
|
|
See the [troubleshooting guide](https://docs.twenty.com/developers/extend/apps/getting-started/troubleshooting) or ask on [Discord](https://discord.gg/cx5n4Jzs57).
|