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

fix: change default value to true for critical switch #4882

Merged
merged 2 commits into from
Nov 30, 2023
Merged

Conversation

jainpawan21
Copy link
Member

What change does this PR introduce?

Closes #4647

Why was this change needed?

Other information (Screenshots)

Copy link

linear bot commented Nov 21, 2023

NV-2902 bug: new workflow is critical by default

What?

Critical workflow overrides above the workflow and subscriber preference

Why? (Context)

Steps to reproduce:-

  1. Create a new workflow
  2. Add any channel / action step
  3. update the workflow
  4. go to settings, workflow is critical by default.
  5. Users will be able to manage subscriptions toggle button is off

Definition of Done

It should not be critical by default as a new user is not aware about critical concept. User get confused why subscriber preference is not working?

@@ -112,7 +112,7 @@ const defaultValues: IForm = {
description: '',
identifier: '',
tags: [],
critical: false,
Copy link
Member Author

Choose a reason for hiding this comment

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

changed default value to true so that switch button for critical option is on and workflow is created non-critical

@@ -49,6 +49,7 @@ export function ChannelPreference() {
borderRadius: 8,
}}
position="apart"
key={key}
Copy link
Member Author

Choose a reason for hiding this comment

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

Added this key filed to remove console unique key react error

@jainpawan21 jainpawan21 merged commit 714f693 into next Nov 30, 2023
18 of 20 checks passed
@jainpawan21 jainpawan21 deleted the NV-2902 branch November 30, 2023 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[NV-2902] bug: new workflow is critical by default
2 participants