-
-
Notifications
You must be signed in to change notification settings - Fork 1
feat: converted project to implement zoneless #444
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several improvements and refactors across the codebase, focusing on modernizing Angular patterns, updating dependencies. The most significant changes include migrating to Angular signals for state management, and refactoring the toast service and related components for better reactivity and compatibility with Zoneless implementation.
Angular Modernization & State Management
AppComponent,AppVersionComponent, andToastService) from traditional properties and RxJS Subjects to Angular signals for state management, improving reactivity and simplifying change detection. This includes usingsignalfor UI state, replacing@Inputwithinput, and leveragingtakeUntilDestroyedfor cleanup. ([[1]](https://github.com/switcherapi/switcher-management/pull/444/files#diff-67cc87ff80ea9d72310b26cb3557524719dff5ba1145dd9126cc76fa498db515L1-R2),[[2]](https://github.com/switcherapi/switcher-management/pull/444/files#diff-67cc87ff80ea9d72310b26cb3557524719dff5ba1145dd9126cc76fa498db515L15-L44),[[3]](https://github.com/switcherapi/switcher-management/pull/444/files#diff-884f7f49640e5923f6bcac4c51d90340330a178f662defbe61e5f5aac1c512deL1-R5),[[4]](https://github.com/switcherapi/switcher-management/pull/444/files#diff-884f7f49640e5923f6bcac4c51d90340330a178f662defbe61e5f5aac1c512deL15-R48),[[5]](https://github.com/switcherapi/switcher-management/pull/444/files#diff-fc887150a340b06c50cf05d5c9939b530ed3cc2ed8e71162c2264194a3b4c76aL1-R14),[[6]](https://github.com/switcherapi/switcher-management/pull/444/files#diff-fc887150a340b06c50cf05d5c9939b530ed3cc2ed8e71162c2264194a3b4c76aL20-R27))currentToken(),darkMode(),profileAvatar(),loggedUserName()) instead of direct property access. ([[1]](https://github.com/switcherapi/switcher-management/pull/444/files#diff-8d554c98f4c32fee762d6a18e8e189f8898124312ba390bdc51fadd38345674fL24-R24),[[2]](https://github.com/switcherapi/switcher-management/pull/444/files#diff-8d554c98f4c32fee762d6a18e8e189f8898124312ba390bdc51fadd38345674fL38-R38),[[3]](https://github.com/switcherapi/switcher-management/pull/444/files#diff-8d554c98f4c32fee762d6a18e8e189f8898124312ba390bdc51fadd38345674fL47-R47),[[4]](https://github.com/switcherapi/switcher-management/pull/444/files#diff-8d554c98f4c32fee762d6a18e8e189f8898124312ba390bdc51fadd38345674fL59-R83),[[5]](https://github.com/switcherapi/switcher-management/pull/444/files#diff-8d554c98f4c32fee762d6a18e8e189f8898124312ba390bdc51fadd38345674fL93-R93),[[6]](https://github.com/switcherapi/switcher-management/pull/444/files#diff-9f07eae3b4f6e8b9b0fd87e68f64b6a3c21ded69e6bfb568d46459883ede9192L2-R4))Configuration and Polyfills
"zone.js"polyfill fromangular.json, likely in favor of zoneless Angular operation. ([angular.jsonL21](https://github.com/switcherapi/switcher-management/pull/444/files#diff-2d2675bb4687601a5c7ccf707455132f90f3516a33716185687e5c41df59ac7dL21))[eslint.config.mjsL16-L22](https://github.com/switcherapi/switcher-management/pull/444/files#diff-9601a8f6c734c2001be34a2361f76946d19a39a709b5e8c624a2a5a0aade05f2L16-L22))