-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(api-service,dashboard): add step events.length variable #7601
Conversation
properties: { | ||
// the length property is JS native property on arrays | ||
length: { | ||
type: 'number', | ||
}, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the valid JSONSchema
syntax. So here we define the length
property on the events
array. It will be available on arrays as it's JS native property on the arrays.
@@ -54,7 +55,7 @@ const VariablesList = React.forwardRef<HTMLUListElement, VariablesListProps>( | |||
}} | |||
> | |||
<Code2 className="text-feature size-3 min-w-3" /> | |||
{option.label} | |||
<TruncatedText>{option.label}</TruncatedText> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix for the long variable names, the truncated text will be shown in tip on hover
@@ -46,6 +46,9 @@ export function parseStepVariables(schema: JSONSchemaDefinition): ParsedVariable | |||
type: 'variable', | |||
label: fullPath, | |||
}); | |||
if (value.properties) { | |||
extractProperties({ type: 'object', properties: value.properties }, fullPath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extract properties from the array type
if (typeof skip === 'boolean') { | ||
updateStepData.controlValues!.skip = null; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't update with latest next, will do that
✅ Deploy Preview for dev-web-novu ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for dashboard-v2-novu-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
What changed? Why was the change needed?
Add the step
steps.digest-step.events.length
variable for the digested events.Truncate the variables name in the dropdown.
Screenshots