-
Notifications
You must be signed in to change notification settings - Fork 5
[#3264]: Schema - Integration Field #3649
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
base: dev
Are you sure you want to change the base?
Conversation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
}, obj); | ||
} | ||
|
||
export const fetchApi = async <T = unknown>({ |
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.
I question the value of this abstraction, it’s mildly useful at best, but it introduces some questionable design choices that might hurt more than help.
Its a redundant abstraction and you lose flexibility without gaining much.
|
||
const { endpoint, headers, type, keyPaths } = config; | ||
|
||
const generateItemId = useCallback( |
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.
If this is really needed you could just use uuid library that we have instead of this complex logic.
Although I would ask you to question this further and see if this is really needed or if it can all be index based
error, | ||
children, | ||
}: { | ||
name?: string; |
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.
Use your standard prop typing pattern. FieldWrapperProps
setType, | ||
closeForm, | ||
}: { | ||
activeStep: number; |
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.
Same here regarding prop typing
Technical Specs: https://docs.google.com/document/d/1xynOhoDtj6TJB_tUrvx_rPncL4sIT156TdPd3qlDaek/edit?usp=sharing
ADD FIELD:
Integration-Field-Add-Field.mp4
SELECT ITEMS:
Integration-Field-Select-Items.mp4