Skip to content

Commit

Permalink
feat: track repeat prop of new link field added
Browse files Browse the repository at this point in the history
  • Loading branch information
BohdanOne committed Nov 27, 2024
1 parent dd75569 commit f4298ab
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/manager/src/managers/telemetry/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ type FieldAddedSegmentEvent = SegmentEvent<
isInAGroup: boolean;
contentType: "page type" | "custom type" | "slice";
allowText?: boolean;
repeat?: boolean;
}
>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ const TabZone: FC<TabZoneProps> = ({ tabId }) => {
contentType: getContentTypeForTracking(window.location.pathname),
...(newField.type === "Link" && {
allowText: newField.config?.allowText,
repeat: newField.config?.repeat,
}),
});
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ const FieldZones: FC = () => {
contentType: getContentTypeForTracking(window.location.pathname),
...(newField.type === "Link" && {
allowText: newField.config?.allowText,
repeat: newField.config?.repeat,
}),
});
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export const CustomListItem = ({
contentType: getContentTypeForTracking(window.location.pathname),
...(newField.type === "Link" && {
allowText: newField.config?.allowText,
repeat: newField.config?.repeat,
}),
});
};
Expand Down

0 comments on commit f4298ab

Please sign in to comment.