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

File uploader for json #9

Merged
merged 6 commits into from
Apr 29, 2024
Merged

Conversation

Vinit-Pandit
Copy link
Contributor

ref #4
Screencast from 17-04-24 10:36:07 AM IST.webm

The file contains 75,000 lines of code, which is why it takes the FileReader a significant amount of time to read it.

Signed-off-by: MeastroZI <[email protected]>
@Vinit-Pandit
Copy link
Contributor Author

@jviotti please review this PR

@jviotti
Copy link
Member

jviotti commented Apr 18, 2024

Is looking good! The only comments I have is around the UI being slightly confusing with the code editor + the upload file. What about this?

  • If the user has uploaded a file, then completely gray out (saying something like "Reading the uploaded input file") or even remove the inline code editor
  • If you click "Remove file", the editor comes back?

@Vinit-Pandit
Copy link
Contributor Author

Is looking good! The only comments I have is around the UI being slightly confusing with the code editor + the upload file. What about this?

  • If the user has uploaded a file, then completely gray out (saying something like "Reading the uploaded input file") or even remove the inline code editor
  • If you click "Remove file", the editor comes back?

The editor isn't being removed, but the code in the editor removed. The editor remains, but when a file is uploaded, the file takes priority until it is removed.

@Vinit-Pandit
Copy link
Contributor Author

Vinit-Pandit commented Apr 18, 2024

Is looking good! The only comments I have is around the UI being slightly confusing with the code editor + the upload file. What about this?

  • If the user has uploaded a file, then completely gray out (saying something like "Reading the uploaded input file") or even remove the inline code editor
  • If you click "Remove file", the editor comes back?

Yes, that's a good idea. I'll implement it in a few weeks, as I currently have academic exams. : )

@Vinit-Pandit
Copy link
Contributor Author

Screencast.from.24-04-24.02.02.47.AM.IST.webm

@jviotti
Copy link
Member

jviotti commented Apr 24, 2024

Looks better based on the video! I'll give it a proper shot and review tomorrow

Signed-off-by: Vinit Pandit <[email protected]>
Signed-off-by: Vinit Pandit <[email protected]>
@jviotti
Copy link
Member

jviotti commented Apr 24, 2024

Looks and feels much better. The two comments I have are:

  • When you select a file, can you just put a read-only message where the editor was saying "Reading from input file" or something like that?
  • When there is no file selected, can you either hide or make the "Remove File" button disabled, as it wouldn't do anything in those cases?

@Vinit-Pandit
Copy link
Contributor Author

  • When you select a file, can you just put a read-only message where the editor was saying "Reading from input file" or something like that?

If i do that the default schema which was previously in editor get remove if i am not wrong , is this Ok ? or else i need to store the previous schema in temp variable .

@jviotti
Copy link
Member

jviotti commented Apr 25, 2024

Yeah, if you have a schema in the editor and you upload a file, removing what you had on the editor makes sense. No need to keep it around

Signed-off-by: MeastroZI <[email protected]>
@Vinit-Pandit
Copy link
Contributor Author

Copy link
Member

@jviotti jviotti left a comment

Choose a reason for hiding this comment

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

Looks good!

@jviotti jviotti merged commit 9680099 into sourcemeta-research:master Apr 29, 2024
1 check passed
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