Skip to content

Comments

Apps#9364

Merged
evereq merged 30 commits intostage-appsfrom
stage
Jan 22, 2026
Merged

Apps#9364
evereq merged 30 commits intostage-appsfrom
stage

Conversation

@evereq
Copy link
Member

@evereq evereq commented Jan 22, 2026

PR

Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.



Summary by cubic

Upgrades Angular/Nx to 20.2.x/21.5.1 and optimizes the dev build for faster feedback. Also fixes checkbox theme styling and makes Register full-name validation respect config.

  • Performance

    • Dev builds: enable webpack filesystem cache, disable module concatenation and minification; Terser runs only in prod.
    • Gauzy dev server: enable live reload, disable progress logs, disable polling for faster HMR.
    • Consolidated env setup for ui-config via a single setup-env command and improved env file replacement.
  • Dependencies

    • Upgrade @angular/* to 20.2.4 and @angular/cdk,@angular/material to 20.2.14 across apps and libraries.
    • Upgrade Nx tooling to 21.5.1 and Angular DevKit/CLI to 20.2.x; bump ts-jest to 29.4.6.
    • Pin webpack to 5.101.3; upgrade cross-env to 10.1.0; remove legacy migrations.json and refresh yarn.lock.

Written for commit 30a5db2. Summary will update on new commits.

dependabot bot and others added 30 commits January 21, 2026 23:08
Bumps [lodash-es](https://github.com/lodash/lodash) from 4.17.21 to 4.17.23.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.21...4.17.23)

---
updated-dependencies:
- dependency-name: lodash-es
  dependency-version: 4.17.23
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
…es-4.17.23

chore(deps): bump lodash-es from 4.17.21 to 4.17.23
Bumps [tar](https://github.com/isaacs/node-tar) from 7.4.3 to 7.5.4.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](isaacs/node-tar@v7.4.3...v7.5.4)

---
updated-dependencies:
- dependency-name: tar
  dependency-version: 7.5.4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
chore(deps): bump nx from 21.2.0 to 21.3.0
- Disable module concatenation and minification in dev mode
- Add webpack filesystem caching for faster rebuilds
- Enable HMR and optimize serve configuration
fix: upgrade cross-env to v10 and improve env replacement
fix: upgrade cross-env to v10 and improve env replacement
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
- Upgrade @angular/* core packages to ^20.2.4
- Upgrade @angular/cdk and @angular/material to ^20.2.14
- Upgrade @angular-devkit/* packages to ^20.2.4
- Upgrade @angular-eslint/* packages to ^20.2.4
- Upgrade @angular/cli to ~20.2.0
- Upgrade @angular/compiler-cli to ^20.2.0
- Upgrade @schematics/angular to 20.2.2
- Set @angular-devkit/architect to ^0.2002.0
…lity

Fix: Checkbox theme compatibility & Register validation logic
@evereq evereq changed the title Stage Apps Jan 22, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 22, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch stage

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@evereq evereq merged commit 5eb3ef8 into stage-apps Jan 22, 2026
16 of 19 checks passed
@cla-assistant
Copy link

cla-assistant bot commented Jan 22, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
3 out of 4 committers have signed the CLA.

✅ rishi-rj-s
✅ rahul-rocket
✅ evereq
❌ dependabot[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

@cla-assistant
Copy link

cla-assistant bot commented Jan 22, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
3 out of 4 committers have signed the CLA.

✅ rahul-rocket
✅ rishi-rj-s
✅ evereq
❌ dependabot[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

@sonarqubecloud
Copy link

@augmentcode
Copy link

augmentcode bot commented Jan 22, 2026

🤖 Augment PR Summary

Summary: This PR updates the workspace “stage” dependencies and build tooling, primarily around Angular/Nx and related developer workflows.

Changes:

  • Bumped Angular packages across apps/packages from ~20.0.x to ~20.2.x (including CDK/Material).
  • Upgraded tooling dependencies like cross-env (to 10.x), ts-jest (to 29.4.x), Nx (to 21.5.1), and pinned Webpack to 5.101.3 where needed.
  • Updated multiple Nx project.json Jest targets to explicitly point to each project’s tsconfig.spec.json.
  • Tuned the Gauzy custom webpack config to better support development builds (dev detection, optional filesystem cache, and dev/prod optimization toggles).
  • Adjusted Gauzy dev-server options (e.g., progress/liveReload) for local workflow.
  • Refactored env replacement scripts naming and consolidated ui-config env setup into a single Nx run-commands target.
  • Minor UI auth changes: make full name “required” configurable and tweak checkbox styling selectors.
  • Removed the root migrations.json file from the repo.

Technical Notes: Most changes are configuration/tooling oriented; pay special attention to build/test target behavior changes and dev/prod webpack optimization toggles.

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. 1 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

// Disable module concatenation in development - it's slow and not needed
concatenateModules: !isDev,
// Only minimize in production builds
minimize: !isCircleCI && !isDev,
Copy link

Choose a reason for hiding this comment

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

isCircleCI is a function, so !isCircleCI will always be false and optimization.minimize ends up disabled for all builds. Did you mean to call it (!isCircleCI()) or use the computed boolean (!isCircleEnv)?

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Jan 22, 2026

Greptile Overview

Greptile Summary

This PR upgrades Angular packages from 20.0.x to 20.2.x, Nx from 21.2.0 to 21.5.1, and webpack to 5.101.3. It also includes several build optimizations and configuration improvements:

  • Upgraded Angular core packages and Angular Material to latest 20.2.x versions
  • Updated Nx workspace tooling to 21.5.1 for improved build performance
  • Enhanced webpack configuration with development mode detection to skip expensive optimizations during development (minification, module concatenation) and enable filesystem caching
  • Streamlined build targets in project.json files by consolidating environment setup tasks
  • Fixed build dependency chain for desktop packages
  • Made fullName field validation configurable in registration form
  • Fixed checkbox styling issues with proper CSS selectors and !important flags
  • Deleted migrations.json after migrations were applied

PR Description Issue: The PR description is incomplete - the checkboxes are not marked and no explanation of changes is provided. Per custom rule 90653f25-bd57-4517-ae57-772fe2013d9c, this could result in the PR being closed without comment.

Confidence Score: 4/5

  • This PR is safe to merge with minimal risk - it consists primarily of dependency upgrades and build optimizations.
  • Score reflects well-structured dependency upgrades and sensible build optimizations. The changes are mostly mechanical (version bumps, configuration updates) with some thoughtful improvements to development build performance. The PR description is incomplete per project guidelines, but the code changes themselves are sound.
  • Verify that all tests and builds pass successfully with the upgraded Angular 20.2.x and Nx 21.5.1 versions before merging.

Important Files Changed

Filename Overview
package.json Updated Angular packages from 20.0.x to 20.2.x, upgraded Nx from 21.2.0 to 21.5.1, upgraded webpack to 5.101.3, and reordered devDependencies for better organization
apps/gauzy/config/custom-webpack.config.js Added development mode detection to skip expensive optimizations (minification, module concatenation) and enable filesystem caching for faster development builds
packages/ui-config/project.json Consolidated generate-env and replace-env targets into single setup-env target with sequential command execution

Sequence Diagram

sequenceDiagram
    participant Dev as Developer
    participant Yarn as Yarn Package Manager
    participant Build as Build System
    participant Webpack as Webpack Config
    participant Nx as Nx Build Tool
    participant Angular as Angular CLI

    Dev->>Yarn: yarn install
    Yarn->>Yarn: Resolve dependencies (Angular 20.2.x, Nx 21.5.1)
    
    Dev->>Build: yarn build
    Build->>Nx: Execute build target
    Nx->>Angular: @nx/angular:build
    
    alt Development Mode
        Angular->>Webpack: Apply custom config
        Webpack->>Webpack: isDevelopment() = true
        Webpack->>Webpack: Enable filesystem cache
        Webpack->>Webpack: Disable concatenateModules
        Webpack->>Webpack: Disable minification
        Webpack-->>Angular: Fast build output
    else Production Mode
        Angular->>Webpack: Apply custom config
        Webpack->>Webpack: isDevelopment() = false
        Webpack->>Webpack: Enable concatenateModules
        Webpack->>Webpack: Enable TerserPlugin minification
        Webpack-->>Angular: Optimized build output
    end
    
    Angular-->>Nx: Build complete
    Nx-->>Build: Build artifacts
    Build-->>Dev: Application ready
Loading

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

No files reviewed, no comments

Edit Code Review Agent Settings | Greptile

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

3 issues found across 67 files

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="packages/plugins/posthog-ui/project.json">

<violation number="1" location="packages/plugins/posthog-ui/project.json:29">
P2: @nx/jest:jest no longer supports the tsConfig option in Nx 21+, so this addition will be rejected or ignored. Remove tsConfig from the test target and keep configuration inside jest.config.ts instead.</violation>
</file>

<file name="apps/gauzy/config/custom-webpack.config.js">

<violation number="1" location="apps/gauzy/config/custom-webpack.config.js:50">
P2: `minimize` is always false because `isCircleCI` is a function reference (truthy). Use the computed `isCircleEnv` boolean so production builds can still minify.</violation>
</file>

<file name="packages/ui-core/project.json">

<violation number="1" location="packages/ui-core/project.json:51">
P2: The @nx/jest:jest executor in Nx 21 no longer supports a `tsConfig` option; adding it will fail schema validation or be ignored. Move tsconfig configuration into jest.config.ts (e.g., jest-preset-angular/ts-jest config) or remove this option.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Comment on lines +29 to +30
"jestConfig": "packages/plugins/posthog-ui/jest.config.ts",
"tsConfig": "packages/plugins/posthog-ui/tsconfig.spec.json"
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Jan 22, 2026

Choose a reason for hiding this comment

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

P2: @nx/jest:jest no longer supports the tsConfig option in Nx 21+, so this addition will be rejected or ignored. Remove tsConfig from the test target and keep configuration inside jest.config.ts instead.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/plugins/posthog-ui/project.json, line 29:

<comment>@nx/jest:jest no longer supports the tsConfig option in Nx 21+, so this addition will be rejected or ignored. Remove tsConfig from the test target and keep configuration inside jest.config.ts instead.</comment>

<file context>
@@ -4,47 +4,36 @@
+			"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
 			"options": {
-				"jestConfig": "packages/plugins/posthog-ui/jest.config.ts"
+				"jestConfig": "packages/plugins/posthog-ui/jest.config.ts",
+				"tsConfig": "packages/plugins/posthog-ui/tsconfig.spec.json"
 			}
</file context>
Suggested change
"jestConfig": "packages/plugins/posthog-ui/jest.config.ts",
"tsConfig": "packages/plugins/posthog-ui/tsconfig.spec.json"
"jestConfig": "packages/plugins/posthog-ui/jest.config.ts"
Fix with Cubic

// Disable module concatenation in development - it's slow and not needed
concatenateModules: !isDev,
// Only minimize in production builds
minimize: !isCircleCI && !isDev,
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Jan 22, 2026

Choose a reason for hiding this comment

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

P2: minimize is always false because isCircleCI is a function reference (truthy). Use the computed isCircleEnv boolean so production builds can still minify.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/gauzy/config/custom-webpack.config.js, line 50:

<comment>`minimize` is always false because `isCircleCI` is a function reference (truthy). Use the computed `isCircleEnv` boolean so production builds can still minify.</comment>

<file context>
@@ -2,25 +2,54 @@ const TerserPlugin = require('terser-webpack-plugin');
+		// Disable module concatenation in development - it's slow and not needed
+		concatenateModules: !isDev,
+		// Only minimize in production builds
+		minimize: !isCircleCI && !isDev,
+		// Only use Terser in production builds
+		minimizer: isDev ? [] : [
</file context>
Suggested change
minimize: !isCircleCI && !isDev,
minimize: !isCircleEnv && !isDev,
Fix with Cubic

"options": {
"jestConfig": "packages/ui-core/jest.config.ts"
"jestConfig": "packages/ui-core/jest.config.ts",
"tsConfig": "packages/ui-core/tsconfig.spec.json"
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Jan 22, 2026

Choose a reason for hiding this comment

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

P2: The @nx/jest:jest executor in Nx 21 no longer supports a tsConfig option; adding it will fail schema validation or be ignored. Move tsconfig configuration into jest.config.ts (e.g., jest-preset-angular/ts-jest config) or remove this option.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/ui-core/project.json, line 51:

<comment>The @nx/jest:jest executor in Nx 21 no longer supports a `tsConfig` option; adding it will fail schema validation or be ignored. Move tsconfig configuration into jest.config.ts (e.g., jest-preset-angular/ts-jest config) or remove this option.</comment>

<file context>
@@ -47,7 +47,8 @@
 			"options": {
-				"jestConfig": "packages/ui-core/jest.config.ts"
+				"jestConfig": "packages/ui-core/jest.config.ts",
+				"tsConfig": "packages/ui-core/tsconfig.spec.json"
 			}
 		},
</file context>
Fix with Cubic

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.

3 participants