P0073 | Authorization script version 2 changes #434
Merged
Chandan-walker merged 5 commits intodevelopmentfrom Feb 25, 2026
Merged
P0073 | Authorization script version 2 changes #434Chandan-walker merged 5 commits intodevelopmentfrom
Chandan-walker merged 5 commits intodevelopmentfrom
Conversation
P0072 | Orginazation details script
P0072 | Orginazation details script
P0072 | Orginazation details script
There was a problem hiding this comment.
Other comments (13)
- apps/proxy-auth/src/app/otp/component/register/register.component.scss (376-376) The error color is hardcoded as 'red' for invalid form fields in the dark theme. Consider using a theme variable like '$mat-error' or 'mat-color($theme, warn)' for consistency with Angular Material's theming system.
- apps/proxy-auth/src/app/otp/component/register/register.component.scss (277-414) There are numerous `!important` declarations throughout the added CSS. This can make styles difficult to override and maintain. Consider refactoring to use more specific selectors or a proper CSS specificity hierarchy instead of relying on `!important`.
- apps/proxy-auth/src/app/otp/component/register/register.component.scss (398-398) The background color for input fields in dark mode is hardcoded to `#616161`. Consider using a theme variable to ensure consistency with the rest of the application's dark theme and to maintain proper contrast ratios for accessibility.
-
apps/proxy-auth/src/app/otp/component/register/register.component.ts (629-644)
The switch statement in borderRadiusValue getter could be simplified using an object lookup for better maintainability:
public get borderRadiusValue(): string | null { if (this.version !== 'v2') { return null; } const radiusMap = { 'none': '0', 'small': '4px', 'medium': '8px', 'large': '12px' }; return radiusMap[this.uiPreferences?.border_radius] || null; } - apps/proxy-auth/src/app/otp/component/send-otp-center/send-otp-center.component.html (129-131) The divider text has been changed from 'OR' to 'Or continue with', but the CSS class is still named 'divider-text'. Consider renaming this class to something like 'divider-continue-with' to better reflect its purpose.
- apps/proxy-auth/src/app/otp/component/send-otp-center/send-otp-center.component.html (476-476) The Apple logo inversion logic for dark theme is duplicated in two places. Consider creating a dedicated CSS class for this specific case to avoid code duplication and improve maintainability.
- apps/proxy-auth/src/app/otp/component/send-otp-center/send-otp-center.component.html (224-234) The button styling with ngStyle is duplicated across multiple buttons in the template. Consider creating a reusable function in the component class that returns the style object based on the current theme settings to reduce duplication.
- apps/proxy-auth/src/app/otp/component/register/register.component.html (65-77) The button styling logic doesn't handle the case where `buttonColor` is defined but `buttonTextColor` is not specified. This could lead to poor contrast if a light button color is used. Consider adding a function to automatically determine appropriate text color based on the background color, or ensure that buttonTextColor has a sensible default that ensures readability.
- apps/proxy-auth/src/app/otp/component/register/register.component.html (235-252) Similar to the OTP button, the Submit button styling doesn't handle the case where `buttonColor` is defined but `buttonTextColor` is not specified. This could lead to accessibility issues with poor contrast. Consider implementing a consistent approach to handle text color across all themed buttons.
- apps/proxy-auth/src/app/otp/component/register/register.component.html (20-21) The code sets a CSS custom property `--field-border-radius` but doesn't include any fallback for browsers that might not support CSS variables. Consider adding a fallback mechanism or ensuring that the application has appropriate browser support requirements documented.
-
apps/proxy-auth/src/app/otp/component/register/register.component.ts (647-654)
The early return statements in buttonColor and buttonTextColor getters have inconsistent formatting compared to other getters. Consider using consistent formatting:
public get buttonColor(): string | null { if (this.version !== 'v2') { return null; } return this.uiPreferences?.button_color || null; } public get buttonTextColor(): string | null { if (this.version !== 'v2') { return null; } return this.uiPreferences?.button_text_color || null; } -
apps/proxy-auth/src/app/otp/component/send-otp-center/send-otp-center.component.ts (672-680)
The buttonColor and buttonHoverColor getter methods are missing braces around the return statement, which is inconsistent with the coding style used in other similar methods.
public get buttonColor(): string | null { if (this.version !== SendOtpCenterVersion.V2) { return null; } return this.uiPreferences?.button_color || null; } public get buttonHoverColor(): string | null { if (this.version !== SendOtpCenterVersion.V2) { return null; } return this.uiPreferences?.button_hover_color || null; } -
apps/proxy-auth/src/app/otp/component/send-otp-center/send-otp-center.component.ts (682-685)
The buttonTextColor getter method is also missing braces around the return statement, which is inconsistent with the coding style used in other similar methods.
public get buttonTextColor(): string | null { if (this.version !== SendOtpCenterVersion.V2) { return null; } return this.uiPreferences?.button_text_color || null; }
💡 To request another review, post a new comment with "/windsurf-review".
prakharlowanshi11
approved these changes
Feb 25, 2026
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.
No description provided.