-
Notifications
You must be signed in to change notification settings - Fork 962
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #832 from activepieces/feat/test-polling
feat: add test polling
- Loading branch information
Showing
41 changed files
with
867 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ges/frontend/src/app/modules/common/components/editable-text/editable-text.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
...ontrol/mentions-list/piece-trigger-mention-item/piece-trigger-mention-item.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<button mat-menu-item appTrackHover #hoverTracker="hoverTrackerDirective" class="!ap-px-[9px]"> | ||
<div class="ap-flex" (click)="$event.stopPropagation(); expandSample? expandSample=false : expandSample=true"> | ||
<ng-container *ngIf="sampleData$ | async as result"> | ||
<mat-icon class="mat-icon-rtl-mirror !ap-mr-[5px]" | ||
*ngIf="result.children && result.children.length>0 || (isPollingTrigger$|async)"> | ||
{{expandSample ? 'expand_less' : 'expand_more'}} | ||
</mat-icon> | ||
<app-generic-step-mention-item [stepIndex]="stepIndex" [stepMention]="_stepMention" | ||
[indentation]="!result.children || result.children.length===0 && (isPollingTrigger$|async) !== true"></app-generic-step-mention-item> | ||
</ng-container> | ||
|
||
</div> | ||
<app-button *ngIf="hoverTracker.isHovered" btnColor="primary" btnStyle="basic" type="button" btnSize="small" | ||
class="ap-absolute ap-right-[10px]" [buttonIsInsideAutocomplete]="true" | ||
(click)="mentionClicked.emit(_stepMention)">Select | ||
</app-button> | ||
|
||
</button> | ||
<ng-container *ngIf="expandSample"> | ||
<ng-container *ngIf="sampleData$ | async as result"> | ||
<app-step-mentions-tree *ngIf="result.children && result.children.length>0" | ||
[stepOutputObjectChildNodes]="result.children" [markedNodesToShow]="result.markedNodesToShow" | ||
[stepDisplayName]="_stepMention.step.displayName" | ||
(mentionClicked)="mentionClicked.emit($event)"></app-step-mentions-tree> | ||
<ng-container *ngIf="result.error"> | ||
<div class="ap-pl-6 ap-py-2"> | ||
{{result.error}} | ||
</div> | ||
</ng-container> | ||
<ng-container *ngIf="result.children?.length === 0 && (isPollingTrigger$| async)"> | ||
<div class="ap-my-3 ap-px-2"> | ||
<div class="ap-typography-body-1 ap-text-center ap-mb-1"> | ||
Load sample data first | ||
</div> | ||
<div class="ap-typography-body-2 ap-text-center ap-mb-3"> | ||
This trigger needs to have data loaded from your account, to use as sample data | ||
</div> | ||
<div class="ap-text-center"> | ||
<app-button btnColor="primary" btnStyle="flat" type="button" btnSize="default" [darkLoadingSpinner]="false" | ||
(click)="$event.stopPropagation();selectStep() ">Go to trigger | ||
</app-button> | ||
</div> | ||
</div> | ||
</ng-container> | ||
</ng-container> | ||
</ng-container> |
Oops, something went wrong.