Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: first pass on queries for tasks #2235

Merged
merged 94 commits into from
Aug 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
e7319bc
feat: make all-pages entities dynamic
tangjeff0 Jun 21, 2022
c936bef
add gallery view and tweets
tangjeff0 Jun 22, 2022
f9a20be
hi
tangjeff0 Jun 23, 2022
f721e4f
dnd-kit and use-gesture
tangjeff0 Jun 24, 2022
8f5d730
Merge branch 'main' into queries
tangjeff0 Jun 25, 2022
47d9a7a
feat: add kanban components
shanberg Jun 26, 2022
253d54b
pull tasks
tangjeff0 Jun 26, 2022
0a40a15
feat: can reorder kanban cards
shanberg Jun 26, 2022
aa9bb02
group-by-group-by
tangjeff0 Jun 27, 2022
4f497e8
Merge remote-tracking branch 'shanberg/block-in-kanban-components' in…
tangjeff0 Jun 27, 2022
12df8da
use stuart's component
tangjeff0 Jun 27, 2022
2d0f368
begin adding a new task on click
tangjeff0 Jun 27, 2022
baef68f
add some handlers for db updates
tangjeff0 Jun 28, 2022
2f2c25f
remove previous query code, add reactive entity lookups
tangjeff0 Jun 28, 2022
e111333
queries are now reactive
tangjeff0 Jun 28, 2022
c3bae02
create blocks on todays daily note
tangjeff0 Jun 28, 2022
4d3427d
hide instances if not there
tangjeff0 Jun 28, 2022
ed8e188
add table view
tangjeff0 Jun 29, 2022
728f99f
add list view
tangjeff0 Jun 29, 2022
d58553b
small style
tangjeff0 Jun 29, 2022
4ccbd07
dumb nesting stuff
tangjeff0 Jun 30, 2022
a850e38
remove task
tangjeff0 Jul 1, 2022
996aac4
add error text
tangjeff0 Jul 13, 2022
9f39936
Merge branch 'main' into queries-for-tasks
tangjeff0 Jul 13, 2022
4820221
clean up the code a bit
tangjeff0 Jul 14, 2022
00888e3
rename and reorder files
tangjeff0 Jul 14, 2022
18be5cd
clean-up property getter functions
tangjeff0 Jul 14, 2022
b582df7
add create and last-edit auth and time to query data
tangjeff0 Jul 15, 2022
590a6db
add sort-by and sort dir
tangjeff0 Jul 15, 2022
abb88c0
make column headers clickable
tangjeff0 Jul 15, 2022
c254109
hide properties for table
tangjeff0 Jul 15, 2022
b10b3d5
check-in before merging from main
tangjeff0 Jul 15, 2022
498ce3b
Merge branch 'main'; toggle hidden properties
tangjeff0 Jul 15, 2022
8c834f5
fixup! Merge branch 'main'; toggle hidden properties
tangjeff0 Jul 15, 2022
6edfc9e
add a menu for hidden properties
tangjeff0 Jul 15, 2022
66c4f44
clicking on card opens it in right sidebar
tangjeff0 Jul 15, 2022
33ec390
onAddNewCard works for kanban rows
tangjeff0 Jul 15, 2022
45814d9
chevron
tangjeff0 Jul 16, 2022
a1c0936
viewicon
tangjeff0 Jul 16, 2022
d9212bf
make swimlane flexbox instead of grid
tangjeff0 Jul 16, 2022
58f0e29
use :task/status :property/values as source of order
tangjeff0 Jul 16, 2022
ceef745
update task title with EditIcon
tangjeff0 Jul 16, 2022
966d2b9
update task title
tangjeff0 Jul 16, 2022
2947bfa
update other tasks when the kanban column name changes
tangjeff0 Jul 16, 2022
690bcc6
rfct
tangjeff0 Jul 17, 2022
7b25185
on add new kanban column
tangjeff0 Jul 17, 2022
ecb8916
fix arrows to move kanban cards
tangjeff0 Jul 17, 2022
c05ba09
scroll auto
tangjeff0 Jul 17, 2022
6e32e62
make property/values lookup reactive
tangjeff0 Jul 18, 2022
8ea60d7
wip: save query view
tangjeff0 Jul 18, 2022
ef649b2
todo
tangjeff0 Jul 19, 2022
bb145c8
wip
tangjeff0 Jul 19, 2022
e9c8e9b
use links in property values now instead of strings
tangjeff0 Jul 19, 2022
ba94cdd
wip: update athens/schema for queries
tangjeff0 Jul 19, 2022
e190ebf
update schema properly -- with block-move
tangjeff0 Jul 19, 2022
bbb7799
remove keys that shouldnt be in schema now
tangjeff0 Jul 19, 2022
ea2e813
now actually remove keys
tangjeff0 Jul 19, 2022
a87224a
Merge remote-tracking branch 'upstream/main' into queries-for-tasks
tangjeff0 Jul 19, 2022
101ee42
Merge branch 'main' into queries-for-tasks
tangjeff0 Aug 3, 2022
e37caac
get rid of schema/property handler codes
tangjeff0 Aug 3, 2022
95f17a6
add outliner view for comments
tangjeff0 Aug 3, 2022
35fadc9
WIP: query filters
tangjeff0 Aug 4, 2022
f854f4c
comments threads kinda work now, list view
tangjeff0 Aug 4, 2022
b1d89b3
fix author "None"
tangjeff0 Aug 5, 2022
784f4cf
move sortBy functionality out of table
tangjeff0 Aug 5, 2022
a37a7df
rename property names, refactor update-query-property
tangjeff0 Aug 5, 2022
50bda65
refactor menus
tangjeff0 Aug 5, 2022
5fe20f4
indentation
tangjeff0 Aug 5, 2022
3c01e15
add more constants
tangjeff0 Aug 5, 2022
5ab5610
Merge branch 'main' into queries-for-tasks
tangjeff0 Aug 22, 2022
cbddd24
Merge remote-tracking branch 'shanberg/task-ui' into queries-for-tasks
tangjeff0 Aug 22, 2022
6f59e36
use blocktypeprotocol
tangjeff0 Aug 22, 2022
63d4b1f
fix schema and css
tangjeff0 Aug 22, 2022
c3060b2
get board for tasks to work again
tangjeff0 Aug 23, 2022
cff70da
style
tangjeff0 Aug 24, 2022
e1086b3
wip: create kanban with cljs instead of tsx
tangjeff0 Aug 24, 2022
6a4035c
create card in cljs
tangjeff0 Aug 24, 2022
696ab64
rm comment-thread
tangjeff0 Aug 24, 2022
b8d8560
Merge branch 'main' into queries-for-tasks
tangjeff0 Aug 25, 2022
43a8826
Merge branch 'main' into queries-for-tasks
tangjeff0 Aug 25, 2022
4786e84
remove list option
tangjeff0 Aug 25, 2022
e2942e9
remove comments
tangjeff0 Aug 25, 2022
dd85451
use entity type
tangjeff0 Aug 25, 2022
39e0996
fix render-cards
tangjeff0 Aug 25, 2022
6ccbb60
use graph/update-in instead of properties/update-in
tangjeff0 Aug 25, 2022
52445f7
add queries to feature flags
tangjeff0 Aug 25, 2022
8118ac6
style:fix
tangjeff0 Aug 25, 2022
680f7a7
revert some random stuff i did
tangjeff0 Aug 25, 2022
6fdbe56
carve
tangjeff0 Aug 25, 2022
f370a2c
carve more
tangjeff0 Aug 25, 2022
da239cd
lint
tangjeff0 Aug 25, 2022
1335054
- open parent from card, parse-render title, and add nil group-by
tangjeff0 Aug 26, 2022
023218e
lint
tangjeff0 Aug 26, 2022
8eb620e
resolve comments
tangjeff0 Aug 26, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@

# shadow-cljs cache, port files
/.shadow-cljs/

# Intelli-j files
.idea/
athens.iml

# local caches
.clj-kondo/.cache
Expand Down
15 changes: 15 additions & 0 deletions src/cljs/athens/reactive.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,21 @@
(:block/string e))))))


(defn get-reactive-instances-of-key-value
"Find all blocks that have key-value matching where
key is a string and value is a string, then find that property block's parent."
[k v]
(->> @(p/q '[:find [?parent ...]
:in $ ?key ?value
:where
[?eid :block/key ?k]
[?k :node/title ?key]
[?eid :block/string ?value]
[?eid :block/property-of ?parent]]
athens.db/dsdb k v)
(mapv get-reactive-block-document)))


(comment
;; Print what ratoms are active.
(-> (ratoms) utils/spy))
Expand Down
3 changes: 2 additions & 1 deletion src/cljs/athens/types/dispatcher.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

(defn if-not-disabled
[block-type feature-flags]
(let [type->ff {"[[athens/task]]" :tasks}]
(let [type->ff {"[[athens/task]]" :tasks
"[[athens/query]]" :queries}]
(if-let [ff (type->ff block-type)]
(and (feature-flags ff) block-type)
block-type)))
Expand Down
Loading