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: added webhooks events #272

Merged
merged 34 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
c5a8a8a
feat: added out going connector call
sagarnaikjuspay Jan 17, 2024
efc3119
chore: code refactor
sagarnaikjuspay Jan 17, 2024
f33dbca
chore: code refactor
sagarnaikjuspay Jan 17, 2024
d0aee44
feat: render expand button on number of lines
sagarnaikjuspay Jan 17, 2024
f8f9b2d
feat: added webhokks events
sagarnaikjuspay Jan 18, 2024
61f296d
fix: fixed request display bug
sagarnaikjuspay Jan 18, 2024
3f0e8eb
chore: updated the feature flag
sagarnaikjuspay Jan 18, 2024
3e44b3b
chore: code refactor
sagarnaikjuspay Jan 18, 2024
0202f0c
chore: code refactor
sagarnaikjuspay Jan 18, 2024
f1a7c69
chore: code refactor
sagarnaikjuspay Jan 18, 2024
7394be7
fix: fixed show more button display fix
sagarnaikjuspay Jan 18, 2024
c917836
fix: fixed the stapper bug
sagarnaikjuspay Jan 18, 2024
5e5ad86
chore: disabled audit logs
sagarnaikjuspay Jan 18, 2024
9b40d71
Merge branch 'main' into add-webhooks-events
Jan 19, 2024
0116873
feat: ui changes
sagarnaikjuspay Jan 19, 2024
eed9720
Merge branch 'add-webhooks-events' of github.com:juspay/hyperswitch-c…
sagarnaikjuspay Jan 19, 2024
737b19d
chore: merged latest branch'
sagarnaikjuspay Jan 19, 2024
249bfe8
chore: resolve the warnings
sagarnaikjuspay Jan 19, 2024
b59a452
chore: pr comments addresed
sagarnaikjuspay Jan 19, 2024
c886faf
chore: disabled the feature flag
sagarnaikjuspay Jan 19, 2024
81be6a3
chore: fixed the green color bg fix
sagarnaikjuspay Jan 19, 2024
1339fb2
Merge branch 'main' into add-webhooks-events
Jan 19, 2024
83febff
Merge branch 'main' into add-webhooks-events
Jan 22, 2024
c83a13d
feat: added connector events
sagarnaikjuspay Jan 22, 2024
ba4b3fa
Merge branch 'add-webhooks-events' of github.com:juspay/hyperswitch-c…
sagarnaikjuspay Jan 22, 2024
c5fa5a3
Merge branch 'main' into add-webhooks-events
Jan 22, 2024
e07791e
Merge branch 'main' into add-webhooks-events
Jan 23, 2024
917af4e
feat: new syntax highligher
sagarnaikjuspay Jan 24, 2024
7eff977
chore: color bug fix
sagarnaikjuspay Jan 24, 2024
90559ba
Merge branch 'add-webhooks-events' of github.com:juspay/hyperswitch-c…
sagarnaikjuspay Jan 24, 2024
5e2c877
Merge branch 'main' into add-webhooks-events
sagarnaikjuspay Jan 24, 2024
f611f24
chore: reverted back dependencies changes
sagarnaikjuspay Jan 24, 2024
2a7cf0d
chore: moved copy icon from file to solid.svg file
sagarnaikjuspay Jan 24, 2024
7ab303c
Merge branch 'main' into add-webhooks-events
Jan 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"react-final-form": "^6.5.9",
"react-ga4": "^2.0.0",
"react-pdf": "^7.3.3",
"react-syntax-highlighter": "^15.5.0",
"react-virtualized-auto-sizer": "^1.0.11",
"react-window": "^1.8.8",
"recoil": "^0.1.2",
Expand Down
15 changes: 15 additions & 0 deletions public/hyperswitch/assets/copy.svg
sagarnaikjuspay marked this conversation as resolved.
Show resolved Hide resolved
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions src/libraries/ReactSyntaxHighlighter.res
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
type editorStyle

@module("react-syntax-highlighter/dist/esm/styles/hljs")
external lightfair: editorStyle = "googlecode"

type style = {
backgroundColor?: string,
lineHeight?: string,
fontSize?: string,
paddingLeft?: string,
padding?: string,
}

module SyntaxHighlighter = {
@module("react-syntax-highlighter") @react.component
external make: (
~language: string=?,
~style: editorStyle=?,
~customStyle: style=?,
~showLineNumbers: bool=?,
~wrapLines: bool=?,
~wrapLongLines: bool=?,
~lineNumberContainerStyle: style=?,
~children: string,
) => React.element = "default"
}
10 changes: 10 additions & 0 deletions src/screens/HyperSwitch/APIUtils/APIUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,16 @@ let getURL = (
}
| _ => ""
}
| WEBHOOKS_EVENT_LOGS =>
switch id {
| Some(payment_id) => `analytics/v1/outgoing_webhook_event_logs?payment_id=${payment_id}`
| None => ""
}
| CONNECTOR_EVENT_LOGS =>
sagarnaikjuspay marked this conversation as resolved.
Show resolved Hide resolved
switch id {
| Some(payment_id) => `analytics/v1/connector_event_logs?type=Payment&payment_id=${payment_id}`
| None => ""
}
| USERS =>
let userUrl = `user`
switch userType {
Expand Down
2 changes: 2 additions & 0 deletions src/screens/HyperSwitch/APIUtils/APIUtilsTypes.res
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ type entityName =
| ANALYTICS_SYSTEM_METRICS
| PAYMENT_LOGS
| SDK_EVENT_LOGS
| WEBHOOKS_EVENT_LOGS
| CONNECTOR_EVENT_LOGS
| GENERATE_SAMPLE_DATA
| USERS
| RECON
Expand Down
Loading
Loading