Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
1e9f509
feat: add structured roles paginated result
ogzhanolguncu Jun 2, 2025
e784aef
feat: roles cleanup
ogzhanolguncu Jun 2, 2025
39beb8a
feat: add initial table
ogzhanolguncu Jun 2, 2025
2bcf464
feat: iterate on roles table
ogzhanolguncu Jun 2, 2025
a51786d
feat: add filters
ogzhanolguncu Jun 3, 2025
fdb3644
feat: add proper filter schema
ogzhanolguncu Jun 3, 2025
bc1380d
fix: colors
ogzhanolguncu Jun 3, 2025
8675df8
fix: skeletons
ogzhanolguncu Jun 3, 2025
576e27f
feta: add upsert
ogzhanolguncu Jun 3, 2025
423b38f
feat: add initial form elements
ogzhanolguncu Jun 3, 2025
54f9f1a
feat: add searcahable combobox for keys
ogzhanolguncu Jun 3, 2025
88d98ae
feat: add permissions field
ogzhanolguncu Jun 4, 2025
363d969
Merge branch 'main' of github.com:unkeyed/unkey into rbac-roles
ogzhanolguncu Jun 4, 2025
452fe90
chore: get rid of human_readable
ogzhanolguncu Jun 4, 2025
a74cc38
chore: rename
ogzhanolguncu Jun 4, 2025
8c6497c
feat: add submit
ogzhanolguncu Jun 4, 2025
d355bf2
chore: fix scoping of trpc
ogzhanolguncu Jun 4, 2025
34c0e8b
feat: add initial edit role
ogzhanolguncu Jun 4, 2025
56c442e
feat: finalize form
ogzhanolguncu Jun 4, 2025
7e6bc58
feat: add debounce to searches
ogzhanolguncu Jun 4, 2025
5d4af2e
feat: add delete role
ogzhanolguncu Jun 4, 2025
2137d9f
feat: add role deletion
ogzhanolguncu Jun 4, 2025
43b82c9
feat: add llm search
ogzhanolguncu Jun 4, 2025
3c017fc
refactor: schemas for key search
ogzhanolguncu Jun 4, 2025
4ff76ef
refactor: inconssitencies
ogzhanolguncu Jun 4, 2025
a4f4ed8
refactor: move table items into components
ogzhanolguncu Jun 4, 2025
f1a9c55
fix: coderabbit issues
ogzhanolguncu Jun 4, 2025
9081f1e
fix: linter and type issue
ogzhanolguncu Jun 5, 2025
fce081d
Merge branch 'main' of github.com:unkeyed/unkey into rbac-roles
ogzhanolguncu Jun 5, 2025
eb578e8
fix: keyboard hijack
ogzhanolguncu Jun 5, 2025
26e83b5
fix: null assertion
ogzhanolguncu Jun 5, 2025
c532f1e
fix: pr comments
ogzhanolguncu Jun 10, 2025
cf4621c
Merge branch 'main' of github.com:unkeyed/unkey into rbac-roles
ogzhanolguncu Jun 10, 2025
a3a4eb9
chore: get rid of old permissions
ogzhanolguncu Jun 10, 2025
cc2d04b
feat: add initial structrue
ogzhanolguncu Jun 10, 2025
283f1de
chore: run fmt
ogzhanolguncu Jun 10, 2025
f79ff47
feat: add columns and new sql query
ogzhanolguncu Jun 10, 2025
40a4727
fix: loaders
ogzhanolguncu Jun 10, 2025
d0152ba
feat: add upsert form
ogzhanolguncu Jun 10, 2025
cb1245b
feat: add delete permissin
ogzhanolguncu Jun 10, 2025
b7a97ea
feat: add filters
ogzhanolguncu Jun 10, 2025
5679247
feat: add llm search
ogzhanolguncu Jun 10, 2025
0a84f97
chore: revert deletion of rbac
ogzhanolguncu Jun 10, 2025
5e19666
[autofix.ci] apply automated fixes
autofix-ci[bot] Jun 10, 2025
b8b531e
feat: add initial update of rbac
ogzhanolguncu Jun 11, 2025
c806299
feat: add rpc call for permission slugs
ogzhanolguncu Jun 11, 2025
0f4468c
refactor: role and permission selection
ogzhanolguncu Jun 12, 2025
c64fa89
chore: fmt
ogzhanolguncu Jun 12, 2025
1c1cb40
chore: fmt
ogzhanolguncu Jun 12, 2025
51b58a6
Merge branch 'main' of github.com:unkeyed/unkey into rbac-keys
ogzhanolguncu Jun 18, 2025
03d6b86
refactor: optimize queries
ogzhanolguncu Jun 18, 2025
34235b2
refactor: add error handling to prefetch
ogzhanolguncu Jun 18, 2025
8356d33
refactor: optimize queries
ogzhanolguncu Jun 18, 2025
8ae599a
chore: replace perms icon
ogzhanolguncu Jun 18, 2025
e86f496
chore: fmt
ogzhanolguncu Jun 18, 2025
208769e
chore: fmt
ogzhanolguncu Jun 18, 2025
ff16e7a
fix: pr comments
ogzhanolguncu Jun 18, 2025
c96ce14
Merge branch 'main' into rbac-keys
ogzhanolguncu Jun 18, 2025
0626de1
fix: pr comment
ogzhanolguncu Jun 23, 2025
7435ecf
Merge branch 'main' of github.com:unkeyed/unkey into rbac-keys
ogzhanolguncu Jun 23, 2025
55dcadb
fix: build issue
ogzhanolguncu Jun 23, 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

This file was deleted.

44 changes: 1 addition & 43 deletions apps/dashboard/app/(app)/apis/[apiId]/api-id-navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ import { CopyableIDButton } from "@/components/navigation/copyable-id-button";
import { Navbar } from "@/components/navigation/navbar";
import { useIsMobile } from "@/hooks/use-mobile";
import type { KeyDetails } from "@/lib/trpc/routers/api/keys/query-api-keys/schema";
import { ChevronExpandY, Gauge, Gear, Plus, ShieldKey } from "@unkey/icons";
import { ChevronExpandY, Gauge, Gear, Plus } from "@unkey/icons";
import dynamic from "next/dynamic";
import { useState } from "react";
import { getKeysTableActionItems } from "./keys/[keyAuthId]/_components/components/table/components/actions/keys-table-action.popover.constants";

const CreateKeyDialog = dynamic(
Expand All @@ -27,10 +26,6 @@ const CreateKeyDialog = dynamic(
},
);

const DialogContainer = dynamic(() => import("@unkey/ui").then((mod) => mod.DialogContainer), {
ssr: false,
});

const KeysTableActionPopover = dynamic(
() =>
import(
Expand All @@ -47,19 +42,6 @@ const KeysTableActionPopover = dynamic(
},
);

const RBACDialogContent = dynamic(
() => import("./_components/rbac-dialog-content").then((mod) => mod.RBACDialogContent),
{
ssr: false,
loading: () => (
<NavbarActionButton disabled>
<ShieldKey size="sm-regular" />
Permissions
</NavbarActionButton>
),
},
);

export const ApisNavbar = ({
api,
apis,
Expand All @@ -86,10 +68,6 @@ export const ApisNavbar = ({
keyData?: KeyDetails | null;
}) => {
const isMobile = useIsMobile();
const [showRBAC, setShowRBAC] = useState(false);

const keyId = keyData?.id || "";
const keyspaceId = api.keyAuthId || "";

return (
<>
Expand Down Expand Up @@ -163,15 +141,6 @@ export const ApisNavbar = ({
</Navbar.Breadcrumbs>
{keyData?.id ? (
<div className="flex gap-3 items-center">
<Navbar.Actions>
<NavbarActionButton
onClick={() => setShowRBAC(true)}
disabled={!(keyId && keyspaceId)}
>
<ShieldKey size="sm-regular" />
Permissions
</NavbarActionButton>
</Navbar.Actions>
<Navbar.Actions>
<KeysTableActionPopover items={getKeysTableActionItems(keyData)}>
<NavbarActionButton>
Expand All @@ -193,17 +162,6 @@ export const ApisNavbar = ({
)}
</Navbar>
</div>
{showRBAC && (
<DialogContainer
isOpen={showRBAC}
onOpenChange={() => setShowRBAC(false)}
title="Key Permissions & Roles"
subTitle="Manage access control for this API key with role-based permissions"
className="max-w-[800px] max-h-[90vh] overflow-y-auto"
>
<RBACDialogContent keyId={keyId} keyspaceId={keyspaceId} />
</DialogContainer>
)}
</>
);
};

This file was deleted.

This file was deleted.

Loading
Loading