Skip to content

Commit

Permalink
refactor: add description on fields
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhjtan committed Aug 9, 2024
1 parent ae35fc3 commit 8dac2d4
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions packages/drafts-realm/campaign-members-chart.gts
Original file line number Diff line number Diff line change
Expand Up @@ -606,10 +606,19 @@ class Edit extends Component<typeof CampaignMembersChart> {
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;
Expand Down

0 comments on commit 8dac2d4

Please sign in to comment.