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: UI Containers #2414

Merged
merged 61 commits into from
Feb 10, 2025
Merged

Feat: UI Containers #2414

merged 61 commits into from
Feb 10, 2025

Conversation

BenElferink
Copy link
Contributor

@BenElferink BenElferink commented Feb 9, 2025

This PR removes most of the UI code, and re-uses from the @odigos/ui-containers lib.

@BenElferink BenElferink added enhancement New feature or request frontend labels Feb 9, 2025

export default function Page() {
// call important hooks that should run on page-mount
useSSE();
Copy link
Collaborator

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?

Copy link
Contributor Author

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

Comment on lines 66 to 74
// 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);
Copy link
Collaborator

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?

Copy link
Contributor Author

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

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

@BenElferink BenElferink enabled auto-merge (squash) February 10, 2025 15:34
@BenElferink BenElferink merged commit 8dbd659 into odigos-io:main Feb 10, 2025
44 of 45 checks passed
@BenElferink BenElferink deleted the ui-containers branch February 18, 2025 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants