Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
7e6813d
copy to ui with eng docs
MichaelUnkey Jun 26, 2025
e95d1e4
Small change to eng docs
MichaelUnkey Jun 30, 2025
74a32af
First set of toaster changed in dashboard
MichaelUnkey Jul 8, 2025
d58ed48
Merge branch 'main' of https://github.com/unkeyed/unkey into move-toa…
MichaelUnkey Jul 8, 2025
a1b2812
Merge branch 'main' of https://github.com/unkeyed/unkey into move-toa…
MichaelUnkey Jul 8, 2025
b844b6e
swapped some toasts
MichaelUnkey Jul 8, 2025
311c623
Merge branch 'main' of https://github.com/unkeyed/unkey into move-toa…
MichaelUnkey Jul 8, 2025
192e108
next set converted
MichaelUnkey Jul 8, 2025
905d52d
rabbit
MichaelUnkey Jul 8, 2025
009bafa
[autofix.ci] apply automated fixes
autofix-ci[bot] Jul 8, 2025
582cec8
more rabbit
MichaelUnkey Jul 8, 2025
db6987a
rabbit
MichaelUnkey Jul 9, 2025
d8e19a8
Merge branch 'main' of https://github.com/unkeyed/unkey into move-toa…
MichaelUnkey Jul 9, 2025
3988327
Merge branch 'main' of https://github.com/unkeyed/unkey into Move-toa…
MichaelUnkey Jul 9, 2025
9f22261
Merge branch 'main' into move-toaster-to-ui-step-3
MichaelUnkey Jul 10, 2025
b90fc2d
Merge branch 'main' of https://github.com/unkeyed/unkey into Move-toa…
MichaelUnkey Jul 10, 2025
7f790f3
Merge branch 'main' of https://github.com/unkeyed/unkey into move-toa…
MichaelUnkey Jul 10, 2025
53d0716
Merge branch 'move-toaster-to-ui-step-3' into Move-toaster-to-UI-step-4
MichaelUnkey Jul 10, 2025
2fa2b37
Merge branch 'main' into Move-toaster-to-UI-step-4
perkinsjr Jul 10, 2025
2292a57
swap button
MichaelUnkey Jul 10, 2025
a393d29
Merge branch 'Move-toaster-to-UI-step-4' of https://github.com/unkeye…
MichaelUnkey Jul 10, 2025
e1d8f36
rabbit
MichaelUnkey Jul 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { CopyButton, SettingCard } from "@unkey/ui";
import { SettingCard } from "@unkey/ui";
import { CopyButton } from "@unkey/ui";

export const CopyApiId = ({ apiId }: { apiId: string }) => {
return (
Expand All @@ -8,16 +9,18 @@ export const CopyApiId = ({ apiId }: { apiId: string }) => {
<div className="max-w-[380px]">An identifier for the API, used in some API calls.</div>
}
border="bottom"
contentWidth="w-full lg:w-[420px] justify-end items-center"
contentWidth="w-full lg:w-[420px] justify-end"
>
{/* TODO: make this a Code component in UI for CopyKeys with optional hidden button like in Code.*/}
<div
className={
"flex flex-row justify-between min-w-[328px] pl-4 pr-2 py-1.5 bg-gray-2 dark:bg-black border rounded-lg border-grayA-5"
}
>
<div className="text-sm text-gray-11">{apiId}</div>
<CopyButton value={apiId} variant="ghost" toastMessage={apiId} />
<div className="flex flex-row justify-end items-center">
<div
className={
"flex flex-row justify-between min-w-[327px] pl-4 pr-2 py-1.5 bg-gray-2 dark:bg-black border rounded-lg border-grayA-5"
}
>
<div className="text-sm text-gray-11">{apiId}</div>
<CopyButton value={apiId} variant="ghost" toastMessage={apiId} />
</div>
</div>
</SettingCard>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { toast } from "@/components/ui/toaster";
import { trpc } from "@/lib/trpc/client";
import type { ApiOverview } from "@/lib/trpc/routers/api/overview/query-overview/schemas";
import { LLMSearch } from "@unkey/ui";
import { LLMSearch, toast } from "@unkey/ui";
import { useRef } from "react";
type Props = {
apiList: ApiOverview[];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { toast } from "@/components/ui/toaster";
import { trpc } from "@/lib/trpc/client";
import { LLMSearch } from "@unkey/ui";
import { transformStructuredOutputToFilters } from "@unkey/ui";
import { LLMSearch, toast, transformStructuredOutputToFilters } from "@unkey/ui";
import { useFilters } from "../../../../hooks/use-filters";

export const LogsSearch = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { toast } from "@/components/ui/toaster";
import { trpc } from "@/lib/trpc/client";
import { LLMSearch } from "@unkey/ui";
import { transformStructuredOutputToFilters } from "@unkey/ui";
import { LLMSearch, toast, transformStructuredOutputToFilters } from "@unkey/ui";
import { useFilters } from "../../../../hooks/use-filters";

export const PermissionSearch = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { toast } from "@/components/ui/toaster";
import { trpc } from "@/lib/trpc/client";
import { toast } from "@unkey/ui";

export const useDeletePermission = (
onSuccess: (data: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"use client";
import { type MenuItem, TableActionPopover } from "@/components/logs/table-action.popover";
import { toast } from "@/components/ui/toaster";
import type { Permission } from "@/lib/trpc/routers/authorization/permissions/query";
import { Clone, PenWriting3, Trash } from "@unkey/icons";
import { toast } from "@unkey/ui";
import { DeletePermission } from "./components/delete-permission";
import { EditPermission } from "./components/edit-permission";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { toast } from "@/components/ui/toaster";
import { trpc } from "@/lib/trpc/client";
import { toast } from "@unkey/ui";

export const useUpsertPermission = (
onSuccess: (data: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { toast } from "@/components/ui/toaster";
import { trpc } from "@/lib/trpc/client";
import { LLMSearch } from "@unkey/ui";
import { transformStructuredOutputToFilters } from "@unkey/ui";
import { LLMSearch, toast, transformStructuredOutputToFilters } from "@unkey/ui";
import { useFilters } from "../../../../hooks/use-filters";

export const RolesSearch = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { toast } from "@/components/ui/toaster";
import { trpc } from "@/lib/trpc/client";
import { toast } from "@unkey/ui";

export const useDeleteRole = (
onSuccess: (data: { roleIds: string[] | string; message: string }) => void,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import {
type MenuItem,
TableActionPopoverDefaultTrigger,
} from "@/components/logs/table-action.popover";
import { toast } from "@/components/ui/toaster";
import { trpc } from "@/lib/trpc/client";
import type { RoleBasic } from "@/lib/trpc/routers/authorization/roles/query";
import { Clone, PenWriting3, Trash } from "@unkey/icons";
import { toast } from "@unkey/ui";
import dynamic from "next/dynamic";
import { MAX_KEYS_FETCH_LIMIT } from "../../../upsert-role/components/assign-key/hooks/use-fetch-keys";
import { MAX_PERMS_FETCH_LIMIT } from "../../../upsert-role/components/assign-permission/hooks/use-fetch-permissions";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";
import { toast } from "@/components/ui/toaster";
import { trpc } from "@/lib/trpc/client";
import { toast } from "@unkey/ui";
import { useMemo } from "react";

// No need to fetch more than 10 items, because combobox allows seeing 6 items at a time so even if users scroll 10 items are more than enough.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";
import { toast } from "@/components/ui/toaster";
import { trpc } from "@/lib/trpc/client";
import { toast } from "@unkey/ui";
import { useMemo } from "react";

// No need to fetch more than 10 items, because combobox allows seeing 6 items at a time so even if users scroll 10 items are more than enough.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { toast } from "@/components/ui/toaster";
import { trpc } from "@/lib/trpc/client";
import { toast } from "@unkey/ui";

export const useUpsertRole = (
onSuccess: (data: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { useFilters } from "@/app/(app)/logs/hooks/use-filters";
import { toast } from "@/components/ui/toaster";
import { trpc } from "@/lib/trpc/client";
import { LLMSearch } from "@unkey/ui";
import { transformStructuredOutputToFilters } from "@unkey/ui";
import { LLMSearch, toast, transformStructuredOutputToFilters } from "@unkey/ui";

export const LogsSearch = () => {
const { filters, updateFilters } = useFilters();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
"use client";

import { toast } from "@/components/ui/toaster";
import { trpc } from "@/lib/trpc/client";
import { zodResolver } from "@hookform/resolvers/zod";
import { Button, DialogContainer, Input } from "@unkey/ui";
import { Button, DialogContainer, Input, toast } from "@unkey/ui";
import type { PropsWithChildren } from "react";
import { useForm } from "react-hook-form";
import { z } from "zod";
Expand Down