@wrenautomation/aerie 0.4.4 → 0.4.5
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/dist/bin.js +39 -7
- package/dist/bin.js.map +2 -2
- package/dist/core/fields.d.ts +15 -0
- package/dist/core/fields.js +49 -3
- package/dist/core/fields.js.map +1 -1
- package/dist/peers-coord.js +40 -8
- package/dist/peers-coord.js.map +2 -2
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -15051,6 +15051,7 @@ function cmp(a, b, f) {
|
|
|
15051
15051
|
|
|
15052
15052
|
// src/core/fields.ts
|
|
15053
15053
|
var one = (v) => v ? [v] : [];
|
|
15054
|
+
var setTo = (k) => (_t, _from, to) => ({ [k]: to });
|
|
15054
15055
|
var checks3 = (t) => {
|
|
15055
15056
|
const all = [...t.ac, ...t.dod];
|
|
15056
15057
|
return all.length ? [`${all.filter((c) => c.done).length}/${all.length}`] : [];
|
|
@@ -15065,7 +15066,8 @@ var FIELDS = [
|
|
|
15065
15066
|
values: (t) => [t.status],
|
|
15066
15067
|
sort: "status",
|
|
15067
15068
|
group: true,
|
|
15068
|
-
order: STATUSES
|
|
15069
|
+
order: STATUSES,
|
|
15070
|
+
move: (_t, _from, to) => to ? { status: to } : null
|
|
15069
15071
|
},
|
|
15070
15072
|
{
|
|
15071
15073
|
key: "priority",
|
|
@@ -15074,27 +15076,57 @@ var FIELDS = [
|
|
|
15074
15076
|
values: (t) => one(t.priority),
|
|
15075
15077
|
sort: "priority",
|
|
15076
15078
|
group: true,
|
|
15077
|
-
order: PRIORITIES
|
|
15079
|
+
order: PRIORITIES,
|
|
15080
|
+
move: setTo("priority")
|
|
15081
|
+
},
|
|
15082
|
+
{
|
|
15083
|
+
key: "area",
|
|
15084
|
+
label: "Area",
|
|
15085
|
+
kind: "area",
|
|
15086
|
+
values: (t) => [t.area],
|
|
15087
|
+
sort: "area",
|
|
15088
|
+
group: true,
|
|
15089
|
+
move: (_t, _from, to) => to ? { area: to } : null
|
|
15078
15090
|
},
|
|
15079
|
-
{ key: "area", label: "Area", kind: "area", values: (t) => [t.area], sort: "area", group: true },
|
|
15080
15091
|
{
|
|
15081
15092
|
key: "assignee",
|
|
15082
15093
|
label: "Assignee",
|
|
15083
15094
|
kind: "people",
|
|
15084
15095
|
values: (t) => t.assignees.filter((a) => !a.startsWith(MARK)),
|
|
15085
|
-
group: true
|
|
15096
|
+
group: true,
|
|
15097
|
+
// the empty group has no people: `to` null drops them all; `@peers:` marks stay
|
|
15098
|
+
move: (t, from, to) => {
|
|
15099
|
+
const kept = t.assignees.filter((a) => to ? a !== from : a.startsWith(MARK));
|
|
15100
|
+
return { assignees: to && !kept.includes(to) ? [...kept, to] : kept };
|
|
15101
|
+
}
|
|
15086
15102
|
},
|
|
15087
15103
|
{ key: "holder", label: "Held by", kind: "people", values: (t) => holdersOf(t), group: true },
|
|
15088
|
-
{
|
|
15104
|
+
{
|
|
15105
|
+
key: "labels",
|
|
15106
|
+
label: "Labels",
|
|
15107
|
+
kind: "labels",
|
|
15108
|
+
values: (t) => t.labels,
|
|
15109
|
+
group: true,
|
|
15110
|
+
// the empty group has no labels: `to` null drops them all
|
|
15111
|
+
move: (_t, from, to) => to ? { ...from ? { removeLabels: [from] } : {}, addLabels: [to] } : { labels: [] }
|
|
15112
|
+
},
|
|
15089
15113
|
{
|
|
15090
15114
|
key: "milestone",
|
|
15091
15115
|
label: "Milestone",
|
|
15092
15116
|
kind: "text",
|
|
15093
15117
|
values: (t) => one(t.milestone),
|
|
15094
|
-
group: true
|
|
15118
|
+
group: true,
|
|
15119
|
+
move: setTo("milestone")
|
|
15095
15120
|
},
|
|
15096
15121
|
{ key: "parent", label: "Parent", kind: "id", values: (t) => one(t.parentId), group: true },
|
|
15097
|
-
{
|
|
15122
|
+
{
|
|
15123
|
+
key: "type",
|
|
15124
|
+
label: "Type",
|
|
15125
|
+
kind: "text",
|
|
15126
|
+
values: (t) => one(t.type),
|
|
15127
|
+
group: true,
|
|
15128
|
+
move: setTo("type")
|
|
15129
|
+
},
|
|
15098
15130
|
{ key: "checks", label: "Checks", kind: "progress", values: checks3 },
|
|
15099
15131
|
{
|
|
15100
15132
|
key: "createdAt",
|