-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Begin scaffolding out the "campaign workspace" UI
Refs #69 Taking notes is great, but you also probably want to be able to organize for the current session. The workspace is where you can layout specific notes and other entities for reference as part of session planning.
- Loading branch information
Showing
5 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
(ns ^{:author "Daniel Leong" | ||
:doc "Campaign workspace"} | ||
wish.views.campaign.workspace | ||
(:require [wish.util :refer [<sub >evt]] | ||
[wish.util.nav :as nav :refer [sheet-url]] | ||
[wish.views.error-boundary :refer [error-boundary]] | ||
[wish.views.widgets :refer [icon link link>evt]] | ||
[wish.views.campaign.events :as events] | ||
[wish.views.campaign.subs :as subs])) | ||
|
||
(defn- id-for [item] | ||
(or (when (keyword? item) | ||
item) | ||
(:id item))) | ||
|
||
(defn workspace-item [entity-card item] | ||
; TODO | ||
[:div (str item)]) | ||
|
||
(defn workspace [& {:keys [entity-card]}] | ||
(let [workspace (<sub [:meta/workspace])] | ||
[:div.workspace | ||
(for [[item & secondary] workspace] | ||
^{:key (id-for item)} | ||
[workspace-item entity-card item])])) |