The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
[Apps SDK] Fix rich app link in documentation (#19007)
Marie888fa271f0d0
diff --git a/packages/create-twenty-app/src/constants/base-application/LLMS.md b/packages/create-twenty-app/src/constants/base-application/LLMS.mdindex b165db0d146..4227b88d350 100644--- a/packages/create-twenty-app/src/constants/base-application/LLMS.md+++ b/packages/create-twenty-app/src/constants/base-application/LLMS.md@@ -1,7 +1,7 @@## Base documentation- Documentation: https://docs.twenty.com/developers/extend/capabilities/apps-- Rich app example: https://github.com/twentyhq/twenty/tree/main/packages/twenty-sdk/src/app-seeds/rich-app+- Rich app example: https://github.com/twentyhq/twenty/tree/main/packages/twenty-apps/fixtures/postcard-app## UUID requirementdiff --git a/packages/twenty-apps/community/apollo-enrich/LLMS.md b/packages/twenty-apps/community/apollo-enrich/LLMS.mdindex c08c2475f18..dcd0011a9e2 100644--- a/packages/twenty-apps/community/apollo-enrich/LLMS.md+++ b/packages/twenty-apps/community/apollo-enrich/LLMS.md@@ -1,7 +1,7 @@## Base documentation- Documentation: https://docs.twenty.com/developers/extend/capabilities/apps-- Rich app example: https://github.com/twentyhq/twenty/tree/main/packages/twenty-sdk/src/app-seeds/rich-app+- Rich app example: https://github.com/twentyhq/twenty/tree/main/packages/twenty-apps/fixtures/postcard-app## UUID requirement- All generated UUIDs must be valid UUID v4.diff --git a/packages/twenty-apps/fixtures/postcard-app/src/fields/company-can-receive-postcards.field.ts b/packages/twenty-apps/fixtures/postcard-app/src/fields/company-can-receive-postcards.field.tsnew file mode 100644index 00000000000..39040de3230--- /dev/null+++ b/packages/twenty-apps/fixtures/postcard-app/src/fields/company-can-receive-postcards.field.ts@@ -0,0 +1,18 @@+import {+ defineField,+ FieldType,+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,+} from 'twenty-sdk';++// Field on existing company object+export default defineField({+ universalIdentifier: 'f922fdb8-10a9-4f11-a1d0-992a779f6dff',+ objectUniversalIdentifier:+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,+ type: FieldType.BOOLEAN,+ name: 'canReceivePostcards',+ label: 'Can Receive Postcards',+ description: 'Whether the company can receive postcards',+ icon: 'IconMailbox',+ defaultValue: false,+});diff --git a/packages/twenty-apps/fixtures/postcard-app/src/fields/postCardCategoryField.ts b/packages/twenty-apps/fixtures/postcard-app/src/fields/post-card-category.field.tssimilarity index 100%rename from packages/twenty-apps/fixtures/postcard-app/src/fields/postCardCategoryField.tsrename to packages/twenty-apps/fixtures/postcard-app/src/fields/post-card-category.field.tsdiff --git a/packages/twenty-apps/fixtures/postcard-app/src/fields/postCardNumber.field.ts b/packages/twenty-apps/fixtures/postcard-app/src/fields/post-card-number.field.tssimilarity index 100%rename from packages/twenty-apps/fixtures/postcard-app/src/fields/postCardNumber.field.tsrename to packages/twenty-apps/fixtures/postcard-app/src/fields/post-card-number.field.tsdiff --git a/packages/twenty-apps/fixtures/postcard-app/src/objects/recipient.object.ts b/packages/twenty-apps/fixtures/postcard-app/src/objects/recipient.object.tsindex 5febca5faa5..27ca823522e 100644--- a/packages/twenty-apps/fixtures/postcard-app/src/objects/recipient.object.ts+++ b/packages/twenty-apps/fixtures/postcard-app/src/objects/recipient.object.ts@@ -6,6 +6,9 @@ export const RECIPIENT_UNIVERSAL_IDENTIFIER =export const RECIPIENT_EMAIL_FIELD_UNIVERSAL_IDENTIFIER ='d2a2b3c4-5e6f-4a7b-8c9d-0e1f2a3b4c5d';+export const RECIPIENT_ADDRESS_FIELD_UNIVERSAL_IDENTIFIER =+ 'd3a2b3c4-5e6f-4a7b-8c9d-0e1f2a3b4c5d';+export default defineObject({universalIdentifier: RECIPIENT_UNIVERSAL_IDENTIFIER,nameSingular: 'recipient',@@ -23,7 +26,7 @@ export default defineObject({icon: 'IconMail',},{- universalIdentifier: 'd3a2b3c4-5e6f-4a7b-8c9d-0e1f2a3b4c5d',+ universalIdentifier: RECIPIENT_ADDRESS_FIELD_UNIVERSAL_IDENTIFIER,type: FieldType.ADDRESS,label: 'Mailing Address',name: 'mailingAddress',diff --git a/packages/twenty-apps/fixtures/postcard-app/src/views/all-post-card-recipients.view.ts b/packages/twenty-apps/fixtures/postcard-app/src/views/all-post-card-recipients.view.tsindex 944789b9fba..c534dc7854e 100644--- a/packages/twenty-apps/fixtures/postcard-app/src/views/all-post-card-recipients.view.ts+++ b/packages/twenty-apps/fixtures/postcard-app/src/views/all-post-card-recipients.view.ts@@ -1,13 +1,16 @@+import { defineView } from 'twenty-sdk';+import { ViewType } from 'twenty-shared/types';import {POST_CARD_RECIPIENT_UNIVERSAL_IDENTIFIER,SENT_AT_FIELD_UNIVERSAL_IDENTIFIER,} from '../objects/post-card-recipient.object';-import { defineView } from 'twenty-sdk';-import { ViewType } from 'twenty-shared/types';export const ALL_POST_CARD_RECIPIENTS_VIEW_ID ='b1a2b3c4-0003-4a7b-8c9d-0e1f2a3b4c5d';+export const POST_CARD_RECIPIENT_SENT_AT_FIELD_UNIVERSAL_IDENTIFIER =+ 'fd959c6f-3465-4a3a-b7ad-3f4004fffc9a';+export default defineView({universalIdentifier: ALL_POST_CARD_RECIPIENTS_VIEW_ID,name: 'All Post Card Recipients',@@ -17,7 +20,8 @@ export default defineView({position: 2,fields: [{- universalIdentifier: 'bf1a2b3c-0004-4a7b-8c9d-0e1f2a3b4c5d',+ universalIdentifier:+ POST_CARD_RECIPIENT_SENT_AT_FIELD_UNIVERSAL_IDENTIFIER,fieldMetadataUniversalIdentifier: SENT_AT_FIELD_UNIVERSAL_IDENTIFIER,position: 0,isVisible: true,diff --git a/packages/twenty-apps/fixtures/postcard-app/src/views/all-recipients.view.ts b/packages/twenty-apps/fixtures/postcard-app/src/views/all-recipients.view.tsindex 1d8a7f88166..df739224e3c 100644--- a/packages/twenty-apps/fixtures/postcard-app/src/views/all-recipients.view.ts+++ b/packages/twenty-apps/fixtures/postcard-app/src/views/all-recipients.view.ts@@ -1,9 +1,10 @@+import { defineView } from 'twenty-sdk';+import { ViewType } from 'twenty-shared/types';import {+ RECIPIENT_ADDRESS_FIELD_UNIVERSAL_IDENTIFIER,RECIPIENT_EMAIL_FIELD_UNIVERSAL_IDENTIFIER,RECIPIENT_UNIVERSAL_IDENTIFIER,} from '../objects/recipient.object';-import { defineView } from 'twenty-sdk';-import { ViewType } from 'twenty-shared/types';export const ALL_RECIPIENTS_VIEW_ID = 'b1a2b3c4-0002-4a7b-8c9d-0e1f2a3b4c5d';@@ -23,5 +24,13 @@ export default defineView({isVisible: true,size: 200,},+ {+ universalIdentifier: 'bf1a2b3c-0004-4a7b-8c9d-0e1f2a3b4c5d',+ fieldMetadataUniversalIdentifier:+ RECIPIENT_ADDRESS_FIELD_UNIVERSAL_IDENTIFIER,+ position: 1,+ isVisible: true,+ size: 150,+ },],});diff --git a/packages/twenty-apps/hello-world/LLMS.md b/packages/twenty-apps/hello-world/LLMS.mdindex b165db0d146..4227b88d350 100644--- a/packages/twenty-apps/hello-world/LLMS.md+++ b/packages/twenty-apps/hello-world/LLMS.md@@ -1,7 +1,7 @@## Base documentation- Documentation: https://docs.twenty.com/developers/extend/capabilities/apps-- Rich app example: https://github.com/twentyhq/twenty/tree/main/packages/twenty-sdk/src/app-seeds/rich-app+- Rich app example: https://github.com/twentyhq/twenty/tree/main/packages/twenty-apps/fixtures/postcard-app## UUID requirementdiff --git a/packages/twenty-apps/hello-world/src/objects/example-object.ts b/packages/twenty-apps/hello-world/src/objects/example-object.tsindex 1284bb2a35b..5820034c1fe 100644--- a/packages/twenty-apps/hello-world/src/objects/example-object.ts+++ b/packages/twenty-apps/hello-world/src/objects/example-object.ts@@ -14,7 +14,8 @@ export default defineObject({labelPlural: 'Example items',description: 'A sample custom object',icon: 'IconBox',- labelIdentifierFieldMetadataUniversalIdentifier: NAME_FIELD_UNIVERSAL_IDENTIFIER,+ labelIdentifierFieldMetadataUniversalIdentifier:+ NAME_FIELD_UNIVERSAL_IDENTIFIER,fields: [{universalIdentifier: NAME_FIELD_UNIVERSAL_IDENTIFIER,diff --git a/packages/twenty-apps/internal/call-recording/LLMS.md b/packages/twenty-apps/internal/call-recording/LLMS.mdindex fb6e4198763..f8d437390b6 100644--- a/packages/twenty-apps/internal/call-recording/LLMS.md+++ b/packages/twenty-apps/internal/call-recording/LLMS.md@@ -1,7 +1,7 @@## Base documentation- Documentation: https://docs.twenty.com/developers/extend/capabilities/apps-- Rich app example: https://github.com/twentyhq/twenty/tree/main/packages/twenty-sdk/src/app-seeds/rich-app+- Rich app example: https://github.com/twentyhq/twenty/tree/main/packages/twenty-apps/fixtures/postcard-app## Common Pitfalls