-
Notifications
You must be signed in to change notification settings - Fork 208
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: UI Containers #2414
Feat: UI Containers #2414
Conversation
|
||
export default function Page() { | ||
// call important hooks that should run on page-mount | ||
useSSE(); |
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.
this will run on every render?
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.
Created Notion issue: GEN-2344
// configuredSources & configuredFutureApps are set in store from the previous step in onboarding flow | ||
await persistSources(configuredSources, configuredFutureApps); | ||
await Promise.all(configuredDestinations.map(async ({ form }) => await createDestination(form))); | ||
|
||
resetState(); | ||
router.push(ROUTES.OVERVIEW); | ||
}; | ||
|
||
const isSourcesListEmpty = () => !Object.values(configuredSources).some((sources) => !!sources.length); |
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.
should we maintain logic inside pages?
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.
Created Notion issue: GEN-2344
left={[<OdigosLogoText key='logo' size={100} />]} | ||
center={[ | ||
<Text key='msg' family='secondary'> | ||
START WITH ODIGOS |
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.
All the consts here can move to the odigos/ui-utils
This PR removes most of the UI code, and re-uses from the
@odigos/ui-containers
lib.