-
Notifications
You must be signed in to change notification settings - Fork 412
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
Maps catalog page #4994
Maps catalog page #4994
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Please add unit tests (changes on existing enhancers, your epics and missing react/redux stuff
- document the reducer (only one property)
- Please make this plugin available in context creation tool (with proper dependencies and localization) The icon have to be created.
const loadMoreStream = (initialStream$, loadMore$, loadPage, {dataProp = "items", throttleTime = 500} = {}) => | ||
initialStream$.switchMap(searchParams => | ||
const loadMoreStream = (initialStream$, loadMore$, loadPage, {dataProp = "items", initialStreamDebounce = 0, throttleTime = 500} = {}) => | ||
initialStream$.take(1).concat(initialStream$.debounceTime(initialStreamDebounce)).switchMap(searchParams => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you explain the reason this take + concat change? Maybe a comment can help understanding it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It makes the first initialStream event to be executed instantly regardless of the initialStreamDebounce value. This is useful because the first event is dispatched when a dialog, a panel, etc. with infinite scroll is opened, debounce is not needed there.
@allyoucanmap should provide the icon for the new plugin |
the one on the map, please compare with dev instance and ping me as soon as is ready so it can be merged. |
Description
Adds new plugin MapCatalog that is a list of maps available to the user. Supports delete, editing properties, sharing.
P.S. As I understand it, this plugin is for usage in georchestra, so i didn't include it in localConfig.
P.S.S. After this is merged a separate pr should be submitted to georchestra that updates MapStore and adds this plugin to list of plugins and localConfig there.
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x", remove the others)
Issue
mapstore2-georchestra/#59
Breaking change
Does this PR introduce a breaking change? (check one with "x", remove the other)