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

Task/WG-238 panel assets listing #261

Merged
merged 57 commits into from
Nov 11, 2024
Merged

Conversation

nathanfranklin
Copy link
Collaborator

@nathanfranklin nathanfranklin commented Sep 24, 2024

Overview:

This PR adds assets listing and download geojson to assets panel

  • adds tree based assets listing
  • adds support to delete an feature/asset
  • adds support to download geojson (note: not certain if this feature is used)

This PR also:

  • fixes some issues with layout in the map page

PR Status:

  • Ready.
  • Work in Progress.
  • Hold.

Related Jira tickets:

Summary of Changes:

Testing Steps:

  1. Tests with maps with different types of features
  2. Test with maps with long and also short file names
  3. Test with maps with data nested in multiple levels
  4. Test with duplicate files (this was an issue in angular version)
  5. Confirm you can download json file

UI Photos:

Screenshot 2024-11-06 at 2 52 06 PM
Screenshot 2024-11-06 at 2 51 35 PM

Notes:

TODO

  • fix unit test
  • fix linting
  • height of entire app on the map project page is off

@nathanfranklin nathanfranklin marked this pull request as draft September 24, 2024 20:09
@nathanfranklin nathanfranklin mentioned this pull request Oct 17, 2024
3 tasks
@nathanfranklin nathanfranklin marked this pull request as ready for review October 25, 2024 21:24
Copy link
Contributor

@sophia-massie sophia-massie left a comment

Choose a reason for hiding this comment

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

LGTM - one comment for the download file name

const url = window.URL.createObjectURL(blob);
const link = document.createElement('a');
link.href = url;
link.download = `hazmapper.json`;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the name of the download reflect the project name so that the user can differentiate downloads?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good idea 👍 Doing this in a follow on PR

@nathanfranklin nathanfranklin merged commit 299d436 into main Nov 11, 2024
5 checks passed
@nathanfranklin nathanfranklin deleted the task/WG-238-panel-assets-listing branch November 11, 2024 21:11
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