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

Screen Width & Copy Issue - Wide JSON/CSV #1203

Open
undaunt opened this issue Jul 12, 2024 · 6 comments · May be fixed by #1277
Open

Screen Width & Copy Issue - Wide JSON/CSV #1203

undaunt opened this issue Jul 12, 2024 · 6 comments · May be fixed by #1277
Assignees
Labels
bug Something isn't working triage

Comments

@undaunt
Copy link

undaunt commented Jul 12, 2024

Describe the bug

If I have a set of JSON data that has a lot of fields, the CSV conversion output becomes extremely wide and it is not possible to scroll over to click the 'copy' button.

What happened?

I pasted in a JSON array with each entry having 20 dictionary entries, one or two of which are several sentences of text. I was then unable to copy the data successfully off the screen. Perhaps a maximum width limit which auto wraps the CSV output (only visually) would solve this?

System information

Docker, Ubuntu 24.04 LTS

Where did you encounter the bug?

A self hosted

@undaunt undaunt added bug Something isn't working triage labels Jul 12, 2024
@sharevb
Copy link
Contributor

sharevb commented Jul 14, 2024

Hi @undaunt, cannot reproduce in it-tools.tech. Probably, you need to rebuild docker image with latest main branch or use the nightly build

@undaunt
Copy link
Author

undaunt commented Jul 15, 2024

@sharevb I'm seeing the same as you, no issues on it-tools.tech. I'm currently running latest but it is also happening on nightly. I tried both via my FQDN as well as ip:port to exclude any issues w/my reverse proxy authentication.

Edit: I noted this is not an issue with JSON to YAML.

@YuriyGavrilov
Copy link

Actually it is not working at all json to csv
Снимок экрана 2024-07-19 в 23 10 18

tried here https://it-tools.tech/json-to-csv

with this json https://json.org/example.html

Mac OS Safari

@sharevb
Copy link
Contributor

sharevb commented Jul 20, 2024

Hi @YuriyGavrilov, sounds like, this is another problem, this tool only probably support "array of flattened objects"

@angelofan
Copy link

This format requirement needs to be indicated in the placeholder, or pre-filled with a sample format. And, when any error occurs, an error prompt needs to be displayed instead of nothing happening.

sharevb added a commit to sharevb/it-tools that referenced this issue Sep 1, 2024
@sharevb sharevb linked a pull request Sep 1, 2024 that will close this issue
sharevb added a commit to sharevb/it-tools that referenced this issue Sep 1, 2024
@sharevb
Copy link
Contributor

sharevb commented Sep 1, 2024

Hi @angelofan and @CorentinTh, implemented "single object to csv" and "flattening of objects" in PR #1277

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants