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

Updated Reporter code #494

Merged
merged 4 commits into from
Jan 18, 2024
Merged

Updated Reporter code #494

merged 4 commits into from
Jan 18, 2024

Conversation

sumitzarkar
Copy link
Collaborator

Updated popupUtils

  • To resolve the Arcade expression involving map and layer
  • To use async executor
  • Updated related components using this utils

Implemented code review comments from previous pull request

  • Working sample for Feature-list
  • Working sample for Layer-list
  • More than one attribute to list on separate lines

Updated Reporter for map view only prop

  • Emit event togglePanel
  • Removed extra code related to map container
  • Updated Sample to pass mobile prop and listen togglePanel event

## Updated popupUtils
 - To resolve the Arcade expression involving map and layer
 - To use async executor
 - Updated related components using this utils
## Implemented
 - Working sample for Feature-list
 - Working sample for Layer-list
 - More than one attribute to list on separate lines
## Implemented
 - Emit event togglePanel
 - Removed extra code related to map container
 - Updated Sample to pass mobile prop and listen togglePanel event
@sumitzarkar sumitzarkar requested a review from jmhauck January 18, 2024 11:11
@jmhauck
Copy link
Collaborator

jmhauck commented Jan 18, 2024

@sumitzarkar can we avoid running the query again when we switch between mobile and desktop?

@@ -239,14 +274,19 @@ export class FeatureList {
*/
protected async queryPage(page: number): Promise<VNode[]> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@sumitzarkar could you put this in queryUtils please?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@jmhauck

As the code in this function is more specifc to the workflow of feature-list component, nothing major to put in the utils which can be reused hence we have not added in utils.

Please let us know if any specifc part from this functions needs to be added in utils.

@jmhauck jmhauck merged commit cf7de14 into develop Jan 18, 2024
3 checks passed
@sumitzarkar
Copy link
Collaborator Author

@sumitzarkar can we avoid running the query again when we switch between mobile and desktop?

@jmhauck

Seems like these queries are fired by the api as the map is resized

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