@parallelworks/tandem-web 0.192.2 → 0.194.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.
@@ -144,6 +144,7 @@ var P = [
144
144
  "created_completed",
145
145
  "open",
146
146
  "throughput",
147
+ "active_users",
147
148
  "cycle_time",
148
149
  "lead_time",
149
150
  "estimate",
@@ -226,14 +227,19 @@ function z({ workspace: e, initial: t, onClose: n, onSave: r }) {
226
227
  label: c("measure"),
227
228
  children: /* @__PURE__ */ D(S, {
228
229
  value: g.measure,
229
- onValueChange: (e) => e && C({ measure: e }),
230
+ onValueChange: (e) => {
231
+ e && (C({ measure: e }), e === "active_users" && d((e) => ({
232
+ ...e,
233
+ chart: "line"
234
+ })));
235
+ },
230
236
  items: P.map((e) => ({
231
237
  value: e,
232
238
  label: c(`measures.${e}`)
233
239
  }))
234
240
  })
235
241
  }),
236
- g.measure !== "created_completed" && /* @__PURE__ */ D(y, {
242
+ g.measure !== "created_completed" && g.measure !== "active_users" && /* @__PURE__ */ D(y, {
237
243
  label: c("groupBy"),
238
244
  children: /* @__PURE__ */ D(S, {
239
245
  value: g.groupBy ?? "",
@@ -275,6 +281,24 @@ function z({ workspace: e, initial: t, onClose: n, onSave: r }) {
275
281
  }))
276
282
  })
277
283
  }),
284
+ g.measure === "active_users" && /* @__PURE__ */ D(y, {
285
+ label: c("weeks"),
286
+ children: /* @__PURE__ */ D(S, {
287
+ value: String(g.days ?? 30),
288
+ onValueChange: (e) => e && C({ days: Number(e) }),
289
+ items: [
290
+ 7,
291
+ 14,
292
+ 30,
293
+ 90,
294
+ 180,
295
+ 365
296
+ ].map((e) => ({
297
+ value: String(e),
298
+ label: c("daysCount", { count: e })
299
+ }))
300
+ })
301
+ }),
278
302
  /* @__PURE__ */ D(y, {
279
303
  label: c("issuesFrom"),
280
304
  children: /* @__PURE__ */ D(S, {