@operad-io/dev 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -7
- package/src/views.ts +4 -1
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operad-io/dev",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./src/index.ts"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@operad-io/access-match": "0.
|
|
10
|
-
"@operad-io/chat": "0.
|
|
11
|
-
"@operad-io/engine": "0.
|
|
12
|
-
"@operad-io/pool": "0.
|
|
13
|
-
"@operad-io/review-grading": "0.
|
|
9
|
+
"@operad-io/access-match": "0.4.0",
|
|
10
|
+
"@operad-io/chat": "0.4.0",
|
|
11
|
+
"@operad-io/engine": "0.4.0",
|
|
12
|
+
"@operad-io/pool": "0.4.0",
|
|
13
|
+
"@operad-io/review-grading": "0.4.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@operad-io/shell": "0.
|
|
16
|
+
"@operad-io/shell": "0.4.0",
|
|
17
17
|
"@operad-io/test-support": "0.0.0"
|
|
18
18
|
},
|
|
19
19
|
"description": "operad: the dev plugin, plans and tasks on a repository",
|
package/src/views.ts
CHANGED
|
@@ -131,11 +131,14 @@ export const repoViews: ObjectViews = {
|
|
|
131
131
|
row(object: StoredObject): ObjectRow {
|
|
132
132
|
const repository = repositoryData(object.data);
|
|
133
133
|
const state = repository.removed ? "removed" : "active";
|
|
134
|
+
const openPlans = repository.openPlans ?? 0;
|
|
135
|
+
const openTasks = repository.openTasks ?? 0;
|
|
134
136
|
return {
|
|
135
137
|
id: repository.name,
|
|
136
138
|
title: repository.name,
|
|
137
139
|
state,
|
|
138
|
-
note:
|
|
140
|
+
note: `${openPlans} ${openPlans === 1 ? "plan" : "plans"} · ${openTasks} ${openTasks === 1 ? "task" : "tasks"} open`,
|
|
141
|
+
data: { openPlans, openTasks },
|
|
139
142
|
final: repository.removed,
|
|
140
143
|
mark: repositoryMark(repository),
|
|
141
144
|
};
|