@burdenoff/microfe-healthybowl 2026.706.4 → 2026.706.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.
@@ -11,11 +11,12 @@ import { useCallback as c, useMemo as l } from "react";
11
11
  import { Bug as u, ListChecks as d, MapPin as f, PawPrint as p, Sprout as m } from "lucide-react";
12
12
  import { useSearchParams as h } from "react-router-dom";
13
13
  import { jsx as g } from "react/jsx-runtime";
14
- import { ApolloProvider as _ } from "@apollo/client/react";
15
- import { useSafeGatewayClient as v } from "@burdenoff/fe-libs/shared/graphql";
16
- import { useWorkspaceDirectory as y } from "@burdenoff/fe-libs/sharing";
14
+ import { gql as _ } from "@apollo/client";
15
+ import { ApolloProvider as v } from "@apollo/client/react";
16
+ import { useSafeGatewayClient as y } from "@burdenoff/fe-libs/shared/graphql";
17
+ import { useWorkspaceDirectory as b } from "@burdenoff/fe-libs/sharing";
17
18
  //#region src/healthybowl/pages/tasks/TasksPage.tsx
18
- var b = (e) => {
19
+ var x = (e) => {
19
20
  switch (e) {
20
21
  case "FIELD": return /* @__PURE__ */ g(f, {
21
22
  className: "h-3 w-3",
@@ -35,43 +36,57 @@ var b = (e) => {
35
36
  });
36
37
  default: return null;
37
38
  }
38
- }, x = () => {
39
- let { workspaceId: u, currentUser: f, authToken: p, apiGatewayUrl: m } = e(), x = v("workspace"), S = f?.id, [C] = h(), w = C.get("item") ?? void 0, { projectId: T, loading: E, error: D, retry: O } = a(x, u, S), { members: k } = y({
39
+ }, S = _`
40
+ mutation HealthyBowlNotifyMention($input: HealthyBowlNotifyMentionInput!) {
41
+ healthybowlNotifyMention(input: $input)
42
+ }
43
+ `, C = () => {
44
+ let { workspaceId: u, currentUser: f, authToken: p, apiGatewayUrl: m } = e(), _ = y("workspace"), C = f?.id, [w] = h(), T = w.get("item") ?? void 0, { projectId: E, loading: D, error: O, retry: k } = a(_, u, C), { members: A } = b({
40
45
  workspaceId: u,
41
46
  authToken: p,
42
47
  apiGatewayUrl: m
43
- }), A = l(() => k.map((e) => ({
48
+ }), j = l(() => A.map((e) => ({
44
49
  id: e.id,
45
50
  name: e.name
46
- })), [k]), j = l(() => new Map(k.map((e) => [e.id, e.name])), [k]), M = c((e) => {
47
- let t = j.get(e);
51
+ })), [A]), M = l(() => new Map(A.map((e) => [e.id, e.name])), [A]), N = c((e) => {
52
+ let t = M.get(e);
48
53
  return t ? { name: t } : null;
49
- }, [j]), N = s(), { canManage: P } = o(u), F = l(() => x ? /* @__PURE__ */ g(_, {
50
- client: x,
54
+ }, [M]), P = s(), { canManage: F } = o(u), I = c((e) => {
55
+ !_ || e.mentionedIds.length === 0 || _.mutate({
56
+ mutation: S,
57
+ variables: { input: {
58
+ taskId: e.entityId,
59
+ mentionedUserIds: e.mentionedIds
60
+ } }
61
+ }).catch(() => {});
62
+ }, [_]), L = l(() => _ ? /* @__PURE__ */ g(v, {
63
+ client: _,
51
64
  children: /* @__PURE__ */ g(i, {
52
65
  workspaceId: u,
53
- projectId: T ?? void 0,
54
- readonly: !P,
55
- currentActorId: S,
66
+ projectId: E ?? void 0,
67
+ readonly: !F,
68
+ currentActorId: C,
56
69
  commentsEntityType: "planmagnet_workitem",
57
- openItemId: w,
58
- labels: N,
59
- assigneeOptions: A,
60
- resolveAssignee: M,
70
+ onMention: I,
71
+ openItemId: T,
72
+ labels: P,
73
+ assigneeOptions: j,
74
+ resolveAssignee: N,
61
75
  linkSourceProduct: "healthybowl",
62
- renderLinkIcon: b,
76
+ renderLinkIcon: x,
63
77
  onTaskSaved: () => {}
64
78
  })
65
79
  }) : null, [
66
- x,
80
+ _,
67
81
  u,
82
+ E,
83
+ F,
84
+ C,
68
85
  T,
69
86
  P,
70
- S,
71
- w,
87
+ j,
72
88
  N,
73
- A,
74
- M
89
+ I
75
90
  ]);
76
91
  return /* @__PURE__ */ g(t, {
77
92
  title: "Farm Tasks",
@@ -83,17 +98,17 @@ var b = (e) => {
83
98
  className: "size-5",
84
99
  "aria-hidden": "true"
85
100
  }),
86
- children: x ? D ? /* @__PURE__ */ g(n, {
101
+ children: _ ? O ? /* @__PURE__ */ g(n, {
87
102
  title: "Couldn't open Farm Tasks",
88
- description: D.message,
89
- onRetry: O
90
- }) : E || !T ? /* @__PURE__ */ g(r, {}) : F : /* @__PURE__ */ g(n, {
103
+ description: O.message,
104
+ onRetry: k
105
+ }) : D || !E ? /* @__PURE__ */ g(r, {}) : L : /* @__PURE__ */ g(n, {
91
106
  title: "Tasks unavailable",
92
107
  description: "The workspace connection isn't ready. Reload the page or reselect your workspace."
93
108
  })
94
109
  });
95
110
  };
96
111
  //#endregion
97
- export { x as TasksPage };
112
+ export { C as TasksPage };
98
113
 
99
114
  //# sourceMappingURL=TasksPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TasksPage.js","names":[],"sources":["../../../../src/healthybowl/pages/tasks/TasksPage.tsx"],"sourcesContent":["/**\n * TasksPage — HealthyBowl \"Farm Tasks\".\n *\n * Embeds the composed `<TasksPageCore/>` from `@burdenoff/planmagnet-fe-sdk`\n * (kanban board + create flow + click-to-open detail with inline edit) so farm\n * teams can plan and track work items backed by `wspace-planmagnet-svc`.\n *\n * Wiring:\n * - workspaceId — from the HealthyBowl workspace context (`useHealthyBowl`).\n * - Apollo — the app shell's WORKSPACE gateway client (`useSafeGatewayClient\n * ('workspace')`), the same authed client every other HB page uses. The SDK\n * core is BYO-Apollo, so we wrap it in an `<ApolloProvider>` bound to that\n * client (rather than relying on the ambient default) to be explicit.\n * - projectId — a per-workspace \"Farm Tasks\" project, get-or-created via\n * `useDefaultTaskProject`. Farmers never see PlanMagnet's project concept.\n *\n * Theming: the SDK renders with semantic tokens (`bg-primary`, `text-foreground`,\n * `text-destructive`, `border-border`, …) which resolve against fe-libs' shipped\n * tokens, so the forest theme is inherited — no SDK stylesheet import and no raw\n * colors.\n *\n * Host wiring beyond Apollo + project:\n * - labels — HB's i18n catalog via `useFarmTaskLabels` (6 languages).\n * - assignee picker — the real workspace member directory\n * (`useWorkspaceDirectory`), so tasks show names/avatars and the create/edit\n * forms offer a member dropdown instead of a raw actor-id field.\n * - readonly — Viewers/Members (read-only on `planmagnet-workitem`) get\n * a read-only board via `useCanManageTasks` (fails open; server enforces).\n * - currentActorId — enables the toolbar \"My tasks\" filter.\n * - entity-linked create — shipped as `CreateFarmTaskButton` on Field/Crop/\n * Animal detail pages (WorkItemLink); no longer a TODO.\n *\n * @module healthybowl\n */\n\nimport { useCallback, useMemo, type FC, type ReactNode } from 'react';\nimport { useSearchParams } from 'react-router-dom';\nimport { ApolloProvider } from '@apollo/client/react';\nimport { useSafeGatewayClient } from '@burdenoff/fe-libs/shared/graphql';\nimport { useWorkspaceDirectory } from '@burdenoff/fe-libs/sharing';\nimport { TasksPageCore, type AssigneeOption } from '@burdenoff/planmagnet-fe-sdk';\nimport { Bug, ListChecks, MapPin, PawPrint, Sprout } from 'lucide-react';\nimport { PageLayout, ErrorState, PageLoader } from '../../components';\nimport { useHealthyBowl } from '../../context/HealthyBowlContext';\nimport { useDefaultTaskProject } from './useDefaultTaskProject';\nimport { useFarmTaskLabels } from './useFarmTaskLabels';\nimport { useCanManageTasks } from './useCanManageTasks';\n\n/**\n * Farm icon per linked-entity type, so a task's linked-record chip shows a\n * leaf / field / animal / pest glyph (the SDK falls back to a generic link\n * glyph for anything unmapped). Module-level so it's referentially stable.\n */\nconst renderFarmLinkIcon = (entityType: string): ReactNode => {\n switch (entityType) {\n case 'FIELD':\n return <MapPin className=\"h-3 w-3\" aria-hidden=\"true\" />;\n case 'CROP':\n return <Sprout className=\"h-3 w-3\" aria-hidden=\"true\" />;\n case 'ANIMAL':\n return <PawPrint className=\"h-3 w-3\" aria-hidden=\"true\" />;\n case 'PEST':\n return <Bug className=\"h-3 w-3\" aria-hidden=\"true\" />;\n default:\n return null;\n }\n};\n\nexport const TasksPage: FC = () => {\n const { workspaceId, currentUser, authToken, apiGatewayUrl } = useHealthyBowl();\n // The workspace gateway client the whole app already uses (dual-token auth +\n // x-workspace-id). Null only if the shell's GatewayProvider isn't mounted.\n const workspaceClient = useSafeGatewayClient('workspace');\n const ownerId = currentUser?.id;\n // Deep-link from the calendar: `/healthybowl/tasks?item=<id>` opens that task.\n const [searchParams] = useSearchParams();\n const openItemId = searchParams.get('item') ?? undefined;\n\n const {\n projectId,\n loading: projectLoading,\n error: projectError,\n retry,\n } = useDefaultTaskProject(workspaceClient, workspaceId, ownerId);\n\n // Farm-team member directory → real assignee names/avatars + a picker.\n const { members } = useWorkspaceDirectory({ workspaceId, authToken, apiGatewayUrl });\n const assigneeOptions = useMemo<AssigneeOption[]>(() => members.map((m) => ({ id: m.id, name: m.name })), [members]);\n const memberNameById = useMemo(() => new Map(members.map((m) => [m.id, m.name])), [members]);\n const resolveAssignee = useCallback(\n (id: string) => {\n const name = memberNameById.get(id);\n return name ? { name } : null;\n },\n [memberNameById]\n );\n\n // HB i18n → SDK label contract (6 languages, English fallback).\n const labels = useFarmTaskLabels();\n // Read-only for Viewers/Members (fails open; server still enforces RBAC).\n const { canManage } = useCanManageTasks(workspaceId);\n\n // The SDK core is BYO-Apollo: give it an ApolloProvider explicitly bound to\n // the workspace client so it never depends on the ambient default gateway.\n const board = useMemo(() => {\n if (!workspaceClient) return null;\n return (\n <ApolloProvider client={workspaceClient}>\n <TasksPageCore\n workspaceId={workspaceId}\n projectId={projectId ?? undefined}\n readonly={!canManage}\n currentActorId={ownerId}\n commentsEntityType=\"planmagnet_workitem\"\n openItemId={openItemId}\n labels={labels}\n assigneeOptions={assigneeOptions}\n resolveAssignee={resolveAssignee}\n linkSourceProduct=\"healthybowl\"\n renderLinkIcon={renderFarmLinkIcon}\n onTaskSaved={() => {\n // The SDK already refetches its own board list after a save; nothing\n // else in HB depends on this data yet, so this is a deliberate no-op.\n }}\n />\n </ApolloProvider>\n );\n }, [\n workspaceClient,\n workspaceId,\n projectId,\n canManage,\n ownerId,\n openItemId,\n labels,\n assigneeOptions,\n resolveAssignee,\n ]);\n\n return (\n <PageLayout\n title=\"Farm Tasks\"\n titleAccent=\"Tasks\"\n description=\"Plan and track farm work — planting, harvesting, maintenance, and more — on a shared board.\"\n helpPrompt=\"How do I use Farm Tasks to plan and track work on my farm?\"\n purpose=\"Farm Tasks is your team's shared to-do board. Create tasks, set priority and due dates, drag them across columns as work progresses, and open any task for details.\"\n purposeIcon={<ListChecks className=\"size-5\" aria-hidden=\"true\" />}\n >\n {!workspaceClient ? (\n <ErrorState\n title=\"Tasks unavailable\"\n description=\"The workspace connection isn't ready. Reload the page or reselect your workspace.\"\n />\n ) : projectError ? (\n <ErrorState title=\"Couldn't open Farm Tasks\" description={projectError.message} onRetry={retry} />\n ) : projectLoading || !projectId ? (\n <PageLoader />\n ) : (\n board\n )}\n </PageLayout>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AAqDA,IAAM,KAAsB,MAAkC;AAC5D,SAAQ,GAAR;EACE,KAAK,QACH,QAAO,kBAAC,GAAD;GAAQ,WAAU;GAAU,eAAY;GAAS,CAAA;EAC1D,KAAK,OACH,QAAO,kBAAC,GAAD;GAAQ,WAAU;GAAU,eAAY;GAAS,CAAA;EAC1D,KAAK,SACH,QAAO,kBAAC,GAAD;GAAU,WAAU;GAAU,eAAY;GAAS,CAAA;EAC5D,KAAK,OACH,QAAO,kBAAC,GAAD;GAAK,WAAU;GAAU,eAAY;GAAS,CAAA;EACvD,QACE,QAAO;;GAIA,UAAsB;CACjC,IAAM,EAAE,gBAAa,gBAAa,cAAW,qBAAkB,GAAgB,EAGzE,IAAkB,EAAqB,YAAY,EACnD,IAAU,GAAa,IAEvB,CAAC,KAAgB,GAAiB,EAClC,IAAa,EAAa,IAAI,OAAO,IAAI,KAAA,GAEzC,EACJ,cACA,SAAS,GACT,OAAO,GACP,aACE,EAAsB,GAAiB,GAAa,EAAQ,EAG1D,EAAE,eAAY,EAAsB;EAAE;EAAa;EAAW;EAAe,CAAC,EAC9E,IAAkB,QAAgC,EAAQ,KAAK,OAAO;EAAE,IAAI,EAAE;EAAI,MAAM,EAAE;EAAM,EAAE,EAAE,CAAC,EAAQ,CAAC,EAC9G,IAAiB,QAAc,IAAI,IAAI,EAAQ,KAAK,MAAM,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,EAAQ,CAAC,EACtF,IAAkB,GACrB,MAAe;EACd,IAAM,IAAO,EAAe,IAAI,EAAG;AACnC,SAAO,IAAO,EAAE,SAAM,GAAG;IAE3B,CAAC,EAAe,CACjB,EAGK,IAAS,GAAmB,EAE5B,EAAE,iBAAc,EAAkB,EAAY,EAI9C,IAAQ,QACP,IAEH,kBAAC,GAAD;EAAgB,QAAQ;YACtB,kBAAC,GAAD;GACe;GACb,WAAW,KAAa,KAAA;GACxB,UAAU,CAAC;GACX,gBAAgB;GAChB,oBAAmB;GACP;GACJ;GACS;GACA;GACjB,mBAAkB;GAClB,gBAAgB;GAChB,mBAAmB;GAInB,CAAA;EACa,CAAA,GApBU,MAsB5B;EACD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC;AAEF,QACE,kBAAC,GAAD;EACE,OAAM;EACN,aAAY;EACZ,aAAY;EACZ,YAAW;EACX,SAAQ;EACR,aAAa,kBAAC,GAAD;GAAY,WAAU;GAAS,eAAY;GAAS,CAAA;YAE/D,IAKE,IACF,kBAAC,GAAD;GAAY,OAAM;GAA2B,aAAa,EAAa;GAAS,SAAS;GAAS,CAAA,GAChG,KAAkB,CAAC,IACrB,kBAAC,GAAD,EAAc,CAAA,GAEd,IATA,kBAAC,GAAD;GACE,OAAM;GACN,aAAY;GACZ,CAAA;EAQO,CAAA"}
1
+ {"version":3,"file":"TasksPage.js","names":[],"sources":["../../../../src/healthybowl/pages/tasks/TasksPage.tsx"],"sourcesContent":["/**\n * TasksPage — HealthyBowl \"Farm Tasks\".\n *\n * Embeds the composed `<TasksPageCore/>` from `@burdenoff/planmagnet-fe-sdk`\n * (kanban board + create flow + click-to-open detail with inline edit) so farm\n * teams can plan and track work items backed by `wspace-planmagnet-svc`.\n *\n * Wiring:\n * - workspaceId — from the HealthyBowl workspace context (`useHealthyBowl`).\n * - Apollo — the app shell's WORKSPACE gateway client (`useSafeGatewayClient\n * ('workspace')`), the same authed client every other HB page uses. The SDK\n * core is BYO-Apollo, so we wrap it in an `<ApolloProvider>` bound to that\n * client (rather than relying on the ambient default) to be explicit.\n * - projectId — a per-workspace \"Farm Tasks\" project, get-or-created via\n * `useDefaultTaskProject`. Farmers never see PlanMagnet's project concept.\n *\n * Theming: the SDK renders with semantic tokens (`bg-primary`, `text-foreground`,\n * `text-destructive`, `border-border`, …) which resolve against fe-libs' shipped\n * tokens, so the forest theme is inherited — no SDK stylesheet import and no raw\n * colors.\n *\n * Host wiring beyond Apollo + project:\n * - labels — HB's i18n catalog via `useFarmTaskLabels` (6 languages).\n * - assignee picker — the real workspace member directory\n * (`useWorkspaceDirectory`), so tasks show names/avatars and the create/edit\n * forms offer a member dropdown instead of a raw actor-id field.\n * - readonly — Viewers/Members (read-only on `planmagnet-workitem`) get\n * a read-only board via `useCanManageTasks` (fails open; server enforces).\n * - currentActorId — enables the toolbar \"My tasks\" filter.\n * - entity-linked create — shipped as `CreateFarmTaskButton` on Field/Crop/\n * Animal detail pages (WorkItemLink); no longer a TODO.\n *\n * @module healthybowl\n */\n\nimport { useCallback, useMemo, type FC, type ReactNode } from 'react';\nimport { useSearchParams } from 'react-router-dom';\nimport { gql } from '@apollo/client';\nimport { ApolloProvider } from '@apollo/client/react';\nimport { useSafeGatewayClient } from '@burdenoff/fe-libs/shared/graphql';\nimport { useWorkspaceDirectory } from '@burdenoff/fe-libs/sharing';\nimport { TasksPageCore, type AssigneeOption } from '@burdenoff/planmagnet-fe-sdk';\nimport { Bug, ListChecks, MapPin, PawPrint, Sprout } from 'lucide-react';\nimport { PageLayout, ErrorState, PageLoader } from '../../components';\nimport { useHealthyBowl } from '../../context/HealthyBowlContext';\nimport { useDefaultTaskProject } from './useDefaultTaskProject';\nimport { useFarmTaskLabels } from './useFarmTaskLabels';\nimport { useCanManageTasks } from './useCanManageTasks';\n\n/**\n * Farm icon per linked-entity type, so a task's linked-record chip shows a\n * leaf / field / animal / pest glyph (the SDK falls back to a generic link\n * glyph for anything unmapped). Module-level so it's referentially stable.\n */\nconst renderFarmLinkIcon = (entityType: string): ReactNode => {\n switch (entityType) {\n case 'FIELD':\n return <MapPin className=\"h-3 w-3\" aria-hidden=\"true\" />;\n case 'CROP':\n return <Sprout className=\"h-3 w-3\" aria-hidden=\"true\" />;\n case 'ANIMAL':\n return <PawPrint className=\"h-3 w-3\" aria-hidden=\"true\" />;\n case 'PEST':\n return <Bug className=\"h-3 w-3\" aria-hidden=\"true\" />;\n default:\n return null;\n }\n};\n\n/**\n * IN_APP-notify @-mentioned members of a task comment. The comment lives in the\n * shared conversations service (which can't carry the workspace member ids), so\n * the SDK hands us the mentioned ids via `onMention` and wspace-healthybowl-svc\n * dispatches the notifications with its own service identity.\n */\nconst NOTIFY_MENTION = gql`\n mutation HealthyBowlNotifyMention($input: HealthyBowlNotifyMentionInput!) {\n healthybowlNotifyMention(input: $input)\n }\n`;\n\nexport const TasksPage: FC = () => {\n const { workspaceId, currentUser, authToken, apiGatewayUrl } = useHealthyBowl();\n // The workspace gateway client the whole app already uses (dual-token auth +\n // x-workspace-id). Null only if the shell's GatewayProvider isn't mounted.\n const workspaceClient = useSafeGatewayClient('workspace');\n const ownerId = currentUser?.id;\n // Deep-link from the calendar: `/healthybowl/tasks?item=<id>` opens that task.\n const [searchParams] = useSearchParams();\n const openItemId = searchParams.get('item') ?? undefined;\n\n const {\n projectId,\n loading: projectLoading,\n error: projectError,\n retry,\n } = useDefaultTaskProject(workspaceClient, workspaceId, ownerId);\n\n // Farm-team member directory → real assignee names/avatars + a picker.\n const { members } = useWorkspaceDirectory({ workspaceId, authToken, apiGatewayUrl });\n const assigneeOptions = useMemo<AssigneeOption[]>(() => members.map((m) => ({ id: m.id, name: m.name })), [members]);\n const memberNameById = useMemo(() => new Map(members.map((m) => [m.id, m.name])), [members]);\n const resolveAssignee = useCallback(\n (id: string) => {\n const name = memberNameById.get(id);\n return name ? { name } : null;\n },\n [memberNameById]\n );\n\n // HB i18n → SDK label contract (6 languages, English fallback).\n const labels = useFarmTaskLabels();\n // Read-only for Viewers/Members (fails open; server still enforces RBAC).\n const { canManage } = useCanManageTasks(workspaceId);\n\n // @mention notifications: the SDK fires this after a comment @-mentions\n // members; dispatch IN_APP notifications via wspace-healthybowl-svc (which\n // notifies with its service identity). Fire-and-forget — never blocks the UI.\n const handleMention = useCallback(\n (payload: { mentionedIds: string[]; entityId: string }) => {\n if (!workspaceClient || payload.mentionedIds.length === 0) return;\n void workspaceClient\n .mutate({\n mutation: NOTIFY_MENTION,\n variables: {\n input: { taskId: payload.entityId, mentionedUserIds: payload.mentionedIds },\n },\n })\n .catch(() => {\n // Best-effort: a notification failure must never disrupt commenting.\n });\n },\n [workspaceClient]\n );\n\n // The SDK core is BYO-Apollo: give it an ApolloProvider explicitly bound to\n // the workspace client so it never depends on the ambient default gateway.\n const board = useMemo(() => {\n if (!workspaceClient) return null;\n return (\n <ApolloProvider client={workspaceClient}>\n <TasksPageCore\n workspaceId={workspaceId}\n projectId={projectId ?? undefined}\n readonly={!canManage}\n currentActorId={ownerId}\n commentsEntityType=\"planmagnet_workitem\"\n onMention={handleMention}\n openItemId={openItemId}\n labels={labels}\n assigneeOptions={assigneeOptions}\n resolveAssignee={resolveAssignee}\n linkSourceProduct=\"healthybowl\"\n renderLinkIcon={renderFarmLinkIcon}\n onTaskSaved={() => {\n // The SDK already refetches its own board list after a save; nothing\n // else in HB depends on this data yet, so this is a deliberate no-op.\n }}\n />\n </ApolloProvider>\n );\n }, [\n workspaceClient,\n workspaceId,\n projectId,\n canManage,\n ownerId,\n openItemId,\n labels,\n assigneeOptions,\n resolveAssignee,\n handleMention,\n ]);\n\n return (\n <PageLayout\n title=\"Farm Tasks\"\n titleAccent=\"Tasks\"\n description=\"Plan and track farm work — planting, harvesting, maintenance, and more — on a shared board.\"\n helpPrompt=\"How do I use Farm Tasks to plan and track work on my farm?\"\n purpose=\"Farm Tasks is your team's shared to-do board. Create tasks, set priority and due dates, drag them across columns as work progresses, and open any task for details.\"\n purposeIcon={<ListChecks className=\"size-5\" aria-hidden=\"true\" />}\n >\n {!workspaceClient ? (\n <ErrorState\n title=\"Tasks unavailable\"\n description=\"The workspace connection isn't ready. Reload the page or reselect your workspace.\"\n />\n ) : projectError ? (\n <ErrorState title=\"Couldn't open Farm Tasks\" description={projectError.message} onRetry={retry} />\n ) : projectLoading || !projectId ? (\n <PageLoader />\n ) : (\n board\n )}\n </PageLayout>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAsDA,IAAM,KAAsB,MAAkC;AAC5D,SAAQ,GAAR;EACE,KAAK,QACH,QAAO,kBAAC,GAAD;GAAQ,WAAU;GAAU,eAAY;GAAS,CAAA;EAC1D,KAAK,OACH,QAAO,kBAAC,GAAD;GAAQ,WAAU;GAAU,eAAY;GAAS,CAAA;EAC1D,KAAK,SACH,QAAO,kBAAC,GAAD;GAAU,WAAU;GAAU,eAAY;GAAS,CAAA;EAC5D,KAAK,OACH,QAAO,kBAAC,GAAD;GAAK,WAAU;GAAU,eAAY;GAAS,CAAA;EACvD,QACE,QAAO;;GAUP,IAAiB,CAAG;;;;GAMb,UAAsB;CACjC,IAAM,EAAE,gBAAa,gBAAa,cAAW,qBAAkB,GAAgB,EAGzE,IAAkB,EAAqB,YAAY,EACnD,IAAU,GAAa,IAEvB,CAAC,KAAgB,GAAiB,EAClC,IAAa,EAAa,IAAI,OAAO,IAAI,KAAA,GAEzC,EACJ,cACA,SAAS,GACT,OAAO,GACP,aACE,EAAsB,GAAiB,GAAa,EAAQ,EAG1D,EAAE,eAAY,EAAsB;EAAE;EAAa;EAAW;EAAe,CAAC,EAC9E,IAAkB,QAAgC,EAAQ,KAAK,OAAO;EAAE,IAAI,EAAE;EAAI,MAAM,EAAE;EAAM,EAAE,EAAE,CAAC,EAAQ,CAAC,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.tasks.failedToSave", "Failed to save"),
70
70
  failedToDelete: n("healthybowl.tasks.failedToDelete", "Failed to delete"),
71
71
  overdueLabel: n("healthybowl.tasks.overdueLabel", "Overdue"),
72
+ moveConfirmTitle: n("healthybowl.tasks.moveConfirmTitle", "Move task?"),
73
+ moveConfirmPrompt: n("healthybowl.tasks.moveConfirmPrompt", "Move \"{task}\" to {status}?"),
74
+ moveConfirm: n("healthybowl.tasks.moveConfirm", "Move"),
75
+ linkedRecordsLabel: n("healthybowl.tasks.linkedRecordsLabel", "Linked records"),
76
+ createdLabel: n("healthybowl.tasks.createdLabel", "Created"),
77
+ updatedLabel: n("healthybowl.tasks.updatedLabel", "Updated"),
78
+ parentLabel: n("healthybowl.tasks.parentLabel", "Parent"),
79
+ subtasksLabel: n("healthybowl.tasks.subtasksLabel", "Sub-tasks"),
80
+ addSubtask: n("healthybowl.tasks.addSubtask", "Add sub-task"),
81
+ commentsLabel: n("healthybowl.tasks.commentsLabel", "Comments"),
82
+ commentPlaceholder: n("healthybowl.tasks.commentPlaceholder", "Write a comment…"),
83
+ postComment: n("healthybowl.tasks.postComment", "Comment"),
84
+ posting: n("healthybowl.tasks.posting", "Posting…"),
85
+ noComments: n("healthybowl.tasks.noComments", "No comments yet"),
86
+ you: n("healthybowl.tasks.you", "You"),
87
+ editedTag: n("healthybowl.tasks.editedTag", "(edited)"),
88
+ failedToComment: n("healthybowl.tasks.failedToComment", "Failed to post comment"),
89
+ failedToDeleteComment: n("healthybowl.tasks.failedToDeleteComment", "Failed to delete comment"),
90
+ reply: n("healthybowl.tasks.reply", "Reply"),
91
+ replyPlaceholder: n("healthybowl.tasks.replyPlaceholder", "Write a reply…"),
92
+ repliesCount: n("healthybowl.tasks.repliesCount", "{n} replies"),
72
93
  status: {
73
94
  BACKLOG: n("healthybowl.tasks.status.BACKLOG", "Backlog"),
74
95
  TODO: n("healthybowl.tasks.status.TODO", "To Do"),
@@ -1 +1 @@
1
- {"version":3,"file":"useFarmTaskLabels.js","names":[],"sources":["../../../../src/healthybowl/pages/tasks/useFarmTaskLabels.ts"],"sourcesContent":["/**\n * useFarmTaskLabels — bridges HealthyBowl's i18n catalog into the\n * `@burdenoff/planmagnet-fe-sdk` Tasks UI.\n *\n * The SDK renders every string from an injectable `labels` contract\n * (`PartialTaskLabels`, English defaults otherwise). This hook builds that\n * object from HB's `useTr()` so Farm Tasks speaks all six HB languages\n * (en/zh/hi/es/ar/ta). Keys live under `healthybowl.tasks.*`; each `tr()` call\n * carries the English fallback, so the UI reads correctly even before those\n * keys land in the translation catalog (untranslated key → fallback).\n *\n * @module healthybowl\n */\n\nimport { useMemo } from 'react';\nimport type { PartialTaskLabels } from '@burdenoff/planmagnet-fe-sdk';\nimport { useTr } from '../../../shared/hooks/useTr';\n\nexport function useFarmTaskLabels(): PartialTaskLabels {\n const tr = useTr();\n return useMemo<PartialTaskLabels>(\n () => ({\n // Views / toolbar\n board: tr('healthybowl.tasks.board', 'Board'),\n list: tr('healthybowl.tasks.list', 'List'),\n timeline: tr('healthybowl.tasks.timeline', 'Timeline'),\n searchPlaceholder: tr('healthybowl.tasks.searchPlaceholder', 'Search tasks…'),\n allPriorities: tr('healthybowl.tasks.allPriorities', 'All priorities'),\n allTypes: tr('healthybowl.tasks.allTypes', 'All types'),\n newTask: tr('healthybowl.tasks.newTask', 'New task'),\n myTasks: tr('healthybowl.tasks.myTasks', 'My tasks'),\n\n // Board / list / timeline shared\n noTasks: tr('healthybowl.tasks.noTasks', 'No tasks'),\n noTasksFound: tr('healthybowl.tasks.noTasksFound', 'No tasks found.'),\n dropHere: tr('healthybowl.tasks.dropHere', 'Drop here'),\n unassigned: tr('healthybowl.tasks.unassigned', 'Unassigned'),\n assigned: tr('healthybowl.tasks.assigned', 'Assigned'),\n overdue: tr('healthybowl.tasks.overdue', '{n} overdue'),\n noDueDate: tr('healthybowl.tasks.noDueDate', 'No due date ({n})'),\n milestones: tr('healthybowl.tasks.milestones', 'Milestones'),\n today: tr('healthybowl.tasks.today', 'Today'),\n week: tr('healthybowl.tasks.week', 'Week'),\n month: tr('healthybowl.tasks.month', 'Month'),\n tasksSingular: tr('healthybowl.tasks.tasksSingular', 'task'),\n tasksPlural: tr('healthybowl.tasks.tasksPlural', 'tasks'),\n more: tr('healthybowl.tasks.more', 'more'),\n\n // List column headers\n colTask: tr('healthybowl.tasks.colTask', 'Task'),\n colStatus: tr('healthybowl.tasks.colStatus', 'Status'),\n colPriority: tr('healthybowl.tasks.colPriority', 'Priority'),\n colAssignee: tr('healthybowl.tasks.colAssignee', 'Assignee'),\n colDueDate: tr('healthybowl.tasks.colDueDate', 'Due Date'),\n colPoints: tr('healthybowl.tasks.colPoints', 'Points'),\n colLinkedRecord: tr('healthybowl.tasks.colLinkedRecord', 'Linked Record'),\n colType: tr('healthybowl.tasks.colType', 'Type'),\n colKey: tr('healthybowl.tasks.colKey', 'Key'),\n colLabels: tr('healthybowl.tasks.colLabels', 'Labels'),\n\n // Create / detail form\n newTaskHeading: tr('healthybowl.tasks.newTaskHeading', 'New task'),\n newTaskSubtitle: tr('healthybowl.tasks.newTaskSubtitle', 'Create a work item in this workspace.'),\n title: tr('healthybowl.tasks.title', 'Title'),\n titlePlaceholder: tr('healthybowl.tasks.titlePlaceholder', 'What needs doing?'),\n description: tr('healthybowl.tasks.description', 'Description'),\n descriptionPlaceholder: tr('healthybowl.tasks.descriptionPlaceholder', 'Add more detail (optional)'),\n typeLabel: tr('healthybowl.tasks.typeLabel', 'Type'),\n statusLabel: tr('healthybowl.tasks.statusLabel', 'Status'),\n priorityLabel: tr('healthybowl.tasks.priorityLabel', 'Priority'),\n assigneeLabel: tr('healthybowl.tasks.assigneeLabel', 'Assignee'),\n assigneePlaceholder: tr('healthybowl.tasks.assigneePlaceholder', 'Actor ID (optional)'),\n dueDateLabel: tr('healthybowl.tasks.dueDateLabel', 'Due date'),\n storyPointsLabel: tr('healthybowl.tasks.storyPointsLabel', 'Story points'),\n labelsLabel: tr('healthybowl.tasks.labelsLabel', 'Labels'),\n labelsPlaceholder: tr('healthybowl.tasks.labelsPlaceholder', 'comma, separated, labels'),\n create: tr('healthybowl.tasks.create', 'Create task'),\n creating: tr('healthybowl.tasks.creating', 'Creating…'),\n cancel: tr('healthybowl.tasks.cancel', 'Cancel'),\n edit: tr('healthybowl.tasks.edit', 'Edit'),\n del: tr('healthybowl.tasks.del', 'Delete'),\n deletePrompt: tr('healthybowl.tasks.deletePrompt', 'Delete?'),\n yes: tr('healthybowl.tasks.yes', 'Yes'),\n no: tr('healthybowl.tasks.no', 'No'),\n save: tr('healthybowl.tasks.save', 'Save changes'),\n saving: tr('healthybowl.tasks.saving', 'Saving…'),\n taskNotFound: tr('healthybowl.tasks.taskNotFound', 'Task not found.'),\n projectRequired: tr('healthybowl.tasks.projectRequired', 'A projectId is required to create a task.'),\n\n // Status / error messages\n errorLoading: tr('healthybowl.tasks.errorLoading', 'Error loading tasks'),\n moveFailed: tr('healthybowl.tasks.moveFailed', \"Couldn't move the task. Please try again.\"),\n failedToCreate: tr('healthybowl.tasks.failedToCreate', 'Failed to create task'),\n failedToSave: tr('healthybowl.tasks.failedToSave', 'Failed to save'),\n failedToDelete: tr('healthybowl.tasks.failedToDelete', 'Failed to delete'),\n overdueLabel: tr('healthybowl.tasks.overdueLabel', 'Overdue'),\n\n // Enum display labels\n status: {\n BACKLOG: tr('healthybowl.tasks.status.BACKLOG', 'Backlog'),\n TODO: tr('healthybowl.tasks.status.TODO', 'To Do'),\n IN_PROGRESS: tr('healthybowl.tasks.status.IN_PROGRESS', 'In Progress'),\n IN_REVIEW: tr('healthybowl.tasks.status.IN_REVIEW', 'In Review'),\n TESTING: tr('healthybowl.tasks.status.TESTING', 'Testing'),\n DONE: tr('healthybowl.tasks.status.DONE', 'Done'),\n CANCELLED: tr('healthybowl.tasks.status.CANCELLED', 'Cancelled'),\n },\n priority: {\n NONE: tr('healthybowl.tasks.priority.NONE', 'None'),\n LOW: tr('healthybowl.tasks.priority.LOW', 'Low'),\n MEDIUM: tr('healthybowl.tasks.priority.MEDIUM', 'Medium'),\n HIGH: tr('healthybowl.tasks.priority.HIGH', 'High'),\n CRITICAL: tr('healthybowl.tasks.priority.CRITICAL', 'Critical'),\n },\n type: {\n TASK: tr('healthybowl.tasks.type.TASK', 'Task'),\n STORY: tr('healthybowl.tasks.type.STORY', 'Story'),\n BUG: tr('healthybowl.tasks.type.BUG', 'Bug'),\n EPIC: tr('healthybowl.tasks.type.EPIC', 'Epic'),\n SUB_TASK: tr('healthybowl.tasks.type.SUB_TASK', 'Sub Task'),\n },\n }),\n [tr]\n );\n}\n"],"mappings":";;;AAkBA,SAAgB,IAAuC;CACrD,IAAM,IAAK,GAAO;AAClB,QAAO,SACE;EAEL,OAAO,EAAG,2BAA2B,QAAQ;EAC7C,MAAM,EAAG,0BAA0B,OAAO;EAC1C,UAAU,EAAG,8BAA8B,WAAW;EACtD,mBAAmB,EAAG,uCAAuC,gBAAgB;EAC7E,eAAe,EAAG,mCAAmC,iBAAiB;EACtE,UAAU,EAAG,8BAA8B,YAAY;EACvD,SAAS,EAAG,6BAA6B,WAAW;EACpD,SAAS,EAAG,6BAA6B,WAAW;EAGpD,SAAS,EAAG,6BAA6B,WAAW;EACpD,cAAc,EAAG,kCAAkC,kBAAkB;EACrE,UAAU,EAAG,8BAA8B,YAAY;EACvD,YAAY,EAAG,gCAAgC,aAAa;EAC5D,UAAU,EAAG,8BAA8B,WAAW;EACtD,SAAS,EAAG,6BAA6B,cAAc;EACvD,WAAW,EAAG,+BAA+B,oBAAoB;EACjE,YAAY,EAAG,gCAAgC,aAAa;EAC5D,OAAO,EAAG,2BAA2B,QAAQ;EAC7C,MAAM,EAAG,0BAA0B,OAAO;EAC1C,OAAO,EAAG,2BAA2B,QAAQ;EAC7C,eAAe,EAAG,mCAAmC,OAAO;EAC5D,aAAa,EAAG,iCAAiC,QAAQ;EACzD,MAAM,EAAG,0BAA0B,OAAO;EAG1C,SAAS,EAAG,6BAA6B,OAAO;EAChD,WAAW,EAAG,+BAA+B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AkC,sBAAsB;EACzE,YAAY,EAAG,gCAAgC,4CAA4C;EAC3F,gBAAgB,EAAG,oCAAoC,wBAAwB;EAC/E,cAAc,EAAG,kCAAkC,iBAAiB;EACpE,gBAAgB,EAAG,oCAAoC,mBAAmB;EAC1E,cAAc,EAAG,kCAAkC,UAAU;EAG7D,QAAQ;GACN,SAAS,EAAG,oCAAoC,UAAU;GAC1D,MAAM,EAAG,iCAAiC,QAAQ;GAClD,aAAa,EAAG,wCAAwC,cAAc;GACtE,WAAW,EAAG,sCAAsC,YAAY;GAChE,SAAS,EAAG,oCAAoC,UAAU;GAC1D,MAAM,EAAG,iCAAiC,OAAO;GACjD,WAAW,EAAG,sCAAsC,YAAY;GACjE;EACD,UAAU;GACR,MAAM,EAAG,mCAAmC,OAAO;GACnD,KAAK,EAAG,kCAAkC,MAAM;GAChD,QAAQ,EAAG,qCAAqC,SAAS;GACzD,MAAM,EAAG,mCAAmC,OAAO;GACnD,UAAU,EAAG,uCAAuC,WAAW;GAChE;EACD,MAAM;GACJ,MAAM,EAAG,+BAA+B,OAAO;GAC/C,OAAO,EAAG,gCAAgC,QAAQ;GAClD,KAAK,EAAG,8BAA8B,MAAM;GAC5C,MAAM,EAAG,+BAA+B,OAAO;GAC/C,UAAU,EAAG,mCAAmC,WAAW;GAC5D;EACF,GACD,CAAC,EAAG,CACL"}
1
+ {"version":3,"file":"useFarmTaskLabels.js","names":[],"sources":["../../../../src/healthybowl/pages/tasks/useFarmTaskLabels.ts"],"sourcesContent":["/**\n * useFarmTaskLabels — bridges HealthyBowl's i18n catalog into the\n * `@burdenoff/planmagnet-fe-sdk` Tasks UI.\n *\n * The SDK renders every string from an injectable `labels` contract\n * (`PartialTaskLabels`, English defaults otherwise). This hook builds that\n * object from HB's `useTr()` so Farm Tasks speaks all six HB languages\n * (en/zh/hi/es/ar/ta). Keys live under `healthybowl.tasks.*`; each `tr()` call\n * carries the English fallback, so the UI reads correctly even before those\n * keys land in the translation catalog (untranslated key → fallback).\n *\n * @module healthybowl\n */\n\nimport { useMemo } from 'react';\nimport type { PartialTaskLabels } from '@burdenoff/planmagnet-fe-sdk';\nimport { useTr } from '../../../shared/hooks/useTr';\n\nexport function useFarmTaskLabels(): PartialTaskLabels {\n const tr = useTr();\n return useMemo<PartialTaskLabels>(\n () => ({\n // Views / toolbar\n board: tr('healthybowl.tasks.board', 'Board'),\n list: tr('healthybowl.tasks.list', 'List'),\n timeline: tr('healthybowl.tasks.timeline', 'Timeline'),\n searchPlaceholder: tr('healthybowl.tasks.searchPlaceholder', 'Search tasks…'),\n allPriorities: tr('healthybowl.tasks.allPriorities', 'All priorities'),\n allTypes: tr('healthybowl.tasks.allTypes', 'All types'),\n newTask: tr('healthybowl.tasks.newTask', 'New task'),\n myTasks: tr('healthybowl.tasks.myTasks', 'My tasks'),\n\n // Board / list / timeline shared\n noTasks: tr('healthybowl.tasks.noTasks', 'No tasks'),\n noTasksFound: tr('healthybowl.tasks.noTasksFound', 'No tasks found.'),\n dropHere: tr('healthybowl.tasks.dropHere', 'Drop here'),\n unassigned: tr('healthybowl.tasks.unassigned', 'Unassigned'),\n assigned: tr('healthybowl.tasks.assigned', 'Assigned'),\n overdue: tr('healthybowl.tasks.overdue', '{n} overdue'),\n noDueDate: tr('healthybowl.tasks.noDueDate', 'No due date ({n})'),\n milestones: tr('healthybowl.tasks.milestones', 'Milestones'),\n today: tr('healthybowl.tasks.today', 'Today'),\n week: tr('healthybowl.tasks.week', 'Week'),\n month: tr('healthybowl.tasks.month', 'Month'),\n tasksSingular: tr('healthybowl.tasks.tasksSingular', 'task'),\n tasksPlural: tr('healthybowl.tasks.tasksPlural', 'tasks'),\n more: tr('healthybowl.tasks.more', 'more'),\n\n // List column headers\n colTask: tr('healthybowl.tasks.colTask', 'Task'),\n colStatus: tr('healthybowl.tasks.colStatus', 'Status'),\n colPriority: tr('healthybowl.tasks.colPriority', 'Priority'),\n colAssignee: tr('healthybowl.tasks.colAssignee', 'Assignee'),\n colDueDate: tr('healthybowl.tasks.colDueDate', 'Due Date'),\n colPoints: tr('healthybowl.tasks.colPoints', 'Points'),\n colLinkedRecord: tr('healthybowl.tasks.colLinkedRecord', 'Linked Record'),\n colType: tr('healthybowl.tasks.colType', 'Type'),\n colKey: tr('healthybowl.tasks.colKey', 'Key'),\n colLabels: tr('healthybowl.tasks.colLabels', 'Labels'),\n\n // Create / detail form\n newTaskHeading: tr('healthybowl.tasks.newTaskHeading', 'New task'),\n newTaskSubtitle: tr('healthybowl.tasks.newTaskSubtitle', 'Create a work item in this workspace.'),\n title: tr('healthybowl.tasks.title', 'Title'),\n titlePlaceholder: tr('healthybowl.tasks.titlePlaceholder', 'What needs doing?'),\n description: tr('healthybowl.tasks.description', 'Description'),\n descriptionPlaceholder: tr('healthybowl.tasks.descriptionPlaceholder', 'Add more detail (optional)'),\n typeLabel: tr('healthybowl.tasks.typeLabel', 'Type'),\n statusLabel: tr('healthybowl.tasks.statusLabel', 'Status'),\n priorityLabel: tr('healthybowl.tasks.priorityLabel', 'Priority'),\n assigneeLabel: tr('healthybowl.tasks.assigneeLabel', 'Assignee'),\n assigneePlaceholder: tr('healthybowl.tasks.assigneePlaceholder', 'Actor ID (optional)'),\n dueDateLabel: tr('healthybowl.tasks.dueDateLabel', 'Due date'),\n storyPointsLabel: tr('healthybowl.tasks.storyPointsLabel', 'Story points'),\n labelsLabel: tr('healthybowl.tasks.labelsLabel', 'Labels'),\n labelsPlaceholder: tr('healthybowl.tasks.labelsPlaceholder', 'comma, separated, labels'),\n create: tr('healthybowl.tasks.create', 'Create task'),\n creating: tr('healthybowl.tasks.creating', 'Creating…'),\n cancel: tr('healthybowl.tasks.cancel', 'Cancel'),\n edit: tr('healthybowl.tasks.edit', 'Edit'),\n del: tr('healthybowl.tasks.del', 'Delete'),\n deletePrompt: tr('healthybowl.tasks.deletePrompt', 'Delete?'),\n yes: tr('healthybowl.tasks.yes', 'Yes'),\n no: tr('healthybowl.tasks.no', 'No'),\n save: tr('healthybowl.tasks.save', 'Save changes'),\n saving: tr('healthybowl.tasks.saving', 'Saving…'),\n taskNotFound: tr('healthybowl.tasks.taskNotFound', 'Task not found.'),\n projectRequired: tr('healthybowl.tasks.projectRequired', 'A projectId is required to create a task.'),\n\n // Status / error messages\n errorLoading: tr('healthybowl.tasks.errorLoading', 'Error loading tasks'),\n moveFailed: tr('healthybowl.tasks.moveFailed', \"Couldn't move the task. Please try again.\"),\n failedToCreate: tr('healthybowl.tasks.failedToCreate', 'Failed to create task'),\n failedToSave: tr('healthybowl.tasks.failedToSave', 'Failed to save'),\n failedToDelete: tr('healthybowl.tasks.failedToDelete', 'Failed to delete'),\n overdueLabel: tr('healthybowl.tasks.overdueLabel', 'Overdue'),\n\n // Drag-move confirmation\n moveConfirmTitle: tr('healthybowl.tasks.moveConfirmTitle', 'Move task?'),\n moveConfirmPrompt: tr('healthybowl.tasks.moveConfirmPrompt', 'Move \"{task}\" to {status}?'),\n moveConfirm: tr('healthybowl.tasks.moveConfirm', 'Move'),\n\n // Detail: linked records + metadata\n linkedRecordsLabel: tr('healthybowl.tasks.linkedRecordsLabel', 'Linked records'),\n createdLabel: tr('healthybowl.tasks.createdLabel', 'Created'),\n updatedLabel: tr('healthybowl.tasks.updatedLabel', 'Updated'),\n\n // Sub-issues\n parentLabel: tr('healthybowl.tasks.parentLabel', 'Parent'),\n subtasksLabel: tr('healthybowl.tasks.subtasksLabel', 'Sub-tasks'),\n addSubtask: tr('healthybowl.tasks.addSubtask', 'Add sub-task'),\n\n // Comments + threading + mentions\n commentsLabel: tr('healthybowl.tasks.commentsLabel', 'Comments'),\n commentPlaceholder: tr('healthybowl.tasks.commentPlaceholder', 'Write a comment…'),\n postComment: tr('healthybowl.tasks.postComment', 'Comment'),\n posting: tr('healthybowl.tasks.posting', 'Posting…'),\n noComments: tr('healthybowl.tasks.noComments', 'No comments yet'),\n you: tr('healthybowl.tasks.you', 'You'),\n editedTag: tr('healthybowl.tasks.editedTag', '(edited)'),\n failedToComment: tr('healthybowl.tasks.failedToComment', 'Failed to post comment'),\n failedToDeleteComment: tr('healthybowl.tasks.failedToDeleteComment', 'Failed to delete comment'),\n reply: tr('healthybowl.tasks.reply', 'Reply'),\n replyPlaceholder: tr('healthybowl.tasks.replyPlaceholder', 'Write a reply…'),\n repliesCount: tr('healthybowl.tasks.repliesCount', '{n} replies'),\n\n // Enum display labels\n status: {\n BACKLOG: tr('healthybowl.tasks.status.BACKLOG', 'Backlog'),\n TODO: tr('healthybowl.tasks.status.TODO', 'To Do'),\n IN_PROGRESS: tr('healthybowl.tasks.status.IN_PROGRESS', 'In Progress'),\n IN_REVIEW: tr('healthybowl.tasks.status.IN_REVIEW', 'In Review'),\n TESTING: tr('healthybowl.tasks.status.TESTING', 'Testing'),\n DONE: tr('healthybowl.tasks.status.DONE', 'Done'),\n CANCELLED: tr('healthybowl.tasks.status.CANCELLED', 'Cancelled'),\n },\n priority: {\n NONE: tr('healthybowl.tasks.priority.NONE', 'None'),\n LOW: tr('healthybowl.tasks.priority.LOW', 'Low'),\n MEDIUM: tr('healthybowl.tasks.priority.MEDIUM', 'Medium'),\n HIGH: tr('healthybowl.tasks.priority.HIGH', 'High'),\n CRITICAL: tr('healthybowl.tasks.priority.CRITICAL', 'Critical'),\n },\n type: {\n TASK: tr('healthybowl.tasks.type.TASK', 'Task'),\n STORY: tr('healthybowl.tasks.type.STORY', 'Story'),\n BUG: tr('healthybowl.tasks.type.BUG', 'Bug'),\n EPIC: tr('healthybowl.tasks.type.EPIC', 'Epic'),\n SUB_TASK: tr('healthybowl.tasks.type.SUB_TASK', 'Sub Task'),\n },\n }),\n [tr]\n );\n}\n"],"mappings":";;;AAkBA,SAAgB,IAAuC;CACrD,IAAM,IAAK,GAAO;AAClB,QAAO,SACE;EAEL,OAAO,EAAG,2BAA2B,QAAQ;EAC7C,MAAM,EAAG,0BAA0B,OAAO;EAC1C,UAAU,EAAG,8BAA8B,WAAW;EACtD,mBAAmB,EAAG,uCAAuC,gBAAgB;EAC7E,eAAe,EAAG,mC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