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

Migrate to a fully-updated fork of react-devtools-inline with our own customizations #9731

Merged
merged 8 commits into from
Sep 16, 2023

Conversation

markerikson
Copy link
Collaborator

@markerikson markerikson commented Sep 14, 2023

This PR:

  • Initially tries updating react-devtools-inline from 4.24.7 to 4.28.0

Last time I tried this locally, all of the colors disappeared from the component tree, but this time it seemed to work.

If the PR build works okay, then I'm going to take a stab at creating a fork of this and applying the same changes we have in the Yarn patch right now (which will also accomplish FE-1890).

Looks good on all accounts!

  • The initial test update to react-devtools-inline@4.28.0 worked okay
  • I forked react-devtools-inline and republished as @replayio/react-devtools-inline (changes here: Modify react-devtools-inline for Replay integration react#7 )
  • I updated us to use that fork, and replaced all references
  • Nuked the ancient pre-RDT-protocol-v2 handling we had
  • Deleted the now-dead Yarn patch file

@vercel
Copy link

vercel bot commented Sep 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
devtools ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 14, 2023 9:46pm

@replay-io
Copy link

replay-io bot commented Sep 14, 2023

E2E Tests

80 replays were recorded for bdefb85.

image 1 Failed
  • cypress-04: Test Step buttons and menu item
      locator.getAttribute: Timeout 15000ms exceeded.
      =========================== logs ===========================
      waiting for locator('#toolbox-content-debugger').locator('[data-test-name="Source-Link.js"]')
      ============================================================
image 79 Passed

View test run on Replay ↗︎

Snapshot Tests

100 replays were recorded for bdefb85.

image 0 Failed
image 100 Passed

View test run on Replay ↗︎

@replay-delta
Copy link

replay-delta bot commented Sep 14, 2023

@socket-security
Copy link

socket-security bot commented Sep 14, 2023

@markerikson
Copy link
Collaborator Author

Holy smoke Socket how did you just now detect those packages that have been there for months?

@markerikson markerikson force-pushed the bugfix/FE-1916-rdt-timeouts branch from a125140 to 3dae91e Compare September 14, 2023 21:35
@markerikson markerikson marked this pull request as ready for review September 14, 2023 21:41
@markerikson markerikson changed the title [DRAFT] Update react-devtools-inline Migrate to a fully-updated fork of react-devtools-inline with our own customizations Sep 14, 2023
import { createElement } from "react";
import type { Store } from "react-devtools-inline";
Copy link
Contributor

Choose a reason for hiding this comment

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

We could add an entry to the no-restricted-imports rule for "react-devtools-inline" but I guess it's probably not necessary

@markerikson markerikson merged commit a5714a6 into main Sep 16, 2023
@markerikson markerikson deleted the bugfix/FE-1916-rdt-timeouts branch September 16, 2023 02:06
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