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

Bug/pagination enabled empty workpad #62050

Merged

Conversation

maggieghamry
Copy link
Contributor

Summary

Fixes #57492

  • Update to disable pagination when 0 workpads exist
  • Update to disable Next page arrow > when only 1 page of workpads exists
  • Update to disable previous page and next page arrows < and > when only 1 page of templates exist
  • Screenshots:
    paginationHidden
    nextPageArrowDisabled
    moreThan10Workpads
    templatePaginationFixed

Checklist

Delete any items that are not applicable to this PR.

For maintainers

Added logic to hide pagination if no Canvas workpads exists, and disable the previous/next arrows if there is only one page, for both workapds and templates
@maggieghamry maggieghamry added bug Fixes for quality problems that affect the customer experience review release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas loe:medium Medium Level of Effort v8.0.0 impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. v7.8.0 labels Mar 31, 2020
@maggieghamry maggieghamry requested a review from a team as a code owner March 31, 2020 18:39
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-canvas (Team:Canvas)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@poffdeluxe poffdeluxe left a comment

Choose a reason for hiding this comment

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

Changes look good to me. I did notice that when there are lots of workpads that fill the browser window, it seems like scrolling isn't enabled. I don't think your PR introduced this but did you notice the same thing?

Copy link
Contributor

@cqliu1 cqliu1 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@maggieghamry
Copy link
Contributor Author

@poffdeluxe my 3rd screenshot is what I see when there are more than 10 workpads; do you see something different (or should it look different)?
moreThan10Workpads

@maggieghamry maggieghamry merged commit 1084b1c into elastic:master Apr 13, 2020
maggieghamry added a commit to maggieghamry/kibana that referenced this pull request Apr 13, 2020
Added logic to hide pagination if no Canvas workpads exists, and disable the previous/next arrows if there is only one page, for both workapds and templates
@maggieghamry maggieghamry deleted the bug/pagination-enabled-empty-workpad branch April 13, 2020 17:46
maggieghamry added a commit that referenced this pull request Apr 13, 2020
Added logic to hide pagination if no Canvas workpads exists, and disable the previous/next arrows if there is only one page, for both workapds and templates
gmmorris added a commit to gmmorris/kibana that referenced this pull request Apr 14, 2020
* master: (132 commits)
  document code splitting for client code (elastic#62593)
  Escape single quotes surrounded by double quotes (elastic#63229)
  [Endpoint] Update cli mapping to match endpoint package (elastic#63372)
  update in-app links to metricbeat configuration docs (elastic#63295)
  investigation notes field (documentation / metadata) (elastic#63386)
  [Maps] fix bug where toggling Scaling type does not re-fetch data (elastic#63326)
  [Alerting] set correct parameter for unauthented email action (elastic#63086)
  [Telemetry] force staging urls in tests (elastic#63356)
  Migrate legacy maps service to NP & update refs (elastic#60942)
  Fix task manager query to return tasks to retry (elastic#63360)
  [Endpoint] Policy list support for URL pagination state (elastic#63291)
  [Canvas] Migrate saved object mappings and migrations to Kibana Platform (elastic#58891)
  [DOCS] Add ILM tutorial (elastic#59502)
  [Maps] Add SOURCE_TYPES enumeration (elastic#62975)
  [Maps] update geospatial filters to use geo_shape query for geo_point fields (elastic#62966)
  Move away from npStart for embeddables in canvas (elastic#62680)
  Use MapInput type from Maps plugin (elastic#61539)
  Update to pagination for workpad and templates (elastic#62050)
  [SIEM] Fix AlertsTable id (elastic#63368)
  Consistent terminology around cypress test data (elastic#63279)
  ...
wayneseymour pushed a commit that referenced this pull request Apr 15, 2020
Added logic to hide pagination if no Canvas workpads exists, and disable the previous/next arrows if there is only one page, for both workapds and templates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:medium Medium Level of Effort release_note:fix review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v7.8.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Canvas] Pagination is enabled on empty workpad table
5 participants