Conversation
...src/modules/workflow/workflow-runner/workspace-services/workflow-runner.workspace-service.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
1 issue found across 4 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="packages/twenty-ui/src/components/chip/Chip.tsx">
<violation number="1" location="packages/twenty-ui/src/components/chip/Chip.tsx:202">
P2: Whitespace-only labels are no longer treated as empty, causing blank-looking chips instead of the empty label fallback.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
| > | ||
| {leftComponent} | ||
| {!isLabelHidden && label && label.trim() ? ( | ||
| {!isLabelHidden && isDefined(label) && isNonEmptyString(label) ? ( |
There was a problem hiding this comment.
P2: Whitespace-only labels are no longer treated as empty, causing blank-looking chips instead of the empty label fallback.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/twenty-ui/src/components/chip/Chip.tsx, line 202:
<comment>Whitespace-only labels are no longer treated as empty, causing blank-looking chips instead of the empty label fallback.</comment>
<file context>
@@ -197,7 +199,7 @@ export const Chip = ({
>
{leftComponent}
- {!isLabelHidden && label && label.trim() ? (
+ {!isLabelHidden && isDefined(label) && isNonEmptyString(label) ? (
<OverflowingTextWithTooltip size={size} text={label} />
) : !forceEmptyText && !isLabelHidden ? (
</file context>
| {!isLabelHidden && isDefined(label) && isNonEmptyString(label) ? ( | |
| {!isLabelHidden && isDefined(label) && isNonEmptyString(label.trim()) ? ( |
There was a problem hiding this comment.
Thanks for the feedback! I've saved this as a new learning to improve future reviews.
Greptile SummaryThis PR bundles three independent bug fixes: optional chaining guards for null Key findings:
Confidence Score: 3/5
Last reviewed commit: 41623f2 |
...src/modules/workflow/workflow-runner/workspace-services/workflow-runner.workspace-service.ts
Show resolved
Hide resolved
| const steps = workflowRun.state.flow.steps; | ||
|
|
||
| if (workflowHasRunningSteps({ stepInfos, steps })) { | ||
| const stoppedIteratorStepInfos = getStoppedIteratorStepInfos({ |
There was a problem hiding this comment.
naming improve: get means that we are not changing. Here we are mutating.
setAllIteratorsStepInfosAsStopped (is it really what we want btw?)
There was a problem hiding this comment.
I renamed it but that's not a mutation yet, we are just building the infos.
That's what we want because current stoppage only works when there are no running steps left. But an iterator remain running until it has been called by its last iteration. Which will never happen if the iteration steps have been stopped.
There was a problem hiding this comment.
better still not happy with naming :p is the iterator the one stopping? I prefer: setAllIteratorsStepInfosAsStopped
There was a problem hiding this comment.
approving though, non blocking
Fixes #18181
Fixes #16842
Iterators remain running, which prevent the stopping state to eventually become stopped
Fixes #18186