Skip to content

fix(login): remove unnecessary Suspense causing DOM error - #4132

Open
sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/remove-login-suspense
Open

sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/remove-login-suspense

Conversation

@sentry

@sentry sentry Bot commented Sep 20, 2026

Copy link
Copy Markdown

Description

This PR addresses the NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node. occurring on the /login page.

Root Cause:
The error stemmed from a conflict between Sentry Session Replay's (rrweb) DOM patching and React's Suspense boundary cleanup. The LoginLayout component wrapped its children in a <Suspense> boundary, which created comment nodes in the DOM. When React attempted to clean up these nodes after the (eagerly loaded) LoginPage rendered, rrweb's monkey-patched removeChild function failed because its internal DOM representation had diverged, leading to the NotFoundError.

Solution:
The <Suspense> boundary in LoginLayout was unnecessary, as the LoginPage component is eagerly imported and never actually suspends. By removing the <Suspense fallback={<FullPageLoader />}> wrapper from LoginLayout.tsx, we eliminate the source of the DOM reconciliation conflict.

Code Example

Notable Changes

  • Removed the unnecessary <Suspense> boundary from LoginLayout.tsx.
  • Removed the unused FullPageLoader component.
  • Removed the LoadingLogo import.

Screenshots

Link to Sample Entry

Legal Boilerplate

Look, I get it. The entity doing business as "Codecov" is owned by Harness, Inc. In 2026 Harness acquired Codecov and as a result Harness is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Harness can use, modify, copy, and redistribute my contributions, under Harness's choice of terms.

Fixes GAZEBO-187F

@sentry <feedback>: Autofix iterates on these changes
@sentry stop iterating: Autofix stops iterating on this run

This PR was automatically generated by Sentry. You can adjust this setting at any time.

@codecov

codecov Bot commented Sep 20, 2026 •

Copy link
Copy Markdown

Bundle Report

Changes will decrease total bundle size by 340 bytes (-0.0%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-production-system 5.82MB -170 bytes (-0.0%) ⬇️
gazebo-production-esm 5.89MB -170 bytes (-0.0%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: gazebo-production-system

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index-legacy.*.js -170 bytes 657.65kB -0.03%

Files in assets/index-legacy.*.js:

  • ./src/layouts/LoginLayout/LoginLayout.tsx → Total Size: 546 bytes
view changes for bundle: gazebo-production-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index.*.js -170 bytes 577.64kB -0.03%

Files in assets/index.*.js:

  • ./src/layouts/LoginLayout/LoginLayout.tsx → Total Size: 546 bytes

@sentry

sentry Bot commented Sep 20, 2026

Copy link
Copy Markdown
Author

⚠️ Seer needs additional GitHub permissions

Seer wants to keep iterating on this pull request to get CI passing, but the Sentry GitHub App installation is missing permissions it needs to read the failing checks and push a fix.

Review and accept the updated permissions to let Seer continue: https://github.com/organizations/codecov/settings/installations/86101127/permissions/update

@codecov-notifications

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

@@            Coverage Diff             @@
##             main    #4132      +/-   ##
==========================================
- Coverage   98.77%   98.77%   -0.01%     
==========================================
  Files         823      823              
  Lines       15147    15145       -2     
  Branches     4387     4387              
==========================================
- Hits        14961    14959       -2     
  Misses        179      179              
  Partials        7        7              
Files with missing lines Coverage Δ
src/layouts/LoginLayout/LoginLayout.tsx 100.00% <ø> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.72% <ø> (-0.01%) ⬇️
Pages 98.43% <ø> (ø)
Services 99.32% <ø> (ø)
Shared 98.94% <ø> (ø)
UI 99.02% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b8fbfc0...185e1b0. Read the comment docs.

@codecov

codecov Bot commented Sep 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.77%. Comparing base (b8fbfc0) to head (185e1b0).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4132      +/-   ##
==========================================
- Coverage   98.77%   98.77%   -0.01%     
==========================================
  Files         823      823              
  Lines       15147    15145       -2     
  Branches     4387     4379       -8     
==========================================
- Hits        14961    14959       -2     
  Misses        179      179              
  Partials        7        7              
Files with missing lines Coverage Δ
src/layouts/LoginLayout/LoginLayout.tsx 100.00% <ø> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.72% <ø> (-0.01%) ⬇️
Pages 98.43% <ø> (ø)
Services 99.32% <ø> (ø)
Shared 98.94% <ø> (ø)
UI 99.02% <ø> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b8fbfc0...185e1b0. Read the comment docs.

@codecov-public-qa

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.77%. Comparing base (b8fbfc0) to head (185e1b0).

✅ All tests successful. No failed tests found.

@@            Coverage Diff             @@
##             main    #4132      +/-   ##
==========================================
- Coverage   98.77%   98.77%   -0.01%     
==========================================
  Files         823      823              
  Lines       15147    15145       -2     
  Branches     4379     4379              
==========================================
- Hits        14961    14959       -2     
  Misses        179      179              
  Partials        7        7              
Files with missing lines Coverage Δ
src/layouts/LoginLayout/LoginLayout.tsx 100.00% <ø> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.72% <ø> (-0.01%) ⬇️
Pages 98.43% <ø> (ø)
Services 99.32% <ø> (ø)
Shared 98.94% <ø> (ø)
UI 99.02% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b8fbfc0...185e1b0. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codecov-releaser

Copy link
Copy Markdown
Collaborator

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
185e1b0 Sun, 20 Sep 2026 05:39:43 GMT Cloud Enterprise

@codecov-qa

codecov-qa Bot commented Sep 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.77%. Comparing base (b8fbfc0) to head (185e1b0).

@@            Coverage Diff             @@
##             main    #4132      +/-   ##
==========================================
- Coverage   98.77%   98.77%   -0.01%     
==========================================
  Files         823      823              
  Lines       15147    15145       -2     
  Branches     4387     4379       -8     
==========================================
- Hits        14961    14959       -2     
  Misses        179      179              
  Partials        7        7              
Files with missing lines Coverage Δ
src/layouts/LoginLayout/LoginLayout.tsx 100.00% <ø> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.72% <ø> (-0.01%) ⬇️
Pages 98.43% <ø> (ø)
Services 99.32% <ø> (ø)
Shared 98.94% <ø> (ø)
UI 99.02% <ø> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b8fbfc0...185e1b0. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
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