-
Notifications
You must be signed in to change notification settings - Fork 110
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
JSON Integration in Runner #121
base: main
Are you sure you want to change the base?
Conversation
Hi @SantamRC , thanks once more for this contribution, I appreciate it! A couple of comments real quick:
Reading your code, I remember well how annoying it was to fight with the So in sum, I'm glad you're giving this a go, and thankful for your efforts -- let's have a conversation around the architectural changes and the overall design! Best, -Felix |
Hey @FelixHenninger nice to hear it. Let's have a discussion about it and decide the architectural design of the application. Best, |
@FelixHenninger do check the latest commit I made to the PR. The Session Storage Approach does not involve the remote module. I apologize for it, I might have overlooked that line of the code while cleaning it up for the PR. |
No worries @SantamRC , good to hear that the proof of concept works without the |
@FelixHenninger Do check out the latest commit I made. In electron since |
@FelixHenninger I have made a proof of concept of the IPC Approach as well. When I included redux in the proposal I planned an idea that whenever the states needs to be changed and transfered to other React Component we can use it instead of changing the data in the local storage everytime. But yes here I have created an IPC approach proof of concept where we can used the Redux State management as well. The IPC approach here will include transfering the JSON data from main renderer to the study window and then the study window react component's redux states can transfer that data to the other components and use accordingly. |
hey @FelixHenninger I have added the IPC Approach to the proposal. Please take a look at it before I wrap it up as the final version before submitting it. |
I added the JSON integration functionality for the runner. The way I am approaching it is that after the file is dragged and dropped in the main window, the file is checked whether it is valid JSON or not. Then the data is stored in
sessionStorage
. The study window fetches this data from it's own renderer process and reads the title of the study and inserts it into the study window. I can build the rest of the study UI component rendering based on this approach. But I would really love to know what you think about it and if you can suggest any improvements to this.