Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix catalog mock refactor 2 - #4

#4
Open
anup39 wants to merge 17 commits into
fix_catalog_mock_refactoranup39/MapStore2:fix_catalog_mock_refactorfrom
fix_catalog_mock_refactor_2anup39/MapStore2:fix_catalog_mock_refactor_2Copy head branch name to clipboard
Open

Fix catalog mock refactor 2#4
anup39 wants to merge 17 commits into
fix_catalog_mock_refactoranup39/MapStore2:fix_catalog_mock_refactorfrom
fix_catalog_mock_refactor_2anup39/MapStore2:fix_catalog_mock_refactor_2Copy head branch name to clipboard

Conversation

@anup39

@anup39 anup39 commented Mar 11, 2026

Copy link
Copy Markdown
Owner

Description

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?

#

What is the new behavior?

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

offtherailz and others added 11 commits March 3, 2026 16:17
- Support for filtrex syntax for rules
- removed scalebox template for display property
- minor improvements and cleanup
…get tray (geosolutions-it#11964)

* Fix the button style issue in filter widget and widget tray

* Update the css

* Update the css to make it generic for all the button groups
…or in CRS Selector (geosolutions-it#12030)

* Fix: geosolutions-it#12029 Long CRS name overflows in dropdown selector in CRS selector plugin

* fix maxwidth to allow display of long CRS name

* Added width to fit the content for crs name with min width of 4 rem
* fix(Dockerfile): change user of MapStore image

* fix(Dockerfile): update user of MapStore image
selectedFormat={selectedFormat}
onSortChange={onSortChange}
sort={sort}
{...props}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

please write the props we are passing instead of ...props

layers={layers}
currentLocale={currentLocale}
readOnly={readOnly}
{...props}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

please write the props we are passing instead of ...props

? {
...dockStyle,
display: active ? 'block' : 'none'
...panelStyle,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

we can remove it

const [result, setResult] = useState('');
const [searchOptions] = useState({});
const [layerOptions] = useState({});
const locales = 'en-US';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

transform this as prop default with en-US

Comment on lines +58 to +61
if (onSelect) {
onSelect({ record }, checked, event);
} else {
onRecordSelected(record);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Here we should have just the onSelect

@@ -101,6 +101,8 @@ export default connect((state) =>({
onRecordSelected={r => setSelected(r)}
getItems={getItems}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

please remove all props not used

onRecordSelected={r => setSelected(r)}
getItems={getItems}
onItemClick={onItemClick}
onSelect={onItemClick}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

please remove all props not used

includeAddToMap={false}
onChangeCatalogMode={onChangeCatalogMode}
selectedService={dashboardSelectedService === "" ? dashboardSelectedService : dashboardSelectedService === undefined ? defaultSelectedService : dashboardSelectedService}
onChangeSelectedService={(service) => onChangeSelectedService(service, dashboardServices || defaultServices)} services={ dashboardServices || defaultServices} selected={selected} catalog={catalog} onRecordSelected={r => setSelected(r)}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

just replace onRecordSelected with onSelect and review the expected behaviour

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.

7 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.