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 search descriptions #368

Merged
merged 51 commits into from
Jul 5, 2017
Merged

Layer search descriptions #368

merged 51 commits into from
Jul 5, 2017

Conversation

ZachTRice
Copy link
Contributor

@ZachTRice ZachTRice commented Jun 30, 2017

Includes search-descriptions and layer-descriptions branches
Connects to #316
connects to #317

- 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.
- Had to tweak css to add html element to class selectors to override
bank.css default link state.
- Added new header wrapper in layer, so that clicking the expanded
description won't check the checkbox, only the initial header row will
@ZachTRice ZachTRice requested a review from rboller June 30, 2017 18:12
@ZachTRice ZachTRice removed the request for review from rboller June 30, 2017 18:12
@@ -367,7 +367,7 @@ wv.layers.modal = wv.layers.modal || function(models, ui, config) {
redoScrollbar();
$selectedCategory.iCheck({checkboxClass: 'icheckbox_square-red'});
$breadcrumb.show();

};

var drawAllLayers = function() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@ZachTRice I would work on breaking this method up into smaller functions and add some documentation to the new methods/functions in this component. Ideally we could generate docs using http:https://usejsdoc.org in the future

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 have worked on breaking up most of the methods in this file and documenting with jsdoc. drawMeasurements is tough one to break up further since the HTML for this view is built by finding the current category, looping through it, building the measurement html, appending that, finding the nested sources, appending that, and finding the descriptions and appending that to build the full view.

@Benjaki2
Copy link
Collaborator

Benjaki2 commented Jul 5, 2017

@ZachTRice looks like some conflicts need to be resolved

@ZachTRice
Copy link
Contributor Author

@Benjaki2 conflicts are now resolved

@Benjaki2 Benjaki2 merged commit ee2ab21 into development Jul 5, 2017
@ZachTRice ZachTRice deleted the layer-search-descriptions branch July 12, 2017 16:38
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