-
Notifications
You must be signed in to change notification settings - Fork 28
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
chore: dynamic webhook auth headers #1069
base: main
Are you sure you want to change the base?
Conversation
} | ||
<div className="flex-1"> | ||
<p | ||
className={`ml-4 text-fs-13 text-jp-gray-900 dark:text-jp-gray-text_darktheme dark:text-opacity-50 ml-1 !text-base !text-grey-700 font-semibold ml-1`}> |
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.
ml-x text-{color} is repeated property here, can you please remove that is not required?
->Array.mapWithIndex((_, index) => | ||
<div key={index->Int.toString} className="col-span-4"> | ||
<AuthenticationInput index={index} /> | ||
<div key={index->Int.toString} className="grid grid-cols-5 flex gap-4"> |
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.
className="grid grid-cols-5 gap-4"
switch value->getOptionIntFromString->Option.isNone { | ||
| true => setKey(_ => value) | ||
| _ => () | ||
} |
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.
switch value->getOptionIntFromString->Option.isNone { | |
| true => setKey(_ => value) | |
| _ => () | |
} | |
if (value->getOptionIntFromString->Option.isNone) { | |
setKey(_ => value) | |
} |
}, | ||
onChange: ev => { | ||
let value = ReactEvent.Form.target(ev)["value"] | ||
if value->String.length <= 0 { |
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.
=== 0 LogiicUtils isEmptyString
onBlur: _ => (), | ||
onChange: ev => { | ||
let value = ReactEvent.Form.target(ev)["value"] | ||
if key->String.length > 0 { |
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.
isNonEmpty
->getDictfromDict("outgoing_webhook_custom_http_headers") | ||
->Dict.toArray | ||
->Array.filter(((key, value)) => | ||
key->String.length != 0 && value->getStringFromJson("")->String.length != 0 |
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.
nonEmpty
The merge-base changed after approval.
Type of Change
Description
Currently by default all the four input boxes are shown instead of that allow user to add the input boxes
Motivation and Context
How did you test it?
Checklist
npm run re:build