 (ns frontend.components.pages.workflow
-  (:require [cljs-time.coerce :as t-coerce]
-            [clojure.string :as string]
+  (:require [clojure.string :as string]
             [frontend.api :as api]
             [frontend.components.aside :as aside]
             [frontend.components.common :as common]
             [frontend.components.pieces.button :as button]
             [frontend.components.pieces.card :as card]
+            [frontend.components.pieces.empty-state :as empty-state]
             [frontend.components.pieces.icon :as icon]
+            [frontend.components.pieces.spinner :refer [spinner]]
             [frontend.components.templates.main :as main-template]
             [frontend.datetime :as datetime]
             [frontend.models.build :as build-model]

  Object
  (render [this]
    (component
      (-> this om-next/props :organization/workflow-runs run-row-collection))))

(def org-workflow-runs (om-next/factory OrgWorkflowRuns))


                  :vcs_type vcs-type}]
        :header-actions (settings-link vcs-type org-name project-name)
        :sidebar (build-legacy legacy-branch-picker (:legacy/state (om-next/props this)))
        :main-content (if-let [project (:project-for-runs (om-next/props this))]
                        (project-workflow-runs project)
                        (spinner))}))))

(defui ^:once OrgWorkflowRuns
  static om-next/IQuery
