Showing posts with label daily. Show all posts
Showing posts with label daily. Show all posts

Tuesday, August 13, 2013

3-day report: August 9th, 10th and 12th 2013

  • Played with ranking - using frequency as well as recency as parameters (took most of my time on Friday)
  • Made changes to the way ranks are stored, to better accommodate chats (soon).
  • Updated tabbrowser images for retina displays (bug 2103) (Monday night)

Friday, August 9, 2013

Daily report: August 8th 2013

  • Rewrote the way conversations are stored in IndexedDB. This took most of my time tonight (pesky bugs!).
    • Now, a conversation's rank is stored with the conversation's id as the key.
    • I've defined a conversation's id as the string obtained by concatenating its source and _id values.
    • For contacts this looks something like "contact2", "contact-5", etc. For chats, it's source + accountId + name - for e.g. "chataccount1#instantbird".
  • Added basic ranking. A conversation's rank is the number of times it has been opened. Ranks are updated and stored as conversations are opened.
  • Short term to-do list:
    • Code cleanup
    • Support for chats
    • More sophisticated ranking
    • Obtain historical data from logs

Friday, August 2, 2013

Daily report: August 1st 2013

Today I finally discovered what was causing performance issues I was trying to debug for a couple of days. Lag was being caused by tons of warnings being spewed due to bug 2075.

Having fixed this I was finally able to finish a new patch and upload it for review.

Thursday, July 25, 2013

Daily report: July 24th 2013

  • Further work on bug 2066 (WIP attached).
  • Brainstormed the best way to cover up the awkward pause between clicking a chat in awesometab and the new tab showing up. For now, made the IRC joinChat method create a new conversation and then send the JOIN message to the server.
  • Various improvements, see commits on BitBucket.
  • Created patches for followup bugs 2051, 2065. New patch on bug 2055 as well, addressing feedback comments.

Tuesday, July 23, 2013

Daily report: July 23rd 2013

I've mostly been working on adding functionality to get lists of chat rooms for accounts while the patch for bug 2055 awaits review - in particular IRC's LIST. Here's a progress report:
  • Added the necessary additions to imIAccount.idl (an interface that represents chat rooms, and a method in prplIAccount that returns a list of rooms).
  • Added implementations for these additions in jsProtoHelper.
  • Consumers can now ask IRC accounts for LIST data, which will be returned asynchronously via a callback.
  • Created an implementation of PossibleConversation - PossibleChat - to use with these chat rooms. These are now filtered and returned in getFilteredConvs, along with contacts. New conversation tabs can use these to create list elements and open conversations.
To-do:
  • Proper data management for the chat room lists that stats service receives.
  • Performance improvements, which will likely be helped by:
  • Add ability to return list data in batches (Freenode for example has way too many channels to return all of them at once).
  • UI improvements for MUC items.
After this is done I will get to work on the statistics and ranking part of my project, which will likely be the main focus of the second half of the summer.

Tuesday, July 16, 2013

Daily report: July 16th 2013

  • Today I added support for conversations on hold in Awesometab.
  • This took most of my day. I spent more time than I'd have liked to while figuring out how the blist window manages convs on hold and how to extract the data I need from the [showing-]ui-conversation[-hidden] observer notifications.
  • I've attached a patch on bug 2055 and requested feedback on it.
  • I still need to make it display open conversations (but not on hold).
  • I plan to do this and have a complete patch with comments ready tomorrow.

Wednesday, July 3, 2013

Daily report: July 1st-2nd 2013

Monday, July 1st:
  • Mainly a bunch of UI tweaks. This took a while. The new fonts are much cleaner looking, and some icon alignment issues are fixed. Also included the aero version of tag.png.
  • Fixed a few bugs relating to key events.
Tuesday, July 2nd:
  •  Looked at the implementation of the LIST command on IRC to get some idea of what kind of data I would have to process for MUCs in Awesometab.
  • Moved all of the data management code from awesometab.xml to a new service (ConvStatsService) that will in the future manage contact statistics and sorting for Awesometabs.
  • Learned quite a bit about services and interfaces (particularly about writing IDL files!) on the way.
  • The buddy list tab now uses the service and is fully functional.

Saturday, June 29, 2013

Daily report: June 28th 2013

  • Fixed some bugs related to observer notifications and the updateContact method.
  • Updated my Pastebinner addon to allow the user to set a default language for pastes, and also detect diffs (startsWith("diff") ;) ). Nominated it to be public, and aleth approved the request.
  • While doing that, found a bug - Services.cmd.unregisterCommand wasn't working. Filed it and aleth (after "half an hour of debugging"!) found the problem that was right under our noses.
  • I went through the code and did a sort of self review - fixed some nits, added comments, did some general clean up. Found a couple of minor bugs and fixed them.
  • Incorporated Mic's icon and Firefox's tag icon.
  • Finally uploaded the new patch for review.

Friday, June 28, 2013

Daily report: June 27th 2013

  • Did some more work on handling of DOM elements. Instead of permanently linking a list item with a contact and removing/adding them when resorting/filtering, now the required number of items is maintained in the list and each is refreshed with the correct contact for its index. I know this sentence may not make complete sense, the code in my repo might make it clearer. This was inspired by a suggestion from Mook on IRC.
  • Items are now appended as the user scrolls.
  • Performance is greatly improved. Very little to no lag while loading contacts, resorting, etc.
  • Added Mic's favicon and also started using the tag icon from Firefox.
  • Submitted a patch to add a method to the Contacts Service to return an array of all contacts. This is checked in.
  • Started maintaining a short-term todo list in the etherpad.

Thursday, June 27, 2013

Daily report: June 26th 2013

  • The tabbrowser patch is finally checked in, as is a patch adding an /about command to show about:* pages in a new tab!
  • Today I worked on rewriting the awesometab buddy list code to better handle DOM elements.
  • I've now got it dynamically removing and adding elements as necessary rather than displaying the whole list and filtering with CSS. Code is uploaded to my repo.
  • There was a discussion on executeSoon and avoiding multiple calls to a function in a short time on IRC.
I am going to try and write these logs from now on. They may be of some use later on, or just nice to look back at.

Monday, June 10, 2013

Daily report: June 9th 2013

  • I fixed tooltips for generic tabs.
  • I merged the latest default branch into my awesometab branches. (I should do this more often)
  • I filed a bug and submitted a patch to fix indentation in buddytooltip.xml.
  • I reviewed my changes so far, made a couple corrections and uploaded a patch requesting feedback. I plan to update the patch with more comments and the buddytooltip.xml indentation fixes before requesting review.

Thursday, June 6, 2013

Daily report: June 5th 2013

My tabbrowser work has now reached a stage where a tab linked to an arbitrary panel can be added to a conversation window, moved around, etc with almost no errors. Context menus and nearly everything else also work fine. I only ran into one pesky error with the zoom manager, caused when the tab is opened in a new window - this.mCurrentBrowser is undefined because the tab doesn't have one. Debugging that will be a job for tomorrow!

The code has been pushed to the awesometab-experimental branch on my repo. Also I was a bit bored and recorded a demonstration video - here.

Meanwhile, I got default prefs working with my Pastebinner add-on thanks to the good folks at #instantbird.

To-do:
- Fix the bug mentioned above.
- A lot of cleanup has to be done so that the code is worthy of a check-in.
- Mic suggested I start collecting data to test my sorting algorithm later on - I want to write an add-on for this.
- I need to submit my add-ons to AIO.

Tuesday, June 4, 2013

Daily report: June 3rd 2013

I forgot to write up yesterday's report, so this post will cover what I've done the past two days.
  • I decided to scrap the idea of having a generic tab to be extended, since tabbrowser-tab has very little conversation-specific code anyway. Now, tabs themselves are fully transparent and there is no need for them to be extended.
  • The conversation binding now extends tabPanel - a generic panel to be added to tabbrowser. Future UIs that want to open in a tab should also extend tabPanel.
  • I moved conversation specific menuitems from tabbrowser to the conversation binding. These are now "injected" into the context menu when it is shown.
  • Code for the above has been pushed (except for the last bit which is awaiting review) to my repo.
  • Aside from this, I worked on an addon - Pastebinner - which pushes any message more than 10 lines long to a pastebin and sends the link as a message. It also adds a "/paste" command using which files can be pastebin'd and sent. I suspect this will be useful throughout GSoC.

Sunday, June 2, 2013

Daily report: June 1st 2013

I wasn't at home most of the day, but I did get some time to work after dinner.
  • I was able to start over work on moving conversation specific code out of tabbrowser.
  • Here's a diff of progress so far.
  • Here is a discussion on this on #instantbird.

Saturday, June 1, 2013

Daily report: May 31st 2013

Today I experimented with the abstraction code, ending up with more breakage than functionality.
  • I worked on replacing linkedConversation with linkedPanel, since linkedConversation is mostly used in a way that doesn't depend on it actually being a conversation.
  • I moved the tab context menu code to the tabbrowser-tab binding. This worked, but didn't yield very good results. Tab images got a bit broken and there were some mouse event issues.  I decided to move it back to tabbrowser, with the idea that generic tabs which wanted to implement their own context menus could do so by setting unsetting mousethrough="always" - this would show the tab's particular context menu rather than tabbrowser's.
  • I added in a aTabClassName parameter to addGenericTab to allow tab classes other than tabbrowser-tab.
Progress was slow again because I had to decipher a lot of vague/complicated code (e.g. this.parentNode.parentNode.parentNode.parentNode.foo(this)) and wasn't able to open DOM Inspector until Mook_as mentioned the -inspector command line flag (thanks!).

To-do: make tabbrowser-tab easily extendable and further work on tabtest.xml to be a full proof-of-concept for adding non-conversation tabs.

Friday, May 31, 2013

Daily report: May 30th 2013

With help from #instantbird, I was able to fix yesterday's bug where Mic was able to open an arbitrary UI in a tab but I wasn't (with the same code). I had to add the newly created tabtest.xml and tabtest.css to jar.mn. Then everything worked and I was able to open the test UI, the add-on interface, the account manager, etc. in a tab (screenshot). Of course, it was still pretty broken and there were a load of errors from different methods assuming that the tab held a conversation.
  • Mic had a much better way of generating new tabs: create a new command ("/newtab") instead of clicking the buddy list (new bootstrap.js).
  • I did some research into how best to eliminate the errors and add abstraction. The discussion included moving some of the code in tabbrowser to the tabs themselves.
  • I somehow broke my local tree and decided to do a fresh clone.
Today was slow but I hope to make more progress tomorrow.

Thursday, May 30, 2013

Daily report: May 29th 2013

Today GSoC really started to kick in. I started a repo for the project here. As Mic suggested, I started working on getting the tabbrowser to accept tabs that aren't linked to conversations.
  • As a start, I made a clone of the _addConversation method in tabbrowser.xml, and made some changes to let it add non-conversation content. Here's a diff of _addConversation and addGenericTab with Mic's comments.
  • I then created tabtest.xml and tabtest.css (for binding) in order to test it out.
  • I created a small add-on (bootstrap.js) to add a new tab with the contents of tabtest.xml when the buddy list is clicked. I couldn't get it to work however.
  • Mic got it to work from the error console using the same code, but we couldn't figure out what was wrong on my end and decided to debug further tomorrow.