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 #10910 search bar overlap gfi panel #10913

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

MV88
Copy link
Contributor

@MV88 MV88 commented Mar 7, 2025

Description

I noticed that the value of isIdentifyInContext was incorrectly set to false and no longer being updated this was making the selector isMapinfoOpen here in the mapLayout epic to be false and therefore ignored for moving away the search bar with correct style properties

I also fixed another error in console
image

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Issue

What is the current behavior?

Fix #10910

What is the new behavior?

it works fine, also tested by closing gfi and opening catalog

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

@MV88 MV88 added this to the 2025.01.00 milestone Mar 7, 2025
@MV88 MV88 self-assigned this Mar 7, 2025
@MV88 MV88 requested a review from dsuren1 March 7, 2025 14:19
@tdipisa tdipisa added the BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch label Mar 10, 2025
Copy link
Contributor

@dsuren1 dsuren1 left a comment

Choose a reason for hiding this comment

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

@MV88
The issue still persists
image

(currentContext, contextPlugins = {}) => !currentContext ||
findIndex(get(contextPlugins, 'desktop', []), plugin => plugin.name === pluginName) > -1
);
export const isPluginInContext = pluginName => state => {
Copy link
Contributor

Choose a reason for hiding this comment

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

is the memoization of createSelector causing issue?

@@ -261,7 +261,7 @@ export const zoomToVisibleAreaEpic = (action$, store) =>
const state = store.getState();
const hideIdentifyPopupIfNoResults = hideEmptyPopupSelector(state);
const hoverIdentifyActive = isMouseMoveIdentifyActiveSelector(state);
const noResultFeatures = loadFeatInfoAction.type === LOAD_FEATURE_INFO && loadFeatInfoAction?.data?.includes("no features were found");
const noResultFeatures = loadFeatInfoAction.type === LOAD_FEATURE_INFO && loadFeatInfoAction?.data?.includes?.("no features were found");
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const noResultFeatures = loadFeatInfoAction.type === LOAD_FEATURE_INFO && loadFeatInfoAction?.data?.includes?.("no features were found");
const noResultFeatures = loadFeatInfoAction.type === LOAD_FEATURE_INFO && typeof loadFeatInfoAction?.data === "string" && loadFeatInfoAction?.data?.includes("no features were found");

For readability purpose, can we do this instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch bug MapStore Homepage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Conflict between search bar and GFI panel
3 participants