Skip to content

Commit

Permalink
feat: removed rounded from integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
carhartlewis committed Feb 13, 2025
1 parent 77f0ebc commit 757938b
Show file tree
Hide file tree
Showing 11 changed files with 159 additions and 48 deletions.
4 changes: 4 additions & 0 deletions apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"clean-react": "rm -rf node_modules/react; rm -rf node_modules/react-dom"
},
"dependencies": {
"@ai-sdk/anthropic": "^1.1.7",
"@ai-sdk/google": "^1.1.12",
"@browserbasehq/sdk": "^2.3.0",
"@bubba/notifications": "workspace:*",
"@date-fns/tz": "^1.2.0",
Expand Down Expand Up @@ -37,6 +39,7 @@
"@types/xml2js": "^0.4.14",
"@uploadthing/react": "^7.2.0",
"@upstash/ratelimit": "^2.0.5",
"ai": "^4.1.37",
"argon2": "^0.41.1",
"bun": "^1.2.2",
"crypto": "^1.0.1",
Expand Down Expand Up @@ -73,6 +76,7 @@
"resend": "^4.1.2",
"sonner": "^1.7.4",
"stripe": "^17.6.0",
"tiptap-extension-global-drag-handle": "^0.1.17",
"tiptap-markdown": "^0.8.10",
"ts-pattern": "^5.6.2",
"uploadthing": "^7.5.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getI18n } from "@/locales/server";
import type { Metadata } from "next";
import { setStaticParamsLocale } from "next-international/server";
import { redirect } from "next/navigation";
import { PoliciesOverview } from "./Components/PoliciesOverview";
import { PoliciesOverview } from "./components/PoliciesOverview";

export default async function PoliciesOverviewPage({
params,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use server";

import { authActionClient } from "@/actions/safe-action";
import { db, type OrganizationPolicy } from "@bubba/db";
import { type OrganizationPolicy, db } from "@bubba/db";
import { z } from "zod";

const schema = z.object({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"use client";

import { getPolicies } from "../Actions/get-policies";
import useSWR from "swr";
import type { OrganizationPolicy } from "@bubba/db";
import type tyOrganizationPolicyzationPol@bubbaodb
import useSWR from "swr";
import PogetPoliciesactionsig../actionsiget-policieseseseseses";

const POLICIES_OVERVIEW_KEY = "policies-overview";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"use client";

import { getPolicy } from "../Actions/get-policy";
import type tyOrganizationPolicy, PolicynizationP@bubbaidbP @bubbaidbP @bubbaidbP @bubbaidbP @bubbaidb"@bubba/db";
import useSWR from "swr";
import type { OrganizationPolicy, Policy } from "@bubba/db";
import PtgetPolicyy../actionsget-policy

const POLICY_KEY = "policy";

Expand Down
2 changes: 1 addition & 1 deletion apps/app/src/components/integrations/integrations-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export function IntegrationsCard({
{name}
</CardTitle>
{!active && (
<span className="text-muted-foreground text-[10px] px-3 py-1 rounded-full font-mono">
<span className="text-muted-foreground text-[10px] px-3 py-1 font-mono">
Coming soon
</span>
)}
Expand Down
8 changes: 4 additions & 4 deletions apps/app/src/components/policies/policy-overview.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"use client";

import type { JSONContent } from "@tiptap/react";
import PolicyEditor from "../editor/advanced-editor";
import { publishPolicy } from "@/app/[locale]/(app)/(dashboard)/policies/[id]/actions/publish-policy";
import { usePolicy } from "@/app/[locale]/(app)/(dashboard)/policies/hooks/usePolicy";
import { Button } from "@bubba/ui/button";
import { Separator } from "@bubba/ui/separator";
import type { JSONContent } from "@tiptap/react";
import { useAction } from "next-safe-action/hooks";
import { publishPolicy } from "@/app/[locale]/(app)/(dashboard)/policies/[id]/Actions/publish-policy";
import { toast } from "sonner";
import PolicyEditor from "../editor/advanced-editor";

export function PolicyOverview({ policyId }: { policyId: string }) {
const { data: policy } = usePolicy({ policyId });
Expand All @@ -17,7 +17,7 @@ export function PolicyOverview({ policyId }: { policyId: string }) {
onSuccess: () => {
toast.success("Policy published successfully");
},
}
},
);

if (!policy) return null;
Expand Down
50 changes: 45 additions & 5 deletions bun.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"@manypkg/cli": "^0.23.0",
"gitmoji": "^1.1.1",
"gray-matter": "^4.0.3",
"sharp": "^0.33.5",
"use-debounce": "^10.0.4",
},
"devDependencies": {
Expand All @@ -19,6 +20,8 @@
"name": "comp.ai",
"version": "0.1.0",
"dependencies": {
"@ai-sdk/anthropic": "^1.1.7",
"@ai-sdk/google": "^1.1.12",
"@browserbasehq/sdk": "^2.3.0",
"@bubba/notifications": "workspace:*",
"@date-fns/tz": "^1.2.0",
Expand Down Expand Up @@ -46,6 +49,7 @@
"@types/xml2js": "^0.4.14",
"@uploadthing/react": "^7.2.0",
"@upstash/ratelimit": "^2.0.5",
"ai": "^4.1.37",
"argon2": "^0.41.1",
"bun": "^1.2.2",
"crypto": "^1.0.1",
Expand Down Expand Up @@ -82,6 +86,7 @@
"resend": "^4.1.2",
"sonner": "^1.7.4",
"stripe": "^17.6.0",
"tiptap-extension-global-drag-handle": "^0.1.17",
"tiptap-markdown": "^0.8.10",
"ts-pattern": "^5.6.2",
"uploadthing": "^7.5.0",
Expand Down Expand Up @@ -187,13 +192,14 @@
"dependencies": {
"@ai-sdk/openai": "^0.0.66",
"@slack/bolt": "^3.22.0",
"@slack/web-api": "^7.5.0",
"ai": "^3.4.9",
"zod": "^3.23.8",
"@slack/web-api": "^7.8.0",
"ai": "^3.4.33",
"sharp": "^0.33.5",
"zod": "^3.24.2",
},
"devDependencies": {
"@types/node": "^22.7.4",
"typescript": "^5.6.3",
"@types/node": "^22.13.2",
"typescript": "^5.7.3",
},
},
"packages/kv": {
Expand Down Expand Up @@ -293,6 +299,10 @@
},
},
"packages": {
"@ai-sdk/anthropic": ["@ai-sdk/[email protected]", "", { "dependencies": { "@ai-sdk/provider": "1.0.7", "@ai-sdk/provider-utils": "2.1.7" }, "peerDependencies": { "zod": "^3.0.0" } }, "sha512-d/w9VUah/KVxOj1BRdzPFJGtHG5/XcPYbvjnRSwm9hA5bzlP+Yl6f1EdabPruUOTDTG+dkYuccQkBe+5xPmF8A=="],

"@ai-sdk/google": ["@ai-sdk/[email protected]", "", { "dependencies": { "@ai-sdk/provider": "1.0.7", "@ai-sdk/provider-utils": "2.1.7" }, "peerDependencies": { "zod": "^3.0.0" } }, "sha512-SlS6q6TtgwkSHV/bp11rH+n+mMhTATPpecoqsTg9A/MmcopCkO5BCg3AnVX2peDYpBiboBjr9bg1L5FoMJr7sw=="],

"@ai-sdk/openai": ["@ai-sdk/[email protected]", "", { "dependencies": { "@ai-sdk/provider": "0.0.24", "@ai-sdk/provider-utils": "1.0.20" }, "peerDependencies": { "zod": "^3.0.0" } }, "sha512-V4XeDnlNl5/AY3GB3ozJUjqnBLU5pK3DacKTbCNH3zH8/MggJoH6B8wRGdLUPVFMcsMz60mtvh4DC9JsIVFrKw=="],

"@ai-sdk/provider": ["@ai-sdk/[email protected]", "", { "dependencies": { "json-schema": "0.4.0" } }, "sha512-XMsNGJdGO+L0cxhhegtqZ8+T6nn4EoShS819OvCgI2kLbYTIvk0GWFGD0AXJmxkxs3DrpsJxKAFukFR7bvTkgQ=="],
Expand Down Expand Up @@ -3159,6 +3169,14 @@

"zwitch": ["[email protected]", "", {}, "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A=="],

"@ai-sdk/anthropic/@ai-sdk/provider": ["@ai-sdk/[email protected]", "", { "dependencies": { "json-schema": "^0.4.0" } }, "sha512-q1PJEZ0qD9rVR+8JFEd01/QM++csMT5UVwYXSN2u54BrVw/D8TZLTeg2FEfKK00DgAx0UtWd8XOhhwITP9BT5g=="],

"@ai-sdk/anthropic/@ai-sdk/provider-utils": ["@ai-sdk/[email protected]", "", { "dependencies": { "@ai-sdk/provider": "1.0.7", "eventsource-parser": "^3.0.0", "nanoid": "^3.3.8", "secure-json-parse": "^2.7.0" }, "peerDependencies": { "zod": "^3.0.0" }, "optionalPeers": ["zod"] }, "sha512-5pliIKahXPlx3PZNBL3TtOBosFftoCq8bUNYdLi2M3YPBdQen9G9mR1BCrhC5hhEk4i3XTM8boqYeuRN6kLfsA=="],

"@ai-sdk/google/@ai-sdk/provider": ["@ai-sdk/[email protected]", "", { "dependencies": { "json-schema": "^0.4.0" } }, "sha512-q1PJEZ0qD9rVR+8JFEd01/QM++csMT5UVwYXSN2u54BrVw/D8TZLTeg2FEfKK00DgAx0UtWd8XOhhwITP9BT5g=="],

"@ai-sdk/google/@ai-sdk/provider-utils": ["@ai-sdk/[email protected]", "", { "dependencies": { "@ai-sdk/provider": "1.0.7", "eventsource-parser": "^3.0.0", "nanoid": "^3.3.8", "secure-json-parse": "^2.7.0" }, "peerDependencies": { "zod": "^3.0.0" }, "optionalPeers": ["zod"] }, "sha512-5pliIKahXPlx3PZNBL3TtOBosFftoCq8bUNYdLi2M3YPBdQen9G9mR1BCrhC5hhEk4i3XTM8boqYeuRN6kLfsA=="],

"@ai-sdk/provider-utils/nanoid": ["[email protected]", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA=="],

"@ai-sdk/react/@ai-sdk/provider-utils": ["@ai-sdk/[email protected]", "", { "dependencies": { "@ai-sdk/provider": "0.0.26", "eventsource-parser": "^1.1.2", "nanoid": "^3.3.7", "secure-json-parse": "^2.7.0" }, "peerDependencies": { "zod": "^3.0.0" }, "optionalPeers": ["zod"] }, "sha512-YHK2rpj++wnLVc9vPGzGFP3Pjeld2MwhKinetA0zKXOoHAT/Jit5O8kZsxcSlJPu9wvcGT1UGZEjZrtO7PfFOQ=="],
Expand Down Expand Up @@ -3297,6 +3315,8 @@

"cmdk/react-dom": ["[email protected]", "", { "dependencies": { "loose-envify": "^1.1.0", "scheduler": "^0.23.0" }, "peerDependencies": { "react": "^18.2.0" } }, "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g=="],

"comp.ai/ai": ["[email protected]", "", { "dependencies": { "@ai-sdk/provider": "1.0.7", "@ai-sdk/provider-utils": "2.1.7", "@ai-sdk/react": "1.1.13", "@ai-sdk/ui-utils": "1.1.13", "@opentelemetry/api": "1.9.0", "jsondiffpatch": "0.6.0" }, "peerDependencies": { "react": "^18 || ^19 || ^19.0.0-rc", "zod": "^3.0.0" }, "optionalPeers": ["react", "zod"] }, "sha512-muE4XDrggYKGDM3o1pXpSvJqn2CGz7h30EQtaDgph9Hqmc5d2AfgFftXgl+YNbmr1kYrUR2HZS/Q0Y2QWAwsHA=="],

"comp.ai/typescript": ["[email protected]", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw=="],

"condense-newlines/kind-of": ["[email protected]", "", { "dependencies": { "is-buffer": "^1.1.5" } }, "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ=="],
Expand Down Expand Up @@ -3493,6 +3513,14 @@

"write-file-atomic/signal-exit": ["[email protected]", "", {}, "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="],

"@ai-sdk/anthropic/@ai-sdk/provider-utils/eventsource-parser": ["[email protected]", "", {}, "sha512-T1C0XCUimhxVQzW4zFipdx0SficT651NnkR0ZSH3yQwh+mFMdLfgjABVi4YtMTtaL4s168593DaoaRLMqryavA=="],

"@ai-sdk/anthropic/@ai-sdk/provider-utils/nanoid": ["[email protected]", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w=="],

"@ai-sdk/google/@ai-sdk/provider-utils/eventsource-parser": ["[email protected]", "", {}, "sha512-T1C0XCUimhxVQzW4zFipdx0SficT651NnkR0ZSH3yQwh+mFMdLfgjABVi4YtMTtaL4s168593DaoaRLMqryavA=="],

"@ai-sdk/google/@ai-sdk/provider-utils/nanoid": ["[email protected]", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w=="],

"@ai-sdk/react/@ai-sdk/provider-utils/@ai-sdk/provider": ["@ai-sdk/[email protected]", "", { "dependencies": { "json-schema": "^0.4.0" } }, "sha512-dQkfBDs2lTYpKM8389oopPdQgIU007GQyCbuPPrV+K6MtSII3HBfE0stUIMXUb44L+LK1t6GXPP7wjSzjO6uKg=="],

"@ai-sdk/react/@ai-sdk/provider-utils/nanoid": ["[email protected]", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w=="],
Expand Down Expand Up @@ -3593,6 +3621,14 @@

"cmdk/react-dom/scheduler": ["[email protected]", "", { "dependencies": { "loose-envify": "^1.1.0" } }, "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ=="],

"comp.ai/ai/@ai-sdk/provider": ["@ai-sdk/[email protected]", "", { "dependencies": { "json-schema": "^0.4.0" } }, "sha512-q1PJEZ0qD9rVR+8JFEd01/QM++csMT5UVwYXSN2u54BrVw/D8TZLTeg2FEfKK00DgAx0UtWd8XOhhwITP9BT5g=="],

"comp.ai/ai/@ai-sdk/provider-utils": ["@ai-sdk/[email protected]", "", { "dependencies": { "@ai-sdk/provider": "1.0.7", "eventsource-parser": "^3.0.0", "nanoid": "^3.3.8", "secure-json-parse": "^2.7.0" }, "peerDependencies": { "zod": "^3.0.0" }, "optionalPeers": ["zod"] }, "sha512-5pliIKahXPlx3PZNBL3TtOBosFftoCq8bUNYdLi2M3YPBdQen9G9mR1BCrhC5hhEk4i3XTM8boqYeuRN6kLfsA=="],

"comp.ai/ai/@ai-sdk/react": ["@ai-sdk/[email protected]", "", { "dependencies": { "@ai-sdk/provider-utils": "2.1.7", "@ai-sdk/ui-utils": "1.1.13", "swr": "^2.2.5", "throttleit": "2.1.0" }, "peerDependencies": { "react": "^18 || ^19 || ^19.0.0-rc", "zod": "^3.0.0" }, "optionalPeers": ["react", "zod"] }, "sha512-gA4eJnElSDEaPjf38VYb2Grz6B4a9o9IXjm7wF1DeyED8LX4xrllzZL8nathyQlj644yQPLzpO2yy83pQCDolQ=="],

"comp.ai/ai/@ai-sdk/ui-utils": ["@ai-sdk/[email protected]", "", { "dependencies": { "@ai-sdk/provider": "1.0.7", "@ai-sdk/provider-utils": "2.1.7", "zod-to-json-schema": "^3.24.1" }, "peerDependencies": { "zod": "^3.0.0" }, "optionalPeers": ["zod"] }, "sha512-79NmeAugHibjKxZDOTwkkmqsC5AgPDfsxEP5pcXF4dnyPIPdPaR3uESIyJ6W3a919/DCasnJBvYwV0h5rhc5fA=="],

"data-urls/whatwg-url/tr46": ["[email protected]", "", { "dependencies": { "punycode": "^2.3.1" } }, "sha512-tk2G5R2KRwBd+ZN0zaEXpmzdKyOYksXwywulIX95MBODjSzMIuQnQ3m8JxgbhnL1LeVo7lqQKsYa1O3Htl7K5g=="],

"express/debug/ms": ["[email protected]", "", {}, "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="],
Expand Down Expand Up @@ -3685,6 +3721,10 @@

"cmdk/@radix-ui/react-dialog/@radix-ui/react-use-controllable-state/@radix-ui/react-use-callback-ref": ["@radix-ui/[email protected]", "", { "dependencies": { "@babel/runtime": "^7.13.10" }, "peerDependencies": { "react": "^16.8 || ^17.0 || ^18.0" } }, "sha512-GZtyzoHz95Rhs6S63D2t/eqvdFCm7I+yHMLVQheKM7nBD8mbZIt+ct1jz4536MDnaOGKIxynJ8eHTkVGVVkoTg=="],

"comp.ai/ai/@ai-sdk/provider-utils/eventsource-parser": ["[email protected]", "", {}, "sha512-T1C0XCUimhxVQzW4zFipdx0SficT651NnkR0ZSH3yQwh+mFMdLfgjABVi4YtMTtaL4s168593DaoaRLMqryavA=="],

"comp.ai/ai/@ai-sdk/provider-utils/nanoid": ["[email protected]", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w=="],

"node-gyp/glob/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA=="],

"react-email/next/postcss/nanoid": ["[email protected]", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w=="],
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@manypkg/cli": "^0.23.0",
"gitmoji": "^1.1.1",
"gray-matter": "^4.0.3",
"sharp": "^0.33.5",
"use-debounce": "^10.0.4"
}
}
11 changes: 6 additions & 5 deletions packages/integrations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
"dependencies": {
"@ai-sdk/openai": "^0.0.66",
"@slack/bolt": "^3.22.0",
"@slack/web-api": "^7.5.0",
"ai": "^3.4.9",
"zod": "^3.23.8"
"@slack/web-api": "^7.8.0",
"ai": "^3.4.33",
"sharp": "^0.33.5",
"zod": "^3.24.2"
},
"devDependencies": {
"@types/node": "^22.7.4",
"typescript": "^5.6.3"
"@types/node": "^22.13.2",
"typescript": "^5.7.3"
},
"exports": {
".": "./src/index.ts"
Expand Down
Loading

0 comments on commit 757938b

Please sign in to comment.