Skip to content

Fix #2965 Authentication Popup#3171

Merged
offtherailz merged 5 commits intogeosolutions-it:2018.02.00from
allyoucanmap:rel-feedback-mask
Sep 4, 2018
Merged

Fix #2965 Authentication Popup#3171
offtherailz merged 5 commits intogeosolutions-it:2018.02.00from
allyoucanmap:rel-feedback-mask

Conversation

@allyoucanmap
Copy link
Copy Markdown
Contributor

@allyoucanmap allyoucanmap commented Aug 28, 2018

Description

This PR introduces FeedbackMask plugin.
This plugin provides a mask for maps or dashboard not fount or not accessible.

2018-08-28 16_56_11-window

2018-08-28 16_57_14-window

others changes:

  • added actions to handle dashboard error
  • added initMap to MapStore2 in Embedded page to display correctly FeedbackMask in API
  • improved withMask enancher to add custom className props
  • login modal will send to homepage on close action (only for modal triggered by loading error of resource)

Issues

Please check if the PR fulfills these requirements

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

  • Bugfix

What is the current behavior? (You can also link to an open issue here)
Maps or dashborad not found or not accessible don't show clear messages and login modal it's not manage correctly

What is the new behavior?
Added a plugin to show feedbacks for maps/dashboards when they ara a load error

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

  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

It's needed an update in localConfig.json anb plugins.js of projects

@coveralls
Copy link
Copy Markdown

coveralls commented Aug 28, 2018

Coverage Status

Coverage decreased (-0.02%) to 80.525% when pulling 7c7d20b on allyoucanmap:rel-feedback-mask into 08321b7 on geosolutions-it:2018.02.00.

@tdipisa tdipisa requested a review from offtherailz August 29, 2018 08:24
Copy link
Copy Markdown
Member

@offtherailz offtherailz left a comment

Choose a reason for hiding this comment

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

The General Idea and the look is really good.
Bugs:

  • Login from home page, then open "new dashboard" and logout, you see "Loading MapStore" spinner forever.

Some considerations:

  • The "Loading MapStore" text is correct for initial loading, but when you're loading a map or a dashboard, you should show a "Loading Map", "Loading Dashboard" or a generic "Loading" message. In this case the message could also be localized (we already have localization in most of the cases)
  • A message inside the login prompt (or a notification) that explains why the login is required should be shown
  • The messages have a small font. If possible, I suggest to make both home button and text a little bigger
  • The button should show the text "Back to home page", that is more correct that "Go Home". I think is better to show the text in the button instead of the tooltip, you have enough space to show a button with text

@offtherailz
Copy link
Copy Markdown
Member

offtherailz commented Sep 3, 2018

The other consideration can be postponed, if it is not trivial to be implemented:
"A message inside the login prompt (or a notification) that explains why the login is required should be shown"

@offtherailz offtherailz merged commit bce20ac into geosolutions-it:2018.02.00 Sep 4, 2018
allyoucanmap added a commit to allyoucanmap/MapStore2 that referenced this pull request Sep 11, 2018
allyoucanmap added a commit to allyoucanmap/MapStore2 that referenced this pull request Sep 11, 2018
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.

3 participants