@burdenoff/microfe-planmagnet 2026.1124.1 → 2026.1126.2

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.
@@ -2798,6 +2798,24 @@ export type DeleteDependencyMutationVariables = Exact<{
2798
2798
  export type DeleteDependencyMutation = {
2799
2799
  planmagnetDeleteDependency: boolean;
2800
2800
  };
2801
+ export type WorkItemIssueLinkCreateMutationVariables = Exact<{
2802
+ input: Types.PlanmagnetCreateWorkItemLinkInput;
2803
+ }>;
2804
+ export type WorkItemIssueLinkCreateMutation = {
2805
+ planmagnetCreateWorkItemLinkRecord: {
2806
+ id: string;
2807
+ };
2808
+ };
2809
+ export type WorkItemIssueLinkUpdateMutationVariables = Exact<{
2810
+ id: string | number;
2811
+ input: Types.PlanmagnetUpdateWorkItemLinkInput;
2812
+ }>;
2813
+ export type WorkItemIssueLinkUpdateMutation = {
2814
+ planmagnetUpdateWorkItemLinkRecord: {
2815
+ id: string;
2816
+ relationType: Types.WorkItemLinkRelation;
2817
+ };
2818
+ };
2801
2819
  export type AdminPlanmagnetQuotaQueryVariables = Exact<{
2802
2820
  workspaceId: string | number;
2803
2821
  }>;
@@ -5443,6 +5461,8 @@ export declare const AssignWorkItemDocument: DocumentNode<AssignWorkItemMutation
5443
5461
  export declare const CreateDependencyDocument: DocumentNode<CreateDependencyMutation, CreateDependencyMutationVariables>;
5444
5462
  export declare const UpdateDependencyDocument: DocumentNode<UpdateDependencyMutation, UpdateDependencyMutationVariables>;
5445
5463
  export declare const DeleteDependencyDocument: DocumentNode<DeleteDependencyMutation, DeleteDependencyMutationVariables>;
5464
+ export declare const WorkItemIssueLinkCreateDocument: DocumentNode<WorkItemIssueLinkCreateMutation, WorkItemIssueLinkCreateMutationVariables>;
5465
+ export declare const WorkItemIssueLinkUpdateDocument: DocumentNode<WorkItemIssueLinkUpdateMutation, WorkItemIssueLinkUpdateMutationVariables>;
5446
5466
  export declare const AdminPlanmagnetQuotaDocument: DocumentNode<AdminPlanmagnetQuotaQuery, AdminPlanmagnetQuotaQueryVariables>;
5447
5467
  export declare const AdminPlanmagnetProjectsDocument: DocumentNode<AdminPlanmagnetProjectsQuery, AdminPlanmagnetProjectsQueryVariables>;
5448
5468
  export declare const AdminPlanmagnetAutomationRuleAuditDocument: DocumentNode<AdminPlanmagnetAutomationRuleAuditQuery, AdminPlanmagnetAutomationRuleAuditQueryVariables>;
@@ -90,6 +90,172 @@ var e = {
90
90
  }
91
91
  }]
92
92
  }, t = {
93
+ kind: "Document",
94
+ definitions: [{
95
+ kind: "OperationDefinition",
96
+ operation: "mutation",
97
+ name: {
98
+ kind: "Name",
99
+ value: "WorkItemIssueLinkCreate"
100
+ },
101
+ variableDefinitions: [{
102
+ kind: "VariableDefinition",
103
+ variable: {
104
+ kind: "Variable",
105
+ name: {
106
+ kind: "Name",
107
+ value: "input"
108
+ }
109
+ },
110
+ type: {
111
+ kind: "NonNullType",
112
+ type: {
113
+ kind: "NamedType",
114
+ name: {
115
+ kind: "Name",
116
+ value: "PlanmagnetCreateWorkItemLinkInput"
117
+ }
118
+ }
119
+ }
120
+ }],
121
+ selectionSet: {
122
+ kind: "SelectionSet",
123
+ selections: [{
124
+ kind: "Field",
125
+ name: {
126
+ kind: "Name",
127
+ value: "planmagnetCreateWorkItemLinkRecord"
128
+ },
129
+ arguments: [{
130
+ kind: "Argument",
131
+ name: {
132
+ kind: "Name",
133
+ value: "input"
134
+ },
135
+ value: {
136
+ kind: "Variable",
137
+ name: {
138
+ kind: "Name",
139
+ value: "input"
140
+ }
141
+ }
142
+ }],
143
+ selectionSet: {
144
+ kind: "SelectionSet",
145
+ selections: [{
146
+ kind: "Field",
147
+ name: {
148
+ kind: "Name",
149
+ value: "id"
150
+ }
151
+ }]
152
+ }
153
+ }]
154
+ }
155
+ }]
156
+ }, n = {
157
+ kind: "Document",
158
+ definitions: [{
159
+ kind: "OperationDefinition",
160
+ operation: "mutation",
161
+ name: {
162
+ kind: "Name",
163
+ value: "WorkItemIssueLinkUpdate"
164
+ },
165
+ variableDefinitions: [{
166
+ kind: "VariableDefinition",
167
+ variable: {
168
+ kind: "Variable",
169
+ name: {
170
+ kind: "Name",
171
+ value: "id"
172
+ }
173
+ },
174
+ type: {
175
+ kind: "NonNullType",
176
+ type: {
177
+ kind: "NamedType",
178
+ name: {
179
+ kind: "Name",
180
+ value: "ID"
181
+ }
182
+ }
183
+ }
184
+ }, {
185
+ kind: "VariableDefinition",
186
+ variable: {
187
+ kind: "Variable",
188
+ name: {
189
+ kind: "Name",
190
+ value: "input"
191
+ }
192
+ },
193
+ type: {
194
+ kind: "NonNullType",
195
+ type: {
196
+ kind: "NamedType",
197
+ name: {
198
+ kind: "Name",
199
+ value: "PlanmagnetUpdateWorkItemLinkInput"
200
+ }
201
+ }
202
+ }
203
+ }],
204
+ selectionSet: {
205
+ kind: "SelectionSet",
206
+ selections: [{
207
+ kind: "Field",
208
+ name: {
209
+ kind: "Name",
210
+ value: "planmagnetUpdateWorkItemLinkRecord"
211
+ },
212
+ arguments: [{
213
+ kind: "Argument",
214
+ name: {
215
+ kind: "Name",
216
+ value: "id"
217
+ },
218
+ value: {
219
+ kind: "Variable",
220
+ name: {
221
+ kind: "Name",
222
+ value: "id"
223
+ }
224
+ }
225
+ }, {
226
+ kind: "Argument",
227
+ name: {
228
+ kind: "Name",
229
+ value: "input"
230
+ },
231
+ value: {
232
+ kind: "Variable",
233
+ name: {
234
+ kind: "Name",
235
+ value: "input"
236
+ }
237
+ }
238
+ }],
239
+ selectionSet: {
240
+ kind: "SelectionSet",
241
+ selections: [{
242
+ kind: "Field",
243
+ name: {
244
+ kind: "Name",
245
+ value: "id"
246
+ }
247
+ }, {
248
+ kind: "Field",
249
+ name: {
250
+ kind: "Name",
251
+ value: "relationType"
252
+ }
253
+ }]
254
+ }
255
+ }]
256
+ }
257
+ }]
258
+ }, r = {
93
259
  kind: "Document",
94
260
  definitions: [{
95
261
  kind: "OperationDefinition",
@@ -204,7 +370,7 @@ var e = {
204
370
  }]
205
371
  }
206
372
  }]
207
- }, n = {
373
+ }, i = {
208
374
  kind: "Document",
209
375
  definitions: [{
210
376
  kind: "OperationDefinition",
@@ -403,7 +569,7 @@ var e = {
403
569
  }]
404
570
  }
405
571
  }]
406
- }, r = {
572
+ }, a = {
407
573
  kind: "Document",
408
574
  definitions: [{
409
575
  kind: "OperationDefinition",
@@ -611,4 +777,4 @@ var e = {
611
777
  }
612
778
  }]
613
779
  };
614
- export { e as AdminArchiveProjectDocument, r as AdminPlanmagnetAutomationRuleAuditDocument, n as AdminPlanmagnetProjectsDocument, t as AdminPlanmagnetQuotaDocument };
780
+ export { e as AdminArchiveProjectDocument, a as AdminPlanmagnetAutomationRuleAuditDocument, i as AdminPlanmagnetProjectsDocument, r as AdminPlanmagnetQuotaDocument, t as WorkItemIssueLinkCreateDocument, n as WorkItemIssueLinkUpdateDocument };
@@ -881,6 +881,8 @@ export type Mutation = {
881
881
  planmagnetCreateCustomerSatisfactionResponse: PlanmagnetCustomerSatisfactionResponse;
882
882
  /** Create a new dependency between work items */
883
883
  planmagnetCreateDependency: WorkItemDependency;
884
+ /** Create a dependency record between work items. */
885
+ planmagnetCreateDependencyRecord: PlanmagnetWorkItemDependency;
884
886
  planmagnetCreateDoc: PlanmagnetDoc;
885
887
  /** Create a new external sync configuration */
886
888
  planmagnetCreateExternalSync: ExternalSync;
@@ -948,6 +950,8 @@ export type Mutation = {
948
950
  planmagnetCreateWebhookSubscription: PlanmagnetWebhookSubscriptionWithSecret;
949
951
  /** Create a new work item */
950
952
  planmagnetCreateWorkItem: WorkItem;
953
+ /** Link a work item and return the prefixed federation type. */
954
+ planmagnetCreateWorkItemLinkRecord: PlanmagnetWorkItemLink;
951
955
  /**
952
956
  * Accept or reject an OPEN suggestion — the doc's `update` tier, because accepting one is a real edit to the doc
953
957
  * (a new revision, through the same write path `planmagnetUpdateDoc` uses, including its lock rule). Refused
@@ -1522,6 +1526,8 @@ export type Mutation = {
1522
1526
  planmagnetUpdateCustomerSatisfactionResponse: PlanmagnetCustomerSatisfactionResponse;
1523
1527
  /** Update an existing dependency */
1524
1528
  planmagnetUpdateDependency: WorkItemDependency;
1529
+ /** Update an existing dependency record. */
1530
+ planmagnetUpdateDependencyRecord: PlanmagnetWorkItemDependency;
1525
1531
  planmagnetUpdateDoc: PlanmagnetDoc;
1526
1532
  /** Update an expense */
1527
1533
  planmagnetUpdateExpense: BudgetExpense;
@@ -1596,6 +1602,8 @@ export type Mutation = {
1596
1602
  planmagnetUpdateWorkItem: WorkItem;
1597
1603
  /** Update an existing work item link */
1598
1604
  planmagnetUpdateWorkItemLink: WorkItemLink;
1605
+ /** Update a work item link and return the prefixed federation type. */
1606
+ planmagnetUpdateWorkItemLinkRecord: PlanmagnetWorkItemLink;
1599
1607
  /** Vote on a feature request */
1600
1608
  planmagnetVoteOnFeature: FeatureVote;
1601
1609
  /**
@@ -1758,6 +1766,9 @@ export type MutationPlanmagnetCreateCustomerSatisfactionResponseArgs = {
1758
1766
  export type MutationPlanmagnetCreateDependencyArgs = {
1759
1767
  input: PlanmagnetCreateDependencyInput;
1760
1768
  };
1769
+ export type MutationPlanmagnetCreateDependencyRecordArgs = {
1770
+ input: PlanmagnetCreateDependencyInput;
1771
+ };
1761
1772
  export type MutationPlanmagnetCreateDocArgs = {
1762
1773
  input: PlanmagnetCreateDocInput;
1763
1774
  };
@@ -1864,6 +1875,9 @@ export type MutationPlanmagnetCreateWebhookSubscriptionArgs = {
1864
1875
  export type MutationPlanmagnetCreateWorkItemArgs = {
1865
1876
  input: PlanmagnetCreateWorkItemInput;
1866
1877
  };
1878
+ export type MutationPlanmagnetCreateWorkItemLinkRecordArgs = {
1879
+ input: PlanmagnetCreateWorkItemLinkInput;
1880
+ };
1867
1881
  export type MutationPlanmagnetDecideDocSuggestionArgs = {
1868
1882
  accept: Scalars['Boolean']['input'];
1869
1883
  id: Scalars['ID']['input'];
@@ -2421,6 +2435,10 @@ export type MutationPlanmagnetUpdateDependencyArgs = {
2421
2435
  id: Scalars['ID']['input'];
2422
2436
  input: PlanmagnetUpdateDependencyInput;
2423
2437
  };
2438
+ export type MutationPlanmagnetUpdateDependencyRecordArgs = {
2439
+ id: Scalars['ID']['input'];
2440
+ input: PlanmagnetUpdateDependencyInput;
2441
+ };
2424
2442
  export type MutationPlanmagnetUpdateDocArgs = {
2425
2443
  id: Scalars['ID']['input'];
2426
2444
  input: PlanmagnetUpdateDocInput;
@@ -2557,6 +2575,10 @@ export type MutationPlanmagnetUpdateWorkItemLinkArgs = {
2557
2575
  id: Scalars['ID']['input'];
2558
2576
  input: PlanmagnetUpdateWorkItemLinkInput;
2559
2577
  };
2578
+ export type MutationPlanmagnetUpdateWorkItemLinkRecordArgs = {
2579
+ id: Scalars['ID']['input'];
2580
+ input: PlanmagnetUpdateWorkItemLinkInput;
2581
+ };
2560
2582
  export type MutationPlanmagnetVoteOnFeatureArgs = {
2561
2583
  featureRequestId: Scalars['ID']['input'];
2562
2584
  input?: InputMaybe<PlanmagnetVoteOnFeatureInput>;
@@ -9441,12 +9463,60 @@ export type PlanmagnetWorkItemCounts = {
9441
9463
  /** Every matching work item */
9442
9464
  total: Scalars['Int']['output'];
9443
9465
  };
9466
+ /** A work item dependency with the PlanMagnet federation name. */
9467
+ export type PlanmagnetWorkItemDependency = {
9468
+ __typename?: 'PlanmagnetWorkItemDependency';
9469
+ /** Creation timestamp */
9470
+ createdAt: Scalars['DateTime']['output'];
9471
+ /** Actor who created this dependency */
9472
+ createdBy: Scalars['String']['output'];
9473
+ /** Optional description */
9474
+ description?: Maybe<Scalars['String']['output']>;
9475
+ /** Unique identifier */
9476
+ id: Scalars['ID']['output'];
9477
+ /**
9478
+ * Offset applied to the constraint, in minutes. Negative means lead (overlap)
9479
+ * rather than lag. The column has always existed as `lagDays`; the SDL never
9480
+ * exposed it, so a lagged constraint could not be expressed at all.
9481
+ */
9482
+ lagMinutes?: Maybe<Scalars['Int']['output']>;
9483
+ /** Arbitrary metadata */
9484
+ metadata?: Maybe<Scalars['JSON']['output']>;
9485
+ /** Actor on whose behalf this was created */
9486
+ onBehalfOf?: Maybe<Scalars['String']['output']>;
9487
+ /** The constraining work item */
9488
+ predecessor?: Maybe<WorkItem>;
9489
+ /**
9490
+ * The work item that constrains the other. Renamed from `sourceWorkItemId`:
9491
+ * with `type` now purely a scheduling relationship, source/target read as a
9492
+ * generic graph edge while predecessor/successor state the actual meaning.
9493
+ */
9494
+ predecessorId: Scalars['String']['output'];
9495
+ /** Current status */
9496
+ status: DependencyStatus;
9497
+ /** The constrained work item */
9498
+ successor?: Maybe<WorkItem>;
9499
+ /** The work item whose schedule is constrained. Renamed from `targetWorkItemId`. */
9500
+ successorId: Scalars['String']['output'];
9501
+ /** Type of dependency */
9502
+ type: DependencyType;
9503
+ /** Last update timestamp */
9504
+ updatedAt: Scalars['DateTime']['output'];
9505
+ /** Associated workspace ID */
9506
+ workspaceId: Scalars['String']['output'];
9507
+ };
9444
9508
  export type PlanmagnetWorkItemDependencyList = {
9445
9509
  __typename?: 'PlanmagnetWorkItemDependencyList';
9446
9510
  items: Array<WorkItemDependency>;
9447
9511
  pageInfo: PlanmagnetPageInfo;
9448
9512
  totalCount: Scalars['Int']['output'];
9449
9513
  };
9514
+ export type PlanmagnetWorkItemDependencyRecordList = {
9515
+ __typename?: 'PlanmagnetWorkItemDependencyRecordList';
9516
+ items: Array<PlanmagnetWorkItemDependency>;
9517
+ pageInfo: PlanmagnetPageInfo;
9518
+ totalCount: Scalars['Int']['output'];
9519
+ };
9450
9520
  /**
9451
9521
  * A thin, workspace-scoped real-time notification that a work item changed
9452
9522
  * (PDM-11). Carries identifiers and the names of the fields that changed —
@@ -9513,6 +9583,40 @@ export type PlanmagnetWorkItemIssueLink = {
9513
9583
  /** The other work item */
9514
9584
  workItem?: Maybe<WorkItem>;
9515
9585
  };
9586
+ /** A work item link with the PlanMagnet federation name. */
9587
+ export type PlanmagnetWorkItemLink = {
9588
+ __typename?: 'PlanmagnetWorkItemLink';
9589
+ /** Creation timestamp */
9590
+ createdAt: Scalars['DateTime']['output'];
9591
+ /** Actor who created this link */
9592
+ createdBy: Scalars['String']['output'];
9593
+ /** Deep link to the entity captured at link time */
9594
+ deepLinkSnapshot?: Maybe<Scalars['String']['output']>;
9595
+ /** Human label captured at link time; shown if the entity can't be resolved */
9596
+ displayNameSnapshot?: Maybe<Scalars['String']['output']>;
9597
+ /** Primary key of the linked entity within the source product */
9598
+ entityId: Scalars['String']['output'];
9599
+ /** Entity type within the source product, e.g. "FIELD" | "CROP" | "ANIMAL" */
9600
+ entityType: Scalars['String']['output'];
9601
+ /** Unique identifier */
9602
+ id: Scalars['ID']['output'];
9603
+ /** Arbitrary metadata */
9604
+ metadata?: Maybe<Scalars['JSON']['output']>;
9605
+ /** Actor on whose behalf this was created */
9606
+ onBehalfOf?: Maybe<Scalars['String']['output']>;
9607
+ /** Semantic of the link */
9608
+ relationType: WorkItemLinkRelation;
9609
+ /** Owning product of the linked entity, e.g. "healthybowl" */
9610
+ sourceProduct: Scalars['String']['output'];
9611
+ /** Last update timestamp */
9612
+ updatedAt: Scalars['DateTime']['output'];
9613
+ /** Linked work item */
9614
+ workItem?: Maybe<WorkItem>;
9615
+ /** Linked work item ID */
9616
+ workItemId: Scalars['String']['output'];
9617
+ /** Associated workspace ID */
9618
+ workspaceId: Scalars['String']['output'];
9619
+ };
9516
9620
  export type PlanmagnetWorkItemLinkFilter = {
9517
9621
  entityId?: InputMaybe<Scalars['String']['input']>;
9518
9622
  entityType?: InputMaybe<Scalars['String']['input']>;
@@ -9526,6 +9630,12 @@ export type PlanmagnetWorkItemLinkList = {
9526
9630
  pageInfo: PlanmagnetPageInfo;
9527
9631
  totalCount: Scalars['Int']['output'];
9528
9632
  };
9633
+ export type PlanmagnetWorkItemLinkRecordList = {
9634
+ __typename?: 'PlanmagnetWorkItemLinkRecordList';
9635
+ items: Array<PlanmagnetWorkItemLink>;
9636
+ pageInfo: PlanmagnetPageInfo;
9637
+ totalCount: Scalars['Int']['output'];
9638
+ };
9529
9639
  export type PlanmagnetWorkItemList = {
9530
9640
  __typename?: 'PlanmagnetWorkItemList';
9531
9641
  items: Array<WorkItem>;
@@ -10046,6 +10156,10 @@ export type Query = {
10046
10156
  * an empty array when the graph is acyclic.
10047
10157
  */
10048
10158
  planmagnetDependencyCycles: Array<PlanmagnetDependencyCycle>;
10159
+ /** Get a dependency record by ID. */
10160
+ planmagnetDependencyRecord?: Maybe<PlanmagnetWorkItemDependency>;
10161
+ /** List dependency records in a workspace. */
10162
+ planmagnetDependencyRecords: PlanmagnetWorkItemDependencyRecordList;
10049
10163
  planmagnetDoc?: Maybe<PlanmagnetDoc>;
10050
10164
  /**
10051
10165
  * Top-level comments on a doc, oldest first, cursor-paged; each carries its own replies (CWF-12, bounded — see
@@ -10444,6 +10558,10 @@ export type Query = {
10444
10558
  planmagnetWorkItemIssueLinks: Array<PlanmagnetWorkItemIssueLink>;
10445
10559
  /** Get a single work item link by ID */
10446
10560
  planmagnetWorkItemLink?: Maybe<WorkItemLink>;
10561
+ /** Get a single work item link using the prefixed federation type. */
10562
+ planmagnetWorkItemLinkRecord?: Maybe<PlanmagnetWorkItemLink>;
10563
+ /** List work item links using the prefixed federation type. */
10564
+ planmagnetWorkItemLinkRecords: PlanmagnetWorkItemLinkRecordList;
10447
10565
  /** List work item links in a workspace (filter by work item or source entity) */
10448
10566
  planmagnetWorkItemLinks: PlanmagnetWorkItemLinkList;
10449
10567
  /** List work items in a workspace */
@@ -10605,6 +10723,14 @@ export type QueryPlanmagnetDependencyCyclesArgs = {
10605
10723
  projectId?: InputMaybe<Scalars['ID']['input']>;
10606
10724
  workspaceId: Scalars['ID']['input'];
10607
10725
  };
10726
+ export type QueryPlanmagnetDependencyRecordArgs = {
10727
+ id: Scalars['ID']['input'];
10728
+ };
10729
+ export type QueryPlanmagnetDependencyRecordsArgs = {
10730
+ filter?: InputMaybe<PlanmagnetDependencyFilter>;
10731
+ pagination?: InputMaybe<PlanmagnetPaginationInput>;
10732
+ workspaceId: Scalars['ID']['input'];
10733
+ };
10608
10734
  export type QueryPlanmagnetDocArgs = {
10609
10735
  id: Scalars['ID']['input'];
10610
10736
  };
@@ -11070,6 +11196,14 @@ export type QueryPlanmagnetWorkItemIssueLinksArgs = {
11070
11196
  export type QueryPlanmagnetWorkItemLinkArgs = {
11071
11197
  id: Scalars['ID']['input'];
11072
11198
  };
11199
+ export type QueryPlanmagnetWorkItemLinkRecordArgs = {
11200
+ id: Scalars['ID']['input'];
11201
+ };
11202
+ export type QueryPlanmagnetWorkItemLinkRecordsArgs = {
11203
+ filter?: InputMaybe<PlanmagnetWorkItemLinkFilter>;
11204
+ pagination?: InputMaybe<PlanmagnetPaginationInput>;
11205
+ workspaceId: Scalars['ID']['input'];
11206
+ };
11073
11207
  export type QueryPlanmagnetWorkItemLinksArgs = {
11074
11208
  filter?: InputMaybe<PlanmagnetWorkItemLinkFilter>;
11075
11209
  pagination?: InputMaybe<PlanmagnetPaginationInput>;
@@ -11737,6 +11871,8 @@ export type WorkItem = {
11737
11871
  deletedAt?: Maybe<Scalars['DateTime']['output']>;
11738
11872
  /** Dependencies where this item is the source */
11739
11873
  dependencies: Array<WorkItemDependency>;
11874
+ /** Scheduling dependencies with PlanMagnet federation names. */
11875
+ dependencyRecords: Array<PlanmagnetWorkItemDependency>;
11740
11876
  /** Detailed description */
11741
11877
  description?: Maybe<Scalars['String']['output']>;
11742
11878
  /**
@@ -0,0 +1,5 @@
1
+ // src/generated/wspace-types.ts
2
+ var e = /* @__PURE__ */ function(e) {
3
+ return e.Affects = "AFFECTS", e.BlockedBy = "BLOCKED_BY", e.Blocks = "BLOCKS", e.CausedBy = "CAUSED_BY", e.Causes = "CAUSES", e.DuplicatedBy = "DUPLICATED_BY", e.Duplicates = "DUPLICATES", e.Inspects = "INSPECTS", e.Produces = "PRODUCES", e.RelatedTo = "RELATED_TO", e.WorksOn = "WORKS_ON", e;
4
+ }({});
5
+ export { e as WorkItemLinkRelation };
@@ -1,3 +1,22 @@
1
+ /** Rows per request. Well under the engine's cap of 100 so every request is one bounded page. */
2
+ export declare const WORKFLOW_PAGE_SIZE = 50;
3
+ /** How long the search box waits after the last keystroke before it asks the server. */
4
+ export declare const WORKFLOW_SEARCH_DEBOUNCE_MS = 300;
5
+ export interface WorkflowOption {
6
+ id: string;
7
+ name: string;
8
+ workflowKey: string;
9
+ version: string;
10
+ }
11
+ /** The variables for one page of active workflows. A blank search is no search. */
12
+ export declare function workflowPageInput(search: string, offset: number): {
13
+ search?: string | undefined;
14
+ status: string;
15
+ limit: number;
16
+ offset: number;
17
+ };
18
+ /** Appends a page to the rows already shown, dropping any row a shifted offset returns twice. */
19
+ export declare function appendWorkflowPage(shown: readonly WorkflowOption[], page: readonly WorkflowOption[]): WorkflowOption[];
1
20
  export declare function WorkflowSelect({ value, onChange, }: {
2
21
  value: string;
3
22
  onChange: (workflowDefinitionId: string) => void;
@@ -1,8 +1,9 @@
1
- import { gql as e } from "@apollo/client";
2
- import { useQuery as t } from "@apollo/client/react";
3
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
1
+ import { useEffect as e, useState as t } from "react";
2
+ import { gql as n } from "@apollo/client";
3
+ import { useApolloClient as r, useQuery as i } from "@apollo/client/react";
4
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
4
5
  // src/planmagnet/automation/WorkflowSelect.tsx
5
- var i = e`
6
+ var s = n`
6
7
  query AutomationRunnableWorkflows($input: ListWorkflowDefinitionsInput!) {
7
8
  workflowDefinitions(input: $input) {
8
9
  items {
@@ -11,63 +12,136 @@ var i = e`
11
12
  workflowKey
12
13
  version
13
14
  }
14
- total
15
15
  hasMore
16
16
  }
17
17
  }
18
- `, a = 100, o = "w-full rounded-md border border-input bg-background px-3 py-2 text-sm disabled:opacity-60";
19
- function s({ value: e, onChange: s }) {
20
- let { data: c, loading: l, error: u } = t(i, {
21
- variables: { input: {
22
- status: "ACTIVE",
23
- limit: a,
24
- offset: 0
25
- } },
18
+ `, c = n`
19
+ query AutomationSelectedWorkflow($id: ID!) {
20
+ workflowDefinition(id: $id) {
21
+ id
22
+ name
23
+ workflowKey
24
+ version
25
+ status
26
+ }
27
+ }
28
+ `;
29
+ function l(e, t) {
30
+ let n = e.trim();
31
+ return {
32
+ status: "ACTIVE",
33
+ limit: 50,
34
+ offset: t,
35
+ ...n ? { search: n } : {}
36
+ };
37
+ }
38
+ function u(e, t) {
39
+ let n = new Set(e.map((e) => e.id));
40
+ return [...e, ...t.filter((e) => !n.has(e.id))];
41
+ }
42
+ var d = "w-full rounded-md border border-input bg-background px-3 py-2 text-sm disabled:opacity-60", f = "w-full rounded-md border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground", p = "rounded-md border border-input bg-background px-2 py-1 text-xs hover:bg-muted disabled:opacity-60";
43
+ function m(n, r) {
44
+ let [i, a] = t(n);
45
+ return e(() => {
46
+ let e = setTimeout(() => a(n), r);
47
+ return () => clearTimeout(e);
48
+ }, [n, r]), i;
49
+ }
50
+ function h({ value: e, onChange: n }) {
51
+ let h = r(), [g, _] = t(""), v = m(g, 300).trim(), [y, b] = t(null), [x, S] = t(!1), [C, w] = t(null), { data: T, loading: E, error: D } = i(s, {
52
+ variables: { input: l(v, 0) },
26
53
  fetchPolicy: "cache-and-network"
27
- }), d = c?.workflowDefinitions.items ?? [], f = e === "" || d.some((t) => t.id === e);
28
- return /* @__PURE__ */ r("div", {
54
+ }), O = y && y.search === v ? y : null, k = T?.workflowDefinitions, A = u(k?.items ?? [], O?.items ?? []), j = O ? O.hasMore : k?.hasMore ?? !1, M = O ? O.nextOffset : k?.items.length ?? 0, N = e === "" || A.some((t) => t.id === e), { data: P, error: F } = i(c, {
55
+ variables: { id: e },
56
+ skip: N || !T,
57
+ fetchPolicy: "cache-first"
58
+ }), I = N ? null : P?.workflowDefinition, L = I?.status === "ACTIVE", R = !N && (!!F || P !== void 0 && !L);
59
+ async function z() {
60
+ S(!0), w(null);
61
+ try {
62
+ let e = (await h.query({
63
+ query: s,
64
+ variables: { input: l(v, M) },
65
+ fetchPolicy: "network-only"
66
+ })).data?.workflowDefinitions;
67
+ if (!e) throw Error("The next page of workflows was empty.");
68
+ b({
69
+ search: v,
70
+ items: u(O?.items ?? [], e.items),
71
+ hasMore: e.hasMore,
72
+ nextOffset: M + e.items.length
73
+ });
74
+ } catch (e) {
75
+ w(e instanceof Error ? e.message : String(e));
76
+ } finally {
77
+ S(!1);
78
+ }
79
+ }
80
+ let B = E && !T ? "Loading workflows…" : D ? "Workflows could not be loaded" : A.length === 0 ? v ? "No active workflows match this search" : "No active workflows yet" : "Choose a workflow";
81
+ return /* @__PURE__ */ o("div", {
29
82
  className: "space-y-1",
30
- children: [/* @__PURE__ */ r("select", {
31
- "aria-label": "Workflow",
32
- "data-testid": "automation-workflow-select",
33
- className: o,
34
- value: e,
35
- onChange: (e) => s(e.target.value),
36
- children: [
37
- /* @__PURE__ */ n("option", {
38
- value: "",
39
- children: l && !c ? "Loading workflows…" : u ? "Workflows could not be loaded" : d.length === 0 ? "No active workflows yet" : "Choose a workflow"
40
- }),
41
- !f && c && /* @__PURE__ */ n("option", {
42
- value: e,
43
- children: "Unavailable workflow (no longer active)"
44
- }),
45
- d.map((e) => /* @__PURE__ */ n("option", {
46
- value: e.id,
47
- children: `${e.name} (v${e.version})`
48
- }, e.id)),
49
- c?.workflowDefinitions.hasMore && /* @__PURE__ */ n("option", {
50
- value: "",
51
- disabled: !0,
52
- children: `Only the first ${a} active workflows are listed`
53
- })
54
- ]
55
- }), u ? /* @__PURE__ */ r("p", {
56
- role: "alert",
57
- className: "text-xs text-destructive",
58
- children: ["The workflow list could not be loaded: ", u.message]
59
- }) : /* @__PURE__ */ r("p", {
60
- className: "text-xs text-muted-foreground",
61
- children: [
62
- "Starts a run of this workflow with the PlanMagnet event as its trigger data. The workflow needs a \"Trigger manually\" or \"When called by another workflow\" start node.",
63
- " ",
64
- /* @__PURE__ */ n("a", {
65
- href: "/workflows",
66
- className: "text-primary underline underline-offset-2",
67
- children: "Build and activate workflows"
68
- })
69
- ]
70
- })]
83
+ children: [
84
+ /* @__PURE__ */ a("input", {
85
+ type: "search",
86
+ "aria-label": "Search workflows",
87
+ "data-testid": "automation-workflow-search",
88
+ className: f,
89
+ placeholder: "Search active workflows by name",
90
+ value: g,
91
+ onChange: (e) => _(e.target.value)
92
+ }),
93
+ /* @__PURE__ */ o("select", {
94
+ "aria-label": "Workflow",
95
+ "data-testid": "automation-workflow-select",
96
+ className: d,
97
+ value: e,
98
+ onChange: (e) => n(e.target.value),
99
+ children: [
100
+ /* @__PURE__ */ a("option", {
101
+ value: "",
102
+ children: B
103
+ }),
104
+ !N && /* @__PURE__ */ a("option", {
105
+ value: e,
106
+ children: I && L ? `${I.name} (v${I.version})` : R ? "Unavailable workflow (no longer active)" : "Saved workflow"
107
+ }),
108
+ A.map((e) => /* @__PURE__ */ a("option", {
109
+ value: e.id,
110
+ children: `${e.name} (v${e.version})`
111
+ }, e.id))
112
+ ]
113
+ }),
114
+ j && /* @__PURE__ */ o("div", {
115
+ className: "flex items-center gap-2",
116
+ children: [/* @__PURE__ */ a("button", {
117
+ type: "button",
118
+ "data-testid": "automation-workflow-load-more",
119
+ className: p,
120
+ disabled: x,
121
+ onClick: () => void z(),
122
+ children: x ? "Loading…" : "Load more workflows"
123
+ }), /* @__PURE__ */ a("span", {
124
+ className: "text-xs text-muted-foreground",
125
+ children: `${A.length} shown. Search to find a workflow faster.`
126
+ })]
127
+ }),
128
+ D || C ? /* @__PURE__ */ o("p", {
129
+ role: "alert",
130
+ className: "text-xs text-destructive",
131
+ children: ["The workflow list could not be loaded: ", D?.message ?? C]
132
+ }) : /* @__PURE__ */ o("p", {
133
+ className: "text-xs text-muted-foreground",
134
+ children: [
135
+ "Starts a run of this workflow with the PlanMagnet event as its trigger data. The workflow needs a \"Trigger manually\" or \"When called by another workflow\" start node.",
136
+ " ",
137
+ /* @__PURE__ */ a("a", {
138
+ href: "/workflows",
139
+ className: "text-primary underline underline-offset-2",
140
+ children: "Build and activate workflows"
141
+ })
142
+ ]
143
+ })
144
+ ]
71
145
  });
72
146
  }
73
- export { s as WorkflowSelect };
147
+ export { h as WorkflowSelect, u as appendWorkflowPage, l as workflowPageInput };
@@ -1,5 +1,6 @@
1
+ import { WorkItemLinkRelation } from '../../generated/wspace-types';
1
2
  /** The relations, in the order they are shown, with how each reads on this item. */
2
- export declare const ISSUE_RELATIONS: readonly [readonly ["BLOCKS", "Blocks"], readonly ["BLOCKED_BY", "Is blocked by"], readonly ["DUPLICATES", "Duplicates"], readonly ["DUPLICATED_BY", "Is duplicated by"], readonly ["CAUSES", "Causes"], readonly ["CAUSED_BY", "Is caused by"], readonly ["RELATED_TO", "Relates to"]];
3
+ export declare const ISSUE_RELATIONS: readonly [readonly [WorkItemLinkRelation.Blocks, "Blocks"], readonly [WorkItemLinkRelation.BlockedBy, "Is blocked by"], readonly [WorkItemLinkRelation.Duplicates, "Duplicates"], readonly [WorkItemLinkRelation.DuplicatedBy, "Is duplicated by"], readonly [WorkItemLinkRelation.Causes, "Causes"], readonly [WorkItemLinkRelation.CausedBy, "Is caused by"], readonly [WorkItemLinkRelation.RelatedTo, "Relates to"]];
3
4
  type Relation = (typeof ISSUE_RELATIONS)[number][0];
4
5
  /** The same fact read from the other item's side — mirrors the server's ISSUE_LINK_INVERSE. */
5
6
  export declare const INVERSE: Record<Relation, Relation>;
@@ -1,15 +1,17 @@
1
- import { WorkItemSearchSelect as e } from "../controls/Pickers.js";
2
- import { ErrorLine as t } from "../controls/ConfirmButton.js";
3
- import { usePlanMagnetNavigate as n } from "../providers/PlanMagnetProvider.js";
4
- import { throwOnError as r } from "../utils/mutationResult.js";
5
- import { useState as i } from "react";
6
- import { Plus as a, X as o } from "lucide-react";
7
- import { gql as s } from "@apollo/client";
8
- import { useMutation as c, useQuery as l } from "@apollo/client/react";
9
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
10
- import { Badge as f, Button as p, Card as m, CardContent as h, CardHeader as g, CardTitle as _ } from "@burdenoff/fe-libs/ui";
1
+ import { WorkItemIssueLinkCreateDocument as e, WorkItemIssueLinkUpdateDocument as t } from "../../generated/wspace-operations.js";
2
+ import { WorkItemLinkRelation as n } from "../../generated/wspace-types.js";
3
+ import { WorkItemSearchSelect as r } from "../controls/Pickers.js";
4
+ import { ErrorLine as i } from "../controls/ConfirmButton.js";
5
+ import { usePlanMagnetNavigate as a } from "../providers/PlanMagnetProvider.js";
6
+ import { throwOnError as o } from "../utils/mutationResult.js";
7
+ import { useState as s } from "react";
8
+ import { Plus as c, X as l } from "lucide-react";
9
+ import { gql as u } from "@apollo/client";
10
+ import { useMutation as d, useQuery as f } from "@apollo/client/react";
11
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
12
+ import { Badge as h, Button as g, Card as _, CardContent as v, CardHeader as y, CardTitle as b } from "@burdenoff/fe-libs/ui";
11
13
  // src/planmagnet/links/IssueLinksPanel.tsx
12
- var v = s`
14
+ var x = u`
13
15
  query WorkItemIssueLinks($workItemId: ID!) {
14
16
  planmagnetWorkItemIssueLinks(workItemId: $workItemId) {
15
17
  linkId
@@ -23,127 +25,114 @@ var v = s`
23
25
  }
24
26
  }
25
27
  }
26
- `, y = s`
27
- mutation WorkItemIssueLinkCreate($input: PlanmagnetCreateWorkItemLinkInput!) {
28
- planmagnetLinkWorkItem(input: $input) {
29
- id
30
- }
31
- }
32
- `, b = s`
33
- mutation WorkItemIssueLinkUpdate($id: ID!, $input: PlanmagnetUpdateWorkItemLinkInput!) {
34
- planmagnetUpdateWorkItemLink(id: $id, input: $input) {
35
- id
36
- relationType
37
- }
38
- }
39
- `, x = s`
28
+ `, S = u`
40
29
  mutation WorkItemIssueLinkRemove($id: ID!) {
41
30
  planmagnetUnlinkWorkItem(id: $id)
42
31
  }
43
- `, S = [
44
- ["BLOCKS", "Blocks"],
45
- ["BLOCKED_BY", "Is blocked by"],
46
- ["DUPLICATES", "Duplicates"],
47
- ["DUPLICATED_BY", "Is duplicated by"],
48
- ["CAUSES", "Causes"],
49
- ["CAUSED_BY", "Is caused by"],
50
- ["RELATED_TO", "Relates to"]
51
- ], C = {
52
- BLOCKS: "BLOCKED_BY",
53
- BLOCKED_BY: "BLOCKS",
54
- DUPLICATES: "DUPLICATED_BY",
55
- DUPLICATED_BY: "DUPLICATES",
56
- CAUSES: "CAUSED_BY",
57
- CAUSED_BY: "CAUSES",
58
- RELATED_TO: "RELATED_TO"
59
- }, w = (e) => S.find(([t]) => t === e)?.[1] ?? e.toLowerCase(), T = "rounded-md border border-input bg-background px-2 py-1 text-sm disabled:opacity-60";
60
- function E({ workItemId: s }) {
61
- let E = n(), { data: D, loading: O, error: k } = l(v, {
62
- variables: { workItemId: s },
63
- skip: !s
64
- }), A = {
32
+ `, C = [
33
+ [n.Blocks, "Blocks"],
34
+ [n.BlockedBy, "Is blocked by"],
35
+ [n.Duplicates, "Duplicates"],
36
+ [n.DuplicatedBy, "Is duplicated by"],
37
+ [n.Causes, "Causes"],
38
+ [n.CausedBy, "Is caused by"],
39
+ [n.RelatedTo, "Relates to"]
40
+ ], w = {
41
+ BLOCKS: n.BlockedBy,
42
+ BLOCKED_BY: n.Blocks,
43
+ DUPLICATES: n.DuplicatedBy,
44
+ DUPLICATED_BY: n.Duplicates,
45
+ CAUSES: n.CausedBy,
46
+ CAUSED_BY: n.Causes,
47
+ RELATED_TO: n.RelatedTo
48
+ }, T = (e) => C.find(([t]) => t === e)?.[1] ?? e.toLowerCase(), E = "rounded-md border border-input bg-background px-2 py-1 text-sm disabled:opacity-60";
49
+ function D({ workItemId: u }) {
50
+ let D = a(), { data: O, loading: k, error: A } = f(x, {
51
+ variables: { workItemId: u },
52
+ skip: !u
53
+ }), j = {
65
54
  refetchQueries: ["WorkItemIssueLinks", "WorkItemActivity"],
66
55
  awaitRefetchQueries: !0
67
- }, [j, M] = c(y, A), [N, P] = c(b, A), [F, I] = c(x, A), [L, R] = i(!1), [z, B] = i("BLOCKS"), [V, H] = i(""), [U, W] = i(null), G = M.loading || P.loading || I.loading, K = (D?.planmagnetWorkItemIssueLinks ?? []).filter((e) => e.workItem), q = K.map((e) => e.workItem?.id ?? ""), J = async (e, t) => {
68
- W(null);
56
+ }, [M, N] = d(e, j), [P, F] = d(t, j), [I, L] = d(S, j), [R, z] = s(!1), [B, V] = s(n.Blocks), [H, U] = s(""), [W, G] = s(null), K = N.loading || F.loading || L.loading, q = (O?.planmagnetWorkItemIssueLinks ?? []).filter((e) => e.workItem), J = q.map((e) => e.workItem?.id ?? ""), Y = async (e, t) => {
57
+ G(null);
69
58
  try {
70
- return await r(e()), !0;
59
+ return await o(e()), !0;
71
60
  } catch (e) {
72
- return W(e instanceof Error ? e.message : t), !1;
61
+ return G(e instanceof Error ? e.message : t), !1;
73
62
  }
74
- }, Y = async () => {
75
- await J(() => j({ variables: { input: {
76
- workItemId: s,
63
+ }, X = async () => {
64
+ await Y(() => M({ variables: { input: {
65
+ workItemId: u,
77
66
  sourceProduct: "planmagnet",
78
67
  entityType: "WorkItem",
79
- entityId: V,
80
- relationType: z
81
- } } }), "The link could not be added.") && (H(""), R(!1));
82
- }, X = (e, t) => J(() => N({ variables: {
68
+ entityId: H,
69
+ relationType: B
70
+ } } }), "The link could not be added.") && (U(""), z(!1));
71
+ }, Z = (e, t) => Y(() => P({ variables: {
83
72
  id: e.linkId,
84
- input: { relationType: e.direction === "OUTGOING" ? t : C[t] }
73
+ input: { relationType: e.direction === "OUTGOING" ? t : w[t] }
85
74
  } }), "The link could not be changed.");
86
- return /* @__PURE__ */ d(m, {
75
+ return /* @__PURE__ */ m(_, {
87
76
  "data-testid": "issue-links",
88
- children: [/* @__PURE__ */ d(g, {
77
+ children: [/* @__PURE__ */ m(y, {
89
78
  className: "flex flex-row items-center justify-between space-y-0",
90
- children: [/* @__PURE__ */ d(_, { children: [
79
+ children: [/* @__PURE__ */ m(b, { children: [
91
80
  "Linked issues (",
92
- K.length,
81
+ q.length,
93
82
  ")"
94
- ] }), !L && /* @__PURE__ */ d(p, {
83
+ ] }), !R && /* @__PURE__ */ m(g, {
95
84
  size: "sm",
96
85
  variant: "outline",
97
- onClick: () => R(!0),
86
+ onClick: () => z(!0),
98
87
  "data-testid": "issue-links-add",
99
- children: [/* @__PURE__ */ u(a, { className: "mr-1 h-4 w-4" }), " Link issue"]
88
+ children: [/* @__PURE__ */ p(c, { className: "mr-1 h-4 w-4" }), " Link issue"]
100
89
  })]
101
- }), /* @__PURE__ */ d(h, {
90
+ }), /* @__PURE__ */ m(v, {
102
91
  className: "space-y-2",
103
92
  children: [
104
- /* @__PURE__ */ u("p", {
93
+ /* @__PURE__ */ p("p", {
105
94
  className: "text-xs text-muted-foreground",
106
95
  children: "What this task blocks, duplicates or causes. These links do not schedule anything — scheduling constraints are under Dependencies."
107
96
  }),
108
- U && /* @__PURE__ */ u(t, { message: U }),
109
- O && !D && /* @__PURE__ */ u("p", {
97
+ W && /* @__PURE__ */ p(i, { message: W }),
98
+ k && !O && /* @__PURE__ */ p("p", {
110
99
  className: "text-sm text-muted-foreground",
111
100
  children: "Loading…"
112
101
  }),
113
- k && /* @__PURE__ */ d("p", {
102
+ A && /* @__PURE__ */ m("p", {
114
103
  role: "alert",
115
104
  className: "text-sm text-destructive",
116
- children: ["Linked issues could not be loaded: ", k.message]
105
+ children: ["Linked issues could not be loaded: ", A.message]
117
106
  }),
118
- D && K.length === 0 && !L && /* @__PURE__ */ u("p", {
107
+ O && q.length === 0 && !R && /* @__PURE__ */ p("p", {
119
108
  className: "text-sm text-muted-foreground",
120
109
  children: "No linked issues."
121
110
  }),
122
- K.map((e) => /* @__PURE__ */ d("div", {
111
+ q.map((e) => /* @__PURE__ */ m("div", {
123
112
  className: "flex items-center justify-between gap-2 rounded-md border p-2",
124
113
  "data-testid": "issue-link",
125
- children: [/* @__PURE__ */ d("div", {
114
+ children: [/* @__PURE__ */ m("div", {
126
115
  className: "flex min-w-0 items-center gap-2",
127
- children: [/* @__PURE__ */ u("select", {
116
+ children: [/* @__PURE__ */ p("select", {
128
117
  "aria-label": `How this task relates to ${e.workItem?.key ?? "the linked task"}`,
129
- className: T,
118
+ className: E,
130
119
  value: e.relation,
131
- disabled: G,
120
+ disabled: K,
132
121
  onChange: (t) => {
133
122
  let n = t.target.value;
134
- n !== e.relation && X(e, n);
123
+ n !== e.relation && Z(e, n);
135
124
  },
136
125
  "data-testid": "issue-link-relation",
137
- children: S.map(([e, t]) => /* @__PURE__ */ u("option", {
126
+ children: C.map(([e, t]) => /* @__PURE__ */ p("option", {
138
127
  value: e,
139
128
  children: t
140
129
  }, e))
141
- }), /* @__PURE__ */ d("button", {
130
+ }), /* @__PURE__ */ m("button", {
142
131
  type: "button",
143
132
  className: "min-w-0 truncate text-left text-sm hover:underline",
144
- onClick: () => e.workItem && E(`/tasks/task-detail-page?taskId=${encodeURIComponent(e.workItem.id)}`),
133
+ onClick: () => e.workItem && D(`/tasks/task-detail-page?taskId=${encodeURIComponent(e.workItem.id)}`),
145
134
  children: [
146
- /* @__PURE__ */ u("span", {
135
+ /* @__PURE__ */ p("span", {
147
136
  className: "text-muted-foreground",
148
137
  children: e.workItem?.key
149
138
  }),
@@ -151,60 +140,60 @@ function E({ workItemId: s }) {
151
140
  e.workItem?.title
152
141
  ]
153
142
  })]
154
- }), /* @__PURE__ */ d("span", {
143
+ }), /* @__PURE__ */ m("span", {
155
144
  className: "flex shrink-0 items-center gap-1",
156
- children: [/* @__PURE__ */ u(f, {
145
+ children: [/* @__PURE__ */ p(h, {
157
146
  variant: "outline",
158
147
  className: "text-xs capitalize",
159
148
  children: e.workItem?.status.toLowerCase().replace("_", " ")
160
- }), /* @__PURE__ */ u(p, {
149
+ }), /* @__PURE__ */ p(g, {
161
150
  size: "icon",
162
151
  variant: "ghost",
163
- "aria-label": `Remove the "${w(e.relation)}" link to ${e.workItem?.key ?? "this task"}`,
164
- disabled: G,
165
- onClick: () => void J(() => F({ variables: { id: e.linkId } }), "The link could not be removed."),
166
- children: /* @__PURE__ */ u(o, { className: "h-4 w-4" })
152
+ "aria-label": `Remove the "${T(e.relation)}" link to ${e.workItem?.key ?? "this task"}`,
153
+ disabled: K,
154
+ onClick: () => void Y(() => I({ variables: { id: e.linkId } }), "The link could not be removed."),
155
+ children: /* @__PURE__ */ p(l, { className: "h-4 w-4" })
167
156
  })]
168
157
  })]
169
158
  }, e.linkId)),
170
- L && /* @__PURE__ */ d("div", {
159
+ R && /* @__PURE__ */ m("div", {
171
160
  className: "space-y-2 border-t pt-3",
172
161
  "data-testid": "issue-link-form",
173
162
  children: [
174
- /* @__PURE__ */ u("label", {
163
+ /* @__PURE__ */ p("label", {
175
164
  htmlFor: "issue-link-relation-new",
176
165
  className: "text-xs text-muted-foreground",
177
166
  children: "This task…"
178
167
  }),
179
- /* @__PURE__ */ u("select", {
168
+ /* @__PURE__ */ p("select", {
180
169
  id: "issue-link-relation-new",
181
- className: `${T} w-full`,
182
- value: z,
183
- onChange: (e) => B(e.target.value),
184
- children: S.map(([e, t]) => /* @__PURE__ */ u("option", {
170
+ className: `${E} w-full`,
171
+ value: B,
172
+ onChange: (e) => V(e.target.value),
173
+ children: C.map(([e, t]) => /* @__PURE__ */ p("option", {
185
174
  value: e,
186
175
  children: t.toLowerCase()
187
176
  }, e))
188
177
  }),
189
- /* @__PURE__ */ u(e, {
178
+ /* @__PURE__ */ p(r, {
190
179
  id: "issue-link-target",
191
- value: V,
192
- onChange: H,
193
- exclude: [s, ...q]
180
+ value: H,
181
+ onChange: U,
182
+ exclude: [u, ...J]
194
183
  }),
195
- /* @__PURE__ */ d("div", {
184
+ /* @__PURE__ */ m("div", {
196
185
  className: "flex justify-end gap-2",
197
- children: [/* @__PURE__ */ u(p, {
186
+ children: [/* @__PURE__ */ p(g, {
198
187
  size: "sm",
199
188
  variant: "ghost",
200
189
  onClick: () => {
201
- R(!1), H(""), W(null);
190
+ z(!1), U(""), G(null);
202
191
  },
203
192
  children: "Cancel"
204
- }), /* @__PURE__ */ u(p, {
193
+ }), /* @__PURE__ */ p(g, {
205
194
  size: "sm",
206
- disabled: !V || G,
207
- onClick: () => void Y(),
195
+ disabled: !H || K,
196
+ onClick: () => void X(),
208
197
  "data-testid": "issue-link-save",
209
198
  children: "Link"
210
199
  })]
@@ -215,4 +204,4 @@ function E({ workItemId: s }) {
215
204
  })]
216
205
  });
217
206
  }
218
- export { C as INVERSE, S as ISSUE_RELATIONS, E as IssueLinksPanel };
207
+ export { w as INVERSE, C as ISSUE_RELATIONS, D as IssueLinksPanel };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-planmagnet",
3
- "version": "2026.1124.1",
3
+ "version": "2026.1126.2",
4
4
  "description": "Burdenoff PlanMagnet Microfrontend",
5
5
  "type": "module",
6
6
  "files": [