@ixo/editor 7.7.1 → 7.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1131,6 +1131,15 @@ var BidInboxSection = ({
1131
1131
  } else {
1132
1132
  await h.rejectBid({ bidId: selectedBid.id, collectionId, did: selectedBid.did, reason: rejectReason.trim() || "Rejected", entityDid: deedDid });
1133
1133
  }
1134
+ let bidCloseWarning = null;
1135
+ if (decision === "approve") {
1136
+ try {
1137
+ await h.approveBid({ bidId: selectedBid.id, collectionId, did: selectedBid.did, entityDid: deedDid });
1138
+ } catch (err) {
1139
+ console.warn("[collection:bids] grant succeeded but marking the bid approved failed", { bidId: selectedBid.id, err });
1140
+ bidCloseWarning = `Access was granted, but the bid could not be marked approved with the bids service, so it may still appear as pending. Do not approve it again. (${err instanceof Error ? err.message : "unknown error"})`;
1141
+ }
1142
+ }
1134
1143
  onBidEvaluated(selectedBid.id, decision === "approve" ? "approved" : "rejected");
1135
1144
  if (decision === "approve") onGrantsChanged();
1136
1145
  setLastDecision({ kind: decision === "approve" ? "approved" : "rejected", name: granteeName, roleLabel: roleLabel2 });
@@ -1140,6 +1149,7 @@ var BidInboxSection = ({
1140
1149
  setApproveQuota(String(DEFAULT_CONTRIBUTOR_QUOTA));
1141
1150
  setApproveMaxAmounts(EMPTY_MAX_AMOUNTS);
1142
1151
  await refreshBids();
1152
+ if (bidCloseWarning) setError(bidCloseWarning);
1143
1153
  } catch (err) {
1144
1154
  setError(err instanceof Error ? err.message : "Failed to evaluate bid");
1145
1155
  } finally {
@@ -1272,4 +1282,4 @@ export {
1272
1282
  CollectionUsersFlowDetail,
1273
1283
  CollectionUsersFlowDetail_default as default
1274
1284
  };
1275
- //# sourceMappingURL=CollectionUsersFlowDetail-JX6LGQKI.js.map
1285
+ //# sourceMappingURL=CollectionUsersFlowDetail-XC3TMKH2.js.map