diff --git a/apps/webapp/app/components/CopyTextButton.tsx b/apps/webapp/app/components/CopyTextButton.tsx index 678c67a69..b34636b84 100644 --- a/apps/webapp/app/components/CopyTextButton.tsx +++ b/apps/webapp/app/components/CopyTextButton.tsx @@ -5,18 +5,19 @@ import { CopyText } from "./CopyText"; const variantStyle = { slate: - "bg-slate-600 text-white transition hover:text-slate-700 hover:bg-slate-700 hover:bg-slate-700 hover:text-slate-100 active:bg-slate-800 active:text-slate-300 focus-visible:outline-slate-900", - blue: "bg-blue-500 transition text-white hover:text-slate-100 hover:bg-blue-600 active:bg-blue-800 active:text-blue-100 focus-visible:outline-blue-600", + "bg-slate-600 text-white rounded px-2 py-1 transition hover:text-slate-700 hover:bg-slate-700 hover:bg-slate-700 hover:text-slate-100 active:bg-slate-800 active:text-slate-300 focus-visible:outline-slate-900", + blue: "bg-blue-500 rounded px-2 py-1 transition text-white hover:text-slate-100 hover:bg-blue-600 active:bg-blue-800 active:text-blue-100 focus-visible:outline-blue-600", darkTransparent: - "bg-black/10 text-slate-900 transition hover:bg-blue-50 active:bg-blue-200 active:text-slate-600 focus-visible:outline-white", + "bg-black/10 text-slate-900 rounded px-2 py-1 transition hover:bg-blue-50 active:bg-blue-200 active:text-slate-600 focus-visible:outline-white", lightTransparent: - "bg-white/10 text-white-900 transition hover:bg-blue-50 active:bg-blue-200 active:text-slate-600 focus-visible:outline-white", + "bg-white/10 text-white-900 rounded px-2 py-1 transition hover:bg-blue-50 active:bg-blue-200 active:text-slate-600 focus-visible:outline-white", + text: "text-sm text-slate-300 transition hover:text-slate-400", }; export type CopyTextButtonProps = { value: string; className?: string; - variant?: "slate" | "blue" | "darkTransparent" | "lightTransparent"; + variant?: "slate" | "blue" | "darkTransparent" | "lightTransparent" | "text"; }; export function CopyTextButton({ @@ -34,15 +35,18 @@ export function CopyTextButton({ return ( {copied ? ( -
-

- Copied! -

+
+

Copied!

) : (
diff --git a/apps/webapp/app/components/navigation/SideMenu.tsx b/apps/webapp/app/components/navigation/SideMenu.tsx index 5ee78bcd2..3246f748f 100644 --- a/apps/webapp/app/components/navigation/SideMenu.tsx +++ b/apps/webapp/app/components/navigation/SideMenu.tsx @@ -4,6 +4,9 @@ import { UsersIcon, ForwardIcon, ChevronLeftIcon, + ArrowTopRightOnSquareIcon, + PhoneArrowUpRightIcon, + EnvelopeIcon, } from "@heroicons/react/24/outline"; import { Link, NavLink } from "@remix-run/react"; import { @@ -11,7 +14,11 @@ import { useOrganizations, } from "~/hooks/useOrganizations"; import { useCurrentWorkflow } from "~/hooks/useWorkflows"; +import { Body } from "../primitives/text/Body"; import { Header1 } from "../primitives/text/Headers"; +import { useTypedLoaderData } from "remix-typedjson"; +import type { loader } from "~/routes/__app/orgs/$organizationSlug"; +import { CopyTextButton } from "../CopyTextButton"; export function SideMenuContainer({ children }: { children: React.ReactNode }) { return
{children}
; @@ -88,44 +95,115 @@ const activeStyle = "group flex items-center gap-2 px-3 py-3 text-base rounded transition bg-slate-800 text-white"; function SideMenu({ title, items }: { title: string; items: SideMenuItem[] }) { + // const { organization } = useTypedLoaderData(); + return (
); } + +const menuSmallTitleStyle = "uppercase text-slate-500 tracking-wide"; +const menuSmallLinkStyle = + "flex gap-1.5 text-slate-400 hover:text-white text-sm items-center transition"; +const menuSmallIconStyle = "h-4 w-4";