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

Feature/update to angular 16 #1411

Merged
merged 5 commits into from
Jun 26, 2023
Merged

Feature/update to angular 16 #1411

merged 5 commits into from
Jun 26, 2023

Conversation

Iloveall
Copy link
Collaborator

@Iloveall Iloveall commented Jun 22, 2023

Description

Fixes #1368

Notes (out of scope, known isues, hints for reviewing code, ...) (optional)

Branch for test

I've realised that after design the scroll to nav item feature has been brokne. So I've fixed it (seems need to improve it after all our changes)

For some reason the primeng has removed the next generic type https://github.com/primefaces/primeng/commit/d3b00fcd6f7cfe30d1261fa893211062d9fa26f6#diff-d92d38111264028992d6cb71[…]9510846b1d3c44187c32ff979f3R13

Fixed with custom interface

Replaced deprecated scrollbar lib https://www.npmjs.com/package/ngx-perfect-scrollbar with https://www.npmjs.com/package/ngx-scrollbar

Test cases

  • Case 1:
    1. Given I am the usual user
    2. When I go to this page
    3. And I click on prev button of the neighbours widget
    4. Then I see scroll to with animation in left menu

- Replaces scrollbar lib;
- Fixes scroll logic for left menu;
- fixes ts errors for primeng;
- Updates zone.js;
@Iloveall Iloveall marked this pull request as draft June 22, 2023 18:26
@Iloveall Iloveall force-pushed the feature/update-to-angular-16 branch from bb21c58 to 722c2f4 Compare June 22, 2023 18:43
@Iloveall Iloveall force-pushed the feature/update-to-angular-16 branch from 722c2f4 to ad55259 Compare June 22, 2023 18:47
@@ -75,13 +74,13 @@ const DEFAULT_PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = {
],
imports: [
BrowserModule,
LetModule,
LetDirective,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Deprecated

@@ -10,7 +10,7 @@ export interface BeforeUnloadComponent {
}

@Injectable()
export class BeforeUnloadGuard implements CanDeactivate<BeforeUnloadComponent> {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Has been removed by cli as it deprecated

Copy link
Contributor

Choose a reason for hiding this comment

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

but so, have you checked if this guard still work?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Tested

@Iloveall Iloveall marked this pull request as ready for review June 23, 2023 16:59
@Iloveall Iloveall requested a review from smadbe June 23, 2023 16:59
@@ -10,7 +10,7 @@ export interface BeforeUnloadComponent {
}

@Injectable()
export class BeforeUnloadGuard implements CanDeactivate<BeforeUnloadComponent> {
Copy link
Contributor

Choose a reason for hiding this comment

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

but so, have you checked if this guard still work?

@@ -14,7 +14,7 @@ export interface PendingChangesComponent {
@Injectable({
providedIn: 'root'
})
export class PendingChangesGuard implements CanDeactivate<PendingChangesComponent>, OnDestroy {
export class PendingChangesGuard implements OnDestroy {
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Tested

@@ -114,7 +114,7 @@ export class LayoutService implements OnDestroy {
@Injectable({
providedIn: 'root'
})
export class DefaultLayoutInitService implements CanActivate {
export class DefaultLayoutInitService {
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Tested

Copy link
Contributor

@smadbe smadbe left a comment

Choose a reason for hiding this comment

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

considering is well tested 👍

@Iloveall Iloveall merged commit 819be38 into master Jun 26, 2023
@Iloveall Iloveall deleted the feature/update-to-angular-16 branch June 26, 2023 13:20
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.

2 participants