-
Notifications
You must be signed in to change notification settings - Fork 2
P0072 | Orginazation details script #428
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,6 @@ | |
| height: 100vh; | ||
| width: 100%; | ||
| z-index: 10; | ||
| max-width: 2000px; | ||
| background: transparent; | ||
| } | ||
|
|
||
|
|
@@ -229,6 +228,31 @@ | |
| background: #1976d2; | ||
| color: #ffffff; | ||
| } | ||
|
|
||
| // Disabled mat-form-field (e.g. Timezone when not editing) | ||
| .mat-form-field-disabled.timezone-field, | ||
| .mat-form-field .mdc-text-field--disabled { | ||
| opacity: 0.7; | ||
|
|
||
| .mat-select-value, | ||
| .mat-select-value-text, | ||
| .mat-input-element, | ||
| mat-label, | ||
| .mat-form-field-label { | ||
| color: rgba(0, 0, 0, 0.38) !important; | ||
| } | ||
| .mat-select-arrow, | ||
| .mat-select-arrow svg { | ||
| color: rgba(0, 0, 0, 0.38) !important; | ||
| fill: rgba(0, 0, 0, 0.38) !important; | ||
| } | ||
| .mdc-notched-outline__leading, | ||
| .mdc-notched-outline__notch, | ||
| .mdc-notched-outline__trailing, | ||
| .mat-form-field-outline { | ||
| border-color: rgba(0, 0, 0, 0.12) !important; | ||
| } | ||
| } | ||
| } | ||
|
|
||
| // ── Dark theme ──────────────────────────────────────────────────────── | ||
|
|
@@ -358,6 +382,31 @@ | |
| .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing { | ||
| border-color: rgba(255, 255, 255, 0.3) !important; | ||
| } | ||
|
|
||
| // Disabled mat-form-field (e.g. Timezone when not editing) | ||
| .mat-form-field-disabled.timezone-field, | ||
| .mat-form-field .mdc-text-field--disabled { | ||
| opacity: 0.7; | ||
|
|
||
| .mat-select-value, | ||
| .mat-select-value-text, | ||
| .mat-select-value-text span, | ||
| .mat-input-element, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The dark theme disabled styles include |
||
| mat-label, | ||
| .mat-form-field-label { | ||
| color: rgba(255, 255, 255, 0.38) !important; | ||
| } | ||
| .mat-select-arrow, | ||
| .mat-select-arrow svg { | ||
| color: rgba(255, 255, 255, 0.38) !important; | ||
| fill: rgba(255, 255, 255, 0.38) !important; | ||
| } | ||
| .mdc-notched-outline__leading, | ||
| .mdc-notched-outline__notch, | ||
| .mdc-notched-outline__trailing { | ||
| border-color: rgba(255, 255, 255, 0.12) !important; | ||
| } | ||
| } | ||
| } | ||
|
|
||
| // ── Snackbars ───────────────────────────────────────────────────────── | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,6 +50,7 @@ export class OrganizationDetailsComponent extends BaseComponent implements OnIni | |
| } | ||
|
|
||
| ngOnInit(): void { | ||
| this.organizationForm.get('timeZoneName')?.disable(); | ||
| if (this.authToken) { | ||
| this.otpService | ||
| .getOrganizationDetails(this.authToken) | ||
|
|
@@ -134,7 +135,7 @@ export class OrganizationDetailsComponent extends BaseComponent implements OnIni | |
| return; | ||
| } | ||
|
|
||
| const organizationDetails = this.organizationForm.value; | ||
| const organizationDetails = this.organizationForm.getRawValue(); | ||
| const current = { | ||
| companyName: organizationDetails.companyName ?? '', | ||
| email: organizationDetails.email ?? '', | ||
|
|
@@ -173,21 +174,21 @@ export class OrganizationDetailsComponent extends BaseComponent implements OnIni | |
| next: (res) => { | ||
| this.initialFormValue = { ...current }; | ||
| this.isEditing = false; // ← close edit mode on success | ||
| this.snackBar.open(res?.data?.message ?? 'Information successfully updated', '✕', { | ||
| duration: 3000, | ||
| horizontalPosition: 'center', | ||
| verticalPosition: 'top', | ||
| panelClass: ['success-snackbar'], | ||
| }); | ||
| // this.snackBar.open(res?.data?.message ?? 'Information successfully updated', '✕', { | ||
| // duration: 3000, | ||
| // horizontalPosition: 'center', | ||
| // verticalPosition: 'top', | ||
| // panelClass: ['success-snackbar'], | ||
| // }); | ||
|
Comment on lines
+177
to
+182
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The snackbar notifications have been commented out for both success and error cases. Without these notifications, users won't receive any feedback when their organization details are updated or when an error occurs. Was this intentional? If so, is there an alternative feedback mechanism being implemented? |
||
| }, | ||
| error: () => { | ||
| // Stay in edit mode so user can retry | ||
| this.snackBar.open('Something went wrong', '✕', { | ||
| duration: 3000, | ||
| horizontalPosition: 'center', | ||
| verticalPosition: 'top', | ||
| panelClass: ['error-snackbar'], | ||
| }); | ||
| // this.snackBar.open('Something went wrong', '✕', { | ||
| // duration: 3000, | ||
| // horizontalPosition: 'center', | ||
| // verticalPosition: 'top', | ||
| // panelClass: ['error-snackbar'], | ||
| // }); | ||
| }, | ||
| }); | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The light theme includes
.mat-form-field-outlineon line 253 in the disabled styles, but this selector is missing from the dark theme version. This could cause inconsistent styling between themes.