Skip to content

chore: upgrade angular#190

Merged
MessiasLima merged 3 commits into
mainfrom
upgrade-angular
Jul 20, 2026
Merged

chore: upgrade angular#190
MessiasLima merged 3 commits into
mainfrom
upgrade-angular

Conversation

@MessiasLima

Copy link
Copy Markdown
Owner

Description

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation update
  • Chore / CI

Checklist

  • I have followed the project's coding conventions
  • I have added tests for my changes
  • All tests pass locally
  • I have updated the documentation where applicable

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request upgrades Angular and TypeScript dependencies, formats several components, and updates compiler configurations. However, it introduces critical compilation errors by importing and calling the non-existent withNoIncrementalHydration function in app.config.ts, and by using an invalid ChangeDetectionStrategy.Eager across multiple components. Additionally, there is an unintentional downgrade of postcss in package.json, and the suppression of template diagnostics in tsconfig.app.json is discouraged.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines +5 to +9
import {
provideClientHydration,
withEventReplay,
withNoIncrementalHydration,
} from '@angular/platform-browser';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

withNoIncrementalHydration does not exist in @angular/platform-browser. Incremental hydration is disabled by default in Angular, so there is no need for a disabling function. This import will cause a compilation error.

import {
    provideClientHydration,
    withEventReplay,
} from '@angular/platform-browser';

providers: [
provideBrowserGlobalErrorListeners(),
provideRouter(routes),
provideClientHydration(withEventReplay(), withNoIncrementalHydration()),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

Remove the non-existent withNoIncrementalHydration() call to prevent compilation errors.

Suggested change
provideClientHydration(withEventReplay(), withNoIncrementalHydration()),
provideClientHydration(withEventReplay()),

Comment thread website/src/app/app.ts
standalone: true,
imports: [RouterOutlet, NavigationBar, Footer],
templateUrl: './app.html',
styleUrl: './app.css',

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

ChangeDetectionStrategy.Eager is not a valid Angular change detection strategy. Angular only supports Default and OnPush. Using Eager will cause a compilation error. For better performance, it is recommended to use OnPush.

Suggested change
styleUrl: './app.css',
changeDetection: ChangeDetectionStrategy.OnPush,

standalone: true,
templateUrl: './foliary-card.html',
styleUrl: './foliary-card.css',
host: {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

ChangeDetectionStrategy.Eager is not a valid Angular change detection strategy. Angular only supports Default and OnPush. Using Eager will cause a compilation error. For better performance, it is recommended to use OnPush.

Suggested change
host: {
changeDetection: ChangeDetectionStrategy.OnPush,

standalone: true,
templateUrl: './foliary-outlined-button.html',
styleUrl: './foliary-outlined-button.css',
host: {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

ChangeDetectionStrategy.Eager is not a valid Angular change detection strategy. Angular only supports Default and OnPush. Using Eager will cause a compilation error. For better performance, it is recommended to use OnPush.

Suggested change
host: {
changeDetection: ChangeDetectionStrategy.OnPush,

standalone: true,
imports: [CommonModule],
templateUrl: './footer.html',
styleUrl: './footer.css',

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

ChangeDetectionStrategy.Eager is not a valid Angular change detection strategy. Angular only supports Default and OnPush. Using Eager will cause a compilation error. For better performance, it is recommended to use OnPush.

Suggested change
styleUrl: './footer.css',
changeDetection: ChangeDetectionStrategy.OnPush,

standalone: true,
imports: [CommonModule],
templateUrl: './navigation-bar.html',
styleUrl: './navigation-bar.css',

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

ChangeDetectionStrategy.Eager is not a valid Angular change detection strategy. Angular only supports Default and OnPush. Using Eager will cause a compilation error. For better performance, it is recommended to use OnPush.

Suggested change
styleUrl: './navigation-bar.css',
changeDetection: ChangeDetectionStrategy.OnPush,

standalone: true,
imports: [FoliaryCard, FoliaryPrimaryButton],
templateUrl: './under-construction.html',
styleUrl: './under-construction.css',

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

ChangeDetectionStrategy.Eager is not a valid Angular change detection strategy. Angular only supports Default and OnPush. Using Eager will cause a compilation error. For better performance, it is recommended to use OnPush.

Suggested change
styleUrl: './under-construction.css',
changeDetection: ChangeDetectionStrategy.OnPush,

Comment thread website/package.json
"@tailwindcss/postcss": "^4.3.2",
"@types/express": "^5.0.1",
"@types/node": "^26.1.1",
"postcss": "^8.5.3",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The version of postcss was downgraded from ^8.5.16 to ^8.5.3. This seems unintentional during an upgrade PR. It is recommended to keep it at ^8.5.16 or upgrade to the latest version.

Suggested change
"postcss": "^8.5.3",
"postcss": "^8.5.16",

Comment thread website/tsconfig.app.json
Comment on lines +14 to +15
"nullishCoalescingNotNullable": "suppress",
"optionalChainNotNullable": "suppress"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Suppressing nullishCoalescingNotNullable and optionalChainNotNullable diagnostics is discouraged as it hides redundant or useless operators in your templates, which can lead to dead code or misleading type safety assumptions. It is recommended to set these to warning or error to maintain code quality.

Suggested change
"nullishCoalescingNotNullable": "suppress",
"optionalChainNotNullable": "suppress"
"nullishCoalescingNotNullable": "warning",
"optionalChainNotNullable": "warning"

@MessiasLima
MessiasLima merged commit dcbdf57 into main Jul 20, 2026
13 checks passed
@MessiasLima
MessiasLima deleted the upgrade-angular branch July 20, 2026 19:09
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.

1 participant