Skip to content

[lexical-playground] Chore: Remove localhost:1235 validation server code from ActionsPlugin#8639

Merged
etrepum merged 2 commits into
facebook:mainfrom
etrepum:claude/practical-faraday-lb6cV
Jun 4, 2026
Merged

[lexical-playground] Chore: Remove localhost:1235 validation server code from ActionsPlugin#8639
etrepum merged 2 commits into
facebook:mainfrom
etrepum:claude/practical-faraday-lb6cV

Conversation

@etrepum

@etrepum etrepum commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

Description

The playground ActionsPlugin contained code that POSTed the editor state to a "read only validation server" at http://localhost:1235 (added in #2899). That server is no longer maintained and does not exist in the repo, so the calls were always silently failing.

Remove the dead sendEditorState/validateEditorState helpers, the read-only update-listener validation block, and the now-unused HISTORIC_TAG/COLLABORATION_TAG imports. The lock button now simply toggles editability.

Test plan

Not needed

The playground ActionsPlugin contained code that POSTed the editor state
to a "read only validation server" at http://localhost:1235 (added in
facebook#2899). That server is no longer maintained and does not exist in the
repo, so the calls were always silently failing.

Remove the dead sendEditorState/validateEditorState helpers, the
read-only update-listener validation block, and the now-unused
HISTORIC_TAG/COLLABORATION_TAG imports. The lock button now simply
toggles editability.

https://claude.ai/code/session_01SDcfNeZAtXtJ5fx3NxY9jx
@vercel

vercel Bot commented Jun 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lexical Ready Ready Preview, Comment Jun 4, 2026 6:55pm
lexical-playground Ready Ready Preview, Comment Jun 4, 2026 6:55pm

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 4, 2026
@etrepum etrepum added this pull request to the merge queue Jun 4, 2026
Merged via the queue into facebook:main with commit 8cb382d Jun 4, 2026
50 checks passed

@potatowagon potatowagon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed by Navi (Tater Thoughts Bobblehead) on behalf of @potatowagon.

LGTM ✅ — Clean removal of dead code.

What this does: Removes the localhost:1235 validation server functionality from ActionsPlugin (sendEditorState, validateEditorState functions + associated update listener logic). This was a local dev tool that talked to a localhost server that doesn't exist in production or in any documented workflow.

What I checked:

  • ✅ Logic correctness: The removed code only communicated with localhost:1235 (dead endpoint). The remaining isEditorEmpty logic is preserved correctly.
  • ✅ No regressions: The update listener still correctly determines empty/non-empty editor state. The isEditable dependency was also correctly removed from the useEffect deps array since it's no longer referenced.
  • ✅ Unused imports cleaned: COLLABORATION_TAG and HISTORIC_TAG correctly removed since they were only used in the deleted validation logic.
  • ✅ No www compat concerns — playground-only change, not a library export.
  • ✅ CI: All checks green (core-tests, e2e-tests across all platforms, integration-tests all pass).

Safe to land. Pure dead code removal in a playground plugin.

@etrepum etrepum deleted the claude/practical-faraday-lb6cV branch June 14, 2026 00:40
@etrepum etrepum mentioned this pull request Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. extended-tests Run extended e2e tests on a PR

4 participants