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

Added details to Map #2495

Closed
wants to merge 14 commits into from
Closed

Conversation

MV88
Copy link
Contributor

@MV88 MV88 commented Dec 18, 2017

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:

  • create
  • modify
  • delete
  • show readonly from the card tools

Issues

Please check if the PR fulfills these requirements

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

  • Feature

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)

  • No

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

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 80.821% when pulling 8f23fea on MV88:2437_details_changes into c5f59bb on geosolutions-it:master.

@ghost ghost added the review label Dec 18, 2017
@MV88 MV88 removed the review label Dec 18, 2017
@geosolutions-it geosolutions-it deleted a comment Dec 18, 2017
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 80.821% when pulling a22ee58 on MV88:2437_details_changes into c5f59bb on geosolutions-it:master.

@ghost ghost added the review label Dec 18, 2017
@geosolutions-it geosolutions-it deleted a comment Dec 18, 2017
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 80.821% when pulling cf8f826 on MV88:2437_details_changes into c5f59bb on geosolutions-it:master.

/**
* open details
* @memberof actions.maps
* @return {action} type `OPEN_AND_FETCH_DETAILS`
Copy link
Member

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")
Copy link
Member

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});
Copy link
Member

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

@geosolutions-it geosolutions-it deleted a comment Dec 20, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.003%) to 80.856% when pulling 30f6059 on MV88:2437_details_changes into c5f59bb on geosolutions-it:master.

@geosolutions-it geosolutions-it deleted a comment Dec 21, 2017
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 80.795% when pulling 60d4e42 on MV88:2437_details_changes into c5f59bb on geosolutions-it:master.

Copy link
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.

  • 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) {
Copy link
Member

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

@geosolutions-it geosolutions-it deleted a comment Dec 22, 2017
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.09%) to 80.764% when pulling 4cb7ad7 on MV88:2437_details_changes into c5f59bb on geosolutions-it:master.

@MV88
Copy link
Contributor Author

MV88 commented Jan 12, 2018

Wating for #2505 to be merged before update this

@offtherailz
Copy link
Member

This conflicts, please resolve conflicts

@MV88
Copy link
Contributor Author

MV88 commented Jan 16, 2018

if you see my comment i'm waiting another PR to be merged before i do any fix on this.

@offtherailz
Copy link
Member

Please solve conflicts, we can move on, #2505 is merged

@MV88
Copy link
Contributor Author

MV88 commented Jan 18, 2018

closing this, solving conflicts here

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.

Add details section for the map card and burger menu
5 participants