Skip to content
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(core): changes condition script for passed by and coming in clauses #14

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

maninder-pal-singh
Copy link
Collaborator

@maninder-pal-singh maninder-pal-singh commented Jun 9, 2023

Description

fixes status column not being selected when priority column
fixes UI discrepancy when value width is too large
fixes incorrect condition for is past today
changes condition script for passed by and coming in clauses

Fixes # (issue)
GH-9

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Intermediate change (work in progress)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Checklist:

  • Performed a self-review of my own code
  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Any dependent changes have been merged and published in downstream modules

@maninder-pal-singh maninder-pal-singh changed the title Gh 9 feat(core): changes condition script for passed by and coming in clauses Jun 9, 2023
@github-actions
Copy link

github-actions bot commented Jun 9, 2023

==== Karma Test Coverage ====
Statements: 26.13% ( 121/463 )
Branches : 10.71% ( 24 /224 )
Functions : 13.04% ( 15 /115 )
Lines : 26.38% ( 119 /451 )

@maninder-pal-singh maninder-pal-singh self-assigned this Jun 9, 2023
@github-actions
Copy link

==== Karma Test Coverage ====
Statements: 20.37% ( 195/957 )
Branches : 5.26% ( 24 /456 )
Functions : 7.21% ( 15 /208 )
Lines : 19.09% ( 174 /911 )

@github-actions
Copy link

==== Karma Test Coverage ====
Statements: 20.37% ( 195/957 )
Branches : 5.26% ( 24 /456 )
Functions : 7.21% ( 15 /208 )
Lines : 19.09% ( 174 /911 )

@github-actions
Copy link

github-actions bot commented Jul 6, 2023

==== Karma Test Coverage ====
Statements: 20.35% ( 195/958 )
Branches : 5.26% ( 24 /456 )
Functions : 7.21% ( 15 /208 )
Lines : 19.07% ( 174 /912 )

@github-actions
Copy link

==== Karma Test Coverage ====
Statements: 20.31% ( 195/960 )
Branches : 5.26% ( 24 /456 )
Functions : 7.21% ( 15 /208 )
Lines : 19.03% ( 174 /914 )

@github-actions
Copy link

==== Karma Test Coverage ====
Statements: 20.31% ( 195/960 )
Branches : 5.26% ( 24 /456 )
Functions : 7.21% ( 15 /208 )
Lines : 19.03% ( 174 /914 )

@@ -346,6 +366,30 @@ export class BuilderComponent<E> implements OnInit, OnChanges {
value: AllowedValues | AllowedValuesMap,
select = false,
) {
if (
(input.getIdentifier() === 'ValueTypeInput' ||
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should ideally not have any reference to input type here in this component

if (isValid) {
for (const node of nodes) {
switch (node.node.getIdentifier()) {
case EventTypes.OnChangeEvent:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as mentioned, the builder component should not have any code specific to event types

(!!this.actionGroups[0].children.length ||
!!this.elseActionGroups[0].children.length);
if (isValid) {
for (const node of nodes) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for validation, we can use a separate service that gets the current state of diagram and just returns true or false and use that here, and this should be based on the default inputs provided. Anyone using the library should be able to replace it to write there own logic according to there own custom events/actions/inputs

@@ -94,6 +94,12 @@ export abstract class WorkflowPrompt {
const dateTime = `${this.onDateSelect(date)} ${hours}:${min}`;
return moment(dateTime.toString(), 'DD-MM-YYYY hh:mm').format();
case InputTypes.Email:
(value as AllowedValuesMap).body = (
(value as AllowedValuesMap).body as string
).replace(/"/g, '\\"');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leave a comment for why

nileshkumar-sf and others added 4 commits February 8, 2024 19:50
* fix(core): fix valuetype any change

fix valuetype any change

GH-9-valueAny

* fix(core): saurabh sinha json changes

saurabh sinha json changes

GH-9-valueAny

---------

Co-authored-by: Abhinav  Verma <[email protected]>
* feat(core): add timeinterval for the interval trigger in workflow

* refactor(core): add changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants