   [WorkspaceMethodConfigurations
    {:selected-workspace (workspace "name")
     :selected-workspace-namespace (workspace "namespace")}])
+
+
+

    [org.broadinstitute.firecloud-ui.common.style :as style]))


(defn- create-mock-methodconfs []
  (map
    (fn [i]
      {:method-conf-name (rand-nth ["rand_name_1" "rand_name_2" "rand_name_3" "rand_name_4"])
       :method-conf-root-ent-type (str "method_conf_root_ent_type_" (inc i))
       :method-conf-last-updated (str "method_conf_last_updated_" (inc i))})
    (range (rand-int 10))))


(react/defc WorkspaceMethodsConfigurationsList

               header-label (fn [text & [padding]]
                              [:span {:style {:paddingLeft (or padding "1em")}}
                               [:span {:style {:fontSize "90%"}} text]])]
           {:columns [

                      {:label (header-label "Name")
                       :style (merge cell-style {:borderLeft "none"})}
                      {:label (header-label "Namespace")
                       :style cell-style
                       :header-style {:borderLeft "none"}}
                      {:label (header-label "Root Entity Type")
                       :style (merge cell-style {:flexBasis "30ex"})
                       :header-style {:borderLeft "none"}}
                      {:label (header-label "Workspace Name")
                       :style (merge cell-style {:borderLeft "none"})}
                      {:label (header-label "Method Store Method")
                       :style cell-style
                       :header-style {:borderLeft "none"}}
                      {:label (header-label "Method Store Config")
                       :style (merge cell-style {:flexBasis "30ex"})
                       :header-style {:borderLeft "none"}}
                      {:label (header-label "Inputs")
                       :style (merge cell-style {:borderLeft "none"})}
                      {:label (header-label "Outputs")
                       :style cell-style
                       :header-style {:borderLeft "none"}}
                      {:label (header-label "Pre-Requisites")
                       :style (merge cell-style {:flexBasis "30ex"})
                       :header-style {:borderLeft "none"}}

                      ]
            :data (map (fn [m]
                         [
                          ;; first the 3 basic keys (string -> string)
                          (m "name")
                          (m "namespace")
                          (m "root-ent-type")

                          ;;6 complex fields string -> Map[String,String]
                          (m "workspaceName")
                          (m "methodStoreMethod")
                          (m "methodStoreConfig")
                          (m "inputs")
                          (m "outputs")
                          (m "prerequisites")
                          ]
                         )
                    (:method-confs props))})])])})


