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.

format

Kiran Ke9ff254b98f4
diff --git a/apps/web/app/(ee)/api/hubspot/callback/route.ts b/apps/web/app/(ee)/api/hubspot/callback/route.ts
index d91734081e..20c89bb8b3 100644
--- a/apps/web/app/(ee)/api/hubspot/callback/route.ts
+++ b/apps/web/app/(ee)/api/hubspot/callback/route.ts
@@ -12,7 +12,6 @@ import z from "@/lib/zod";
import { prisma } from "@dub/prisma";
import { Project } from "@dub/prisma/client";
import { getSearchParams } from "@dub/utils";
-import { refreshAccessToken } from "app/api/oauth/token/refresh-access-token";
import { redirect } from "next/navigation";
export const dynamic = "force-dynamic";
diff --git a/apps/web/ui/messages/messages-panel.tsx b/apps/web/ui/messages/messages-panel.tsx
index 190c2977d2..37e73c701b 100644
--- a/apps/web/ui/messages/messages-panel.tsx
+++ b/apps/web/ui/messages/messages-panel.tsx
@@ -286,9 +286,9 @@ function StatusIndicator({
<div
className={cn(
"text-content-subtle flex items-center",
- message.readInApp
+ message.readInApp
? "text-blue-500"
- : (message.readInEmail && "text-violet-500"),
+ : message.readInEmail && "text-violet-500",
)}
>
{message.delivered === false ? (
diff --git a/packages/hubspot-app/CLAUDE.md b/packages/hubspot-app/CLAUDE.md
index f8ed2152ed..36822a6455 100644
--- a/packages/hubspot-app/CLAUDE.md
+++ b/packages/hubspot-app/CLAUDE.md
@@ -5,6 +5,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working on HubS
IMPORTANT: IF THE 'HubSpot' MCP SERVER IS INSTALLED USE THE TOOLS BEFORE TRYING TO MANUALLY USE CLI COMMANDS OR BEFORE TRYING TO DO ANYTHING WITH HUBSPOT ASSETS
## HubSpot Project Information
+
- The project configuration is in the `hsproject.json` file
- A directory is considered a part of the project it or a directory above it contains a `hsproject.json` file
- The project src directory is defined in the `srcDir` field in the `hsproject.json`
@@ -12,60 +13,75 @@ IMPORTANT: IF THE 'HubSpot' MCP SERVER IS INSTALLED USE THE TOOLS BEFORE TRYING
- The `platformVersion` determines what features the project has access to as well as the shape of the configuration files
## npm packages
+
### `@hubspot/ui-extensions`
-- In the `@hubspot/ui-extensions` npm package, only the component properties defined by the component are valid. `style` properties are not valid
+
+- In the `@hubspot/ui-extensions` npm package, only the component properties defined by the component are valid. `style` properties are not valid
## Component Information
+
### General
+
- Component configuration files must end with `-hsmeta.json`
- The `uid` field in the `-hsmeta.json` files must be unique with the project
- The `type` field in the `-hsmeta.json` files defines the type of the component
- Components can not be in nested subdirectories, only the specified directories in their corresponding component rules.
-- Example components can be found in https://github.com/HubSpot/hubspot-project-components. The directories are split up by platform version and follow this format `${platformVersion}/components`
+- Example components can be found in https://github.com/HubSpot/hubspot-project-components. The directories are split up by platform version and follow this format `${platformVersion}/components`
- All component subdirectories must be in the project source directory
### app component
+
- There can only be one `app` component
- `app` component must be in the `app` directory
-- If the `config.distribution` field is set to `marketplace`, the only valid `config.auth.type` value is `oauth`
+- If the `config.distribution` field is set to `marketplace`, the only valid `config.auth.type` value is `oauth`
### card
+
- `card` components must be in the `app/cards` directory
- The global `window` object is not available in the `card` component
-- Cannot use `window.fetch`, and instead must use the `hubspot.fetch` function provided by the `@hubspot/ui-extensions` npm package. Any urls called with the `hubspot.fetch` function must be added to the `config.permittedUrls.fetch` array in the `app` component's hsmeta.json file
-- Only components exported from the `@hubspot/ui-extensions` npm package can be used in `card` components
+- Cannot use `window.fetch`, and instead must use the `hubspot.fetch` function provided by the `@hubspot/ui-extensions` npm package. Any urls called with the `hubspot.fetch` function must be added to the `config.permittedUrls.fetch` array in the `app` component's hsmeta.json file
+- Only components exported from the `@hubspot/ui-extensions` npm package can be used in `card` components
### app-event
+
- `app-event` components must be in the `app/app-events` directory
--
+-
+
### app-object
+
- `app-object` components must be in the `app/app-object` directory
### app-function
+
- `app-function` components must be in the `app/functions` directory
-- `app-function` components are not available when `config.distribution` is set to `marketplace` in the `app` component `-hsmeta.son` file
+- `app-function` components are not available when `config.distribution` is set to `marketplace` in the `app` component `-hsmeta.son` file
# settings
+
- There can only be one `settings` component
- `settings` components must be in the `app/settings` directory
- The global `window` object is not available in the `settings` component
-- Cannot use `window.fetch`, and instead must use the `hubspot.fetch` function provided by the `@hubspot/ui-extensions` npm package. Any urls called with the `hubspot.fetch` function must be added to the `config.permittedUrls.fetch` array in the `app` component's hsmeta.json file
+- Cannot use `window.fetch`, and instead must use the `hubspot.fetch` function provided by the `@hubspot/ui-extensions` npm package. Any urls called with the `hubspot.fetch` function must be added to the `config.permittedUrls.fetch` array in the `app` component's hsmeta.json file
- Only components exported from the `@hubspot/ui-extensions` npm package can be used in `settings` components
- React Components from `@hubspot/ui-extensions/crm` cannot be used in `settings` components
# scim
+
- There can only be one `scim` component
- `scim` components must be in the `app/scim` directory
# webhooks
+
- There can only be one `webhooks` component.
- `webhooks` components must be in the `app/webhooks` directory
- `webhooks` components can only be in projects where `config.distribution` is private and `config.auth.type` is `static`
### workflow-actions
+
- `workflow-action` components must be in the `app/workflow-actions` directory
## HubSpot CLI commands
+
- All the commands and subcommands have a `--help` argument that provides details on the command and it's arguments
- The help output is standard yargs output
- The commands for working with projects in HubSpot are subcommands of `hs project`
@@ -73,11 +89,12 @@ IMPORTANT: IF THE 'HubSpot' MCP SERVER IS INSTALLED USE THE TOOLS BEFORE TRYING
- Debugging problems with CLI installation: `hs doctor`
- `hs project open` will open the current project page in the browser
- `hs init` is required to set up the hubspot configuration file
-- `hs auth` will authenticate a new account. This will require a user to open a browser and paste a token in a CLI prompt.
+- `hs auth` will authenticate a new account. This will require a user to open a browser and paste a token in a CLI prompt.
- All the commands for managing HubSpot accounts in the CLI are subcommands of `hs account`
## General
+
- Follow existing patterns in the codebase
- Use proper component structure based on component `type` in the `-hsmeta.json` file
-- Ensure configuration files follow HubSpot naming conventions
-- Always validate that components are placed in correct directories
\ No newline at end of file
+- Ensure configuration files follow HubSpot naming conventions
+- Always validate that components are placed in correct directories
diff --git a/packages/ui/src/icons/payout-platforms/stripe.tsx b/packages/ui/src/icons/payout-platforms/stripe.tsx
index 4797dff761..c5d778a8f9 100644
--- a/packages/ui/src/icons/payout-platforms/stripe.tsx
+++ b/packages/ui/src/icons/payout-platforms/stripe.tsx
@@ -17,4 +17,3 @@ export function Stripe({ className }: { className?: string }) {
</svg>
);
}
-