fluidinfo/infomaniac — pull request #16 by jkakar (2012-03-16 21:53:56+00:00)
Title: show-page-info-14

This branch introduces the following changes:

- A new `TagList` widget encapsulates the logic needed to render
tag/value pairs in the sidebar. It's invoked whenever
`SidebarView.syncUI` is called.

- A new `TagRenderer` helper class encpasulates the logic to render a
tag/value pair into a DOM element.

- Renamed *Infomaniac* in user-facing parts of the extension to
*Fluidinfo*.

The style of things has improved a bit, but it still needs quite a bit
of work. In particular, long tag values cause the sidebar to stretch
out super wide (and without a horizontal scrollbar for extra
friendliness), which makes weird things happen. I'm getting closer to
figuring out how to fix these issues, but definitely still in the
learning/research stages.

Also, the rendering logic is a bit awkward... working with the DOM
programmatically is never particularly great. I'm not sure what I can
do to improve it, but it's something I'd like to experiment with too
(for example, maybe we can put a template structure for rendering
tag/value pairs in `infomaniac.xul`, clone it when we want to render a
tag/value, and reinject the modified version).

This branch is stacked on `jkakar/better-styling-12`.

Fixes #14.