@parallelworks/tandem-web 0.160.0 → 0.161.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/_virtual/_virtual_i18n/en/common.js +5 -0
- package/_virtual/_virtual_i18n/es/common.js +5 -0
- package/_virtual/_virtual_i18n/ja/common.js +5 -0
- package/_virtual/_virtual_i18n/ko/common.js +5 -0
- package/_virtual/_virtual_i18n/zh/common.js +5 -0
- package/api/mutations.js +16 -9
- package/api/queries.js +194 -140
- package/components/CommandPalette.js +1 -1
- package/components/CustomerRequests.js +81 -85
- package/components/IssueFilters.js +87 -87
- package/components/IssueGroupList.js +72 -0
- package/components/IssueRow.js +70 -66
- package/components/IssueSection.js +30 -20
- package/components/NewIssueDialog.js +175 -175
- package/components/NewProjectDialog.js +64 -64
- package/lib/boardMove.js +13 -3
- package/lib/groupList.js +14 -0
- package/package.json +2 -1
- package/pages/issues.js +393 -340
- package/routes/_workspace/issues/index.js +1 -1
- package/routes/_workspace/teams/_key/settings2.js +180 -164
- package/routes/_workspace2.js +3 -3
- package/routes/_workspace3.js +11 -10
package/routes/_workspace2.js
CHANGED
|
@@ -2,7 +2,7 @@ import { api as e } from "../api/client.js";
|
|
|
2
2
|
import { useHost as t } from "../lib/host.js";
|
|
3
3
|
import { Route as n } from "./_workspace.js";
|
|
4
4
|
import { useLocation as r, useNavigate as i } from "../lib/router.js";
|
|
5
|
-
import { inboxQuery as a, issuesQuery as o, meQuery as s,
|
|
5
|
+
import { inboxQuery as a, issuesQuery as o, meQuery as s, myTeamsQuery as c, notificationsQuery as l, workspaceQuery as ee } from "../api/queries.js";
|
|
6
6
|
import { useFavorites as u } from "../lib/favorites.js";
|
|
7
7
|
import { copyItem as d, useLinkItems as te } from "../lib/menus.js";
|
|
8
8
|
import { docKey as f } from "../lib/docs.js";
|
|
@@ -50,7 +50,7 @@ function et(e, t) {
|
|
|
50
50
|
}
|
|
51
51
|
var V = "inline-flex h-8 min-w-8 items-center justify-center rounded-md border border-[color-mix(in_oklab,currentColor_20%,transparent)] bg-[color-mix(in_oklab,currentColor_6%,transparent)] text-sm font-medium hover:bg-[color-mix(in_oklab,currentColor_12%,transparent)]", tt = "absolute top-1.5 right-3 size-2 rounded-full bg-primary", H = (...e) => e.filter(Boolean).join(" ");
|
|
52
52
|
function U() {
|
|
53
|
-
let { workspace: f } = n.useParams(), { data: p } = I(s), { data: g } = I(ee(f)), { data: _ } = I(
|
|
53
|
+
let { workspace: f } = n.useParams(), { data: p } = I(s), { data: g } = I(ee(f)), { data: _ } = I(c(f)), v = t(), [y, b] = A(null), [Se, x] = A(!1), w = ve(f, "manage_teams"), { canInstall: Ie, install: Be } = Pe(), B = i(), $e = Xe(), U = Ue(), W = u(f), G = j("workspace"), K = j("common"), mt = Ye(), q = j("favorites"), ht = j("roles"), gt = te(), _t = (e) => [
|
|
54
54
|
{
|
|
55
55
|
label: K("open"),
|
|
56
56
|
onClick: () => B({
|
|
@@ -117,7 +117,7 @@ function U() {
|
|
|
117
117
|
}), X = J.pathname.startsWith(`/${f}/settings`), { data: Dt = [] } = F(a(f)), Ot = _.some((e) => e.triageEnabled && !e.archivedAt), { data: kt } = F({
|
|
118
118
|
...o(f, { triage: "only" }),
|
|
119
119
|
enabled: Ot
|
|
120
|
-
}), At = (e) => kt?.issues.filter((t) => t.teamId === e).length ?? 0, { data: jt } = F(
|
|
120
|
+
}), At = (e) => kt?.issues.filter((t) => t.teamId === e).length ?? 0, { data: jt } = F(l(f)), Mt = jt?.unread ?? 0;
|
|
121
121
|
Le();
|
|
122
122
|
let { key: Nt } = Ge({ strict: !1 }), Z = qe((e) => b({
|
|
123
123
|
...Nt && { team: Nt },
|
package/routes/_workspace3.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { appPath as e } from "../lib/base.js";
|
|
2
2
|
import { redirect as t } from "../lib/router.js";
|
|
3
|
-
import { docsQuery as n, knowledgeQuery as r, meQuery as i, membersQuery as a,
|
|
3
|
+
import { docsQuery as n, knowledgeQuery as r, meQuery as i, membersQuery as a, myTeamsQuery as o, teamsQuery as s, workspaceQuery as c } from "../api/queries.js";
|
|
4
4
|
// src/routes/$workspace.tsx?tsr-split=loader
|
|
5
|
-
var
|
|
6
|
-
if (!await
|
|
5
|
+
var l = async ({ context: { queryClient: l }, params: u, location: d }) => {
|
|
6
|
+
if (!await l.ensureQueryData(i)) throw t({
|
|
7
7
|
to: "/login",
|
|
8
|
-
search: { next: e(
|
|
8
|
+
search: { next: e(d.href) }
|
|
9
9
|
});
|
|
10
10
|
await Promise.all([
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
l.ensureQueryData(c(u.workspace)),
|
|
12
|
+
l.ensureQueryData(s(u.workspace)),
|
|
13
|
+
l.ensureQueryData(o(u.workspace)),
|
|
14
|
+
l.ensureQueryData(a(u.workspace)),
|
|
15
|
+
l.ensureQueryData(r(u.workspace)),
|
|
16
|
+
l.ensureQueryData(n(u.workspace, { top: !0 }))
|
|
16
17
|
]);
|
|
17
18
|
};
|
|
18
|
-
export {
|
|
19
|
+
export { l as loader };
|