From f60f0ef306a379185f38fef8650c41b115766e29 Mon Sep 17 00:00:00 2001
From: kaw67872 <kawtar.laariche@iais.fraunhofer.de>
Date: Fri, 21 Jun 2024 15:15:55 +0200
Subject: [PATCH] #19: remove console statements

---
 .../core/services/private-catalogs.service.ts | 19 -----
 .../core/services/public-solutions.service.ts |  1 -
 .../my-models/my-models.component.ts          |  3 -
 .../on-boarding-model.component.ts            |  6 --
 .../marketplace/marketplace.component.ts      |  2 -
 .../shared-item-base.component.ts             |  1 -
 .../create-edit-license-profile.component.ts  |  1 -
 .../delete-model-page.component.html          |  4 +-
 .../delete-model-page.component.scss          | 10 +++
 .../delete-model-page.component.ts            |  1 -
 ...-dialog-confirmation-action.component.html |  4 +-
 ...-dialog-confirmation-action.component.scss | 11 +++
 ...nage-publisher-authors-page.component.scss |  4 +-
 ...manage-publisher-authors-page.component.ts |  7 +-
 .../model-details-artifacts.component.ts      |  8 +-
 .../model-details-description.component.ts    |  4 +-
 ...model-details-license-profile.component.ts |  8 --
 .../model-management.component.ts             |  1 -
 .../publish-to-marketplace-page.component.ts  | 84 +++----------------
 .../rich-text-editor-dialog.component.ts      |  5 +-
 .../share-with-team-page.component.html       | 40 ++++-----
 .../share-with-team-page.component.scss       | 70 +++++++++++++++-
 .../upload-license-profile.component.ts       |  9 +-
 23 files changed, 123 insertions(+), 180 deletions(-)

diff --git a/src/app/core/services/private-catalogs.service.ts b/src/app/core/services/private-catalogs.service.ts
index 2e187e6..0bba7d4 100644
--- a/src/app/core/services/private-catalogs.service.ts
+++ b/src/app/core/services/private-catalogs.service.ts
@@ -299,7 +299,6 @@ export class PrivateCatalogsService {
         parentId: comment.parentId,
       },
     };
-    console.log({ commentObj });
     return this._httpSharedService.post(url, undefined, commentObj).pipe(
       map((res) => res.response_body),
       catchError((error) => {
@@ -695,9 +694,6 @@ export class PrivateCatalogsService {
       solution.solutionId;
 
     return this._httpSharedService.put(url, undefined, req).pipe(
-      tap((res) => {
-        console.log({ res });
-      }),
       catchError((error) => {
         throw error;
       }),
@@ -713,9 +709,6 @@ export class PrivateCatalogsService {
     const url = apiConfig.apiBackendURL + apiConfig.urlCreateTags;
 
     return this._httpSharedService.post(url, undefined, req).pipe(
-      tap((res) => {
-        console.log({ res });
-      }),
       catchError((error) => {
         throw error;
       }),
@@ -732,9 +725,6 @@ export class PrivateCatalogsService {
       tag;
 
     return this._httpSharedService.delete(url).pipe(
-      tap((res) => {
-        console.log({ res });
-      }),
       catchError((error) => {
         throw error;
       }),
@@ -751,9 +741,6 @@ export class PrivateCatalogsService {
       tag;
 
     return this._httpSharedService.put(url).pipe(
-      tap((res) => {
-        console.log({ res });
-      }),
       catchError((error) => {
         throw error;
       }),
@@ -770,9 +757,6 @@ export class PrivateCatalogsService {
     };
 
     return this._httpSharedService.put(url, undefined, req).pipe(
-      tap((res) => {
-        console.log({ res });
-      }),
       map((res) => res.response_body.tags),
       catchError((error) => {
         throw error;
@@ -836,9 +820,6 @@ export class PrivateCatalogsService {
       documentId;
 
     return this._httpSharedService.delete(url).pipe(
-      tap((res) => {
-        console.log({ res });
-      }),
       catchError((error) => {
         throw error;
       }),
diff --git a/src/app/core/services/public-solutions.service.ts b/src/app/core/services/public-solutions.service.ts
index 1e3ee32..98a265c 100644
--- a/src/app/core/services/public-solutions.service.ts
+++ b/src/app/core/services/public-solutions.service.ts
@@ -305,7 +305,6 @@ export class PublicSolutionsService {
       apiConfig.urlGetSolutionDescription(revisionId, selectedCatalogId);
 
     return this._httpSharedService.get(url, undefined).pipe(
-      tap((res) => console.log({ res })),
       catchError((error) => {
         throw error;
       }),
diff --git a/src/app/features/dashboard/my-models/my-models.component.ts b/src/app/features/dashboard/my-models/my-models.component.ts
index e4e8c0c..88b8000 100644
--- a/src/app/features/dashboard/my-models/my-models.component.ts
+++ b/src/app/features/dashboard/my-models/my-models.component.ts
@@ -230,7 +230,6 @@ export class MyModelsComponent implements OnInit {
         (response) => {
           this.favoriteSolutionsMap[solutionId] =
             !this.favoriteSolutionsMap[solutionId];
-          console.log({ response });
 
           // Handle response if needed
         },
@@ -242,7 +241,6 @@ export class MyModelsComponent implements OnInit {
       this.privateCatalogsService.deleteFavorite(dataObj).subscribe(
         (response) => {
           // Handle response if needed
-          console.log({ response });
           this.favoriteSolutionsMap[solutionId] =
             !this.favoriteSolutionsMap[solutionId];
         },
@@ -324,7 +322,6 @@ export class MyModelsComponent implements OnInit {
     this.isFirstLoad = false;
     this.selectedTags = selectedTags;
     this.loadPublicSolutions();
-    console.log({ selectedTags });
   }
 
   handleSelectedCategoriesChange(selectedCategories: string[]): void {
diff --git a/src/app/features/dashboard/on-boarding-model/on-boarding-model.component.ts b/src/app/features/dashboard/on-boarding-model/on-boarding-model.component.ts
index 7aba16c..883e55c 100644
--- a/src/app/features/dashboard/on-boarding-model/on-boarding-model.component.ts
+++ b/src/app/features/dashboard/on-boarding-model/on-boarding-model.component.ts
@@ -315,10 +315,6 @@ export class OnBoardingModelComponent implements OnInit {
             res.totalElements > 0 &&
             res.publicSolutions.some((pb) => pb.active);
           this.modelNameExists = isNameTaken;
-          console.log(
-            'existed model',
-            res.publicSolutions.filter((pb) => pb.active),
-          );
           return isNameTaken ? { nameTaken: true } : null;
         }),
         catchError((error) => {
@@ -340,7 +336,6 @@ export class OnBoardingModelComponent implements OnInit {
         )
         .subscribe({
           next: (res) => {
-            console.log({ res });
             this.solutionTrackId = res;
             const alert: Alert = {
               message:
@@ -352,7 +347,6 @@ export class OnBoardingModelComponent implements OnInit {
               .getMessagingStatus(this.userId, this.solutionTrackId)
               .subscribe({
                 next: (resp) => {
-                  console.log({ resp });
                   this.messageStatuses = resp;
                   if (resp) {
                     const dialogRef: MatDialogRef<ConfirmActionComponent> =
diff --git a/src/app/features/marketplace/marketplace.component.ts b/src/app/features/marketplace/marketplace.component.ts
index da672de..8627b6c 100644
--- a/src/app/features/marketplace/marketplace.component.ts
+++ b/src/app/features/marketplace/marketplace.component.ts
@@ -164,7 +164,6 @@ export class MarketplaceComponent {
         (response) => {
           this.favoriteSolutionsMap[solutionId] =
             !this.favoriteSolutionsMap[solutionId];
-          console.log({ response });
 
           // Handle response if needed
         },
@@ -176,7 +175,6 @@ export class MarketplaceComponent {
       this.privateCatalogsService.deleteFavorite(dataObj).subscribe(
         (response) => {
           // Handle response if needed
-          console.log({ response });
           this.favoriteSolutionsMap[solutionId] =
             !this.favoriteSolutionsMap[solutionId];
         },
diff --git a/src/app/shared/common/shared-item-base/shared-item-base.component.ts b/src/app/shared/common/shared-item-base/shared-item-base.component.ts
index 5274bad..c41c135 100644
--- a/src/app/shared/common/shared-item-base/shared-item-base.component.ts
+++ b/src/app/shared/common/shared-item-base/shared-item-base.component.ts
@@ -36,7 +36,6 @@ export abstract class SharedItemBaseComponent {
   @Output() favoriteClicked = new EventEmitter<string>();
 
   onFavoriteClick(solutionId: string): void {
-    console.log('SharedItemBaseComponent', solutionId);
     this.favoriteClicked.emit(solutionId);
   }
 
diff --git a/src/app/shared/components/create-edit-license-profile/create-edit-license-profile.component.ts b/src/app/shared/components/create-edit-license-profile/create-edit-license-profile.component.ts
index 6328626..646bf06 100644
--- a/src/app/shared/components/create-edit-license-profile/create-edit-license-profile.component.ts
+++ b/src/app/shared/components/create-edit-license-profile/create-edit-license-profile.component.ts
@@ -254,7 +254,6 @@ export class CreateEditLicenseProfileComponent implements OnInit {
   }
 
   private handleUploadError(error: any) {
-    console.log({ error });
     // Error handling logic here
     const messageError = error.error.response_detail
       ? error.error.response_detail
diff --git a/src/app/shared/components/delete-model-page/delete-model-page.component.html b/src/app/shared/components/delete-model-page/delete-model-page.component.html
index 2c32aa8..c0f2873 100644
--- a/src/app/shared/components/delete-model-page/delete-model-page.component.html
+++ b/src/app/shared/components/delete-model-page/delete-model-page.component.html
@@ -1,12 +1,12 @@
 <div class="workflow-right-header workflow-header">Delete Model</div>
-<div style="display: flex; flex-direction: column; padding: 20px; gap: 20px">
+<div class="content-container">
   <p>
     Are you sure that you want to delete this model and all of its revisions,
     public or private?
   </p>
   <div>
     <button
-      style="width: 20%"
+      class="delete-button"
       color="primary"
       mat-raised-button
       (click)="onDeleteModelClick()"
diff --git a/src/app/shared/components/delete-model-page/delete-model-page.component.scss b/src/app/shared/components/delete-model-page/delete-model-page.component.scss
index e69de29..975fe90 100644
--- a/src/app/shared/components/delete-model-page/delete-model-page.component.scss
+++ b/src/app/shared/components/delete-model-page/delete-model-page.component.scss
@@ -0,0 +1,10 @@
+.content-container {
+  display: flex;
+  flex-direction: column;
+  padding: 20px;
+  gap: 20px;
+}
+
+.delete-button {
+  width: 20%;
+}
diff --git a/src/app/shared/components/delete-model-page/delete-model-page.component.ts b/src/app/shared/components/delete-model-page/delete-model-page.component.ts
index 95f04df..579ebf4 100644
--- a/src/app/shared/components/delete-model-page/delete-model-page.component.ts
+++ b/src/app/shared/components/delete-model-page/delete-model-page.component.ts
@@ -70,7 +70,6 @@ export class DeleteModelPageComponent implements OnInit {
       .getSolutionDetails(solutionId, revisionId)
       .subscribe((res) => {
         this.solution = res;
-        console.log('solution', this.solution);
       });
   }
 }
diff --git a/src/app/shared/components/delete-user-dialog-confirmation-action/delete-user-dialog-confirmation-action.component.html b/src/app/shared/components/delete-user-dialog-confirmation-action/delete-user-dialog-confirmation-action.component.html
index de2757c..46b26c1 100644
--- a/src/app/shared/components/delete-user-dialog-confirmation-action/delete-user-dialog-confirmation-action.component.html
+++ b/src/app/shared/components/delete-user-dialog-confirmation-action/delete-user-dialog-confirmation-action.component.html
@@ -1,5 +1,5 @@
 <mat-toolbar class="dialog-header">
-  <div style="display: flex; align-items: center; padding: 0; flex: 1 1 auto">
+  <div class="dialog-title">
     <h2>{{ title }}</h2>
   </div>
   <button
@@ -20,7 +20,7 @@
   </div></mat-dialog-content
 >
 <mat-toolbar class="form-footer">
-  <button mat-dialog-close mat-raised-button style="margin-right: auto">
+  <button mat-dialog-close mat-raised-button class="cancel-button">
     Cancel
   </button>
   <button color="primary" mat-raised-button (click)="confirm()">Confirm</button>
diff --git a/src/app/shared/components/delete-user-dialog-confirmation-action/delete-user-dialog-confirmation-action.component.scss b/src/app/shared/components/delete-user-dialog-confirmation-action/delete-user-dialog-confirmation-action.component.scss
index 2b6f640..af74d03 100644
--- a/src/app/shared/components/delete-user-dialog-confirmation-action/delete-user-dialog-confirmation-action.component.scss
+++ b/src/app/shared/components/delete-user-dialog-confirmation-action/delete-user-dialog-confirmation-action.component.scss
@@ -65,3 +65,14 @@
   height: 82px;
   font-size: 14px;
 }
+
+.cancel-button {
+  margin-right: auto;
+}
+
+.dialog-title {
+  display: flex;
+  align-items: center;
+  padding: 0;
+  flex: 1 1 auto;
+}
diff --git a/src/app/shared/components/manage-publisher-authors-page/manage-publisher-authors-page.component.scss b/src/app/shared/components/manage-publisher-authors-page/manage-publisher-authors-page.component.scss
index 9b8b091..2a0ae0e 100644
--- a/src/app/shared/components/manage-publisher-authors-page/manage-publisher-authors-page.component.scss
+++ b/src/app/shared/components/manage-publisher-authors-page/manage-publisher-authors-page.component.scss
@@ -57,7 +57,7 @@
   display: flex;
   flex-direction: column;
   padding: 10px;
-  width: 100%;
+  width: 40%;
   gap: 20px;
 }
 
@@ -108,6 +108,8 @@
   flex-direction: column;
   gap: 20px;
   height: 100%;
+  padding: 10px;
+  width: 60%;
 }
 
 .add-author-button {
diff --git a/src/app/shared/components/manage-publisher-authors-page/manage-publisher-authors-page.component.ts b/src/app/shared/components/manage-publisher-authors-page/manage-publisher-authors-page.component.ts
index 91967e7..0b2e149 100644
--- a/src/app/shared/components/manage-publisher-authors-page/manage-publisher-authors-page.component.ts
+++ b/src/app/shared/components/manage-publisher-authors-page/manage-publisher-authors-page.component.ts
@@ -215,9 +215,7 @@ export class ManagePublisherAuthorsPageComponent implements OnInit {
               );
             }
           },
-          error: (error) => {
-            console.log({ error });
-          },
+          error: (error) => {},
         });
   }
 
@@ -303,12 +301,9 @@ export class ManagePublisherAuthorsPageComponent implements OnInit {
     let authorsList = this.sharedDataService.authorListValue;
 
     if (!authorsList) {
-      console.log('no model details');
-      // Properly initialize if it's not yet set
       authorsList = [];
     }
 
-    // Safely assign new values
     this.sharedDataService.authorList = authors;
   }
 }
diff --git a/src/app/shared/components/model-details-artifacts/model-details-artifacts.component.ts b/src/app/shared/components/model-details-artifacts/model-details-artifacts.component.ts
index eaa9783..4aa5ad1 100644
--- a/src/app/shared/components/model-details-artifacts/model-details-artifacts.component.ts
+++ b/src/app/shared/components/model-details-artifacts/model-details-artifacts.component.ts
@@ -80,9 +80,7 @@ export class ModelDetailsArtifactsComponent implements OnInit {
         (resp) => {
           this.artifactDownload = resp;
         },
-        (error) => {
-          console.log(error);
-        },
+        (error) => {},
       );
   }
 
@@ -100,7 +98,6 @@ export class ModelDetailsArtifactsComponent implements OnInit {
     ]).subscribe({
       next: ([userDetails, jwtToken]) => {
         if (!userDetails || !jwtToken) {
-          console.log('User details or JWT token not found, requiring login.');
           this.showAdvancedLogin();
           return;
         }
@@ -111,18 +108,15 @@ export class ModelDetailsArtifactsComponent implements OnInit {
           .performSVScan(this.solutionId, this.revisionId, 'download')
           .subscribe({
             next: (response) => {
-              console.log('Initiating Docker image download...');
               window.location.href = `${apiConfig.apiBackendURL}/api/downloads/${this.solutionId}?artifactId=${artifactId}&revisionId=${this.revisionId}&userId=${userId}&jwtToken=${jwtToken}`;
             },
             error: (error) => {
               console.error('Error during SV scan:', error);
-              console.log('An exception occurred during SV scan');
             },
           });
       },
       error: (error) => {
         console.error('Error fetching user details or JWT token:', error);
-        console.log('Failed to authenticate user details or JWT token.');
       },
     });
   }
diff --git a/src/app/shared/components/model-details-description/model-details-description.component.ts b/src/app/shared/components/model-details-description/model-details-description.component.ts
index 97f314f..d5b40c9 100644
--- a/src/app/shared/components/model-details-description/model-details-description.component.ts
+++ b/src/app/shared/components/model-details-description/model-details-description.component.ts
@@ -100,9 +100,7 @@ export class ModelDetailsDescriptionComponent {
           this.artifactDownload = resp;
           this.processArtifacts(this.artifactDownload);
         },
-        (error) => {
-          console.log(error);
-        },
+        (error) => {},
       );
   }
 
diff --git a/src/app/shared/components/model-details-license-profile/model-details-license-profile.component.ts b/src/app/shared/components/model-details-license-profile/model-details-license-profile.component.ts
index e6b15c7..7418035 100644
--- a/src/app/shared/components/model-details-license-profile/model-details-license-profile.component.ts
+++ b/src/app/shared/components/model-details-license-profile/model-details-license-profile.component.ts
@@ -58,14 +58,6 @@ export class ModelDetailsLicenseProfileComponent implements OnInit {
     this.subscription.add(
       this.sharedDataService.licenseProfile$.subscribe((profile) => {
         this.modelLicense = profile;
-        /**
-         * this.cd.detectChanges();  // Manually trigger change detection
-         */
-        if (profile) {
-          console.log('License profile updated:', profile);
-        } else {
-          console.log('License profile reset to null');
-        }
       }),
     );
     this.subscription.add(
diff --git a/src/app/shared/components/model-management/model-management.component.ts b/src/app/shared/components/model-management/model-management.component.ts
index 7abb989..478d9d3 100644
--- a/src/app/shared/components/model-management/model-management.component.ts
+++ b/src/app/shared/components/model-management/model-management.component.ts
@@ -116,7 +116,6 @@ export class ModelManagementComponent implements OnInit {
     this.publicSolutionsService
       .getSolutionDetails(solutionId, revisionId)
       .subscribe((res) => {
-        console.log({ res });
         const revisionsList = this.getRevisionsList(res);
         this.selectedRevision = revisionsList[0];
         this.setRevisionInService(this.selectedRevision);
diff --git a/src/app/shared/components/publish-to-marketplace-page/publish-to-marketplace-page.component.ts b/src/app/shared/components/publish-to-marketplace-page/publish-to-marketplace-page.component.ts
index bb86563..9dba9f7 100644
--- a/src/app/shared/components/publish-to-marketplace-page/publish-to-marketplace-page.component.ts
+++ b/src/app/shared/components/publish-to-marketplace-page/publish-to-marketplace-page.component.ts
@@ -249,20 +249,6 @@ export class PublishToMarketplacePageComponent implements OnInit {
       },
       (err: any) => {},
     );
-
-    /*  this.sharedDataService.authorList$.subscribe((authors) => {
-      if (authors) {
-        if (authors?.length === 0) {
-          const alert: Alert = {
-            message:
-              'You cannot publish the model without entering the author name. Please add author name in the "Manage Publisher/Authors" page to publish it.',
-            type: AlertType.Error,
-          };
-
-          this.alertService.notify(alert);
-        }
-      }
-    }); */
   }
 
   convertToolkitTypesToCodes(
@@ -275,7 +261,6 @@ export class PublishToMarketplacePageComponent implements OnInit {
   }
 
   onChangeCatalog(event: any) {
-    console.log({ event });
     this.selectedCatalog = event.value;
     this.publicSolutionsService
       .getSolutionDescription(this.revisionId, this.selectedCatalog.catalogId)
@@ -284,36 +269,21 @@ export class PublishToMarketplacePageComponent implements OnInit {
           this.publishToMarketPlaceForm.patchValue({
             description: res.response_body.description,
           });
-          console.log('description function call', res);
-          console.log(
-            'form value',
-            this.publishToMarketPlaceForm.value.description,
-          );
-          error: (error: any) => console.log({ error });
+          error: (error: any) => {};
         },
       });
-    console.log({ event });
   }
 
-  submit() {
-    console.log(this.publishToMarketPlaceForm.value);
-  }
+  submit() {}
 
-  created(event: any) {
-    // tslint:disable-next-line:no-console
-    console.log(event);
-  }
+  created(event: any) {}
 
   focus($event: any) {
-    // tslint:disable-next-line:no-console
-    console.log('focus', $event);
     this.focused = true;
     this.blured = false;
   }
 
   blur($event: any) {
-    // tslint:disable-next-line:no-console
-    console.log('blur', $event);
     this.focused = false;
     this.blured = true;
   }
@@ -323,7 +293,6 @@ export class PublishToMarketplacePageComponent implements OnInit {
   onAddEditLicenseProfile() {}
 
   getFilenameExtension(filename: string): string {
-    // Split the filename by dot (.) and get the last element of the array
     const parts = filename.split('.');
     return parts[parts.length - 1];
   }
@@ -373,10 +342,7 @@ export class PublishToMarketplacePageComponent implements OnInit {
         },
       });
 
-    dialogRef.afterClosed().subscribe((result) => {
-      // This will be executed when the dialog is closed
-      // Reload data to fetch the updated license profile
-    });
+    dialogRef.afterClosed().subscribe((result) => {});
   }
 
   onClickUploadDocumentFile() {
@@ -394,10 +360,7 @@ export class PublishToMarketplacePageComponent implements OnInit {
         },
       });
 
-    dialogRef.afterClosed().subscribe((result) => {
-      // This will be executed when the dialog is closed
-      // Reload data to fetch the updated license profile
-    });
+    dialogRef.afterClosed().subscribe((result) => {});
   }
 
   onLicenseProfileClick() {
@@ -418,7 +381,6 @@ export class PublishToMarketplacePageComponent implements OnInit {
   }
 
   addTag(event: MatChipInputEvent): void {
-    // console.log()
     const value = { tag: (event.value || '').trim() };
 
     // Add our keyword
@@ -435,7 +397,6 @@ export class PublishToMarketplacePageComponent implements OnInit {
   }
 
   onAddEditDescription(htmlVal: string) {
-    console.log({ htmlVal });
     this.publishToMarketPlaceForm.patchValue({ description: htmlVal });
     this.privateCatalogsService
       .updateCompanyDescription(
@@ -449,9 +410,7 @@ export class PublishToMarketplacePageComponent implements OnInit {
           this.publishToMarketPlaceForm.patchValue({
             description: res.response_body.description,
           });
-          error: (error: any) => {
-            console.log(error);
-          };
+          error: (error: any) => {};
         },
       });
   }
@@ -471,17 +430,13 @@ export class PublishToMarketplacePageComponent implements OnInit {
         },
       });
 
-    dialogRef.afterClosed().subscribe((result) => {
-      // This will be executed when the dialog is closed
-      // Reload data to fetch the updated license profile
-    });
+    dialogRef.afterClosed().subscribe((result) => {});
   }
 
   private processSideEffects(data: ModelData): void {
     this.revisionId = data.revisionId;
     this.solutionId = data.solutionId;
 
-    console.log({ data });
     if (data.picture)
       this.publishToMarketPlaceForm.patchValue({ image: data.picture });
     if (data.solution?.modelTypeName && data.solution.modelType) {
@@ -489,18 +444,8 @@ export class PublishToMarketplacePageComponent implements OnInit {
         name: data.solution?.modelTypeName,
         code: data.solution.modelType,
       });
-      console.log(
-        'category',
-        this.publishToMarketPlaceForm.get('category')?.value,
-      );
     }
 
-    /*    if (data.solution?.tookitType && data.solution.tookitTypeName)
-      this.publishToMarketPlaceForm.controls['toolkitType'].setValue({
-        name: data.solution.tookitTypeName,
-        code: data.solution.tookitType,
-      }); */
-
     if (data.solution?.tookitType && data.solution.tookitTypeName)
       this.publishToMarketPlaceForm.controls['toolkitType'].patchValue({
         name: data.solution.tookitTypeName,
@@ -537,7 +482,6 @@ export class PublishToMarketplacePageComponent implements OnInit {
         catalog: solutionCatalog,
       });
     }
-    console.log('form value', this.publishToMarketPlaceForm.value);
   }
 
   editModelName(name: string) {
@@ -546,12 +490,8 @@ export class PublishToMarketplacePageComponent implements OnInit {
       name,
     };
     this.privateCatalogsService.updateSolution(updatedSolution).subscribe({
-      next: (res) => {
-        console.log('solution updated successfully ', res);
-      },
-      error: (error) => {
-        console.log({ error });
-      },
+      next: (res) => {},
+      error: (error) => {},
     });
   }
 
@@ -559,7 +499,6 @@ export class PublishToMarketplacePageComponent implements OnInit {
     const version = this.solution.revisions.find(
       (rv) => rv.revisionId === this.revisionId,
     )?.version;
-    console.log({ version });
     const dialogRef: MatDialogRef<UpdateModelNameDialogComponent> =
       this.dialog.open(UpdateModelNameDialogComponent, {
         data: {
@@ -571,10 +510,7 @@ export class PublishToMarketplacePageComponent implements OnInit {
         },
       });
 
-    dialogRef.afterClosed().subscribe((result) => {
-      // This will be executed when the dialog is closed
-      // Reload data to fetch the updated license profile
-    });
+    dialogRef.afterClosed().subscribe((result) => {});
   }
 
   unpublishModel() {}
diff --git a/src/app/shared/components/rich-text-editor-dialog/rich-text-editor-dialog.component.ts b/src/app/shared/components/rich-text-editor-dialog/rich-text-editor-dialog.component.ts
index ef6d0e4..4d57c1a 100644
--- a/src/app/shared/components/rich-text-editor-dialog/rich-text-editor-dialog.component.ts
+++ b/src/app/shared/components/rich-text-editor-dialog/rich-text-editor-dialog.component.ts
@@ -65,7 +65,6 @@ export class RichTextEditorDialogComponent implements OnInit {
   }
 
   confirm() {
-    console.log('html', this.form.value);
     this.data.dataKey.action(this.form.value.html).subscribe({
       next: (res: any) => {
         this.alertService.notify(
@@ -84,7 +83,5 @@ export class RichTextEditorDialogComponent implements OnInit {
     });
   }
 
-  onClickChange(event: any) {
-    console.log({ event });
-  }
+  onClickChange(event: any) {}
 }
diff --git a/src/app/shared/components/share-with-team-page/share-with-team-page.component.html b/src/app/shared/components/share-with-team-page/share-with-team-page.component.html
index b822efc..c068270 100644
--- a/src/app/shared/components/share-with-team-page/share-with-team-page.component.html
+++ b/src/app/shared/components/share-with-team-page/share-with-team-page.component.html
@@ -1,14 +1,14 @@
 <div class="workflow-right-header workflow-header">Share With Team</div>
-<div style="display: flex; flex-direction: column; gap: 20px; margin: 24px">
+<div class="share-with-team-container">
   <div>
     <p class="manage-models">
       Sharing a model gives co-authorship to that person. They will be able to
       edit, share and publish, just as a model owner can.
     </p>
   </div>
-  <mat-divider style="color: #dbcbe8"></mat-divider>
-  <div style="display: flex; flex-direction: column">
-    <div style="display: flex; flex-direction: row" class="manage-models">
+  <mat-divider class="divider-color"></mat-divider>
+  <div class="flex-column">
+    <div class="manage-models flex-row">
       <span>This Model shared with below team members</span>|<span
         class="green"
       >
@@ -16,13 +16,11 @@
       >
     </div>
     <div>
-      <mat-chip-set style="justify-content: space-evenly !important">
+      <mat-chip-set class="chips-set">
         @for (sharedUser of sharedWith; track sharedUser) {
-          <mat-chip (removed)="removeUser(sharedUser)" style="width: 80px">
-            <div style="display: flex; flex-direction: column; width: 100%">
-              <div
-                style="display: flex; justify-content: flex-end; width: 100%"
-              >
+          <mat-chip (removed)="removeUser(sharedUser)" class="chip-user">
+            <div class="flex-column full-with">
+              <div class="cancel-icon-button">
                 <button
                   matChipRemove
                   [attr.aria-label]="'remove ' + sharedUser"
@@ -31,17 +29,10 @@
                 </button>
               </div>
 
-              <div
-                style="
-                  display: flex;
-                  flex-direction: column;
-                  align-items: center;
-                  width: 100%;
-                "
-              >
+              <div class="user-profile-black-image-container">
                 <img
-                  style="width: 30px; height: 30px"
                   src="../../../../assets/images/user-profile-black.png"
+                  class="user-profile-black-image"
                 />
                 <span
                   class="team-user-box"
@@ -63,17 +54,14 @@
   </div>
   <mat-divider></mat-divider>
 
-  <div
-    style="display: flex; flex-direction: row; gap: 4px"
-    class="manage-models"
-  >
+  <div class="manage-models solution-version-container">
     <span class="purple">Sharing "{{ solution?.name }}" </span>
     |<span> Version - {{ selectedRevision.version }}</span>
     |
     <gp-solution-id [solutionId]="solutionId"></gp-solution-id>
   </div>
   <form>
-    <mat-form-field class="example-chip-list">
+    <mat-form-field class="full-with">
       <mat-label>Find a user to share with</mat-label>
       <mat-chip-grid #chipGrid>
         @for (user of users; track user) {
@@ -98,7 +86,7 @@
       >
         @for (user of filteredUsers | async; track user) {
           <mat-option [value]="user"
-            ><span style="overflow: hidden; white-space: nowrap"
+            ><span class="autocomplete-option"
               >{{ user.firstName }} {{ user.lastName }}</span
             ></mat-option
           >
@@ -108,11 +96,11 @@
   </form>
 
   <button
-    style="width: 80px"
     [disabled]="users.length <= 0"
     color="primary"
     mat-raised-button
     (click)="OnclickShareButton()"
+    class="share-button"
   >
     Share
   </button>
diff --git a/src/app/shared/components/share-with-team-page/share-with-team-page.component.scss b/src/app/shared/components/share-with-team-page/share-with-team-page.component.scss
index 78a13a7..fa793cf 100644
--- a/src/app/shared/components/share-with-team-page/share-with-team-page.component.scss
+++ b/src/app/shared/components/share-with-team-page/share-with-team-page.component.scss
@@ -1,7 +1,3 @@
-.example-chip-list {
-  width: 100%;
-}
-
 .mat-divider {
   border-top-color: #dbcbe8 !important;
   border-top-width: 1px !important;
@@ -72,3 +68,69 @@
   display: flex;
   justify-content: flex-end;
 }
+
+.share-with-team-container {
+  display: flex;
+  flex-direction: column;
+  gap: 20px;
+  margin: 24px;
+}
+
+.flex-column {
+  display: flex;
+  flex-direction: column;
+}
+
+.flex-row {
+  display: flex;
+  flex-direction: row;
+}
+
+.divider-color {
+  color: #dbcbe8;
+}
+
+.chips-set {
+  justify-content: space-evenly !important;
+}
+
+.chip-user {
+  width: 80px;
+}
+
+.full-with {
+  width: 100%;
+}
+
+.user-profile-black-image {
+  width: 30px;
+  height: 30px;
+}
+
+.user-profile-black-image-container {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  width: 100%;
+}
+
+.cancel-icon-button {
+  display: flex;
+  justify-content: flex-end;
+  width: 100%;
+}
+
+.solution-version-container {
+  display: flex;
+  flex-direction: row;
+  gap: 4px;
+}
+
+.share-button {
+  width: 80px;
+}
+
+.autocomplete-option {
+  overflow: hidden;
+  white-space: nowrap;
+}
diff --git a/src/app/shared/components/upload-license-profile/upload-license-profile.component.ts b/src/app/shared/components/upload-license-profile/upload-license-profile.component.ts
index 14c7d6d..b887c62 100644
--- a/src/app/shared/components/upload-license-profile/upload-license-profile.component.ts
+++ b/src/app/shared/components/upload-license-profile/upload-license-profile.component.ts
@@ -165,8 +165,6 @@ export class UploadLicenseProfileComponent implements OnInit, OnDestroy {
   }
 
   private handleUploadError(error: any) {
-    console.log({ error });
-    // Error handling logic here
     this.modelUploadError = true;
     if (error.error) {
       const messageError = error.error.response_detail ?? error.error;
@@ -192,12 +190,7 @@ export class UploadLicenseProfileComponent implements OnInit, OnDestroy {
       reader.onload = () => {
         try {
           this.licenseProfile = JSON.parse(reader.result as string);
-          console.log('License Profile Loaded:', this.licenseProfile);
-          // Proceed with any operations now that the license profile is loaded
-        } catch (e) {
-          console.error('Error parsing the license profile:', e);
-          // Handle errors in reading or parsing the file
-        }
+        } catch (e) {}
       };
     reader.onerror = () => {
       console.error('Error reading the file:', reader.error);
-- 
GitLab