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

chore: dynamic webhook auth headers #1069

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

JeevaRamu0104
Copy link
Collaborator

@JeevaRamu0104 JeevaRamu0104 commented Jul 24, 2024

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

Currently by default all the four input boxes are shown instead of that allow user to add the input boxes
image

image

Motivation and Context

How did you test it?

Checklist

  • I ran npm run re:build
  • I reviewed submitted code
  • I added unit tests for my changes where possible

@JeevaRamu0104 JeevaRamu0104 requested a review from a team as a code owner July 24, 2024 13:16
@JeevaRamu0104 JeevaRamu0104 linked an issue Jul 24, 2024 that may be closed by this pull request
@JeevaRamu0104 JeevaRamu0104 self-assigned this Jul 24, 2024
@JeevaRamu0104 JeevaRamu0104 added chore chore S-waiting-on-review Status: This PR has been implemented and needs to be reviewed labels Jul 24, 2024
}
<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`}>
Copy link
Contributor

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">
Copy link
Contributor

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"

gitanjli525
gitanjli525 previously approved these changes Jul 25, 2024
Comment on lines +82 to +85
switch value->getOptionIntFromString->Option.isNone {
| true => setKey(_ => value)
| _ => ()
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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 {
Copy link
Contributor

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 {
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

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

nonEmpty

@JeevaRamu0104 JeevaRamu0104 dismissed gitanjli525’s stale review July 30, 2024 10:59

The merge-base changed after approval.

@JeevaRamu0104 JeevaRamu0104 reopened this Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore chore S-waiting-on-review Status: This PR has been implemented and needs to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CHORE] Dynamic webhook auth headers
4 participants