                             (dom/ul #js {:className (if folded? "hidden" "test-list")}
                                     (mapv (comp ui-test-item #(assoc % :report/filter filter))
                                           (:test-items tests-by-namespace))))))))
-
 (def ui-test-namespace (om/factory TestNamespace {:keyfn :name}))
 
 (defui FilterSelector

               {:keys [folded?]} (om/get-state this)]
           (dom/li #js {:className "test-item"}
                   (dom/div #js {:className "test-namespace"}
                            (dom/a #js {:href "#"
                                        :style #js {:textDecoration "none"} ;; TODO: refactor to css
                                        :onClick   #(om/update-state! this update :folded? not)}
                                   (dom/h2 #js {:className (impl/itemclass (:status tests-by-namespace))}

                                          "selected" "")
                             :onClick (set-filter! this-filter)}
                        (str this-filter)))))
(def ui-filter-selector (om/factory FilterSelector {:keyfn :this-filter}))

(defui Filters
