Skip to content

Commit 0c7f3ed

Browse files
committed
temp
1 parent 577adde commit 0c7f3ed

File tree

12 files changed

+450
-119
lines changed

12 files changed

+450
-119
lines changed

apps/dashboard/.storybook/main.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,8 @@ const config: StorybookConfig = {
2727
},
2828
},
2929
staticDirs: ["../public"],
30+
features: {
31+
experimentalRSC: true,
32+
},
3033
};
3134
export default config;

apps/dashboard/src/app/login/onboarding/team-onboarding/team-onboarding.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
"use client";
22

33
import { getBillingCheckoutUrl } from "@/actions/billing";
4+
import { apiServerProxy } from "@/actions/proxies";
45
import { sendTeamInvites } from "@/actions/sendTeamInvite";
56
import type { Team } from "@/api/team";
67
import { useDashboardRouter } from "@/lib/DashboardRouter";
78
import { toast } from "sonner";
89
import type { ThirdwebClient } from "thirdweb";
910
import { upload } from "thirdweb/storage";
10-
import { apiServerProxy } from "../../../../@/actions/proxies";
1111
import { useTrack } from "../../../../hooks/analytics/useTrack";
1212
import { updateTeam } from "../../../team/[team_slug]/(team)/~/settings/general/updateTeam";
1313
import { InviteTeamMembersUI } from "./InviteTeamMembers";

apps/dashboard/src/app/team/[team_slug]/(team)/~/analytics/page.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ export default async function TeamOverviewPage(props: {
6363
return (
6464
<div className="flex grow flex-col">
6565
<div className="border-b">
66-
<AnalyticsHeader title="Analytics" interval={interval} range={range} />
66+
<AnalyticsHeader
67+
title="Analytics"
68+
interval={interval}
69+
range={range}
70+
showRangeSelector={true}
71+
/>
6772
</div>
6873
<div className="flex grow flex-col justify-between gap-10 md:container md:pt-8 md:pb-16">
6974
<Suspense fallback={<GenericLoadingPage />}>

apps/dashboard/src/app/team/[team_slug]/[project_slug]/components/ProjectFTUX/IntegrateAPIKeyCodeTabs.tsx

Lines changed: 19 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,33 @@
11
"use client";
22

3+
import { TabButtons } from "@/components/ui/tabs";
34
import { useState } from "react";
4-
import { TabButtons } from "../../../../../../@/components/ui/tabs";
55

6-
type Tab = "ts" | "react" | "react-native" | "dotnet" | "unity" | "unreal";
6+
type TabKey = "ts" | "react" | "react-native" | "dotnet" | "unity" | "unreal";
7+
8+
const tabNames: Record<TabKey, string> = {
9+
ts: "TypeScript",
10+
react: "React",
11+
"react-native": "React Native",
12+
dotnet: ".NET",
13+
unity: "Unity",
14+
unreal: "Unreal Engine",
15+
};
716

817
export function IntegrateAPIKeyCodeTabs(props: {
9-
tabs: Record<Tab, React.ReactNode>;
18+
tabs: Record<TabKey, React.ReactNode>;
1019
}) {
11-
const [tab, setTab] = useState<Tab>("ts");
20+
const [tab, setTab] = useState<TabKey>("ts");
1221

1322
return (
1423
<div>
1524
<TabButtons
16-
tabs={[
17-
{
18-
name: "TypeScript",
19-
onClick: () => setTab("ts"),
20-
isActive: tab === "ts",
21-
},
22-
{
23-
name: "React",
24-
onClick: () => setTab("react"),
25-
isActive: tab === "react",
26-
},
27-
{
28-
name: "React Native",
29-
onClick: () => setTab("react-native"),
30-
isActive: tab === "react-native",
31-
},
32-
{
33-
name: ".NET",
34-
onClick: () => setTab("dotnet"),
35-
isActive: tab === "dotnet",
36-
},
37-
{
38-
name: "Unity",
39-
onClick: () => setTab("unity"),
40-
isActive: tab === "unity",
41-
},
42-
{
43-
name: "Unreal Engine",
44-
onClick: () => setTab("unreal"),
45-
isActive: tab === "unreal",
46-
},
47-
]}
25+
tabClassName="!text-sm"
26+
tabs={Object.entries(tabNames).map(([key, name]) => ({
27+
name,
28+
onClick: () => setTab(key as TabKey),
29+
isActive: tab === key,
30+
}))}
4831
/>
4932
<div className="h-3" />
5033
{props.tabs[tab]}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import type { Meta, StoryObj } from "@storybook/react";
2+
import { projectStub } from "../../../../../../stories/stubs";
3+
import { ProjectFTUX } from "./ProjectFTUX";
4+
5+
const meta = {
6+
title: "Project/ProjectFTUX",
7+
component: ProjectFTUX,
8+
decorators: [
9+
(Story) => (
10+
<div className="container py-8 pb-20">
11+
<Story />
12+
</div>
13+
),
14+
],
15+
} satisfies Meta<typeof ProjectFTUX>;
16+
17+
export default meta;
18+
type Story = StoryObj<typeof meta>;
19+
20+
export const Default: Story = {
21+
args: {
22+
project: {
23+
...projectStub("foo", "bar"),
24+
secretKeys: [
25+
{
26+
createdAt: new Date().toISOString(),
27+
updatedAt: new Date().toISOString(),
28+
hash: "1234567890",
29+
masked: "1234567890",
30+
},
31+
],
32+
},
33+
teamSlug: "bar",
34+
},
35+
};

0 commit comments

Comments
 (0)