From 22bbca25d7bbd61c0a7bcfb9f6eee9703202506a Mon Sep 17 00:00:00 2001 From: Edward Date: Fri, 19 Sep 2025 14:58:31 -0500 Subject: [PATCH] Add KanBan items to WTF dashboard --- files/ts/count-gh-in-progress.sh | 1 + files/ts/count-gh-in-review.sh | 1 + files/ts/list-gh-in-progress.sh | 2 +- files/ts/list-gh-in-review.sh | 1 + files/ts/wtfutil.config.yml | 63 ++++++++++++++++++++++++++++---- 5 files changed, 59 insertions(+), 9 deletions(-) create mode 100755 files/ts/count-gh-in-progress.sh create mode 100755 files/ts/count-gh-in-review.sh create mode 100755 files/ts/list-gh-in-review.sh diff --git a/files/ts/count-gh-in-progress.sh b/files/ts/count-gh-in-progress.sh new file mode 100755 index 0000000..80a8424 --- /dev/null +++ b/files/ts/count-gh-in-progress.sh @@ -0,0 +1 @@ +gh project item-list 10 --owner techservicesillinois --limit 50 --format json | jq '.items[] | select(.status == "In Progress") | .title' | wc -l diff --git a/files/ts/count-gh-in-review.sh b/files/ts/count-gh-in-review.sh new file mode 100755 index 0000000..37746e8 --- /dev/null +++ b/files/ts/count-gh-in-review.sh @@ -0,0 +1 @@ +gh project item-list 10 --owner techservicesillinois --limit 50 --format json | jq '.items[] | select(.status == "In Review") | .title' | wc -l diff --git a/files/ts/list-gh-in-progress.sh b/files/ts/list-gh-in-progress.sh index 0ad966e..4bace5c 100755 --- a/files/ts/list-gh-in-progress.sh +++ b/files/ts/list-gh-in-progress.sh @@ -1 +1 @@ -gh project item-list 10 --owner techservicesillinois --format json | jq '.items[] | select(.status == "In Progress") | .title' +gh project item-list 10 --owner techservicesillinois --limit 50 --format json | jq '.items[] | select(.status == "In Progress") | .title' diff --git a/files/ts/list-gh-in-review.sh b/files/ts/list-gh-in-review.sh new file mode 100755 index 0000000..61266d5 --- /dev/null +++ b/files/ts/list-gh-in-review.sh @@ -0,0 +1 @@ +gh project item-list 10 --owner techservicesillinois --limit 50 --format json | jq '.items[] | select(.status == "In Review") | .title' diff --git a/files/ts/wtfutil.config.yml b/files/ts/wtfutil.config.yml index 08fb045..00102f4 100644 --- a/files/ts/wtfutil.config.yml +++ b/files/ts/wtfutil.config.yml @@ -5,8 +5,8 @@ wtf: focused: orange normal: gray grid: - columns: [60, 60] - rows: [3,7,40] + columns: [80,40] + rows: [3,3,7,40] refreshInterval: 60 mods: check_backups: @@ -22,26 +22,73 @@ wtf: type: cmdrunner refreshInterval: 6000 todo_count: - title: "Todo Count" + title: "Todo" + cmd: "echo" + args: ["Hello"] + enabled: true + position: + top: 0 + left: 1 + width: 1 + height: 1 + type: cmdrunner + more: + title: "More" cmd: "bash" args: ["/home/delaport/dotfiles/files/ts/todo_count.sh"] enabled: true position: top: 0 + left: 2 + width: 1 + height: 1 + type: cmdrunner + refreshInterval: 600 + in_review: + title: "In Review" + cmd: "bash" + args: ["/home/delaport/dotfiles/files/ts/list-gh-in-review.sh"] + enabled: true + position: + top: 1 + left: 0 + width: 1 + height: 1 + type: cmdrunner + refreshInterval: 600 + count_in_review: + title: "Count In Review" + cmd: "bash" + args: ["/home/delaport/dotfiles/files/ts/count-gh-in-review.sh"] + enabled: true + position: + top: 1 left: 1 width: 1 height: 1 type: cmdrunner - refreshInterval: 6000 + refreshInterval: 600 + count_in_progress: + title: "Count In Progress" + cmd: "bash" + args: ["/home/delaport/dotfiles/files/ts/count-gh-in-progress.sh"] + enabled: true + position: + top: 2 + left: 1 + width: 1 + height: 1 + type: cmdrunner + refreshInterval: 600 in_progress: title: "In Progress" cmd: "bash" args: ["/home/delaport/dotfiles/files/ts/list-gh-in-progress.sh"] enabled: true position: - top: 1 + top: 2 left: 0 - width: 2 + width: 1 height: 1 type: cmdrunner refreshInterval: 60 @@ -51,9 +98,9 @@ wtf: args: ["/home/delaport/dotfiles/files/ts/list-gh-board.sh"] enabled: true position: - top: 2 + top: 3 left: 0 - width: 2 + width: 1 height: 1 type: cmdrunner refreshInterval: 60 -- 2.47.3