@burdenoff/microfe-store 2026.714.1 → 2026.714.3
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.
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/errors/CombinedGraphQLErrors.js +1 -1
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/errors/utils.js +1 -1
- package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/link/core/ApolloLink.js +2 -2
- package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/link/subscriptions/index.js +2 -2
- package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/link/utils/createOperation.js +1 -1
- package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/graphql/print.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/caches.js +2 -2
- package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/checkDocument.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/getMainDefinition.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +9 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/getOperationDefinition.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +8 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/globals/global.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +10 -0
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +8 -0
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/makeUniqueId.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/memoize.js +2 -2
- package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/stringifyForDisplay.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/invariant/index.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +1 -0
- package/dist/node_modules/@apollo/client/version.js +6 -0
- package/dist/node_modules/@apollo/client/version.js.map +1 -0
- package/dist/node_modules/{.bun/@wry_caches@1.0.1/node_modules/@wry → @wry}/caches/lib/weak.js +1 -1
- package/dist/node_modules/@wry/caches/lib/weak.js.map +1 -0
- package/dist/node_modules/{.bun/@wry_trie@0.5.0/node_modules/@wry → @wry}/trie/lib/index.js +1 -1
- package/dist/node_modules/@wry/trie/lib/index.js.map +1 -0
- package/dist/node_modules/{.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws → graphql-ws}/dist/client.js +1 -1
- package/dist/node_modules/graphql-ws/dist/client.js.map +1 -0
- package/dist/node_modules/{.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws → graphql-ws}/dist/common-CGW11Fyb.js +1 -1
- package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/NotificationFactories.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/Observable.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/Subscriber.js +2 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/Subscription.js +2 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/config.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/observable/empty.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/scheduler/timeoutProvider.js +2 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/symbol/observable.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/UnsubscriptionError.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +11 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/createErrorClass.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/errorContext.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +8 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +8 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +6 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/pipe.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/reportUnhandledError.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -0
- package/dist/node_modules/{.bun/tslib@2.8.1 → rxjs}/node_modules/tslib/tslib.es6.js +1 -1
- package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/pages/AdminSubmissionsQueuePage.js +129 -122
- package/dist/pages/AdminSubmissionsQueuePage.js.map +1 -1
- package/dist/pages/MarketplaceHomePage.js.map +1 -1
- package/dist/pages/OrdersPage.js +4 -8
- package/dist/pages/OrdersPage.js.map +1 -1
- package/dist/providers/StoreProvider.js +3 -3
- package/package.json +2 -2
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/errors/utils.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/link/core/ApolloLink.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/link/subscriptions/index.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/link/utils/createOperation.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/caching/sizes.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/graphql/print.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/caches.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +0 -9
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getOperationName.js +0 -8
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/globals/global.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/globals/maybe.js +0 -10
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +0 -8
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/memoize.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/invariant/index.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/version.js +0 -6
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/version.js.map +0 -1
- package/dist/node_modules/.bun/@wry_caches@1.0.1/node_modules/@wry/caches/lib/weak.js.map +0 -1
- package/dist/node_modules/.bun/@wry_trie@0.5.0/node_modules/@wry/trie/lib/index.js.map +0 -1
- package/dist/node_modules/.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws/dist/client.js.map +0 -1
- package/dist/node_modules/.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Observable.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/config.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +0 -11
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/identity.js +0 -8
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +0 -8
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/noop.js +0 -6
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +0 -1
- package/dist/node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.js.map +0 -1
- /package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/caching/sizes.js +0 -0
|
@@ -6,9 +6,9 @@ import { ArrowLeft as ee, Check as o, ChevronDown as s, ChevronUp as c, Clock as
|
|
|
6
6
|
import { graphqlFetch as g } from "@burdenoff/fe-libs/shared/graphql";
|
|
7
7
|
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
8
8
|
import { useNavigate as se } from "react-router-dom";
|
|
9
|
-
import { IllustratedEmptyState as
|
|
9
|
+
import { IllustratedEmptyState as y, PagePurpose as ce } from "@burdenoff/fe-libs/ui";
|
|
10
10
|
//#region src/pages/AdminSubmissionsQueuePage.tsx
|
|
11
|
-
var
|
|
11
|
+
var le = "\n query PendingReviewProducts($limit: Int, $offset: Int) {\n pendingReviewProducts(limit: $limit, offset: $offset) {\n totalCount\n products {\n id\n slug\n name\n type\n nature\n status\n pricingModel\n price\n currency\n description\n submittedAt\n submittedBy\n category\n icon\n productId\n zipFileUrl\n manifest\n requiredPermissions\n publisher {\n id\n name\n email\n }\n }\n }\n }\n", ue = "\n query AdminProducts($limit: Int, $offset: Int, $status: ProductStatus) {\n products(filter: { status: $status }, limit: $limit, offset: $offset) {\n id\n slug\n name\n type\n nature\n status\n pricingModel\n price\n currency\n description\n submittedAt\n submittedBy\n category\n icon\n productId\n zipFileUrl\n manifest\n requiredPermissions\n publisher {\n id\n name\n email\n }\n }\n }\n", de = "\n mutation ApproveProduct($id: ID!, $notes: String) {\n approveProduct(id: $id, notes: $notes) {\n id\n status\n publishedAt\n }\n }\n", fe = "\n mutation RejectProduct($id: ID!, $reason: String!) {\n rejectProduct(id: $id, reason: $reason) {\n id\n status\n rejectedReason\n }\n }\n", pe = "\n query AdminPendingVersionApps($limit: Int, $offset: Int) {\n applicationsWithPendingVersions(limit: $limit, offset: $offset) {\n totalCount\n edges {\n node {\n id\n name\n slug\n iconUrl\n shortDescription\n description\n versions(first: 5) {\n edges {\n node {\n id\n version\n status\n releaseNotes\n packageUrl\n packageSize\n isLatest\n reviewNotes\n manifest\n createdAt\n }\n }\n }\n }\n }\n }\n }\n", me = "\n mutation AdminApproveApplicationVersion($id: ID!, $notes: String) {\n approveApplicationVersion(id: $id, notes: $notes) {\n id\n status\n }\n }\n", he = "\n mutation AdminRejectApplicationVersion($id: ID!, $reason: String!) {\n rejectApplicationVersion(id: $id, reason: $reason) {\n id\n status\n }\n }\n", ge = [
|
|
12
12
|
{
|
|
13
13
|
label: "Pending review",
|
|
14
14
|
value: "PENDING_REVIEW"
|
|
@@ -29,16 +29,16 @@ var ue = "\n query PendingReviewProducts($limit: Int, $offset: Int) {\n pend
|
|
|
29
29
|
label: "All",
|
|
30
30
|
value: "ALL"
|
|
31
31
|
}
|
|
32
|
-
],
|
|
32
|
+
], b = {
|
|
33
33
|
NODE: "bg-[var(--color-status-info-bg-subtle)] text-[var(--color-status-info-text)]",
|
|
34
34
|
WORKFLOW: "bg-[var(--color-status-warning-bg-subtle)] text-[var(--color-status-warning-text)]",
|
|
35
35
|
INTEGRATION: "bg-[var(--color-status-success-bg-subtle)] text-[var(--color-status-success-text)]",
|
|
36
36
|
VIBEMODULE: "bg-[var(--color-surface-accent-muted)] text-[var(--color-text-accent)]"
|
|
37
|
-
},
|
|
37
|
+
}, x = {
|
|
38
38
|
PENDING_REVIEW: "bg-[var(--color-status-warning-bg-subtle)] text-[var(--color-status-warning-text)]",
|
|
39
39
|
PUBLISHED: "bg-[var(--color-status-success-bg-subtle)] text-[var(--color-status-success-text)]",
|
|
40
40
|
REJECTED: "bg-[var(--color-status-error-bg-subtle)] text-[var(--color-status-error-text)]"
|
|
41
|
-
},
|
|
41
|
+
}, S = new Set([
|
|
42
42
|
"NODE",
|
|
43
43
|
"WORKFLOW",
|
|
44
44
|
"VIBEMODULE",
|
|
@@ -46,13 +46,13 @@ var ue = "\n query PendingReviewProducts($limit: Int, $offset: Int) {\n pend
|
|
|
46
46
|
"DATASINK",
|
|
47
47
|
"CONSOLE"
|
|
48
48
|
]);
|
|
49
|
-
function
|
|
50
|
-
return y[e] ?? "bg-[var(--color-surface-muted)] text-[var(--color-text-secondary)]";
|
|
51
|
-
}
|
|
52
|
-
function ye(e) {
|
|
49
|
+
function _e(e) {
|
|
53
50
|
return b[e] ?? "bg-[var(--color-surface-muted)] text-[var(--color-text-secondary)]";
|
|
54
51
|
}
|
|
55
|
-
function
|
|
52
|
+
function ve(e) {
|
|
53
|
+
return x[e] ?? "bg-[var(--color-surface-muted)] text-[var(--color-text-secondary)]";
|
|
54
|
+
}
|
|
55
|
+
function C(e) {
|
|
56
56
|
return e ? new Date(e).toLocaleString(void 0, {
|
|
57
57
|
month: "short",
|
|
58
58
|
day: "numeric",
|
|
@@ -61,156 +61,156 @@ function S(e) {
|
|
|
61
61
|
minute: "2-digit"
|
|
62
62
|
}) : "—";
|
|
63
63
|
}
|
|
64
|
-
var
|
|
65
|
-
let
|
|
66
|
-
|
|
64
|
+
var w = () => {
|
|
65
|
+
let b = se(), { authToken: x, basePath: w } = e(), [T, E] = a([]), [D, O] = a(0), [k, A] = a(!1), [j, M] = a(null), [N, P] = a(null), [F, ye] = a("PENDING_REVIEW"), [be, I] = a(null), [L, R] = a(""), [z, B] = a(null), [V, H] = a(null), [U, xe] = a([]), [W, Se] = a(0), [G, K] = a(null), [Ce, q] = a(null), [J, Y] = a(""), [we, X] = a(null), Z = r(async () => {
|
|
66
|
+
A(!0), M(null);
|
|
67
67
|
try {
|
|
68
68
|
let e = await g({
|
|
69
69
|
gateway: "global",
|
|
70
|
-
query:
|
|
70
|
+
query: pe,
|
|
71
71
|
variables: {
|
|
72
72
|
limit: 50,
|
|
73
73
|
offset: 0
|
|
74
74
|
},
|
|
75
|
-
authToken:
|
|
75
|
+
authToken: x || void 0
|
|
76
76
|
});
|
|
77
77
|
if (e.errors?.length) throw Error(e.errors[0]?.message ?? "Failed to load version updates");
|
|
78
|
-
|
|
78
|
+
xe((e.data?.applicationsWithPendingVersions.edges ?? []).map((e) => e.node)), Se(e.data?.applicationsWithPendingVersions.totalCount ?? 0);
|
|
79
79
|
} catch (e) {
|
|
80
|
-
|
|
80
|
+
M(e instanceof Error ? e.message : "Failed to load version updates");
|
|
81
81
|
} finally {
|
|
82
|
-
|
|
82
|
+
A(!1);
|
|
83
83
|
}
|
|
84
|
-
}, [
|
|
85
|
-
|
|
84
|
+
}, [x]), Te = async (e, t, n) => {
|
|
85
|
+
K(e), M(null);
|
|
86
86
|
try {
|
|
87
87
|
let t = await g({
|
|
88
88
|
gateway: "global",
|
|
89
|
-
query:
|
|
89
|
+
query: me,
|
|
90
90
|
variables: {
|
|
91
91
|
id: e,
|
|
92
92
|
notes: n || null
|
|
93
93
|
},
|
|
94
|
-
authToken:
|
|
94
|
+
authToken: x || void 0
|
|
95
95
|
});
|
|
96
96
|
if (t.errors?.length) throw Error(t.errors[0]?.message ?? "Approval failed");
|
|
97
97
|
await Z();
|
|
98
98
|
} catch (e) {
|
|
99
|
-
|
|
99
|
+
M(e instanceof Error ? e.message : "Approval failed");
|
|
100
100
|
} finally {
|
|
101
|
-
|
|
101
|
+
K(null);
|
|
102
102
|
}
|
|
103
103
|
}, Ee = async (e, t, n) => {
|
|
104
104
|
if (!n.trim()) {
|
|
105
|
-
|
|
105
|
+
M("Rejection reason is required");
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
108
|
-
|
|
108
|
+
K(e), M(null);
|
|
109
109
|
try {
|
|
110
110
|
let t = await g({
|
|
111
111
|
gateway: "global",
|
|
112
|
-
query:
|
|
112
|
+
query: he,
|
|
113
113
|
variables: {
|
|
114
114
|
id: e,
|
|
115
115
|
reason: n.trim()
|
|
116
116
|
},
|
|
117
|
-
authToken:
|
|
117
|
+
authToken: x || void 0
|
|
118
118
|
});
|
|
119
119
|
if (t.errors?.length) throw Error(t.errors[0]?.message ?? "Rejection failed");
|
|
120
120
|
q(null), Y(""), X(null), await Z();
|
|
121
121
|
} catch (e) {
|
|
122
|
-
|
|
122
|
+
M(e instanceof Error ? e.message : "Rejection failed");
|
|
123
123
|
} finally {
|
|
124
|
-
|
|
124
|
+
K(null);
|
|
125
125
|
}
|
|
126
126
|
}, Q = r(async (e) => {
|
|
127
127
|
if (e === "VERSION_UPDATES") {
|
|
128
128
|
await Z();
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
A(!0), M(null);
|
|
132
132
|
try {
|
|
133
133
|
if (e === "PENDING_REVIEW") {
|
|
134
134
|
let e = await g({
|
|
135
135
|
gateway: "global",
|
|
136
|
-
query:
|
|
136
|
+
query: le,
|
|
137
137
|
variables: {
|
|
138
138
|
limit: 100,
|
|
139
139
|
offset: 0
|
|
140
140
|
},
|
|
141
|
-
authToken:
|
|
141
|
+
authToken: x || void 0
|
|
142
142
|
});
|
|
143
143
|
if (e.errors?.length) throw Error(e.errors[0]?.message ?? "Failed to load pending products");
|
|
144
|
-
|
|
144
|
+
E(e.data?.pendingReviewProducts.products ?? []), O(e.data?.pendingReviewProducts.totalCount ?? 0);
|
|
145
145
|
} else {
|
|
146
146
|
let t = await g({
|
|
147
147
|
gateway: "global",
|
|
148
|
-
query:
|
|
148
|
+
query: ue,
|
|
149
149
|
variables: {
|
|
150
150
|
limit: 100,
|
|
151
151
|
offset: 0,
|
|
152
152
|
...e !== "ALL" && { status: e }
|
|
153
153
|
},
|
|
154
|
-
authToken:
|
|
154
|
+
authToken: x || void 0
|
|
155
155
|
});
|
|
156
156
|
if (t.errors?.length) throw Error(t.errors[0]?.message ?? "Failed to load products");
|
|
157
157
|
let n = t.data?.products ?? [];
|
|
158
|
-
|
|
158
|
+
E(n), O(n.length);
|
|
159
159
|
}
|
|
160
160
|
} catch (e) {
|
|
161
|
-
|
|
161
|
+
M(e instanceof Error ? e.message : "Failed to load products");
|
|
162
162
|
} finally {
|
|
163
|
-
|
|
163
|
+
A(!1);
|
|
164
164
|
}
|
|
165
|
-
}, [
|
|
165
|
+
}, [x, Z]);
|
|
166
166
|
i(() => {
|
|
167
|
-
Q(
|
|
168
|
-
}, [Q,
|
|
167
|
+
Q(F);
|
|
168
|
+
}, [Q, F]), i(() => {
|
|
169
169
|
Z();
|
|
170
170
|
}, [Z]);
|
|
171
171
|
let De = async (e) => {
|
|
172
|
-
|
|
172
|
+
P(e), M(null);
|
|
173
173
|
try {
|
|
174
174
|
let t = await g({
|
|
175
175
|
gateway: "global",
|
|
176
|
-
query:
|
|
176
|
+
query: de,
|
|
177
177
|
variables: {
|
|
178
178
|
id: e,
|
|
179
179
|
notes: null
|
|
180
180
|
},
|
|
181
|
-
authToken:
|
|
181
|
+
authToken: x || void 0
|
|
182
182
|
});
|
|
183
183
|
if (t.errors?.length) throw Error(t.errors[0]?.message ?? "Approval failed");
|
|
184
|
-
await Q(
|
|
184
|
+
await Q(F);
|
|
185
185
|
} catch (e) {
|
|
186
|
-
|
|
186
|
+
M(e instanceof Error ? e.message : "Approval failed");
|
|
187
187
|
} finally {
|
|
188
|
-
|
|
188
|
+
P(null);
|
|
189
189
|
}
|
|
190
190
|
}, Oe = async (e) => {
|
|
191
|
-
if (!
|
|
192
|
-
|
|
191
|
+
if (!L.trim()) {
|
|
192
|
+
M("Rejection reason is required");
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
|
-
|
|
195
|
+
P(e), M(null);
|
|
196
196
|
try {
|
|
197
197
|
let t = await g({
|
|
198
198
|
gateway: "global",
|
|
199
|
-
query:
|
|
199
|
+
query: fe,
|
|
200
200
|
variables: {
|
|
201
201
|
id: e,
|
|
202
|
-
reason:
|
|
202
|
+
reason: L.trim()
|
|
203
203
|
},
|
|
204
|
-
authToken:
|
|
204
|
+
authToken: x || void 0
|
|
205
205
|
});
|
|
206
206
|
if (t.errors?.length) throw Error(t.errors[0]?.message ?? "Rejection failed");
|
|
207
|
-
|
|
207
|
+
I(null), R(""), await Q(F);
|
|
208
208
|
} catch (e) {
|
|
209
|
-
|
|
209
|
+
M(e instanceof Error ? e.message : "Rejection failed");
|
|
210
210
|
} finally {
|
|
211
|
-
|
|
211
|
+
P(null);
|
|
212
212
|
}
|
|
213
|
-
}, $ =
|
|
213
|
+
}, $ = T.filter((e) => e.status === "PENDING_REVIEW").length;
|
|
214
214
|
return /* @__PURE__ */ v("div", {
|
|
215
215
|
className: "min-h-screen bg-[var(--color-surface-default)]",
|
|
216
216
|
children: [
|
|
@@ -225,7 +225,7 @@ var C = () => {
|
|
|
225
225
|
children: [
|
|
226
226
|
/* @__PURE__ */ v("button", {
|
|
227
227
|
type: "button",
|
|
228
|
-
onClick: () =>
|
|
228
|
+
onClick: () => b(`${w}/dashboard`),
|
|
229
229
|
className: "inline-flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-sm text-[var(--color-text-secondary)] hover:bg-[var(--color-surface-hover)] hover:text-[var(--color-text-primary)] transition-colors",
|
|
230
230
|
children: [/* @__PURE__ */ _(ee, { className: "size-4 shrink-0" }), "Back"]
|
|
231
231
|
}),
|
|
@@ -235,33 +235,33 @@ var C = () => {
|
|
|
235
235
|
className: "text-lg font-semibold text-[var(--color-text-primary)] truncate",
|
|
236
236
|
children: "Submission Queue"
|
|
237
237
|
}),
|
|
238
|
-
|
|
238
|
+
D > 0 && /* @__PURE__ */ _("span", {
|
|
239
239
|
className: "shrink-0 rounded-full bg-[var(--color-status-warning-bg-subtle)] px-2 py-0.5 text-xs font-semibold text-[var(--color-status-warning-text)]",
|
|
240
|
-
children:
|
|
240
|
+
children: D
|
|
241
241
|
})
|
|
242
242
|
]
|
|
243
243
|
}), /* @__PURE__ */ v("button", {
|
|
244
244
|
type: "button",
|
|
245
|
-
onClick: () => void Q(
|
|
245
|
+
onClick: () => void Q(F),
|
|
246
246
|
className: "shrink-0 inline-flex items-center gap-2 rounded-md border border-[var(--color-border-default)] bg-[var(--color-surface-default)] px-3 py-1.5 text-sm text-[var(--color-text-primary)] hover:bg-[var(--color-surface-hover)] transition-colors disabled:opacity-50",
|
|
247
|
-
disabled:
|
|
248
|
-
children: [/* @__PURE__ */ _(m, { className: `size-4 ${
|
|
247
|
+
disabled: k,
|
|
248
|
+
children: [/* @__PURE__ */ _(m, { className: `size-4 ${k ? "animate-spin" : ""}` }), "Refresh"]
|
|
249
249
|
})]
|
|
250
250
|
}), /* @__PURE__ */ _("div", {
|
|
251
251
|
className: "mt-3 flex gap-1.5 flex-wrap",
|
|
252
|
-
children:
|
|
252
|
+
children: ge.map((e) => /* @__PURE__ */ v("button", {
|
|
253
253
|
type: "button",
|
|
254
|
-
onClick: () =>
|
|
255
|
-
className: `rounded-full px-3.5 py-1 text-xs font-medium transition-colors ${
|
|
254
|
+
onClick: () => ye(e.value),
|
|
255
|
+
className: `rounded-full px-3.5 py-1 text-xs font-medium transition-colors ${F === e.value ? "bg-[var(--color-action-primary-bg)] text-[var(--color-action-primary-text)]" : "bg-[var(--color-surface-muted)] text-[var(--color-text-secondary)] hover:bg-[var(--color-surface-hover)]"}`,
|
|
256
256
|
children: [
|
|
257
257
|
e.label,
|
|
258
|
-
e.value === "PENDING_REVIEW" && $ > 0 &&
|
|
258
|
+
e.value === "PENDING_REVIEW" && $ > 0 && F !== "PENDING_REVIEW" && /* @__PURE__ */ _("span", {
|
|
259
259
|
className: "ml-1.5 rounded-full bg-[var(--color-status-warning-text)] px-1.5 py-0.5 text-[10px] text-white",
|
|
260
260
|
children: $
|
|
261
261
|
}),
|
|
262
|
-
e.value === "VERSION_UPDATES" &&
|
|
262
|
+
e.value === "VERSION_UPDATES" && W > 0 && F !== "VERSION_UPDATES" && /* @__PURE__ */ _("span", {
|
|
263
263
|
className: "ml-1.5 rounded-full bg-[var(--color-status-info-text)] px-1.5 py-0.5 text-[10px] text-white",
|
|
264
|
-
children:
|
|
264
|
+
children: W
|
|
265
265
|
})
|
|
266
266
|
]
|
|
267
267
|
}, e.value))
|
|
@@ -271,25 +271,25 @@ var C = () => {
|
|
|
271
271
|
/* @__PURE__ */ v("main", {
|
|
272
272
|
className: "mx-auto max-w-5xl space-y-4 p-6",
|
|
273
273
|
children: [
|
|
274
|
-
/* @__PURE__ */ _(
|
|
274
|
+
/* @__PURE__ */ _(ce, {
|
|
275
275
|
className: "mb-2",
|
|
276
276
|
children: "Every publisher submission lands here for your review. Inspect the manifest, permissions, and package details — then approve to publish or reject with a clear reason the developer will see."
|
|
277
277
|
}),
|
|
278
|
-
|
|
278
|
+
j && /* @__PURE__ */ _("div", {
|
|
279
279
|
role: "alert",
|
|
280
280
|
className: "rounded-lg border border-[var(--color-border-danger)] bg-[var(--color-surface-danger-muted)] px-4 py-3 text-sm text-[var(--color-text-danger)]",
|
|
281
|
-
children:
|
|
281
|
+
children: j
|
|
282
282
|
}),
|
|
283
|
-
|
|
283
|
+
F === "VERSION_UPDATES" ? k && U.length === 0 ? /* @__PURE__ */ _("div", {
|
|
284
284
|
className: "flex items-center justify-center py-24",
|
|
285
285
|
children: /* @__PURE__ */ _(m, { className: "size-6 animate-spin text-[var(--color-text-muted)]" })
|
|
286
|
-
}) :
|
|
286
|
+
}) : U.length === 0 ? /* @__PURE__ */ _(y, {
|
|
287
287
|
illustration: "empty-data",
|
|
288
288
|
title: "No pending version updates",
|
|
289
289
|
description: "All published apps are up to date. When a developer submits a new version, it will appear here for your review."
|
|
290
290
|
}) : /* @__PURE__ */ _("ul", {
|
|
291
291
|
className: "space-y-4",
|
|
292
|
-
children:
|
|
292
|
+
children: U.map((e) => {
|
|
293
293
|
let t = e.versions.edges.map((e) => e.node).filter((e) => e.status === "pending_review");
|
|
294
294
|
return t.length === 0 ? null : /* @__PURE__ */ v("li", {
|
|
295
295
|
className: "overflow-hidden rounded-xl border border-[var(--color-border-seam)] bg-[var(--color-surface-raised)] shadow-[var(--shadow-elevation-1)]",
|
|
@@ -357,7 +357,7 @@ var C = () => {
|
|
|
357
357
|
}),
|
|
358
358
|
/* @__PURE__ */ v("span", {
|
|
359
359
|
className: "ml-auto flex items-center gap-1 text-xs text-[var(--color-text-secondary)]",
|
|
360
|
-
children: [/* @__PURE__ */ _(l, { className: "size-3" }),
|
|
360
|
+
children: [/* @__PURE__ */ _(l, { className: "size-3" }), C(t.createdAt)]
|
|
361
361
|
})
|
|
362
362
|
]
|
|
363
363
|
}),
|
|
@@ -387,20 +387,20 @@ var C = () => {
|
|
|
387
387
|
]
|
|
388
388
|
}), t.manifest && /* @__PURE__ */ v("button", {
|
|
389
389
|
type: "button",
|
|
390
|
-
onClick: () => z
|
|
390
|
+
onClick: () => B(z === t.id ? null : t.id),
|
|
391
391
|
className: "inline-flex items-center gap-1.5 rounded-md border border-[var(--color-border-default)] bg-[var(--color-surface-default)] px-3 py-1.5 text-xs font-medium text-[var(--color-text-secondary)] hover:bg-[var(--color-surface-hover)] transition-colors",
|
|
392
392
|
children: [
|
|
393
393
|
/* @__PURE__ */ _(f, { className: "size-3.5" }),
|
|
394
|
-
|
|
395
|
-
|
|
394
|
+
z === t.id ? "Hide manifest" : "View manifest",
|
|
395
|
+
z === t.id ? /* @__PURE__ */ _(c, { className: "size-3" }) : /* @__PURE__ */ _(s, { className: "size-3" })
|
|
396
396
|
]
|
|
397
397
|
})]
|
|
398
398
|
}),
|
|
399
|
-
|
|
399
|
+
z === t.id && t.manifest && /* @__PURE__ */ _("pre", {
|
|
400
400
|
className: "overflow-x-auto rounded-lg border border-[var(--color-border-seam)] bg-[var(--color-surface-default)] p-4 text-[11px] leading-relaxed text-[var(--color-text-primary)] max-h-48 overflow-y-auto",
|
|
401
401
|
children: JSON.stringify(t.manifest, null, 2)
|
|
402
402
|
}),
|
|
403
|
-
|
|
403
|
+
Ce === t.id && we === e.id && /* @__PURE__ */ v("div", {
|
|
404
404
|
className: "rounded-lg border border-[var(--color-border-danger)] bg-[var(--color-surface-danger-muted)]/30 p-3 space-y-2",
|
|
405
405
|
children: [
|
|
406
406
|
/* @__PURE__ */ _("p", {
|
|
@@ -426,7 +426,7 @@ var C = () => {
|
|
|
426
426
|
}), /* @__PURE__ */ _("button", {
|
|
427
427
|
type: "button",
|
|
428
428
|
onClick: () => void Ee(t.id, e.id, J),
|
|
429
|
-
disabled: !J.trim() ||
|
|
429
|
+
disabled: !J.trim() || G === t.id,
|
|
430
430
|
className: "rounded-md bg-[var(--color-surface-danger)] px-3 py-1.5 text-xs font-semibold text-[var(--color-text-on-danger)] hover:opacity-90 disabled:opacity-50 transition-opacity",
|
|
431
431
|
children: "Submit rejection"
|
|
432
432
|
})]
|
|
@@ -438,15 +438,15 @@ var C = () => {
|
|
|
438
438
|
children: [/* @__PURE__ */ v("button", {
|
|
439
439
|
type: "button",
|
|
440
440
|
onClick: () => void Te(t.id, e.id, ""),
|
|
441
|
-
disabled:
|
|
441
|
+
disabled: G === t.id,
|
|
442
442
|
className: "inline-flex items-center gap-1.5 rounded-md bg-[var(--color-surface-success)] px-4 py-1.5 text-xs font-semibold text-[var(--color-text-on-success)] hover:opacity-90 disabled:opacity-50 transition-opacity",
|
|
443
|
-
children: [
|
|
444
|
-
}),
|
|
443
|
+
children: [G === t.id ? /* @__PURE__ */ _(m, { className: "size-3.5 animate-spin" }) : /* @__PURE__ */ _(o, { className: "size-3.5" }), "Approve version"]
|
|
444
|
+
}), Ce !== t.id && /* @__PURE__ */ v("button", {
|
|
445
445
|
type: "button",
|
|
446
446
|
onClick: () => {
|
|
447
447
|
q(t.id), Y(""), X(e.id);
|
|
448
448
|
},
|
|
449
|
-
disabled:
|
|
449
|
+
disabled: G === t.id,
|
|
450
450
|
className: "inline-flex items-center gap-1.5 rounded-md border border-[var(--color-border-danger)] bg-[var(--color-surface-danger-muted)] px-4 py-1.5 text-xs font-semibold text-[var(--color-text-danger)] hover:bg-[var(--color-surface-danger)] hover:text-[var(--color-text-on-danger)] disabled:opacity-50 transition-colors",
|
|
451
451
|
children: [/* @__PURE__ */ _(h, { className: "size-3.5" }), "Reject version"]
|
|
452
452
|
})]
|
|
@@ -456,16 +456,16 @@ var C = () => {
|
|
|
456
456
|
})]
|
|
457
457
|
}, e.id);
|
|
458
458
|
})
|
|
459
|
-
}) :
|
|
459
|
+
}) : k && T.length === 0 ? /* @__PURE__ */ _("div", {
|
|
460
460
|
className: "flex items-center justify-center py-24",
|
|
461
461
|
children: /* @__PURE__ */ _(m, { className: "size-6 animate-spin text-[var(--color-text-muted)]" })
|
|
462
|
-
}) :
|
|
463
|
-
illustration:
|
|
464
|
-
title:
|
|
465
|
-
description:
|
|
462
|
+
}) : T.length === 0 ? /* @__PURE__ */ _(y, {
|
|
463
|
+
illustration: F === "PENDING_REVIEW" ? "empty-notifications" : "empty-data",
|
|
464
|
+
title: F === "PENDING_REVIEW" ? "Queue is clear" : "No products match this filter",
|
|
465
|
+
description: F === "PENDING_REVIEW" ? "No submissions are awaiting review. New submissions will appear here as publishers send them in." : "Nothing matches the current filter. Try switching to a different status above."
|
|
466
466
|
}) : /* @__PURE__ */ _("ul", {
|
|
467
467
|
className: "space-y-3",
|
|
468
|
-
children:
|
|
468
|
+
children: T.map((e) => /* @__PURE__ */ v("li", {
|
|
469
469
|
className: "overflow-hidden rounded-xl border border-[var(--color-border-seam)] bg-[var(--color-surface-raised)] shadow-[var(--shadow-elevation-1)] transition-[box-shadow,border-color] hover:border-[var(--color-border-strong)] hover:shadow-[var(--shadow-elevation-2)]",
|
|
470
470
|
children: [
|
|
471
471
|
/* @__PURE__ */ v("div", {
|
|
@@ -488,11 +488,11 @@ var C = () => {
|
|
|
488
488
|
children: e.name
|
|
489
489
|
}),
|
|
490
490
|
/* @__PURE__ */ _("span", {
|
|
491
|
-
className: `rounded-full px-2 py-0.5 text-[11px] font-semibold uppercase tracking-wide ${
|
|
491
|
+
className: `rounded-full px-2 py-0.5 text-[11px] font-semibold uppercase tracking-wide ${_e(e.type)}`,
|
|
492
492
|
children: e.type
|
|
493
493
|
}),
|
|
494
494
|
/* @__PURE__ */ _("span", {
|
|
495
|
-
className: `rounded-full px-2 py-0.5 text-[11px] font-medium ${
|
|
495
|
+
className: `rounded-full px-2 py-0.5 text-[11px] font-medium ${ve(e.status)}`,
|
|
496
496
|
children: e.status.replace("_", " ")
|
|
497
497
|
})
|
|
498
498
|
]
|
|
@@ -524,7 +524,7 @@ var C = () => {
|
|
|
524
524
|
}),
|
|
525
525
|
e.submittedAt && /* @__PURE__ */ v("span", {
|
|
526
526
|
className: "flex items-center gap-1",
|
|
527
|
-
children: [/* @__PURE__ */ _(l, { className: "size-3" }),
|
|
527
|
+
children: [/* @__PURE__ */ _(l, { className: "size-3" }), C(e.submittedAt)]
|
|
528
528
|
}),
|
|
529
529
|
/* @__PURE__ */ v("span", {
|
|
530
530
|
className: "flex items-center gap-1",
|
|
@@ -551,28 +551,35 @@ var C = () => {
|
|
|
551
551
|
className: "inline-flex items-center gap-1.5 rounded-md border border-[var(--color-border-default)] bg-[var(--color-surface-default)] px-3 py-1.5 text-xs font-medium text-[var(--color-text-secondary)] hover:bg-[var(--color-surface-hover)] hover:text-[var(--color-text-primary)] transition-colors",
|
|
552
552
|
children: [/* @__PURE__ */ _(d, { className: "size-3.5" }), "Devportal"]
|
|
553
553
|
}),
|
|
554
|
-
|
|
554
|
+
S.has(e.type) && (e.zipFileUrl ? /* @__PURE__ */ v("a", {
|
|
555
555
|
href: e.zipFileUrl,
|
|
556
556
|
download: !0,
|
|
557
557
|
target: "_blank",
|
|
558
558
|
rel: "noreferrer",
|
|
559
559
|
className: "inline-flex items-center gap-1.5 rounded-md border border-[var(--color-border-default)] bg-[var(--color-surface-default)] px-3 py-1.5 text-xs font-medium text-[var(--color-text-secondary)] hover:bg-[var(--color-surface-hover)] hover:text-[var(--color-text-primary)] transition-colors",
|
|
560
560
|
children: [/* @__PURE__ */ _(u, { className: "size-3.5" }), "Download Package"]
|
|
561
|
-
}),
|
|
562
|
-
|
|
561
|
+
}) : /* @__PURE__ */ v("a", {
|
|
562
|
+
href: "/devportal/reviews",
|
|
563
|
+
target: "_blank",
|
|
564
|
+
rel: "noreferrer",
|
|
565
|
+
className: "inline-flex items-center gap-1.5 rounded-md border border-[var(--color-border-default)] bg-[var(--color-surface-default)] px-3 py-1.5 text-xs font-medium text-[var(--color-text-secondary)] hover:bg-[var(--color-surface-hover)] hover:text-[var(--color-text-primary)] transition-colors",
|
|
566
|
+
title: "Package stored in devportal — download from the review panel there",
|
|
567
|
+
children: [/* @__PURE__ */ _(u, { className: "size-3.5" }), "Package (in Devportal)"]
|
|
568
|
+
})),
|
|
569
|
+
S.has(e.type) && /* @__PURE__ */ v("button", {
|
|
563
570
|
type: "button",
|
|
564
|
-
onClick: () =>
|
|
571
|
+
onClick: () => H(e),
|
|
565
572
|
className: "inline-flex items-center gap-1.5 rounded-md border border-[var(--color-border-accent)] bg-[var(--color-surface-default)] px-3 py-1.5 text-xs font-medium text-[var(--color-text-accent)] hover:bg-[var(--color-surface-accent-muted)] transition-colors",
|
|
566
573
|
children: [/* @__PURE__ */ _(te, { className: "size-3.5" }), "Test in workspace"]
|
|
567
574
|
}),
|
|
568
575
|
/* @__PURE__ */ v("button", {
|
|
569
576
|
type: "button",
|
|
570
|
-
onClick: () => z
|
|
577
|
+
onClick: () => B(z === e.id ? null : e.id),
|
|
571
578
|
className: "inline-flex items-center gap-1.5 rounded-md border border-[var(--color-border-default)] bg-[var(--color-surface-default)] px-3 py-1.5 text-xs font-medium text-[var(--color-text-secondary)] hover:bg-[var(--color-surface-hover)] transition-colors",
|
|
572
579
|
children: [
|
|
573
580
|
/* @__PURE__ */ _(f, { className: "size-3.5" }),
|
|
574
|
-
|
|
575
|
-
|
|
581
|
+
z === e.id ? "Hide details" : "Inspect details",
|
|
582
|
+
z === e.id ? /* @__PURE__ */ _(c, { className: "size-3" }) : /* @__PURE__ */ _(s, { className: "size-3" })
|
|
576
583
|
]
|
|
577
584
|
})
|
|
578
585
|
]
|
|
@@ -581,21 +588,21 @@ var C = () => {
|
|
|
581
588
|
children: [e.status !== "PUBLISHED" && /* @__PURE__ */ v("button", {
|
|
582
589
|
type: "button",
|
|
583
590
|
onClick: () => void De(e.id),
|
|
584
|
-
disabled:
|
|
591
|
+
disabled: N === e.id,
|
|
585
592
|
className: "inline-flex items-center gap-1.5 rounded-md bg-[var(--color-surface-success)] px-4 py-1.5 text-xs font-semibold text-[var(--color-text-on-success)] hover:opacity-90 disabled:opacity-50 transition-opacity",
|
|
586
593
|
children: [/* @__PURE__ */ _(o, { className: "size-3.5" }), "Approve"]
|
|
587
594
|
}), e.status !== "REJECTED" && /* @__PURE__ */ v("button", {
|
|
588
595
|
type: "button",
|
|
589
596
|
onClick: () => {
|
|
590
|
-
|
|
597
|
+
I(e.id), R("");
|
|
591
598
|
},
|
|
592
|
-
disabled:
|
|
599
|
+
disabled: N === e.id,
|
|
593
600
|
className: "inline-flex items-center gap-1.5 rounded-md border border-[var(--color-border-danger)] bg-[var(--color-surface-danger-muted)] px-4 py-1.5 text-xs font-semibold text-[var(--color-text-danger)] hover:bg-[var(--color-surface-danger)] hover:text-[var(--color-text-on-danger)] disabled:opacity-50 transition-colors",
|
|
594
601
|
children: [/* @__PURE__ */ _(h, { className: "size-3.5" }), "Reject"]
|
|
595
602
|
})]
|
|
596
603
|
})]
|
|
597
604
|
}),
|
|
598
|
-
|
|
605
|
+
z === e.id && /* @__PURE__ */ v("div", {
|
|
599
606
|
className: "border-t border-[var(--color-border-seam)] bg-[var(--color-surface-muted)] p-5 space-y-5",
|
|
600
607
|
children: [
|
|
601
608
|
/* @__PURE__ */ v("div", {
|
|
@@ -686,7 +693,7 @@ var C = () => {
|
|
|
686
693
|
})] })
|
|
687
694
|
]
|
|
688
695
|
}),
|
|
689
|
-
|
|
696
|
+
be === e.id && /* @__PURE__ */ v("div", {
|
|
690
697
|
className: "border-t border-[var(--color-border-seam)] bg-[var(--color-surface-danger-muted)]/30 px-5 py-4",
|
|
691
698
|
children: [
|
|
692
699
|
/* @__PURE__ */ _("p", {
|
|
@@ -696,8 +703,8 @@ var C = () => {
|
|
|
696
703
|
/* @__PURE__ */ _("textarea", {
|
|
697
704
|
id: `reject-reason-${e.id}`,
|
|
698
705
|
"aria-label": "Rejection reason",
|
|
699
|
-
value:
|
|
700
|
-
onChange: (e) =>
|
|
706
|
+
value: L,
|
|
707
|
+
onChange: (e) => R(e.target.value),
|
|
701
708
|
rows: 3,
|
|
702
709
|
required: !0,
|
|
703
710
|
"aria-required": "true",
|
|
@@ -709,14 +716,14 @@ var C = () => {
|
|
|
709
716
|
children: [/* @__PURE__ */ _("button", {
|
|
710
717
|
type: "button",
|
|
711
718
|
onClick: () => {
|
|
712
|
-
|
|
719
|
+
I(null), R("");
|
|
713
720
|
},
|
|
714
721
|
className: "rounded-md border border-[var(--color-border-default)] bg-[var(--color-surface-default)] px-3 py-1.5 text-xs font-medium text-[var(--color-text-primary)] hover:bg-[var(--color-surface-hover)] transition-colors",
|
|
715
722
|
children: "Cancel"
|
|
716
723
|
}), /* @__PURE__ */ _("button", {
|
|
717
724
|
type: "button",
|
|
718
725
|
onClick: () => void Oe(e.id),
|
|
719
|
-
disabled: !
|
|
726
|
+
disabled: !L.trim() || N === e.id,
|
|
720
727
|
className: "rounded-md bg-[var(--color-surface-danger)] px-3 py-1.5 text-xs font-semibold text-[var(--color-text-on-danger)] hover:opacity-90 disabled:opacity-50 transition-opacity",
|
|
721
728
|
children: "Submit rejection"
|
|
722
729
|
})]
|
|
@@ -728,20 +735,20 @@ var C = () => {
|
|
|
728
735
|
})
|
|
729
736
|
]
|
|
730
737
|
}),
|
|
731
|
-
|
|
738
|
+
V && /* @__PURE__ */ _(n, {
|
|
732
739
|
isOpen: !0,
|
|
733
|
-
onClose: () =>
|
|
740
|
+
onClose: () => H(null),
|
|
734
741
|
app: {
|
|
735
|
-
id:
|
|
736
|
-
name:
|
|
737
|
-
slug:
|
|
738
|
-
icon:
|
|
739
|
-
type:
|
|
740
|
-
permissions:
|
|
742
|
+
id: V.id,
|
|
743
|
+
name: V.name,
|
|
744
|
+
slug: V.slug,
|
|
745
|
+
icon: V.icon ?? void 0,
|
|
746
|
+
type: V.type,
|
|
747
|
+
permissions: V.requiredPermissions?.length ? V.requiredPermissions : void 0
|
|
741
748
|
},
|
|
742
749
|
purchaseState: "free",
|
|
743
750
|
onInstallSuccess: () => {
|
|
744
|
-
|
|
751
|
+
H(null);
|
|
745
752
|
},
|
|
746
753
|
onInstallError: () => {}
|
|
747
754
|
})
|
|
@@ -749,6 +756,6 @@ var C = () => {
|
|
|
749
756
|
});
|
|
750
757
|
};
|
|
751
758
|
//#endregion
|
|
752
|
-
export {
|
|
759
|
+
export { w as AdminSubmissionsQueuePage };
|
|
753
760
|
|
|
754
761
|
//# sourceMappingURL=AdminSubmissionsQueuePage.js.map
|