OpenFn / OpenFn/lightning

(new-react) Remove the script tag mount & JSON

Open
#3,092 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

architecture
Dominant language
Elixir
Stars
296
Forks
86
Avg merge
1d 13h
Merged PRs (30d)
50

Description

Description

In our new react implementation. For every component to be mounted we mount 2 elements

  1. A script Tag
  2. A div container where the actual mount happens.

The script Tag's purpose is to continuously be dumping a JSON of the updated state being managed on the phoenix side. We're currently comfortable with syncing the state via other means(events on the socket) and this has to be removed.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the new React implementation's component-mount entry point and the code that creates the script tag and serializes updated Phoenix state as JSON. Confirm how socket events now provide state synchronization. Done means each component mounts with only its div container, with no script tag or JSON state output.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir, react
Domain
frontend
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.