-
Notifications
You must be signed in to change notification settings - Fork 410
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
Added details to Map #2495
Added details to Map #2495
Conversation
# Conflicts: # web/client/epics/__tests__/featuregrid-test.js # web/client/plugins/Maps.jsx
web/client/actions/maps.js
Outdated
/** | ||
* open details | ||
* @memberof actions.maps | ||
* @return {action} type `OPEN_AND_FETCH_DETAILS` |
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.
keep it aligned
} | ||
}, | ||
glyph: "chevron-up", | ||
tooltip: LocaleUtils.getMessageById(this.context.messages, "map.details.show") |
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.
change to sheet icon
this.stopPropagate(evt); | ||
this.onEdit(this.props.map, false); | ||
if (!this.props.map.detailsText) { | ||
this.props.detailsSheetActions.onOpenOrFetchDetails({open: true, fetch: true, readOnly: true}); |
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.
trigger fetch (if details are not present) with an epic removing it from UI part.
UI should only show the detail text or loading if present but not loaded yet. Pay attention to empty strings
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.
- When you open a map without details, you have the following error.
{data: "Resource attribute not found", status: 404, statusText: "Not Found", headers: {…}, config: {…}, …}
- About this map does not open anything.
- save desn't seems to work if you insert a big image in details. No notification about any error. Clicking on save do not show any result and does not allow to close the map editing window.
const name = this.generateUUID(); // create new unique name | ||
const category = "THUMBNAIL"; | ||
// user removed the thumbnail (the original url is present but not the preview) | ||
if (this.props.map && !data && this.props.map.thumbnail && !this.refs.imgThumbnail && !metadata) { |
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.
this logic is messy. You should identify the correct condition and variables to pass to saveAll, delete old thumbnail.
Ideally you should call them once per function
Wating for #2505 to be merged before update this |
This conflicts, please resolve conflicts |
if you see my comment i'm waiting another PR to be merged before i do any fix on this. |
Please solve conflicts, we can move on, #2505 is merged |
closing this, solving conflicts here |
Description
Added details in viewer page (under burger menu) if they are present for the opened map.
Added details section in map card
various actions available for details:
Issues
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x", remove the others)
What is the current behavior? (You can also link to an open issue here)
Actually is not possible to add details to the map and therefore to change/delete them
What is the new behavior?
it is possible from the homepage map card.
Does this PR introduce a breaking change? (check one with "x", remove the other)
If this PR contains a breaking change, please describe the impact and migration path for existing applications:
Other information:
You need to add DETAILS category to the configured geostore