@parallelworks/tandem-web 0.139.0 → 0.139.1
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/components/AppRoot.js +9 -8
- package/components/settings.js +10 -10
- package/hostedApp.js +47 -45
- package/lib/pageTitle.js +22 -10
- package/package.json +1 -1
- package/pages/areas.js +112 -112
- package/pages/decisions.js +36 -36
- package/pages/issues.js +34 -34
- package/pages/projects.js +109 -109
- package/pages/triage.js +64 -64
- package/routes/_workspace/agents/_slug2.js +21 -21
- package/routes/_workspace/agents/index2.js +16 -16
- package/routes/_workspace/areas/_area2.js +105 -105
- package/routes/_workspace/docs/_doc2.js +185 -185
- package/routes/_workspace/graph3.js +8 -8
- package/routes/_workspace/issues/_identifier2.js +484 -484
- package/routes/_workspace/knowledge/_term2.js +166 -166
- package/routes/_workspace/knowledge/index2.js +33 -33
- package/routes/_workspace/measures3.js +18 -18
- package/routes/_workspace/notifications2.js +112 -112
- package/routes/_workspace/people/_username2.js +36 -36
- package/routes/_workspace/projects/_projectId3.js +215 -215
- package/routes/_workspace/teams/_key/cycles/_number2.js +16 -16
- package/routes/_workspace/teams/_key/cycles/index2.js +38 -38
- package/routes/_workspace/teams/_key/settings2.js +131 -131
- package/routes/docs/route2.js +5 -5
- package/routes/new2.js +8 -8
- package/routes/request2._token.js +4 -4
package/components/AppRoot.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { PageTitle as e } from "../lib/pageTitle.js";
|
|
2
|
+
import { SharedUI as t } from "./SharedUI.js";
|
|
3
|
+
import { Outlet as n } from "@tanstack/react-router";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
5
|
// src/components/AppRoot.tsx
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
6
|
+
function a() {
|
|
7
|
+
return /* @__PURE__ */ i(t, { children: [/* @__PURE__ */ r(e, {}), /* @__PURE__ */ r("div", {
|
|
7
8
|
className: "flex min-h-dvh flex-col",
|
|
8
|
-
children: /* @__PURE__ */ n
|
|
9
|
-
}) });
|
|
9
|
+
children: /* @__PURE__ */ r(n, {})
|
|
10
|
+
})] });
|
|
10
11
|
}
|
|
11
|
-
export {
|
|
12
|
+
export { a as default };
|
package/components/settings.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { usePageTitle as e } from "../lib/pageTitle.js";
|
|
2
|
+
import { usePathname as t } from "../lib/router.js";
|
|
3
3
|
import { useCan as n } from "../lib/roles.js";
|
|
4
4
|
import { useSettingsPages as r } from "./SettingsNav.js";
|
|
5
5
|
import { Callout as i, PageHeader as a } from "@parallelworks/ui";
|
|
@@ -17,8 +17,8 @@ function f() {
|
|
|
17
17
|
set: (t) => n(e(t))
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
function p(
|
|
21
|
-
let n = l("settingsNav"), { workspace: i = "" } = o({ strict: !1 }), a =
|
|
20
|
+
function p(e) {
|
|
21
|
+
let n = l("settingsNav"), { workspace: i = "" } = o({ strict: !1 }), a = t(), s = r(), c = [{
|
|
22
22
|
label: n("label"),
|
|
23
23
|
href: `/${i}/settings`
|
|
24
24
|
}], u;
|
|
@@ -30,14 +30,14 @@ function p(t) {
|
|
|
30
30
|
href: n
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
return u && (c.push({ label: u.group }), u.label !==
|
|
33
|
+
return u && (c.push({ label: u.group }), u.label !== e && c.push({
|
|
34
34
|
label: u.label,
|
|
35
35
|
href: u.href
|
|
36
|
-
})), c.push({ label:
|
|
36
|
+
})), c.push({ label: e }), c;
|
|
37
37
|
}
|
|
38
|
-
function m({ title:
|
|
39
|
-
let c = p(
|
|
40
|
-
return t
|
|
38
|
+
function m({ title: t, description: n, wide: r = !1, actions: i, toolbar: o, children: s }) {
|
|
39
|
+
let c = p(t);
|
|
40
|
+
return e(t, l("workspace")("settings")), /* @__PURE__ */ d("div", {
|
|
41
41
|
className: "flex h-full min-h-0 flex-col",
|
|
42
42
|
children: [/* @__PURE__ */ u(a, {
|
|
43
43
|
breadcrumbs: c,
|
|
@@ -50,7 +50,7 @@ function m({ title: e, description: n, wide: r = !1, actions: i, toolbar: o, chi
|
|
|
50
50
|
children: [
|
|
51
51
|
/* @__PURE__ */ u("h1", {
|
|
52
52
|
className: "min-w-0 flex-[1_1_6rem] text-xl font-semibold tracking-tight group-has-[input]/title:basis-auto",
|
|
53
|
-
children:
|
|
53
|
+
children: t
|
|
54
54
|
}),
|
|
55
55
|
o && /* @__PURE__ */ u("div", {
|
|
56
56
|
className: "-my-1.5 ml-auto min-w-0 max-w-full max-sm:group-has-[input]/title:order-last max-sm:group-has-[input]/title:mt-2 max-sm:group-has-[input]/title:mb-0 max-sm:group-has-[input]/title:basis-full",
|
package/hostedApp.js
CHANGED
|
@@ -1,73 +1,75 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { PageTitle as e } from "./lib/pageTitle.js";
|
|
2
|
+
import { SharedUI as t } from "./components/SharedUI.js";
|
|
3
|
+
import { loadMessages as n, locales as r } from "./_virtual/_virtual_i18n.js";
|
|
4
|
+
import { HostProvider as i } from "./lib/host.js";
|
|
5
|
+
import { setShownPath as a } from "./lib/listSearch.js";
|
|
6
|
+
import { useRouter as o } from "@tanstack/react-router";
|
|
7
|
+
import { use as s, useEffect as c, useRef as l } from "react";
|
|
8
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
9
|
+
import { LocaleProvider as f, useSetLocale as p } from "@parallelworks/i18n/react";
|
|
10
|
+
import { QueryClientProvider as m } from "@tanstack/react-query";
|
|
10
11
|
// src/hostedApp.tsx
|
|
11
|
-
function
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
host:
|
|
14
|
-
children: /* @__PURE__ */
|
|
15
|
-
locale:
|
|
16
|
-
children: /* @__PURE__ */
|
|
17
|
-
client:
|
|
12
|
+
function h({ host: n, queryClient: r, children: a }) {
|
|
13
|
+
return /* @__PURE__ */ u(i, {
|
|
14
|
+
host: n,
|
|
15
|
+
children: /* @__PURE__ */ u(y, {
|
|
16
|
+
locale: n.locale,
|
|
17
|
+
children: /* @__PURE__ */ d(m, {
|
|
18
|
+
client: r,
|
|
18
19
|
children: [
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
identity:
|
|
21
|
-
queryClient:
|
|
20
|
+
/* @__PURE__ */ u(x, {
|
|
21
|
+
identity: n.identity,
|
|
22
|
+
queryClient: r
|
|
22
23
|
}),
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ u(S, {}),
|
|
25
|
+
/* @__PURE__ */ u(C, {}),
|
|
26
|
+
/* @__PURE__ */ u(e, {}),
|
|
27
|
+
/* @__PURE__ */ u(t, { children: /* @__PURE__ */ u("div", {
|
|
26
28
|
className: "tandem flex h-full min-h-0 flex-col",
|
|
27
|
-
children:
|
|
29
|
+
children: a
|
|
28
30
|
}) })
|
|
29
31
|
]
|
|
30
32
|
})
|
|
31
33
|
})
|
|
32
34
|
});
|
|
33
35
|
}
|
|
34
|
-
var
|
|
35
|
-
function
|
|
36
|
-
let
|
|
37
|
-
return
|
|
36
|
+
var g = /* @__PURE__ */ new Map();
|
|
37
|
+
function _(e) {
|
|
38
|
+
let t = g.get(e);
|
|
39
|
+
return t || (t = n(e).catch(() => n("en")), g.set(e, t)), t;
|
|
38
40
|
}
|
|
39
|
-
var
|
|
40
|
-
function
|
|
41
|
-
let r =
|
|
42
|
-
return /* @__PURE__ */
|
|
41
|
+
var v = (e) => r.includes(e) ? e : "en";
|
|
42
|
+
function y({ locale: e, children: t }) {
|
|
43
|
+
let r = l(v(e)), i = s(_(r.current));
|
|
44
|
+
return /* @__PURE__ */ d(f, {
|
|
43
45
|
initial: {
|
|
44
46
|
locale: r.current,
|
|
45
47
|
messages: i
|
|
46
48
|
},
|
|
47
|
-
load:
|
|
49
|
+
load: n,
|
|
48
50
|
fallbackLocale: "en",
|
|
49
|
-
children: [/* @__PURE__ */
|
|
51
|
+
children: [/* @__PURE__ */ u(b, { locale: v(e) }), t]
|
|
50
52
|
});
|
|
51
53
|
}
|
|
52
|
-
function
|
|
53
|
-
let t =
|
|
54
|
-
return
|
|
54
|
+
function b({ locale: e }) {
|
|
55
|
+
let t = p();
|
|
56
|
+
return c(() => {
|
|
55
57
|
t(e);
|
|
56
58
|
}, [e, t]), null;
|
|
57
59
|
}
|
|
58
|
-
function
|
|
59
|
-
let n =
|
|
60
|
-
return
|
|
60
|
+
function x({ identity: e, queryClient: t }) {
|
|
61
|
+
let n = l(e);
|
|
62
|
+
return c(() => {
|
|
61
63
|
n.current !== e && t.clear(), n.current = e;
|
|
62
64
|
}, [e, t]), null;
|
|
63
65
|
}
|
|
64
|
-
function x() {
|
|
65
|
-
let e = a();
|
|
66
|
-
return s(() => (i(e.state.location.pathname), e.subscribe("onResolved", ({ toLocation: e }) => i(e.pathname))), [e]), null;
|
|
67
|
-
}
|
|
68
66
|
function S() {
|
|
69
|
-
|
|
67
|
+
let e = o();
|
|
68
|
+
return c(() => (a(e.state.location.pathname), e.subscribe("onResolved", ({ toLocation: e }) => a(e.pathname))), [e]), null;
|
|
69
|
+
}
|
|
70
|
+
function C() {
|
|
71
|
+
return c(() => (document.body.dataset.tandem = "", () => {
|
|
70
72
|
delete document.body.dataset.tandem;
|
|
71
73
|
}), []), null;
|
|
72
74
|
}
|
|
73
|
-
export {
|
|
75
|
+
export { h as default };
|
package/lib/pageTitle.js
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
|
-
import { useEffect as e } from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { useEffect as e, useSyncExternalStore as t } from "react";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
// src/lib/pageTitle.tsx
|
|
4
|
+
var r, i = /* @__PURE__ */ new Set();
|
|
5
|
+
function a(e) {
|
|
6
|
+
r = e;
|
|
7
|
+
for (let e of i) e();
|
|
8
|
+
}
|
|
9
|
+
function o(e) {
|
|
10
|
+
return i.add(e), () => {
|
|
11
|
+
i.delete(e);
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
function s(...t) {
|
|
15
|
+
let n = [...t.filter((e) => !!e), "Tandem"].join(" · ");
|
|
16
|
+
e(() => (a(n), () => a(void 0)), [n]);
|
|
17
|
+
}
|
|
18
|
+
function c() {
|
|
19
|
+
let e = t(o, () => r);
|
|
20
|
+
return e ? /* @__PURE__ */ n("title", { children: e }) : null;
|
|
21
|
+
}
|
|
22
|
+
export { c as PageTitle, s as usePageTitle };
|