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

Layer descriptions #329

Closed
wants to merge 24 commits into from
Closed

Layer descriptions #329

wants to merge 24 commits into from

Conversation

ZachTRice
Copy link
Contributor

@ZachTRice ZachTRice commented Jun 9, 2017

Layer descriptions contained within am "i" button in the sidebar. If no description is available a disabled "i" button is shown. If a description is available, clicking the "i" button expands a modal box. The "i" button and modal box are only available within the desktop view.
Connects to #65
connects to #316

- Fetched static description to active sidebar layer.
Changes relate to Issues #65 & #316
Added an "i" icon, styled
Created wv.layers.info.js utility for creating a dialog box containing
the layer description
Created css file to style elements within this dialog box-sizing
Added logic for toggling the description panel
Closed dialoag box when resizing window to responsive view from desktop
- Overflowed jquery ui dialog defaults scrollbar to bottom  of page,
added check after modal opens to force scroll to top.
- Removed css rule, set fixed height within dialog
- Matching layer.id to display the category/source description.
web/index.html Outdated
</div>
<div id="selected-category">

Copy link
Collaborator

@Benjaki2 Benjaki2 Jun 16, 2017

Choose a reason for hiding this comment

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

I'd leave out these excess lines if there isn't anything inside the divs <div></div> (nit pick)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree. This is how it is currently on master, though I should have cleaned it up while I was working in this area. I'm not sure why git is picking this up as a change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, the differences is that there were spaces after the line return that are no longer present.

Copy link
Collaborator

Choose a reason for hiding this comment

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

ahhh makes sense. Thanks for cleaning up those spaces.

Copy link
Collaborator

@Benjaki2 Benjaki2 left a comment

Choose a reason for hiding this comment

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

I requested a couple minor minor style changes, Me being nit picky.... Overall looks really good @ZachTRice !

renderDescription($dialog);


var names = models.layers.getTitles(layer.id);
Copy link
Collaborator

Choose a reason for hiding this comment

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

declare vars at top of scope

var loaded = function(custom) {
     var names;

.attr("id", "wv-layers-info-dialog")
.attr("data-layer", layer.id);
renderDescription($dialog);

Copy link
Collaborator

Choose a reason for hiding this comment

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

excess line

- Had to tweak css to add html element to class selectors to override
bank.css default link state.
@ZachTRice
Copy link
Contributor Author

Thanks, I appreciate the nit picky!

Couple things I added to that last commit. Removed a </div> after the opening <body> tag that's been in master. Also, just noticed I had to tweak the css a bit to add back in the li / a elements to the class selectors since bank.css is setting these and my hover state colors were being over written with the default link color.

At some point, I'd also like to remove as much element.class selector's as possible. Just to make scoping and compartmentalizing the css a bit easier.

Copy link
Collaborator

@Benjaki2 Benjaki2 left a comment

Choose a reason for hiding this comment

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

Sounds good / looks good @ZachTRice

@Benjaki2
Copy link
Collaborator

Wait till after next release to merge

@ZachTRice ZachTRice changed the base branch from master to development June 28, 2017 13:38
@ZachTRice
Copy link
Contributor Author

Closing this PR because this feature will be merged into a new branch with search-descriptions. The new combined feature branch will then have a PR into development.

@ZachTRice ZachTRice closed this Jun 30, 2017
@ZachTRice ZachTRice deleted the layer-descriptions branch July 12, 2017 15:24
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.

None yet

2 participants