Skip to content
This repository has been archived by the owner on Feb 2, 2018. It is now read-only.

fix #DH176 sidebar navigation on details page to match designs and re… #45

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

kiddhustle
Copy link
Contributor

@kiddhustle kiddhustle commented May 2, 2017

re-factored assets

add tabwindow and add sourcemaps to npm run develop

re-factor side tab nav js

fix collapse icon state bug in tabbed window when switching between tablet and desktop views

rename component to TabbedWindow

jira issue:

https://uktrade.atlassian.net/browse/DH-176

…-factor assets

add tabwindow and add sourcemaps to npm run develop

re-factor side tab nav js

fix collapse icon state bug in tabbed window when switching between tablet and desktop views

rename component to TabbedWindow
@ztolley ztolley temporarily deployed to data-hub-invest-fe-pr-45 May 2, 2017 15:37 Inactive
Copy link
Contributor

@jim68000 jim68000 left a comment

Choose a reason for hiding this comment

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

Some comments to kill, otherwise fine


this.domEl.addEventListener('click', this.onTabClick.bind(this))
console.log('TabWindow initialied!')
console.log(this)
Copy link
Contributor

Choose a reason for hiding this comment

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

consoles must die

Copy link
Contributor Author

Choose a reason for hiding this comment

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

terminated

},
init: function () {
// @TODO setinterval on resize callback being fired for performance reason
window.addEventListener('resize', this.updateDisplay.bind(this))
Copy link
Contributor

Choose a reason for hiding this comment

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

yeah this is going to hurt - don't we have a debounce function lying around?

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 could write one if we don't have one already?

I have just realised we are using lodash already in this project so can use the one included there

}
&__nav {
width:25%;
// @extend %site-width-container;
Copy link
Contributor

Choose a reason for hiding this comment

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

remove commented out code if this is a finished file

$mobile-break-point-max:320px;

// $tablet-breakpoint: 641px !default;
// $desktop-breakpoint: 769px !default;
Copy link
Contributor

Choose a reason for hiding this comment

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

delete

Copy link
Contributor Author

Choose a reason for hiding this comment

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

gone

</section>


{# <div class="left-nav-container">
<div class="left-nav">
Copy link
Contributor

Choose a reason for hiding this comment

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

delete commented out code if not here for a good reason

Copy link
Contributor Author

Choose a reason for hiding this comment

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

gone

@ztolley ztolley temporarily deployed to data-hub-invest-fe-pr-45 May 4, 2017 16:11 Inactive
@kiddhustle
Copy link
Contributor Author

have removed the comments and console logs

Also have implemented the event driven architecture mentioned in one of those comments just to reduce tech debt

Using events should make things easier to test

@ztolley ztolley temporarily deployed to data-hub-invest-fe-pr-45 May 4, 2017 16:14 Inactive
@ztolley ztolley temporarily deployed to data-hub-invest-fe-pr-45 May 4, 2017 16:15 Inactive
@ztolley ztolley temporarily deployed to data-hub-invest-fe-pr-45 May 8, 2017 11:38 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants