Skip to content
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

Groupsetmanager/migration #244

Open
wants to merge 7 commits into
base: development
Choose a base branch
from

Conversation

AmosSaji
Copy link

@AmosSaji AmosSaji commented Sep 6, 2024

Description

This pull request migrates the group-set-manager component from CoffeeScript and AngularJS to TypeScript and Angular. The migration includes replacing the original .coffee, .scss, and .tpl.html files with new .ts, .scss, and .html files. The component now follows Angular Material design principles, and Bootstrap elements have been replaced with Angular Material components.

Type of change

After

Screenshot 2024-09-22 002227

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

The component has been tested in the local development environment. The following actions have been verified:

Replaced the old AngularJS component in the project.
Ensured that the new TypeScript component renders and functions correctly.
The component’s interaction with the project module, unit, and group elements has been verified

Testing Checklist:

  • Tested in latest Chrome
  • Tested in latest Safari
  • Tested in latest Firefox

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code in hard-to-understand areas

@AusBruce
Copy link

AusBruce commented Sep 8, 2024

Hi Amos, you also need to import the component to AngularModule.ts and downgrade your service to AngularJS.ts

@AnirudhNJ
Copy link

Hi amos, I have reviewed your component seems like the component still hasn't been linked to the angular module and hasn't been downgraded in the angularjs. Please make these changes then you'll might have to test it again. Thanks.

@AmosSaji
Copy link
Author

I have made the required changes that both of you have commented. Please do provide your feedback.

@AnirudhNJ
Copy link

Hi Amos, I have tested your component It seems like I cannot get to your component because of the nested component group-set-selector. And I can also see that you are having an error regarding it within your component. Apart from that the code looks good the might be some updates needed to be done in the TS file regarding the logic.

@satikaj
Copy link
Collaborator

satikaj commented Oct 13, 2024

You don't have the right screenshot attached to this PR. Current screenshot shows unit-group-set-editor. group-set-manager is used in the Groups tab not Admin tab. Please include before and after screenshots

@satikaj
Copy link
Collaborator

satikaj commented Oct 13, 2024

Multiple nested components are still in AngularJS thus cannot be used. This should have been identified in the component review and brought to attention at the stand up to be resolved.

@satikaj
Copy link
Collaborator

satikaj commented Oct 13, 2024

When testing with your changes, Groups page is blank unlike the before version. Code is not working

@AmosSaji
Copy link
Author

AmosSaji commented Oct 13, 2024

I did mention that issue in the comments about the nested components in the Teams planner. By the time I got to know about the proper way how to migrate it was pretty late, and I could not mention the nested components on time. And could you give me a response with the things that I can do to make these issues right.

@@ -28,7 +28,7 @@
"dependencies": {
"@angular/animations": "^17.3.6",
"@angular/cdk": "^17.3.6",
"@angular/cli": "^17.3.6",
"@angular/cli": "^17.3.9",
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should not have been updated

> -->
<!-- </group-selector> -->

<mat-card *ngIf="selectedGroup">
Copy link
Collaborator

Choose a reason for hiding this comment

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

ngIf and the like should not be used

</form>
</mat-card-content>

<group-member-list
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is still a AngularJS component so this would not work

@@ -0,0 +1,59 @@
<!-- <group-selector
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this commented out? You should still be using group-selector. But that component would need to be migrated to Angular 17 first

Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of using the scss file, you should use TailwindCSS in the html file

if (this.selectedGroupSet) {
this.selectedGroup = this.selectedGroupSet.groups[0];
}
console.log('New group selected:', this.selectedGroup);
Copy link
Collaborator

Choose a reason for hiding this comment

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

No need for console logs. If the original coffee file showed alerts or success messages upon completing actions, follow that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants