@burdenoff/microfe-planmagnet 2026.930.19 → 2026.930.21

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.
Files changed (61) hide show
  1. package/dist/index.js +2 -1
  2. package/dist/planmagnet/PlanMagnetRoutes.d.ts.map +1 -1
  3. package/dist/planmagnet/PlanMagnetRoutes.js +17 -5
  4. package/dist/planmagnet/PlanMagnetRoutes.js.map +1 -1
  5. package/dist/planmagnet/automation/AutomationExecutionsPanel.d.ts.map +1 -1
  6. package/dist/planmagnet/automation/AutomationExecutionsPanel.js +43 -39
  7. package/dist/planmagnet/automation/AutomationExecutionsPanel.js.map +1 -1
  8. package/dist/planmagnet/automation/AutomationRuleFields.d.ts +23 -4
  9. package/dist/planmagnet/automation/AutomationRuleFields.d.ts.map +1 -1
  10. package/dist/planmagnet/automation/AutomationRuleFields.js +255 -108
  11. package/dist/planmagnet/automation/AutomationRuleFields.js.map +1 -1
  12. package/dist/planmagnet/automation/automationRuleTypes.d.ts +138 -15
  13. package/dist/planmagnet/automation/automationRuleTypes.d.ts.map +1 -1
  14. package/dist/planmagnet/automation/automationRuleTypes.js +162 -22
  15. package/dist/planmagnet/automation/automationRuleTypes.js.map +1 -1
  16. package/dist/planmagnet/controls/AutomationRuleControls.d.ts.map +1 -1
  17. package/dist/planmagnet/controls/AutomationRuleControls.js +76 -71
  18. package/dist/planmagnet/controls/AutomationRuleControls.js.map +1 -1
  19. package/dist/planmagnet/controls/SyncControls.d.ts +101 -0
  20. package/dist/planmagnet/controls/SyncControls.d.ts.map +1 -0
  21. package/dist/planmagnet/controls/SyncControls.js +616 -0
  22. package/dist/planmagnet/controls/SyncControls.js.map +1 -0
  23. package/dist/planmagnet/index.d.ts +1 -0
  24. package/dist/planmagnet/index.d.ts.map +1 -1
  25. package/dist/planmagnet/index.js +1 -0
  26. package/dist/planmagnet/integrations/routes.d.ts +13 -0
  27. package/dist/planmagnet/integrations/routes.d.ts.map +1 -0
  28. package/dist/planmagnet/integrations/routes.js +9 -0
  29. package/dist/planmagnet/integrations/routes.js.map +1 -0
  30. package/dist/planmagnet/integrations/syncTypes.d.ts +143 -0
  31. package/dist/planmagnet/integrations/syncTypes.d.ts.map +1 -0
  32. package/dist/planmagnet/integrations/syncTypes.js +71 -0
  33. package/dist/planmagnet/integrations/syncTypes.js.map +1 -0
  34. package/dist/planmagnet/integrations/useSyncProviderCapabilities.d.ts +8 -0
  35. package/dist/planmagnet/integrations/useSyncProviderCapabilities.d.ts.map +1 -0
  36. package/dist/planmagnet/integrations/useSyncProviderCapabilities.js +27 -0
  37. package/dist/planmagnet/integrations/useSyncProviderCapabilities.js.map +1 -0
  38. package/dist/planmagnet/pages/AutomationAutomationRuleDetailPagePage.d.ts.map +1 -1
  39. package/dist/planmagnet/pages/AutomationAutomationRuleDetailPagePage.js +85 -76
  40. package/dist/planmagnet/pages/AutomationAutomationRuleDetailPagePage.js.map +1 -1
  41. package/dist/planmagnet/pages/AutomationAutomationRulesPagePage.js +12 -12
  42. package/dist/planmagnet/pages/AutomationAutomationRulesPagePage.js.map +1 -1
  43. package/dist/planmagnet/pages/AutomationCreateAutomationRulePagePage.d.ts.map +1 -1
  44. package/dist/planmagnet/pages/AutomationCreateAutomationRulePagePage.js +48 -44
  45. package/dist/planmagnet/pages/AutomationCreateAutomationRulePagePage.js.map +1 -1
  46. package/dist/planmagnet/pages/IntegrationsNewSyncPagePage.d.ts +2 -0
  47. package/dist/planmagnet/pages/IntegrationsNewSyncPagePage.d.ts.map +1 -0
  48. package/dist/planmagnet/pages/IntegrationsNewSyncPagePage.js +411 -0
  49. package/dist/planmagnet/pages/IntegrationsNewSyncPagePage.js.map +1 -0
  50. package/dist/planmagnet/pages/IntegrationsSyncDetailPagePage.d.ts +2 -0
  51. package/dist/planmagnet/pages/IntegrationsSyncDetailPagePage.d.ts.map +1 -0
  52. package/dist/planmagnet/pages/IntegrationsSyncDetailPagePage.js +593 -0
  53. package/dist/planmagnet/pages/IntegrationsSyncDetailPagePage.js.map +1 -0
  54. package/dist/planmagnet/pages/IntegrationsSyncsPagePage.d.ts +2 -0
  55. package/dist/planmagnet/pages/IntegrationsSyncsPagePage.d.ts.map +1 -0
  56. package/dist/planmagnet/pages/IntegrationsSyncsPagePage.js +267 -0
  57. package/dist/planmagnet/pages/IntegrationsSyncsPagePage.js.map +1 -0
  58. package/dist/planmagnet/people/People.d.ts.map +1 -1
  59. package/dist/planmagnet/people/People.js +30 -17
  60. package/dist/planmagnet/people/People.js.map +1 -1
  61. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"AutomationCreateAutomationRulePagePage.js","names":[],"sources":["../../../src/planmagnet/pages/AutomationCreateAutomationRulePagePage.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { gql } from '@apollo/client';\nimport { useMutation } from '@apollo/client/react';\nimport { Button, Card, CardContent, CardHeader, CardTitle } from '@burdenoff/fe-libs/ui';\nimport { Bot, Save, X } from 'lucide-react';\nimport { usePlanMagnet, usePlanMagnetNavigate } from '../providers/PlanMagnetProvider';\nimport { throwOnError } from '../utils/mutationResult';\nimport { detailPath } from '../utils/rowNavigation';\nimport {\n AutomationRuleFields,\n type AutomationRuleFormState,\n} from '../automation/AutomationRuleFields';\nimport { actionsToApi, conditionsToApi } from '../automation/automationRuleTypes';\nimport { AUTOMATION_RULE_QUERIES } from '../controls/AutomationRuleControls';\n\nconst CREATE = gql`\n mutation CreateAutomationRule($input: PlanmagnetCreateAutomationRuleInput!) {\n planmagnetCreateAutomationRule(input: $input) {\n id\n }\n }\n`;\n\nconst EMPTY: AutomationRuleFormState = {\n name: '',\n description: '',\n projectId: '',\n triggerType: 'WORK_ITEM_CREATED',\n conditions: [],\n actions: [],\n};\n\nexport function AutomationCreateAutomationRulePagePage() {\n const { workspaceId } = usePlanMagnet();\n const navigate = usePlanMagnetNavigate();\n const [form, setForm] = useState<AutomationRuleFormState>(EMPTY);\n const [error, setError] = useState<string | null>(null);\n const [create, { loading }] = useMutation<{ planmagnetCreateAutomationRule: { id: string } }>(\n CREATE,\n {\n refetchQueries: AUTOMATION_RULE_QUERIES,\n }\n );\n\n const canSubmit = form.name.trim() !== '' && form.projectId !== '' && !loading;\n\n const handleCreate = async () => {\n if (!canSubmit || !workspaceId) return;\n setError(null);\n try {\n const result = await throwOnError(\n create({\n variables: {\n input: {\n projectId: form.projectId,\n name: form.name.trim(),\n description: form.description.trim() || undefined,\n triggerType: form.triggerType,\n triggerConfig: {},\n conditions: conditionsToApi(form.conditions),\n actions: actionsToApi(form.actions),\n },\n },\n })\n );\n const id = result.data?.planmagnetCreateAutomationRule.id;\n navigate(\n id\n ? detailPath('/automation/automation-rule-detail-page', id)\n : '/automation/automation-rules-page'\n );\n } catch (e) {\n setError(e instanceof Error ? e.message : 'The rule could not be created.');\n }\n };\n\n return (\n <div className=\"space-y-6 p-6 max-w-3xl\">\n <div className=\"flex items-center justify-between\">\n <div>\n <h1 className=\"text-2xl font-semibold\">New automation rule</h1>\n <p className=\"text-sm text-muted-foreground\">\n Runs its actions when the trigger fires and every condition matches.\n </p>\n </div>\n <div className=\"flex gap-2\">\n <Button\n variant=\"outline\"\n size=\"sm\"\n onClick={() => navigate('/automation/automation-rules-page')}\n >\n <X className=\"mr-1 h-4 w-4\" />\n Cancel\n </Button>\n <Button\n size=\"sm\"\n onClick={() => void handleCreate()}\n disabled={!canSubmit}\n data-testid=\"automation-create-submit\"\n >\n <Save className=\"mr-1 h-4 w-4\" />\n {loading ? 'Creating…' : 'Create rule'}\n </Button>\n </div>\n </div>\n {error && (\n <div role=\"alert\" className=\"p-3 bg-destructive/10 text-destructive rounded-md text-sm\">\n {error}\n </div>\n )}\n <Card>\n <CardHeader>\n <CardTitle className=\"flex items-center gap-2\">\n <Bot className=\"h-4 w-4\" />\n Rule details\n </CardTitle>\n </CardHeader>\n <CardContent>\n <AutomationRuleFields form={form} onChange={setForm} />\n </CardContent>\n </Card>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AAeA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C,GAAD,EAAG,WAAU,gBAAiB,CAAA,EAAA,SAEvB;SACT,kBAAC,GAAD;MACE,MAAK;MACL,eAAe,KAAK,GAAc;MAClC,UAAU,CAAC;MACX,eAAY;gBAJd,CAME,kBAAC,GAAD,EAAM,WAAU,gBAAiB,CAAA,EAChC,IAAU,cAAc,cAClB;QACL;OACF;;GACL,KACC,kBAAC,OAAD;IAAK,MAAK;IAAQ,WAAU;cACzB;IACG,CAAA;GAER,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;IAAW,WAAU;cAArB,CACE,kBAAC,GAAD,EAAK,WAAU,WAAY,CAAA,EAAA,eAEjB;OACD,CAAA,EACb,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;IAA4B;IAAM,UAAU;IAAW,CAAA,EAC3C,CAAA,CACT,EAAA,CAAA;GACH"}
1
+ {"version":3,"file":"AutomationCreateAutomationRulePagePage.js","names":[],"sources":["../../../src/planmagnet/pages/AutomationCreateAutomationRulePagePage.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { gql } from '@apollo/client';\nimport { useMutation } from '@apollo/client/react';\nimport { Button, Card, CardContent, CardHeader, CardTitle } from '@burdenoff/fe-libs/ui';\nimport { Bot, Save, X } from 'lucide-react';\nimport { usePlanMagnet, usePlanMagnetNavigate } from '../providers/PlanMagnetProvider';\nimport { throwOnError } from '../utils/mutationResult';\nimport { isForbidden, mutationErrorMessage } from '../utils/graphqlErrors';\nimport { detailPath } from '../utils/rowNavigation';\nimport {\n AutomationRuleFields,\n type AutomationRuleFormState,\n} from '../automation/AutomationRuleFields';\nimport {\n actionsToApi,\n conditionsToApi,\n saveBlockReason,\n scheduleConditionsToApi,\n} from '../automation/automationRuleTypes';\nimport { AUTOMATION_RULE_QUERIES } from '../controls/AutomationRuleControls';\n\nconst CREATE = gql`\n mutation CreateAutomationRule($input: PlanmagnetCreateAutomationRuleInput!) {\n planmagnetCreateAutomationRule(input: $input) {\n id\n }\n }\n`;\n\nconst EMPTY: AutomationRuleFormState = {\n name: '',\n description: '',\n projectId: '',\n triggerType: 'WORK_ITEM_CREATED',\n conditions: [],\n scheduleStatuses: [],\n scheduleNotUpdatedForDays: '',\n actions: [],\n};\n\nexport function AutomationCreateAutomationRulePagePage() {\n const { workspaceId } = usePlanMagnet();\n const navigate = usePlanMagnetNavigate();\n const [form, setForm] = useState<AutomationRuleFormState>(EMPTY);\n const [error, setError] = useState<string | null>(null);\n const [create, { loading }] = useMutation<{ planmagnetCreateAutomationRule: { id: string } }>(\n CREATE,\n {\n refetchQueries: AUTOMATION_RULE_QUERIES,\n }\n );\n\n const blockReason = saveBlockReason(form);\n const canSubmit = form.name.trim() !== '' && form.projectId !== '' && !blockReason && !loading;\n\n const handleCreate = async () => {\n if (!canSubmit || !workspaceId) return;\n setError(null);\n try {\n const result = await throwOnError(\n create({\n variables: {\n input: {\n projectId: form.projectId,\n name: form.name.trim(),\n description: form.description.trim() || undefined,\n triggerType: form.triggerType,\n triggerConfig: {},\n conditions:\n form.triggerType === 'SCHEDULE'\n ? scheduleConditionsToApi(form.scheduleStatuses, form.scheduleNotUpdatedForDays)\n : conditionsToApi(form.conditions),\n actions: actionsToApi(form.actions),\n },\n },\n })\n );\n const id = result.data?.planmagnetCreateAutomationRule.id;\n navigate(\n id\n ? detailPath('/automation/automation-rule-detail-page', id)\n : '/automation/automation-rules-page'\n );\n } catch (e) {\n setError(\n isForbidden(e)\n ? 'Your role can view automation rules but not change them.'\n : mutationErrorMessage(e, 'The rule could not be created.')\n );\n }\n };\n\n return (\n <div className=\"space-y-6 p-6 max-w-3xl\">\n <div className=\"flex items-center justify-between\">\n <div>\n <h1 className=\"text-2xl font-semibold\">New automation rule</h1>\n <p className=\"text-sm text-muted-foreground\">\n Runs its actions when the trigger fires and every condition matches.\n </p>\n </div>\n <div className=\"flex gap-2\">\n <Button\n variant=\"outline\"\n size=\"sm\"\n onClick={() => navigate('/automation/automation-rules-page')}\n >\n <X className=\"mr-1 h-4 w-4\" />\n Cancel\n </Button>\n <Button\n size=\"sm\"\n onClick={() => void handleCreate()}\n disabled={!canSubmit}\n title={blockReason ?? undefined}\n data-testid=\"automation-create-submit\"\n >\n <Save className=\"mr-1 h-4 w-4\" />\n {loading ? 'Creating…' : 'Create rule'}\n </Button>\n </div>\n </div>\n {error && (\n <div role=\"alert\" className=\"p-3 bg-destructive/10 text-destructive rounded-md text-sm\">\n {error}\n </div>\n )}\n <Card>\n <CardHeader>\n <CardTitle className=\"flex items-center gap-2\">\n <Bot className=\"h-4 w-4\" />\n Rule details\n </CardTitle>\n </CardHeader>\n <CardContent>\n <AutomationRuleFields form={form} onChange={setForm} />\n </CardContent>\n </Card>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAqBA,IAAM,IAAS,CAAG;;;;;;GAQZ,IAAiC;CACrC,MAAM;CACN,aAAa;CACb,WAAW;CACX,aAAa;CACb,YAAY,EAAE;CACd,kBAAkB,EAAE;CACpB,2BAA2B;CAC3B,SAAS,EAAE;CACZ;AAED,SAAgB,IAAyC;CACvD,IAAM,EAAE,mBAAgB,GAAe,EACjC,IAAW,GAAuB,EAClC,CAAC,GAAM,KAAW,EAAkC,EAAM,EAC1D,CAAC,GAAO,KAAY,EAAwB,KAAK,EACjD,CAAC,GAAQ,EAAE,gBAAa,EAC5B,GACA,EACE,gBAAgB,GACjB,CACF,EAEK,IAAc,EAAgB,EAAK,EACnC,IAAY,EAAK,KAAK,MAAM,KAAK,MAAM,EAAK,cAAc,MAAM,CAAC,KAAe,CAAC,GAEjF,IAAe,YAAY;AAC3B,SAAC,KAAa,CAAC,IACnB;KAAS,KAAK;AACd,OAAI;IAmBF,IAAM,KAlBS,MAAM,EACnB,EAAO,EACL,WAAW,EACT,OAAO;KACL,WAAW,EAAK;KAChB,MAAM,EAAK,KAAK,MAAM;KACtB,aAAa,EAAK,YAAY,MAAM,IAAI,KAAA;KACxC,aAAa,EAAK;KAClB,eAAe,EAAE;KACjB,YACE,EA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function IntegrationsNewSyncPagePage(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=IntegrationsNewSyncPagePage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IntegrationsNewSyncPagePage.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/pages/IntegrationsNewSyncPagePage.tsx"],"names":[],"mappings":"AA0IA,wBAAgB,2BAA2B,4CAqY1C"}
@@ -0,0 +1,411 @@
1
+ import { usePlanMagnetNavigate as e } from "../providers/PlanMagnetProvider.js";
2
+ import { throwOnError as t } from "../utils/mutationResult.js";
3
+ import { ErrorLine as n } from "../controls/ConfirmButton.js";
4
+ import { enumLabel as r } from "../controls/WorkItemControls.js";
5
+ import { ProjectSelect as i } from "../controls/Pickers.js";
6
+ import { detailPath as a } from "../utils/rowNavigation.js";
7
+ import { isForbidden as ee, mutationErrorMessage as te } from "../utils/graphqlErrors.js";
8
+ import { useSyncProviderCapabilities as o } from "../integrations/useSyncProviderCapabilities.js";
9
+ import { CONFLICT_RESOLUTIONS as s, GITHUB_FIELD_MAPPING_DEFAULTS as c, SYNC_DIRECTIONS as ne, directionLabel as l, directionSupported as re, isValidGithubOwner as ie, isValidGithubRepo as ae, providerIsLive as u, providerLabel as d } from "../integrations/syncTypes.js";
10
+ import { CONFLICT_STRATEGY_EXPLANATION as oe, RunNowButton as se, SyncRunResultSummary as ce, TestConnectionButton as f } from "../controls/SyncControls.js";
11
+ import { useState as p } from "react";
12
+ import { ArrowLeft as le, CheckCircle2 as ue, Github as m, Loader2 as de, Plug as h, ShieldQuestion as fe } from "lucide-react";
13
+ import { gql as g } from "@apollo/client";
14
+ import { useMutation as pe } from "@apollo/client/react";
15
+ import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
16
+ import { Button as b, Card as x, CardContent as S, CardHeader as C, CardTitle as w, Checkbox as me, Input as T } from "@burdenoff/fe-libs/ui";
17
+ //#region src/planmagnet/pages/IntegrationsNewSyncPagePage.tsx
18
+ var E = "text-sm font-medium", he = g`
19
+ mutation NewSyncCreate($input: PlanmagnetCreateExternalSyncInput!) {
20
+ planmagnetCreateExternalSync(input: $input) {
21
+ id
22
+ provider
23
+ status
24
+ project {
25
+ id
26
+ name
27
+ }
28
+ }
29
+ }
30
+ `;
31
+ function ge({ capabilities: e, capabilitiesLoading: t, provider: n, onSelect: r }) {
32
+ return /* @__PURE__ */ y(x, {
33
+ "data-testid": "sync-wizard-step",
34
+ children: [/* @__PURE__ */ v(C, { children: /* @__PURE__ */ v(w, { children: "1. Provider" }) }), /* @__PURE__ */ y(S, {
35
+ className: "space-y-2",
36
+ children: [t && /* @__PURE__ */ v("p", {
37
+ className: "text-sm text-muted-foreground",
38
+ children: "Loading providers…"
39
+ }), /* @__PURE__ */ v("div", {
40
+ className: "grid grid-cols-1 sm:grid-cols-2 gap-2",
41
+ children: e.map((e) => {
42
+ let t = u(e), i = n === e.provider;
43
+ return /* @__PURE__ */ y("button", {
44
+ type: "button",
45
+ disabled: !t,
46
+ "aria-pressed": i,
47
+ "data-testid": `sync-wizard-provider-${e.provider}`,
48
+ onClick: () => t && r(e.provider),
49
+ className: `flex items-start gap-2 rounded-md border p-3 text-left text-sm transition-colors ${i ? "border-primary bg-primary/5" : "border-input"} ${t ? "hover:bg-muted" : "cursor-not-allowed opacity-50"}`,
50
+ children: [e.provider === "GITHUB" ? /* @__PURE__ */ v(m, { className: "mt-0.5 h-4 w-4 shrink-0" }) : /* @__PURE__ */ v(h, { className: "mt-0.5 h-4 w-4 shrink-0" }), /* @__PURE__ */ y("span", { children: [/* @__PURE__ */ v("span", {
51
+ className: "block font-medium",
52
+ children: d(e.provider)
53
+ }), /* @__PURE__ */ v("span", {
54
+ className: "block text-xs text-muted-foreground",
55
+ children: t ? [
56
+ e.supportsImport && "inbound",
57
+ e.supportsExport && "outbound",
58
+ e.supportsBidirectional && "bidirectional"
59
+ ].filter(Boolean).join(", ") + " sync" : "No live connector yet — inbound, outbound and bidirectional sync are all unavailable for this provider."
60
+ })] })]
61
+ }, e.provider);
62
+ })
63
+ })]
64
+ })]
65
+ });
66
+ }
67
+ function D() {
68
+ let u = e(), { capabilities: m, loading: h } = o(), [g, D] = p(""), [O, _e] = p(""), [k, A] = p(""), [j, M] = p(""), [N, P] = p(""), [F, I] = p(""), [L, ve] = p("MANUAL"), [R, ye] = p(""), [z, be] = p(""), [B, xe] = p(!0), [V, H] = p(null), [U, Se] = p(null), [W, Ce] = p(null), [G, K] = pe(he, { refetchQueries: ["SyncsList"] }), q = m.find((e) => e.provider === g), J = g === "GITHUB", Y = q ? ne.filter((e) => re(q, e)) : [], X = k.trim() !== "" && ie(k), Z = j.trim() !== "" && ae(j), Q = !!g && !!O && (!J || X && Z) && !!N, $ = Q && F.trim() !== "", we = () => {
69
+ let e = {};
70
+ return R.trim() && (e.priority = R.trim()), z.trim() && (e.dueDate = z.trim()), {
71
+ projectId: O,
72
+ provider: g,
73
+ direction: N,
74
+ externalProjectId: J ? `${k.trim()}/${j.trim()}` : "",
75
+ externalProjectUrl: J ? `https://github.com/${k.trim()}/${j.trim()}` : void 0,
76
+ connectionConfig: J ? {
77
+ token: F.trim(),
78
+ owner: k.trim(),
79
+ repo: j.trim()
80
+ } : {},
81
+ conflictStrategy: L,
82
+ ...Object.keys(e).length > 0 ? { fieldMapping: e } : {},
83
+ testConnection: B
84
+ };
85
+ }, Te = async () => {
86
+ if (H(null), !$) {
87
+ H("Fill in the project, external project and credentials above before creating the sync.");
88
+ return;
89
+ }
90
+ try {
91
+ let e = await t(G({ variables: { input: we() } }));
92
+ e.data && Se(e.data.planmagnetCreateExternalSync);
93
+ } catch (e) {
94
+ H(ee(e) ? "Your role can view integrations but not set them up." : te(e, "The sync could not be created."));
95
+ }
96
+ };
97
+ return U ? /* @__PURE__ */ v("div", {
98
+ className: "space-y-6 p-6 max-w-2xl",
99
+ children: /* @__PURE__ */ y(x, {
100
+ "data-testid": "sync-wizard-created",
101
+ children: [/* @__PURE__ */ v(C, { children: /* @__PURE__ */ y(w, {
102
+ className: "flex items-center gap-2",
103
+ children: [/* @__PURE__ */ v(ue, { className: "h-5 w-5 text-status-success-text" }), "Sync created"]
104
+ }) }), /* @__PURE__ */ y(S, {
105
+ className: "space-y-4",
106
+ children: [
107
+ /* @__PURE__ */ y("p", {
108
+ className: "text-sm text-muted-foreground",
109
+ children: [
110
+ d(U.provider),
111
+ " sync for ",
112
+ U.project?.name ?? "the project",
113
+ " is set up and idle. Test the connection and run the first sync now, or do either later from the sync's own page."
114
+ ]
115
+ }),
116
+ /* @__PURE__ */ y("div", {
117
+ className: "flex flex-wrap items-center gap-3",
118
+ children: [/* @__PURE__ */ v(f, { syncId: U.id }), /* @__PURE__ */ v(se, {
119
+ syncId: U.id,
120
+ onResult: Ce
121
+ })]
122
+ }),
123
+ W && /* @__PURE__ */ v(ce, { result: W }),
124
+ /* @__PURE__ */ v(b, {
125
+ onClick: () => u(a("/integrations/sync-detail-page", U.id)),
126
+ "data-testid": "sync-wizard-view",
127
+ children: "View sync"
128
+ })
129
+ ]
130
+ })]
131
+ })
132
+ }) : /* @__PURE__ */ y("div", {
133
+ className: "space-y-6 p-6 max-w-2xl",
134
+ children: [
135
+ /* @__PURE__ */ y("div", {
136
+ className: "flex items-start gap-3",
137
+ children: [/* @__PURE__ */ v(b, {
138
+ variant: "ghost",
139
+ size: "icon",
140
+ "aria-label": "Back to Integrations",
141
+ onClick: () => u("/integrations/syncs-page"),
142
+ children: /* @__PURE__ */ v(le, { className: "h-4 w-4" })
143
+ }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("h1", {
144
+ className: "text-2xl font-semibold",
145
+ children: "Set up a sync"
146
+ }), /* @__PURE__ */ v("p", {
147
+ className: "text-sm text-muted-foreground",
148
+ children: "Connect a PlanMagnet project to an external issue tracker so work items stay in step on both sides."
149
+ })] })]
150
+ }),
151
+ /* @__PURE__ */ v(ge, {
152
+ capabilities: m,
153
+ capabilitiesLoading: h,
154
+ provider: g,
155
+ onSelect: (e) => {
156
+ D(e), P(""), A(""), M(""), I("");
157
+ }
158
+ }),
159
+ g && /* @__PURE__ */ y(x, {
160
+ "data-testid": "sync-wizard-step",
161
+ children: [/* @__PURE__ */ v(C, { children: /* @__PURE__ */ v(w, { children: "2. Project, external project and direction" }) }), /* @__PURE__ */ y(S, {
162
+ className: "space-y-4",
163
+ children: [
164
+ /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
165
+ htmlFor: "sync-wizard-project",
166
+ className: E,
167
+ children: "PlanMagnet project"
168
+ }), /* @__PURE__ */ v("div", {
169
+ className: "mt-1",
170
+ children: /* @__PURE__ */ v(i, {
171
+ id: "sync-wizard-project",
172
+ value: O,
173
+ noneLabel: "Choose a project",
174
+ onChange: _e
175
+ })
176
+ })] }),
177
+ J && /* @__PURE__ */ y("div", {
178
+ className: "grid grid-cols-1 sm:grid-cols-2 gap-3",
179
+ children: [/* @__PURE__ */ y("div", { children: [
180
+ /* @__PURE__ */ v("label", {
181
+ htmlFor: "sync-wizard-owner",
182
+ className: E,
183
+ children: "GitHub owner (user or org)"
184
+ }),
185
+ /* @__PURE__ */ v(T, {
186
+ id: "sync-wizard-owner",
187
+ className: "mt-1",
188
+ placeholder: "e.g. algoshred",
189
+ value: k,
190
+ "data-testid": "sync-wizard-owner",
191
+ onChange: (e) => A(e.target.value)
192
+ }),
193
+ k.trim() !== "" && !X && /* @__PURE__ */ v(n, { message: "Not a valid GitHub owner name." })
194
+ ] }), /* @__PURE__ */ y("div", { children: [
195
+ /* @__PURE__ */ v("label", {
196
+ htmlFor: "sync-wizard-repo",
197
+ className: E,
198
+ children: "Repository"
199
+ }),
200
+ /* @__PURE__ */ v(T, {
201
+ id: "sync-wizard-repo",
202
+ className: "mt-1",
203
+ placeholder: "e.g. wspace-planmagnet-svc",
204
+ value: j,
205
+ "data-testid": "sync-wizard-repo",
206
+ onChange: (e) => M(e.target.value)
207
+ }),
208
+ j.trim() !== "" && !Z && /* @__PURE__ */ v(n, { message: "Not a valid repository name." })
209
+ ] })]
210
+ }),
211
+ /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("span", {
212
+ className: E,
213
+ children: "Direction"
214
+ }), Y.length === 0 ? /* @__PURE__ */ v("p", {
215
+ className: "mt-1 text-sm text-muted-foreground",
216
+ children: "This provider offers no live sync direction yet."
217
+ }) : /* @__PURE__ */ v("div", {
218
+ className: "mt-1 flex flex-col gap-1",
219
+ role: "radiogroup",
220
+ "aria-label": "Direction",
221
+ children: Y.map((e) => /* @__PURE__ */ y("label", {
222
+ className: "flex items-center gap-2 text-sm",
223
+ children: [/* @__PURE__ */ v("input", {
224
+ type: "radio",
225
+ name: "sync-wizard-direction",
226
+ checked: N === e,
227
+ "data-testid": `sync-wizard-direction-${e}`,
228
+ onChange: () => P(e)
229
+ }), l(e)]
230
+ }, e))
231
+ })] })
232
+ ]
233
+ })]
234
+ }),
235
+ Q && /* @__PURE__ */ y(x, {
236
+ "data-testid": "sync-wizard-step",
237
+ children: [/* @__PURE__ */ v(C, { children: /* @__PURE__ */ v(w, { children: "3. Credentials" }) }), /* @__PURE__ */ v(S, {
238
+ className: "space-y-3",
239
+ children: J && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("p", {
240
+ className: "text-sm text-muted-foreground",
241
+ children: [
242
+ "Use a GitHub fine-grained personal access token scoped to",
243
+ " ",
244
+ /* @__PURE__ */ y("strong", { children: [
245
+ k,
246
+ "/",
247
+ j
248
+ ] }),
249
+ ", with Issues set to ",
250
+ /* @__PURE__ */ v("strong", { children: "Read and write" }),
251
+ " — no other repository permission is needed."
252
+ ]
253
+ }), /* @__PURE__ */ y("div", {
254
+ className: "max-w-sm",
255
+ children: [/* @__PURE__ */ v("label", {
256
+ htmlFor: "sync-wizard-token",
257
+ className: E,
258
+ children: "Personal access token"
259
+ }), /* @__PURE__ */ v(T, {
260
+ id: "sync-wizard-token",
261
+ type: "password",
262
+ autoComplete: "off",
263
+ className: "mt-1",
264
+ value: F,
265
+ "data-testid": "sync-wizard-token",
266
+ onChange: (e) => I(e.target.value)
267
+ })]
268
+ })] })
269
+ })]
270
+ }),
271
+ $ && /* @__PURE__ */ y(_, { children: [
272
+ /* @__PURE__ */ y(x, {
273
+ "data-testid": "sync-wizard-step",
274
+ children: [/* @__PURE__ */ v(C, { children: /* @__PURE__ */ v(w, { children: "4. Conflict strategy" }) }), /* @__PURE__ */ y(S, {
275
+ className: "space-y-2",
276
+ children: [/* @__PURE__ */ v("p", {
277
+ className: "text-sm text-muted-foreground",
278
+ children: "What happens when the same item changed on both sides since the last sync."
279
+ }), /* @__PURE__ */ v("div", {
280
+ className: "flex flex-col gap-1",
281
+ role: "radiogroup",
282
+ "aria-label": "Conflict strategy",
283
+ children: s.map((e) => /* @__PURE__ */ y("label", {
284
+ className: "flex items-start gap-2 text-sm",
285
+ children: [/* @__PURE__ */ v("input", {
286
+ type: "radio",
287
+ name: "sync-wizard-strategy",
288
+ className: "mt-0.5",
289
+ checked: L === e,
290
+ "data-testid": `sync-wizard-strategy-${e}`,
291
+ onChange: () => ve(e)
292
+ }), /* @__PURE__ */ y("span", { children: [/* @__PURE__ */ v("span", {
293
+ className: "font-medium",
294
+ children: r(e)
295
+ }), /* @__PURE__ */ v("span", {
296
+ className: "block text-xs text-muted-foreground",
297
+ children: oe[e]
298
+ })] })]
299
+ }, e))
300
+ })]
301
+ })]
302
+ }),
303
+ J && /* @__PURE__ */ y(x, {
304
+ "data-testid": "sync-wizard-step",
305
+ children: [/* @__PURE__ */ v(C, { children: /* @__PURE__ */ v(w, { children: "5. Field mapping (optional)" }) }), /* @__PURE__ */ y(S, {
306
+ className: "space-y-3",
307
+ children: [/* @__PURE__ */ y("p", {
308
+ className: "text-sm text-muted-foreground",
309
+ children: [
310
+ "GitHub issues have no native priority or due-date field — PlanMagnet encodes each as a label of the form ",
311
+ /* @__PURE__ */ v("code", { children: "prefix+value" }),
312
+ " (e.g. ",
313
+ /* @__PURE__ */ v("code", { children: "priority:HIGH" }),
314
+ ",",
315
+ " ",
316
+ /* @__PURE__ */ v("code", { children: "due:2026-10-01" }),
317
+ "). Leave both blank to use the built-in prefixes."
318
+ ]
319
+ }), /* @__PURE__ */ y("div", {
320
+ className: "grid grid-cols-1 sm:grid-cols-2 gap-3",
321
+ children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ y("label", {
322
+ htmlFor: "sync-wizard-priority-prefix",
323
+ className: "text-xs text-muted-foreground",
324
+ children: [
325
+ "Priority label prefix (default \"",
326
+ c.priority,
327
+ "\")"
328
+ ]
329
+ }), /* @__PURE__ */ v(T, {
330
+ id: "sync-wizard-priority-prefix",
331
+ className: "mt-1",
332
+ placeholder: c.priority,
333
+ value: R,
334
+ onChange: (e) => ye(e.target.value)
335
+ })] }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ y("label", {
336
+ htmlFor: "sync-wizard-duedate-prefix",
337
+ className: "text-xs text-muted-foreground",
338
+ children: [
339
+ "Due-date label prefix (default \"",
340
+ c.dueDate,
341
+ "\")"
342
+ ]
343
+ }), /* @__PURE__ */ v(T, {
344
+ id: "sync-wizard-duedate-prefix",
345
+ className: "mt-1",
346
+ placeholder: c.dueDate,
347
+ value: z,
348
+ onChange: (e) => be(e.target.value)
349
+ })] })]
350
+ })]
351
+ })]
352
+ }),
353
+ /* @__PURE__ */ y(x, {
354
+ "data-testid": "sync-wizard-step",
355
+ children: [/* @__PURE__ */ v(C, { children: /* @__PURE__ */ v(w, { children: "6. Review & create" }) }), /* @__PURE__ */ y(S, {
356
+ className: "space-y-3",
357
+ children: [
358
+ /* @__PURE__ */ y("dl", {
359
+ className: "grid grid-cols-1 sm:grid-cols-2 gap-x-4 gap-y-1 text-sm",
360
+ children: [
361
+ /* @__PURE__ */ v("dt", {
362
+ className: "text-muted-foreground",
363
+ children: "Provider"
364
+ }),
365
+ /* @__PURE__ */ v("dd", { children: d(g) }),
366
+ /* @__PURE__ */ v("dt", {
367
+ className: "text-muted-foreground",
368
+ children: "Direction"
369
+ }),
370
+ /* @__PURE__ */ v("dd", { children: N ? l(N) : "—" }),
371
+ /* @__PURE__ */ v("dt", {
372
+ className: "text-muted-foreground",
373
+ children: "External project"
374
+ }),
375
+ /* @__PURE__ */ v("dd", { children: J ? `${k}/${j}` : "—" }),
376
+ /* @__PURE__ */ v("dt", {
377
+ className: "text-muted-foreground",
378
+ children: "Conflict strategy"
379
+ }),
380
+ /* @__PURE__ */ v("dd", { children: r(L) })
381
+ ]
382
+ }),
383
+ /* @__PURE__ */ y("label", {
384
+ className: "flex items-start gap-2 text-sm",
385
+ children: [/* @__PURE__ */ v(me, {
386
+ checked: B,
387
+ onCheckedChange: (e) => xe(e === !0),
388
+ "data-testid": "sync-wizard-verify"
389
+ }), /* @__PURE__ */ y("span", { children: ["Verify the connection before creating (recommended)", /* @__PURE__ */ v("span", {
390
+ className: "block text-xs text-muted-foreground",
391
+ children: "Probes the credentials first; the sync is not created if the probe fails."
392
+ })] })]
393
+ }),
394
+ V && /* @__PURE__ */ v(n, { message: V }),
395
+ /* @__PURE__ */ y(b, {
396
+ onClick: () => void Te(),
397
+ disabled: K.loading,
398
+ "data-testid": "sync-wizard-create",
399
+ children: [K.loading ? /* @__PURE__ */ v(de, { className: "mr-1 h-4 w-4 animate-spin" }) : /* @__PURE__ */ v(fe, { className: "mr-1 h-4 w-4" }), "Create sync"]
400
+ })
401
+ ]
402
+ })]
403
+ })
404
+ ] })
405
+ ]
406
+ });
407
+ }
408
+ //#endregion
409
+ export { D as IntegrationsNewSyncPagePage };
410
+
411
+ //# sourceMappingURL=IntegrationsNewSyncPagePage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IntegrationsNewSyncPagePage.js","names":[],"sources":["../../../src/planmagnet/pages/IntegrationsNewSyncPagePage.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { gql } from '@apollo/client';\nimport { useMutation } from '@apollo/client/react';\nimport {\n Button,\n Card,\n CardContent,\n CardHeader,\n CardTitle,\n Checkbox,\n Input,\n} from '@burdenoff/fe-libs/ui';\nimport { ArrowLeft, CheckCircle2, Github, Loader2, Plug, ShieldQuestion } from 'lucide-react';\nimport { usePlanMagnetNavigate } from '../providers/PlanMagnetProvider';\nimport { detailPath } from '../utils/rowNavigation';\nimport { throwOnError } from '../utils/mutationResult';\nimport { isForbidden, mutationErrorMessage } from '../utils/graphqlErrors';\nimport { ErrorLine } from '../controls/ConfirmButton';\nimport { ProjectSelect } from '../controls/Pickers';\nimport { enumLabel } from '../controls/WorkItemControls';\nimport {\n RunNowButton,\n SyncRunResultSummary,\n TestConnectionButton,\n CONFLICT_STRATEGY_EXPLANATION,\n} from '../controls/SyncControls';\nimport { useSyncProviderCapabilities } from '../integrations/useSyncProviderCapabilities';\nimport {\n CONFLICT_RESOLUTIONS,\n directionLabel,\n directionSupported,\n GITHUB_FIELD_MAPPING_DEFAULTS,\n isValidGithubOwner,\n isValidGithubRepo,\n providerIsLive,\n providerLabel,\n SYNC_DIRECTIONS,\n type ConflictResolution,\n type SyncDirection,\n type SyncProvider,\n type SyncProviderCapability,\n type SyncRunResult,\n} from '../integrations/syncTypes';\n\n/**\n * Sync setup wizard (AUT-08): create an ExternalSync step by step, driven entirely by\n * `planmagnetSupportedSyncProviders` — a provider is selectable, and a direction is offered, only when the\n * capability list says it is real, never a hard-coded \"GitHub only\" rule. Today that capability list happens to\n * make GITHUB the only live choice (BOFF-4446); the connection fields below (owner/repo/token) are GitHub's own\n * documented `connectionConfig` shape and only make sense for it — there is nothing to generalize them to until\n * a second connector ships.\n */\n\nconst label = 'text-sm font-medium';\n\nconst CREATE_SYNC = gql`\n mutation NewSyncCreate($input: PlanmagnetCreateExternalSyncInput!) {\n planmagnetCreateExternalSync(input: $input) {\n id\n provider\n status\n project {\n id\n name\n }\n }\n }\n`;\n\ninterface CreatedSync {\n id: string;\n provider: string;\n status: string;\n project: { id: string; name: string } | null;\n}\n\nfunction ProviderStep({\n capabilities,\n capabilitiesLoading,\n provider,\n onSelect,\n}: {\n capabilities: SyncProviderCapability[];\n capabilitiesLoading: boolean;\n provider: SyncProvider | '';\n onSelect: (p: SyncProvider) => void;\n}) {\n return (\n <Card data-testid=\"sync-wizard-step\">\n <CardHeader>\n <CardTitle>1. Provider</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-2\">\n {capabilitiesLoading && <p className=\"text-sm text-muted-foreground\">Loading providers…</p>}\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-2\">\n {capabilities.map((c) => {\n const live = providerIsLive(c);\n const selected = provider === c.provider;\n return (\n <button\n key={c.provider}\n type=\"button\"\n disabled={!live}\n aria-pressed={selected}\n data-testid={`sync-wizard-provider-${c.provider}`}\n onClick={() => live && onSelect(c.provider)}\n className={`flex items-start gap-2 rounded-md border p-3 text-left text-sm transition-colors ${\n selected ? 'border-primary bg-primary/5' : 'border-input'\n } ${live ? 'hover:bg-muted' : 'cursor-not-allowed opacity-50'}`}\n >\n {c.provider === 'GITHUB' ? (\n <Github className=\"mt-0.5 h-4 w-4 shrink-0\" />\n ) : (\n <Plug className=\"mt-0.5 h-4 w-4 shrink-0\" />\n )}\n <span>\n <span className=\"block font-medium\">{providerLabel(c.provider)}</span>\n <span className=\"block text-xs text-muted-foreground\">\n {live\n ? [\n c.supportsImport && 'inbound',\n c.supportsExport && 'outbound',\n c.supportsBidirectional && 'bidirectional',\n ]\n .filter(Boolean)\n .join(', ') + ' sync'\n : 'No live connector yet — inbound, outbound and bidirectional sync are all unavailable for this provider.'}\n </span>\n </span>\n </button>\n );\n })}\n </div>\n </CardContent>\n </Card>\n );\n}\n\nexport function IntegrationsNewSyncPagePage() {\n const navigate = usePlanMagnetNavigate();\n const { capabilities, loading: capabilitiesLoading } = useSyncProviderCapabilities();\n\n const [provider, setProvider] = useState<SyncProvider | ''>('');\n const [projectId, setProjectId] = useState('');\n const [owner, setOwner] = useState('');\n const [repo, setRepo] = useState('');\n const [direction, setDirection] = useState<SyncDirection | ''>('');\n const [token, setToken] = useState('');\n const [conflictStrategy, setConflictStrategy] = useState<ConflictResolution>('MANUAL');\n const [priorityPrefix, setPriorityPrefix] = useState('');\n const [dueDatePrefix, setDueDatePrefix] = useState('');\n const [verifyBeforeCreate, setVerifyBeforeCreate] = useState(true);\n const [formError, setFormError] = useState<string | null>(null);\n const [created, setCreated] = useState<CreatedSync | null>(null);\n const [runResult, setRunResult] = useState<SyncRunResult | null>(null);\n\n const [create, state] = useMutation<{ planmagnetCreateExternalSync: CreatedSync }>(CREATE_SYNC, {\n refetchQueries: ['SyncsList'],\n });\n\n const capability = capabilities.find((c) => c.provider === provider);\n const isGithub = provider === 'GITHUB';\n const allowedDirections = capability\n ? SYNC_DIRECTIONS.filter((d) => directionSupported(capability, d))\n : [];\n\n const ownerValid = owner.trim() !== '' && isValidGithubOwner(owner);\n const repoValid = repo.trim() !== '' && isValidGithubRepo(repo);\n const step2Complete =\n !!provider && !!projectId && (!isGithub || (ownerValid && repoValid)) && !!direction;\n const step3Complete = step2Complete && token.trim() !== '';\n\n const buildInput = () => {\n const fieldMapping: Record<string, string> = {};\n if (priorityPrefix.trim()) fieldMapping.priority = priorityPrefix.trim();\n if (dueDatePrefix.trim()) fieldMapping.dueDate = dueDatePrefix.trim();\n return {\n projectId,\n provider,\n direction,\n externalProjectId: isGithub ? `${owner.trim()}/${repo.trim()}` : '',\n externalProjectUrl: isGithub\n ? `https://github.com/${owner.trim()}/${repo.trim()}`\n : undefined,\n connectionConfig: isGithub\n ? { token: token.trim(), owner: owner.trim(), repo: repo.trim() }\n : {},\n conflictStrategy,\n ...(Object.keys(fieldMapping).length > 0 ? { fieldMapping } : {}),\n testConnection: verifyBeforeCreate,\n };\n };\n\n const submit = async () => {\n setFormError(null);\n if (!step3Complete) {\n setFormError(\n 'Fill in the project, external project and credentials above before creating the sync.'\n );\n return;\n }\n try {\n const res = await throwOnError(create({ variables: { input: buildInput() } }));\n if (res.data) setCreated(res.data.planmagnetCreateExternalSync);\n } catch (e) {\n setFormError(\n isForbidden(e)\n ? 'Your role can view integrations but not set them up.'\n : mutationErrorMessage(e, 'The sync could not be created.')\n );\n }\n };\n\n if (created) {\n return (\n <div className=\"space-y-6 p-6 max-w-2xl\">\n <Card data-testid=\"sync-wizard-created\">\n <CardHeader>\n <CardTitle className=\"flex items-center gap-2\">\n <CheckCircle2 className=\"h-5 w-5 text-status-success-text\" />\n Sync created\n </CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-4\">\n <p className=\"text-sm text-muted-foreground\">\n {providerLabel(created.provider)} sync for {created.project?.name ?? 'the project'} is\n set up and idle. Test the connection and run the first sync now, or do either later\n from the sync&apos;s own page.\n </p>\n <div className=\"flex flex-wrap items-center gap-3\">\n <TestConnectionButton syncId={created.id} />\n <RunNowButton syncId={created.id} onResult={setRunResult} />\n </div>\n {runResult && <SyncRunResultSummary result={runResult} />}\n <Button\n onClick={() => navigate(detailPath('/integrations/sync-detail-page', created.id))}\n data-testid=\"sync-wizard-view\"\n >\n View sync\n </Button>\n </CardContent>\n </Card>\n </div>\n );\n }\n\n return (\n <div className=\"space-y-6 p-6 max-w-2xl\">\n <div className=\"flex items-start gap-3\">\n <Button\n variant=\"ghost\"\n size=\"icon\"\n aria-label=\"Back to Integrations\"\n onClick={() => navigate('/integrations/syncs-page')}\n >\n <ArrowLeft className=\"h-4 w-4\" />\n </Button>\n <div>\n <h1 className=\"text-2xl font-semibold\">Set up a sync</h1>\n <p className=\"text-sm text-muted-foreground\">\n Connect a PlanMagnet project to an external issue tracker so work items stay in step on\n both sides.\n </p>\n </div>\n </div>\n\n <ProviderStep\n capabilities={capabilities}\n capabilitiesLoading={capabilitiesLoading}\n provider={provider}\n onSelect={(p) => {\n setProvider(p);\n setDirection('');\n setOwner('');\n setRepo('');\n setToken('');\n }}\n />\n\n {provider && (\n <Card data-testid=\"sync-wizard-step\">\n <CardHeader>\n <CardTitle>2. Project, external project and direction</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-4\">\n <div>\n <label htmlFor=\"sync-wizard-project\" className={label}>\n PlanMagnet project\n </label>\n <div className=\"mt-1\">\n <ProjectSelect\n id=\"sync-wizard-project\"\n value={projectId}\n noneLabel=\"Choose a project\"\n onChange={setProjectId}\n />\n </div>\n </div>\n {isGithub && (\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-3\">\n <div>\n <label htmlFor=\"sync-wizard-owner\" className={label}>\n GitHub owner (user or org)\n </label>\n <Input\n id=\"sync-wizard-owner\"\n className=\"mt-1\"\n placeholder=\"e.g. algoshred\"\n value={owner}\n data-testid=\"sync-wizard-owner\"\n onChange={(e) => setOwner(e.target.value)}\n />\n {owner.trim() !== '' && !ownerValid && (\n <ErrorLine message=\"Not a valid GitHub owner name.\" />\n )}\n </div>\n <div>\n <label htmlFor=\"sync-wizard-repo\" className={label}>\n Repository\n </label>\n <Input\n id=\"sync-wizard-repo\"\n className=\"mt-1\"\n placeholder=\"e.g. wspace-planmagnet-svc\"\n value={repo}\n data-testid=\"sync-wizard-repo\"\n onChange={(e) => setRepo(e.target.value)}\n />\n {repo.trim() !== '' && !repoValid && (\n <ErrorLine message=\"Not a valid repository name.\" />\n )}\n </div>\n </div>\n )}\n <div>\n <span className={label}>Direction</span>\n {allowedDirections.length === 0 ? (\n <p className=\"mt-1 text-sm text-muted-foreground\">\n This provider offers no live sync direction yet.\n </p>\n ) : (\n <div className=\"mt-1 flex flex-col gap-1\" role=\"radiogroup\" aria-label=\"Direction\">\n {allowedDirections.map((d) => (\n <label key={d} className=\"flex items-center gap-2 text-sm\">\n <input\n type=\"radio\"\n name=\"sync-wizard-direction\"\n checked={direction === d}\n data-testid={`sync-wizard-direction-${d}`}\n onChange={() => setDirection(d)}\n />\n {directionLabel(d)}\n </label>\n ))}\n </div>\n )}\n </div>\n </CardContent>\n </Card>\n )}\n\n {step2Complete && (\n <Card data-testid=\"sync-wizard-step\">\n <CardHeader>\n <CardTitle>3. Credentials</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-3\">\n {isGithub && (\n <>\n <p className=\"text-sm text-muted-foreground\">\n Use a GitHub fine-grained personal access token scoped to{' '}\n <strong>\n {owner}/{repo}\n </strong>\n , with Issues set to <strong>Read and write</strong> — no other repository\n permission is needed.\n </p>\n <div className=\"max-w-sm\">\n <label htmlFor=\"sync-wizard-token\" className={label}>\n Personal access token\n </label>\n <Input\n id=\"sync-wizard-token\"\n type=\"password\"\n autoComplete=\"off\"\n className=\"mt-1\"\n value={token}\n data-testid=\"sync-wizard-token\"\n onChange={(e) => setToken(e.target.value)}\n />\n </div>\n </>\n )}\n </CardContent>\n </Card>\n )}\n\n {step3Complete && (\n <>\n <Card data-testid=\"sync-wizard-step\">\n <CardHeader>\n <CardTitle>4. Conflict strategy</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-2\">\n <p className=\"text-sm text-muted-foreground\">\n What happens when the same item changed on both sides since the last sync.\n </p>\n <div className=\"flex flex-col gap-1\" role=\"radiogroup\" aria-label=\"Conflict strategy\">\n {CONFLICT_RESOLUTIONS.map((r) => (\n <label key={r} className=\"flex items-start gap-2 text-sm\">\n <input\n type=\"radio\"\n name=\"sync-wizard-strategy\"\n className=\"mt-0.5\"\n checked={conflictStrategy === r}\n data-testid={`sync-wizard-strategy-${r}`}\n onChange={() => setConflictStrategy(r)}\n />\n <span>\n <span className=\"font-medium\">{enumLabel(r)}</span>\n <span className=\"block text-xs text-muted-foreground\">\n {CONFLICT_STRATEGY_EXPLANATION[r]}\n </span>\n </span>\n </label>\n ))}\n </div>\n </CardContent>\n </Card>\n\n {isGithub && (\n <Card data-testid=\"sync-wizard-step\">\n <CardHeader>\n <CardTitle>5. Field mapping (optional)</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-3\">\n <p className=\"text-sm text-muted-foreground\">\n GitHub issues have no native priority or due-date field — PlanMagnet encodes each\n as a label of the form <code>prefix+value</code> (e.g. <code>priority:HIGH</code>,{' '}\n <code>due:2026-10-01</code>\n ). Leave both blank to use the built-in prefixes.\n </p>\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-3\">\n <div>\n <label\n htmlFor=\"sync-wizard-priority-prefix\"\n className=\"text-xs text-muted-foreground\"\n >\n Priority label prefix (default &quot;{GITHUB_FIELD_MAPPING_DEFAULTS.priority}\n &quot;)\n </label>\n <Input\n id=\"sync-wizard-priority-prefix\"\n className=\"mt-1\"\n placeholder={GITHUB_FIELD_MAPPING_DEFAULTS.priority}\n value={priorityPrefix}\n onChange={(e) => setPriorityPrefix(e.target.value)}\n />\n </div>\n <div>\n <label\n htmlFor=\"sync-wizard-duedate-prefix\"\n className=\"text-xs text-muted-foreground\"\n >\n Due-date label prefix (default &quot;{GITHUB_FIELD_MAPPING_DEFAULTS.dueDate}\n &quot;)\n </label>\n <Input\n id=\"sync-wizard-duedate-prefix\"\n className=\"mt-1\"\n placeholder={GITHUB_FIELD_MAPPING_DEFAULTS.dueDate}\n value={dueDatePrefix}\n onChange={(e) => setDueDatePrefix(e.target.value)}\n />\n </div>\n </div>\n </CardContent>\n </Card>\n )}\n\n <Card data-testid=\"sync-wizard-step\">\n <CardHeader>\n <CardTitle>6. Review &amp; create</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-3\">\n <dl className=\"grid grid-cols-1 sm:grid-cols-2 gap-x-4 gap-y-1 text-sm\">\n <dt className=\"text-muted-foreground\">Provider</dt>\n <dd>{providerLabel(provider)}</dd>\n <dt className=\"text-muted-foreground\">Direction</dt>\n <dd>{direction ? directionLabel(direction) : '—'}</dd>\n <dt className=\"text-muted-foreground\">External project</dt>\n <dd>{isGithub ? `${owner}/${repo}` : '—'}</dd>\n <dt className=\"text-muted-foreground\">Conflict strategy</dt>\n <dd>{enumLabel(conflictStrategy)}</dd>\n </dl>\n <label className=\"flex items-start gap-2 text-sm\">\n <Checkbox\n checked={verifyBeforeCreate}\n onCheckedChange={(checked) => setVerifyBeforeCreate(checked === true)}\n data-testid=\"sync-wizard-verify\"\n />\n <span>\n Verify the connection before creating (recommended)\n <span className=\"block text-xs text-muted-foreground\">\n Probes the credentials first; the sync is not created if the probe fails.\n </span>\n </span>\n </label>\n {formError && <ErrorLine message={formError} />}\n <Button\n onClick={() => void submit()}\n disabled={state.loading}\n data-testid=\"sync-wizard-create\"\n >\n {state.loading ? (\n <Loader2 className=\"mr-1 h-4 w-4 animate-spin\" />\n ) : (\n <ShieldQuestion className=\"mr-1 h-4 w-4\" />\n )}\n Create sync\n </Button>\n </CardContent>\n </Card>\n </>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAqDA,IAAM,IAAQ,uBAER,KAAc,CAAG;;;;;;;;;;;;;AAqBvB,SAAS,GAAa,EACpB,iBACA,wBACA,aACA,eAMC;AACD,QACE,kBAAC,GAAD;EAAM,eAAY;YAAlB,CACE,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD,EAAA,UAAW,eAAuB,CAAA,EACvB,CAAA,EACb,kBAAC,GAAD;GAAa,WAAU;aAAvB,CACG,KAAuB,kBAAC,KAAD;IAAG,WAAU;cAAgC;IAAsB,CAAA,EAC3F,kBAAC,OAAD;IAAK,WAAU;cACZ,EAAa,KAAK,MAAM;KACvB,IAAM,IAAO,EAAe,EAAE,EACxB,IAAW,MAAa,EAAE;AAChC,YACE,kBAAC,UAAD;MAEE,MAAK;MACL,UAAU,CAAC;MACX,gBAAc;MACd,eAAa,wBAAwB,EAAE;MACvC,eAAe,KAAQ,EAAS,EAAE,SAAS;MAC3C,WAAW,oFACT,IAAW,gCAAgC,eAC5C,GAAG,IAAO,mBAAmB;gBAThC,CAWG,EAAE,aAAa,WACd,kBAAC,GAAD,EAAQ,WAAU,2BAA4B,CAAA,GAE9C,kBAAC,GAAD,EAAM,WAAU,2BAA4B,CAAA,EAE9C,kBAAC,QAAD,EAAA,UAAA,CACE,kBAAC,QAAD;OAAM,WAAU;iBAAqB,EAAc,EAAE,SAAS;OAAQ,CAAA,EACtE,kBAAC,QAAD;OAAM,WAAU;iBACb,IACG;QACE,EAAE,kBAAkB;QACpB,EAAE,kBAAkB;QACpB,EAAE,yBAAyB;QAC5B,CACE,OAAO,QAAQ,CACf,KA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,EAAU,GAAG,KAAS,CAAA;SACtD,kBAAC,MAAD;UAAI,WAAU;oBAAwB;UAAqB,CAAA;SAC3D,kBAAC,MAAD,EAAA,UAAK,IAAW,GAAG,EAAM,GAAG,MAAS,KAAS,CAAA;SAC9C,kBAAC,MAAD;UAAI,WAAU;oBAAwB;UAAsB,CAAA;SAC5D,kBAAC,MAAD,EAAA,UAAK,EAAU,EAAiB,EAAM,CAAA;SACnC;;OACL,kBAAC,SAAD;QAAO,WAAU;kBAAjB,CACE,kBAAC,IAAD;SACE,SAAS;SACT,kBAAkB,MAAY,GAAsB,MAAY,GAAK;SACrE,eAAY;SACZ,CAAA,EACF,kBAAC,QAAD,EAAA,UAAA,CAAM,uDAEJ,kBAAC,QAAD;SAAM,WAAU;mBAAsC;SAE/C,CAAA,CACF,EAAA,CAAA,CACD;;OACP,KAAa,kBAAC,GAAD,EAAW,SAAS,GAAa,CAAA;OAC/C,kBAAC,GAAD;QACE,eAAe,KAAK,IAAQ;QAC5B,UAAU,EAAM;QAChB,eAAY;kBAHd,CAKG,EAAM,UACL,kBAAC,IAAD,EAAS,WAAU,6BAA8B,CAAA,GAEjD,kBAAC,IAAD,EAAgB,WAAU,gBAAiB,CAAA,EAC3C,cAEK;;OACG;QACT;;IACN,EAAA,CAAA;GAED"}
@@ -0,0 +1,2 @@
1
+ export declare function IntegrationsSyncDetailPagePage(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=IntegrationsSyncDetailPagePage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IntegrationsSyncDetailPagePage.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/pages/IntegrationsSyncDetailPagePage.tsx"],"names":[],"mappings":"AA8ZA,wBAAgB,8BAA8B,4CAuM7C"}