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

Implement CSV document preview #1949

Closed
dsuren1 opened this issue Feb 4, 2025 · 0 comments · Fixed by #1952 · May be fixed by #1963
Closed

Implement CSV document preview #1949

dsuren1 opened this issue Feb 4, 2025 · 0 comments · Fixed by #1952 · May be fixed by #1963
Assignees
Labels
enhancement New feature or request geonode-ui

Comments

@dsuren1
Copy link

dsuren1 commented Feb 4, 2025

We want to show a preview of CSV document resources like we do for media and PDFs.
The client is aware that the document is a CSV since the API response for the resource returns it with extension: "csv".

The client will:

  • use a custom function to efficiently determine the delimiter and process the CSV data
  • use the react-data-grid library (already used in MS) which comes with virtualized scrolling out of the box, to only renders rows currently visible in the viewport and prevent performance issues

The page with the preview will show the title, abstract, and the table

Note

Add support to .xls & .xlsx files too if the implementation is simple enough to be accommodated in this issue

Image

@dsuren1 dsuren1 added enhancement New feature or request geonode-ui labels Feb 4, 2025
@dsuren1 dsuren1 self-assigned this Feb 4, 2025
dsuren1 added a commit to dsuren1/geonode-mapstore-client that referenced this issue Feb 5, 2025
@dsuren1 dsuren1 linked a pull request Feb 5, 2025 that will close this issue
allyoucanmap added a commit that referenced this issue Feb 6, 2025
@dsuren1 dsuren1 linked a pull request Feb 11, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request geonode-ui
Projects
None yet
1 participant