Sunday 12 February 2017

Lab 3 Complete

Issue #1100

I feel really bad about this lab. I started with little bit of confidence on working on a different issue, which was Issue #1100. But I ended up not being able to solve the issue. I could not find out exactly what I needed to change in the code. I have used the browser inspection to figure it out, but due to lack of experience using it, I could not pin point the exact area in the code where I had to add or edit.

Issue #1722
Due to this, I decided to work on a different issue. This issue was about changing the html element's fade/refade transition time when a user hover overs an icon. To do this, I used the same approach I used for issue 1100. Used the inspector to locate the folders that contained the CSS code for each icon used in html. Then I tried to break the code by figuring out what each classes and elements did. I also had to understand what the CSS specific does did. Then I played around with the code by changing numbers, moving transition class to elements that may or may not require. After, I looked at the code carefully, and found part of the code that holds the actual transition time.

/* Transition time for hover effects */
@transitionTime: 0.15s;

.transition {
  -webkit-transition: @transitionTime;
  -moz-transition: @transitionTime;
  -ms-transition: @transitionTime;
  -o-transition: @transitionTime;
  transition: @transitionTime;
}

.transition-only-opacity {
  -webkit-transition: opacity @transitionTime ease-in-out;
  -moz-transition: opacity @transitionTime ease-in-out;
  -ms-transition: opacity @transitionTime ease-in-out;
  -o-transition: opacity @transitionTime ease-in-out;
  transition: opacity @transitionTime ease-in-out;
}

Then I came up with the idea to simply add the transition class into appropriate CSS element that required for the animation to occur. Now all I need to do in the end is to change the numbers on both CSS files to change the transition time to the developer's preference.


Wednesday 1 February 2017

Lab 3 - DPS909 Getting Thimble to work!

Setting up Thimble locally on my computer was super easy! It only took me an hour to set everything up and it was mostly due to waiting for installation to complete. I am running Windows 8.1 Enterprise edition as my operating system, and I expected to have some difficulty. But installing node.js, getting the open source files from github, and setting up virtual machine using vagrant was smooth sailing. I am happy that I can start working on the Thimble bug I chose.

The Thimble issue I chose was: https://github.com/mozilla/thimble.mozilla.org/issues/1100

The issue is that when you change colour settings on Thimble, it does not change the part under Files tab. This files tab is framed under Bramble. To fix this issue, I must identify where tab is in Bramble and figure out how to change the colour once the user selects different colour tab.


The image above is Thimble and Bramble running on my device locally