Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(sdk): add screen to manage service account and API keys #815

Merged
merged 14 commits into from
Nov 20, 2024
Prev Previous commit
Next Next commit
feat: add route for api keys page
  • Loading branch information
rsbh committed Nov 18, 2024
commit 57e2a1d90e7ded84c706acd771efa423fb792a83
Original file line number Diff line number Diff line change
@@ -41,6 +41,7 @@ import { ConfirmCycleSwitch } from './billing/cycle-switch';
import Plans from './plans';
import ConfirmPlanChange from './plans/confirm-change';
import MemberRemoveConfirm from './members/MemberRemoveConfirm';
import APIKeys from './api-keys';

export interface CustomScreen {
name: string;
@@ -293,6 +294,12 @@ const tokensRoute = createRoute({
component: Tokens
});

const apiKeysRoute = createRoute({
getParentRoute: () => rootRoute,
path: '/api-keys',
component: APIKeys
});

interface getRootTreeOptions {
customScreens?: CustomScreen[];
}
@@ -316,6 +323,7 @@ export function getRootTree({ customScreens = [] }: getRootTreeOptions) {
billingRoute.addChildren([switchBillingCycleModalRoute]),
plansRoute.addChildren([planDowngradeRoute]),
tokensRoute,
apiKeysRoute,
...customScreens.map(cc =>
createRoute({
path: cc.path,