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

Portal Framework #734

Open
Noggling opened this issue Sep 2, 2024 · 0 comments · May be fixed by #781
Open

Portal Framework #734

Noggling opened this issue Sep 2, 2024 · 0 comments · May be fixed by #781
Assignees

Comments

@Noggling
Copy link
Contributor

Noggling commented Sep 2, 2024

Expected outcome

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);

const portalBaseConfig = window['_config_'];

const config = (config: PortalFrameworkConfigurator) => {
	config.configureMsal(portalBaseConfig.msal.client, portalBaseConfig.msal.options);
	config.configureHttpClient('portal-client', portalBaseConfig.portalClient.client);
	config.configureServiceDiscovery(portalBaseConfig.serviceDiscovery);
};

root.render(
	<StrictMode>
		<QueryClientProvider client={queryClient}>
			<PortalFramework configure={config} fallback={<PortalProgressLoader title="Configuring Portal" />}>
				<PortalProvider  />
			</PortalFramework>
		</QueryClientProvider>
	</StrictMode>
);

declare global {
	interface Window {
		_config_: PortalBaseConfig;
	}
}

Business Value / Developer Experience

User Acceptance Tests (UAT)

Environments

All testing of issues are done in project-portal-test

For Backend use these

@Noggling Noggling self-assigned this Sep 30, 2024
@Noggling Noggling linked a pull request Sep 30, 2024 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant