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

fix(table): UX and filter export #2547

Merged
merged 4 commits into from
Oct 15, 2024

Conversation

jolevesq
Copy link
Member

@jolevesq jolevesq commented Oct 11, 2024

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

This PR is fixing issues and add UX improvement (comments from the workshop about the data table)

  • Rename export to download
  • Remove Icon, Zoom, and Details columns from downloaded file
  • Download only selected rows (CSV and JSON) - Add geoviewID as internal to do filtering
  • Put layer name as file name for JSON and csv
  • Filter open by default
  • Filter map open by default
  • Add clear all filters button
  • Make filter map more visible
  • Re arrange display, show number of features on right panel all the time
  • More visible scroll bar

Fixes #2506, #2414

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

Hosted October 11th, noon: https://jolevesq.github.io/geoview/demos-navigator.html?config=./configs/navigator/16-esri-dynamic.json

Go to data table, filter rows then download and see results

Checklist:

  • I have build (rush build) and deploy (rush host) my PR
  • I have connected the issues(s) to this PR
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have created new issue(s) related to the outcome of this PR is needed
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

This change is Reviewable

Copy link
Member Author

@jolevesq jolevesq left a comment

Choose a reason for hiding this comment

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

Reviewed 16 of 16 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @Alex-NRCan and @DamonU2)

Copy link
Member

@DamonU2 DamonU2 left a comment

Choose a reason for hiding this comment

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

Reviewed 16 of 16 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Alex-NRCan and @jolevesq)


packages/geoview-core/public/locales/en/translation.json line 202 at r1 (raw file):

    "downloadAsCSV": "Download CSV",
    "filterMap": "Filter map",
    "stopFilterMap": "Stop filter map",

This seems weird - "Stop filtering map" or just "Filter Map" because it is a toggle?

Copy link
Member

@Alex-NRCan Alex-NRCan left a comment

Choose a reason for hiding this comment

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

Reviewed 16 of 16 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @jolevesq)


packages/geoview-core/src/geo/layer/gv-layers/raster/gv-esri-dynamic.ts line 647 at r1 (raw file):

   * @private
   */
  static #formatFieldValue(fieldName: string, rawValue: string | number | Date, sourceFeatureInfo: TypeFeatureInfoLayerConfig): string {

I think this PR will need to be rebased once my PR will be merged, because I believe I've changed this as well in my PR.

Copy link
Member Author

@jolevesq jolevesq left a comment

Choose a reason for hiding this comment

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

Reviewable status: 13 of 16 files reviewed, 1 unresolved discussion (waiting on @Alex-NRCan and @DamonU2)


packages/geoview-core/public/locales/en/translation.json line 202 at r1 (raw file):

Previously, DamonU2 (Damon Ulmi) wrote…

This seems weird - "Stop filtering map" or just "Filter Map" because it is a toggle?

I was thinking about it. I tried both. Will put it back and let me know what you think

Copy link
Member

@DamonU2 DamonU2 left a comment

Choose a reason for hiding this comment

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

Reviewable status: 13 of 16 files reviewed, 1 unresolved discussion (waiting on @Alex-NRCan and @jolevesq)


packages/geoview-core/public/locales/en/translation.json line 202 at r1 (raw file):

Previously, jolevesq (Johann Levesque) wrote…

I was thinking about it. I tried both. Will put it back and let me know what you think

Looks better to me, but it's removed from the french but still listed here

Copy link
Member Author

@jolevesq jolevesq left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 3 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @jolevesq)

@jolevesq jolevesq merged commit 0a37a0a into Canadian-Geospatial-Platform:develop Oct 15, 2024
5 of 6 checks passed
PVautour pushed a commit to PVautour/geoview that referenced this pull request Oct 15, 2024
* fix(table): Fix table for UX
Closes Canadian-Geospatial-Platform#2506

* fix filterMap and style

* fix display, file name, clear filters

* fix header

---------

Co-authored-by: jolevesq <[email protected]>
@jolevesq jolevesq deleted the 2506-table-ux branch November 5, 2024 20:42
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.

[FEATURE] UX for DataTable
3 participants