mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-23 00:22:19 +01:00
chore: drop experimental from new signal meta properties (#8553)
https://linear.app/unleash/issue/2-2855/change-our-experimental-title-to-camelcase-and-maybe-remove Drops "experimental" from the new signal meta properties and makes them camelCase instead.
This commit is contained in:
parent
90ed7b6079
commit
61bd3972ba
@ -128,17 +128,17 @@ const getTimelineEvent = (
|
||||
sourceDescription,
|
||||
tokenName,
|
||||
payload: {
|
||||
experimental_unleash_title,
|
||||
experimental_unleash_description,
|
||||
experimental_unleash_icon,
|
||||
experimental_unleash_variant,
|
||||
unleashTitle,
|
||||
unleashDescription,
|
||||
unleashIcon,
|
||||
unleashVariant,
|
||||
},
|
||||
} = event;
|
||||
|
||||
const title = experimental_unleash_title || sourceName;
|
||||
const title = unleashTitle || sourceName;
|
||||
const label = `Signal: ${title}`;
|
||||
const summary = experimental_unleash_description
|
||||
? `Signal: **[${title}](/integrations/signals)** ${experimental_unleash_description}`
|
||||
const summary = unleashDescription
|
||||
? `Signal: **[${title}](/integrations/signals)** ${unleashDescription}`
|
||||
: `Signal originated from **[${sourceName} (${tokenName})](/integrations/signals)** endpoint${sourceDescription ? `: ${sourceDescription}` : ''}`;
|
||||
|
||||
return {
|
||||
@ -147,11 +147,9 @@ const getTimelineEvent = (
|
||||
type: 'signal',
|
||||
label,
|
||||
summary,
|
||||
...(isValidString(experimental_unleash_icon)
|
||||
? { icon: experimental_unleash_icon }
|
||||
: {}),
|
||||
...(isValidString(experimental_unleash_variant)
|
||||
? { variant: experimental_unleash_variant }
|
||||
...(isValidString(unleashIcon) ? { icon: unleashIcon } : {}),
|
||||
...(isValidString(unleashVariant)
|
||||
? { variant: unleashVariant }
|
||||
: {}),
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user