History

feat(cloud): add team management page (#157)

* feat(cloud): add team management page with WorkOS org members Custom team page using WorkOS API for listing members, inviting, removing, and changing roles. Admin-gated write operations with server-side role checks. Uses Effect API layer pattern with typed endpoints and effect-atom for client-side state. Also fixes Sonner toaster to use system theme detection instead of next-themes, removes next-themes dependency. * style: format * chore: remove unused widget token endpoint and getWidgetToken * fix: remove any types from team handler tests * style: format * fix: add @types/node to storage-postgres for tsgo compat * fix: resolve merge conflict in test file * style: format * fix: resolve tsgo typecheck errors in billing and test files * fix: add explicit Plan types for tsgo compatibility * style: format * fix: cast empty array for tsgo type inference

Rhys Sullivan committed 7 months ago

Commit ec8d8861 parent 261c7b219 files · +1079 −16Browse files

Showing the changes to packages (3 of 19 files). Show all

Unified · Split

3 files
  1. packages/core/storage-postgres/package.json +1 −0
  2. packages/react/package.json +0 −1
  3. packages/react/src/components/sonner.tsx +1 −4
packages/core/storage-postgres/package.json+1−0
@@ -25,6 +25,7 @@ · 24 unmodified lines
2525 "devDependencies": {
2626 "@effect/vitest": "catalog:",
2727 "@electric-sql/pglite": "^0.4.3",
28+ "@types/node": "^25.6.0",
2829 "@types/pg": "^8.15.4",
2930 "drizzle-kit": "^0.31.0",
3031 "typescript": "catalog:",
packages/react/package.json+0−1
@@ -34,7 +34,6 @@ · 33 unmodified lines
3434 "embla-carousel-react": "^8.6.0",
3535 "input-otp": "^1.4.2",
3636 "lucide-react": "^1.7.0",
37− "next-themes": "^0.4.6",
3837 "radix-ui": "^1.4.3",
3938 "react": "catalog:",
4039 "react-day-picker": "^9.14.0",
packages/react/src/components/sonner.tsx+1−4
@@ -7,15 +7,12 @@ import { · 6 unmodified lines
77 OctagonXIcon,
88 TriangleAlertIcon,
99 } from "lucide-react";
10−import { useTheme } from "next-themes";
1110 import { Toaster as Sonner, type ToasterProps } from "sonner";
1211
1312 const Toaster = ({ ...props }: ToasterProps) => {
14− const { theme = "system" } = useTheme();
15−
1613 return (
1714 <Sonner
18− theme={theme as ToasterProps["theme"]}
15+ theme="system"
1916 className="toaster group"
2017 icons={{
2118 success: <CircleCheckIcon className="size-4" />,