@powerhousedao/contributor-billing 1.0.0-dev.10 → 1.0.0-dev.12

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.
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useMemo, useCallback, useState, useEffect } from "react";
3
3
  import { useDrives, useGetDocuments } from "@powerhousedao/reactor-browser";
4
- import { useRemoteBuilderProfiles } from "../../hooks/useRemoteBuilderProfiles.js";
4
+ import { useRemoteBuilderProfiles } from "../../../shared/hooks/useRemoteBuilderProfiles.js";
5
5
  const MAX_VISIBLE_MEMBERS = 6;
6
6
  /**
7
7
  * Displays team members as a horizontal row of avatar cards.
@@ -3,7 +3,7 @@ import { useMemo, useCallback, useState, useEffect } from "react";
3
3
  import { useDocumentsInSelectedDrive, useDrives, useGetDocuments, useDocumentById, } from "@powerhousedao/reactor-browser";
4
4
  import { ObjectSetTable, PHIDInput, } from "@powerhousedao/document-engineering";
5
5
  import { actions as builderProfileActions } from "@powerhousedao/builder-profile/document-models/builder-profile";
6
- import { useRemoteBuilderProfiles } from "../hooks/useRemoteBuilderProfiles.js";
6
+ import { useRemoteBuilderProfiles } from "../../shared/hooks/useRemoteBuilderProfiles.js";
7
7
  /**
8
8
  * Wrapper component for PHIDInput that properly tracks selected PHID
9
9
  * and handles saving on blur/enter with the correct PHID value.
@@ -1 +1 @@
1
- {"version":3,"file":"graphql-client.d.ts","sourceRoot":"","sources":["../../../editors/shared/graphql-client.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA+GH,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QACpB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;KAC5B,CAAC;CACH;AAcD;;GAEG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAG3D;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAM7E;AAED;;GAEG;AACH,wBAAsB,6BAA6B,CACjD,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,GAC7B,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAOjC;AAED;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAMtC;AAED;;;;GAIG;AACH,wBAAsB,6BAA6B,IAAI,OAAO,CAC5D,oBAAoB,EAAE,CACvB,CAoCA;AAED;;;GAGG;AACH,wBAAsB,+BAA+B,CACnD,KAAK,EAAE,MAAM,EAAE,GACd,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC,CAiC5C;AASD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAMD;;;;;;;;GAQG;AACH,wBAAsB,8BAA8B,CAClD,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,mBAAmB,EAC1B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GACtB,OAAO,CAAC,OAAO,CAAC,CAelB"}
1
+ {"version":3,"file":"graphql-client.d.ts","sourceRoot":"","sources":["../../../editors/shared/graphql-client.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA+GH,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,wDAA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C,CAelB"}
@@ -120,10 +120,13 @@ export async function fetchAllRemoteBuilderProfiles() {
120
120
  if (!drives.length) {
121
121
  return [];
122
122
  }
123
- // Fetch profiles from all drives in parallel (silent to avoid console spam)
124
- // Keep track of which drive each profile came from
123
+ // Resolve drive slugs to IDs, then fetch profiles in parallel
124
+ // The `drives` query returns slugs, but `getDocuments` expects UUIDs
125
125
  const profilePromises = drives.map(async (driveSlug) => {
126
- const profiles = await fetchBuilderProfilesFromDrive(driveSlug, {
126
+ const driveId = await fetchDriveIdBySlug(driveSlug).catch(() => null);
127
+ if (!driveId)
128
+ return [];
129
+ const profiles = await fetchBuilderProfilesFromDrive(driveId, {
127
130
  silent: true,
128
131
  }).catch(() => []);
129
132
  // Attach drive name to each profile
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@powerhousedao/contributor-billing",
3
3
  "description": "Document models that help contributors of open organisations get paid anonymously for their work on a monthly basis.",
4
- "version": "1.0.0-dev.10",
4
+ "version": "1.0.0-dev.12",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
7
7
  "type": "git",
@@ -74,7 +74,7 @@
74
74
  "@powerhousedao/common": "5.3.4",
75
75
  "@powerhousedao/design-system": "5.3.4",
76
76
  "@powerhousedao/document-engineering": "^1.40.1",
77
- "@powerhousedao/service-offering": "0.0.10",
77
+ "@powerhousedao/service-offering": "0.0.11",
78
78
  "@powerhousedao/vetra": "^5.3.4",
79
79
  "@react-pdf/renderer": "^4.3.1",
80
80
  "@safe-global/api-kit": "^4.0.0",
@@ -1,6 +0,0 @@
1
- /**
2
- * Re-export from shared location for backwards compatibility.
3
- * @see editors/shared/hooks/useRemoteBuilderProfiles.ts
4
- */
5
- export { useRemoteBuilderProfiles, type RemoteBuilderProfile, } from "../../shared/hooks/useRemoteBuilderProfiles.js";
6
- //# sourceMappingURL=useRemoteBuilderProfiles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useRemoteBuilderProfiles.d.ts","sourceRoot":"","sources":["../../../../editors/builder-team-admin/hooks/useRemoteBuilderProfiles.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,wBAAwB,EACxB,KAAK,oBAAoB,GAC1B,MAAM,gDAAgD,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Re-export from shared location for backwards compatibility.
3
- * @see editors/shared/hooks/useRemoteBuilderProfiles.ts
4
- */
5
- export { useRemoteBuilderProfiles, } from "../../shared/hooks/useRemoteBuilderProfiles.js";
@@ -1,6 +0,0 @@
1
- /**
2
- * Re-export from shared location for backwards compatibility.
3
- * @see editors/shared/graphql-client.ts
4
- */
5
- export { fetchRemoteDrives, fetchDriveIdBySlug, fetchBuilderProfilesFromDrive, fetchBuilderProfileById, fetchAllRemoteBuilderProfiles, fetchRemoteBuilderProfilesByIds, type RemoteBuilderProfile, } from "../../shared/graphql-client.js";
6
- //# sourceMappingURL=graphql-client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"graphql-client.d.ts","sourceRoot":"","sources":["../../../../editors/builder-team-admin/utils/graphql-client.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,6BAA6B,EAC7B,uBAAuB,EACvB,6BAA6B,EAC7B,+BAA+B,EAC/B,KAAK,oBAAoB,GAC1B,MAAM,gCAAgC,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Re-export from shared location for backwards compatibility.
3
- * @see editors/shared/graphql-client.ts
4
- */
5
- export { fetchRemoteDrives, fetchDriveIdBySlug, fetchBuilderProfilesFromDrive, fetchBuilderProfileById, fetchAllRemoteBuilderProfiles, fetchRemoteBuilderProfilesByIds, } from "../../shared/graphql-client.js";