From 8dac2d42f2cb06b8464e22f844e93f72458867be Mon Sep 17 00:00:00 2001 From: Richard Tan Date: Fri, 9 Aug 2024 14:48:18 +0800 Subject: [PATCH] refactor: add description on fields --- .../drafts-realm/campaign-members-chart.gts | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/packages/drafts-realm/campaign-members-chart.gts b/packages/drafts-realm/campaign-members-chart.gts index ddf136471f..a2bcc4f57e 100644 --- a/packages/drafts-realm/campaign-members-chart.gts +++ b/packages/drafts-realm/campaign-members-chart.gts @@ -606,10 +606,19 @@ class Edit extends Component { export class CampaignMembersChart extends CardDef { static displayName = 'CampaignMembersChart'; - @field name = contains(StringField); - @field chartType = contains(StringField); - @field contactMembers = containsMany(ContactMembersField); - @field leadMembers = containsMany(LeadMembersField); + @field name = contains(StringField, { + description: 'The campaign name', + }); + @field chartType = contains(StringField, { + description: + 'Chart type that will be displayed for showing sent and responded members', + }); + @field contactMembers = containsMany(ContactMembersField, { + description: 'Contact members of the campaign, each with response status', + }); + @field leadMembers = containsMany(LeadMembersField, { + description: 'Lead members of the campaign, each with response status', + }); static isolated = Isolated; static embedded = Embedded;