Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

display the description

Kiran Ke9f3cf3f5fa4
diff --git a/apps/web/lib/api/tokens/scopes.ts b/apps/web/lib/api/tokens/scopes.ts
index 7742c49c32..123c7eead7 100644
--- a/apps/web/lib/api/tokens/scopes.ts
+++ b/apps/web/lib/api/tokens/scopes.ts
@@ -41,7 +41,7 @@ interface ScopeDescription {
export const scopeDescriptions = [
{
resource: "Workspaces",
- description: "Read workspaces",
+ description: "Read, update, and delete workspaces",
endpoints: ["/workspaces"],
permissions: [
{
@@ -96,19 +96,6 @@ export const scopeDescriptions = [
},
],
},
- {
- resource: "Analytics",
- description: "Read analytics",
- endpoints: ["/analytics"],
- permissions: [
- {
- permission: "Read",
- scope: "analytics.read",
- description: "Read analytics",
- roles: ["owner", "member"],
- },
- ],
- },
{
resource: "Domains",
description: "Create, read, update, and delete domains",
@@ -147,6 +134,19 @@ export const scopeDescriptions = [
},
],
},
+ {
+ resource: "Analytics",
+ description: "Read analytics",
+ endpoints: ["/analytics"],
+ permissions: [
+ {
+ permission: "Read",
+ scope: "analytics.read",
+ description: "Read analytics",
+ roles: ["owner", "member"],
+ },
+ ],
+ },
] as const;
// Map roles to scopes
diff --git a/apps/web/ui/modals/add-edit-token-modal/index.tsx b/apps/web/ui/modals/add-edit-token-modal/index.tsx
index cbfb5906a3..59f710f8dc 100644
--- a/apps/web/ui/modals/add-edit-token-modal/index.tsx
+++ b/apps/web/ui/modals/add-edit-token-modal/index.tsx
@@ -189,7 +189,10 @@ function AddEditTokenModal({
className="flex items-center justify-between py-4"
key={`${scope.resource}-resource`}
>
- <div className="text-gray-500">{scope.resource}</div>
+ <div className="flex gap-1 text-gray-500">
+ <p>{scope.resource}</p>
+ <InfoTooltip content={scope.description} />
+ </div>
<div>
<RadioGroup
defaultValue=""