Skip to content

Conversation

@Sobyt483
Copy link
Collaborator

Implemented initializer that upon not retrieving any default organization redirects to the onboarding organization page

@gkrajniak
Copy link
Collaborator

gkrajniak commented Aug 29, 2025

with the folder structure I though of having organization/initializers insted of initializers/initializers
then all the functionality that is connected to wokr with organizations should be here

@@ -0,0 +1,17 @@
import { inject, provideAppInitializer } from '@angular/core';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing unit test, and if the jest thesholds allow for thets to pass it means we should put them higer

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

try {
await envService.getEnvConfig()
} catch {
router.navigate(['new-organization']);
Copy link
Collaborator

@gkrajniak gkrajniak Aug 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

according to @nexus49 here let's have welcome

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@Sobyt483 Sobyt483 merged commit 3346071 into main Sep 1, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement initializer that upon not retrieving any default organization redirects to the onboarding organization page

3 participants