Skip to content

Commit ddc73cc

Browse files
committed
wip
1 parent 1822a41 commit ddc73cc

File tree

12 files changed

+40
-28
lines changed

12 files changed

+40
-28
lines changed

apps/website/package.json

+15-12
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"build": "NODE_ENV=production next build",
77
"clean": "git clean -xdf .next .turbo node_modules",
8-
"dev": "next dev -p 3000",
8+
"dev": "next dev --turbopack -p 3000",
99
"lint": "next lint",
1010
"format": "biome format --write .",
1111
"start": "next start",
@@ -17,28 +17,31 @@
1717
"@midday/ui": "workspace:*",
1818
"@openpanel/nextjs": "^1.0.5",
1919
"@openstatus/react": "^0.0.3",
20-
"@team-plain/typescript-sdk": "4.9.0",
20+
"@team-plain/typescript-sdk": "5.5.0",
2121
"@uidotdev/usehooks": "^2.4.1",
2222
"d3": "^7.9.0",
2323
"date-fns": "^4.1.0",
24-
"framer-motion": "^11.11.1",
24+
"framer-motion": "^11.11.17",
2525
"geist": "^1.3.1",
26-
"next": "14.2.1",
26+
"next": "15.0.3",
2727
"next-mdx-remote": "^5.0.0",
28-
"next-safe-action": "^7.9.3",
29-
"next-themes": "^0.3.0",
30-
"react": "18.3.1",
31-
"react-dom": "18.3.1",
28+
"next-safe-action": "^7.9.9",
29+
"react": "19.0.0-rc-66855b96-20241106",
30+
"react-dom": "19.0.0-rc-66855b96-20241106",
3231
"react-hls-player": "^3.0.7",
3332
"react-use-draggable-scroll": "^0.4.7",
3433
"server-only": "^0.0.1",
3534
"sharp": "^0.33.5",
36-
"sugar-high": "^0.7.1"
35+
"sugar-high": "^0.7.5"
3736
},
3837
"devDependencies": {
3938
"@midday/tsconfig": "workspace:*",
40-
"@types/node": "^22.7.4",
41-
"@types/react": "^18.3.11",
42-
"@types/react-dom": "^18.3.0"
39+
"@types/node": "^22.9.0",
40+
"@types/react": "npm:[email protected]",
41+
"@types/react-dom": "npm:[email protected]"
42+
},
43+
"overrides": {
44+
"@types/react": "npm:[email protected]",
45+
"@types/react-dom": "npm:[email protected]"
4346
}
4447
}

apps/website/src/actions/vote-action.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const voteAction = actionClient
1313
}),
1414
)
1515
.action(async ({ parsedInput: { id } }) => {
16-
const clientIP = headers().get("x-forwarded-for");
16+
const clientIP = (await headers()).get("x-forwarded-for");
1717

1818
const hasVoted = await client.sadd(`apps:${id}:ip:${clientIP}`, true);
1919

apps/website/src/app/updates/[slug]/page.tsx

+13-8
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ export async function generateStaticParams() {
1414
}));
1515
}
1616

17-
export async function generateMetadata({
18-
params,
19-
}): Promise<Metadata | undefined> {
17+
export async function generateMetadata(props): Promise<Metadata | undefined> {
18+
const params = await props.params;
2019
const post = getBlogPosts().find((post) => post.slug === params.slug);
2120
if (!post) {
2221
return;
@@ -53,11 +52,17 @@ export async function generateMetadata({
5352
};
5453
}
5554

56-
export default async function Page({
57-
params: { slug },
58-
}: {
59-
params: { slug: string };
60-
}) {
55+
export default async function Page(
56+
props: {
57+
params: Promise<{ slug: string }>;
58+
}
59+
) {
60+
const params = await props.params;
61+
62+
const {
63+
slug
64+
} = params;
65+
6166
const post = getBlogPosts().find((post) => post.slug === slug);
6267

6368
if (!post) {

apps/website/src/app/updates/page.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ export default async function Page() {
1818
}
1919
return 1;
2020
})
21-
.map((post, index) => <Article data={post} firstPost={index === 0} />);
21+
.map((post, index) => (
22+
<Article data={post} firstPost={index === 0} key={post.slug} />
23+
));
2224

2325
return (
2426
<div className="container flex justify-center scroll-smooth">

apps/website/src/components/assistant/chat-examples.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const itemVariant = {
2323
};
2424

2525
export function ChatExamples({ onSubmit }) {
26-
const ref = useRef();
26+
const ref = useRef(undefined);
2727
const { events } = useDraggable(ref);
2828

2929
const totalLength = chatExamples.reduce((accumulator, currentString) => {

apps/website/src/components/brand-canvas.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const repeated = [...assets, ...assets, ...assets, ...assets, ...assets];
9898

9999
export function BrandCanvas() {
100100
const [value, setValue] = useState("https://cdn.midday.ai/all.zip");
101-
const ref = useRef();
101+
const ref = useRef(undefined);
102102
const { events } = useDraggable(ref);
103103

104104
return (

apps/website/src/components/dev-message.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { useEffect, useRef } from "react";
44

55
export function DevMessage() {
6-
const ref = useRef();
6+
const ref = useRef(undefined);
77

88
useEffect(() => {
99
if (!ref.current) {

apps/website/src/components/not-found-statuses.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const data = [
4040
export function NotFoundStatuses() {
4141
const [statuses, setStatuses] = useState();
4242
const ref = useRef(false);
43-
const scrollRef = useRef();
43+
const scrollRef = useRef(undefined);
4444

4545
useEffect(() => {
4646
setStatuses([

apps/website/src/components/pitch/section-demo.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type Props = {
1818
};
1919

2020
export function SectionDemo({ playVideo }: Props) {
21-
const playerRef = useRef();
21+
const playerRef = useRef(undefined);
2222
const [isPlaying, setPlaying] = useState(true);
2323
const isDesktop = useMediaQuery("(min-width: 768px)");
2424

apps/website/src/components/section-video.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const ReactHlsPlayer = dynamic(() => import("react-hls-player"), {
1212
});
1313

1414
export function SectionVideo() {
15-
const playerRef = useRef();
15+
const playerRef = useRef(undefined);
1616
const [isPlaying, setPlaying] = useState(false);
1717
const [isMuted, setMuted] = useState(true);
1818
const isDesktop = useMediaQuery("(min-width: 768px)");

bun.lockb

7.13 KB
Binary file not shown.

packages/ui/src/components/icons.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ import {
4545
MdOutlineApps,
4646
MdOutlineArrowDownward,
4747
MdOutlineArrowForward,
48+
MdOutlineArrowOutward,
4849
MdOutlineAssuredWorkload,
4950
MdOutlineAttachFile,
5051
MdOutlineAttachMoney,
@@ -691,4 +692,5 @@ export const Icons = {
691692
SnippetFolder: MdSnippetFolder,
692693
ConfirmationNumber: MdOutlineConfirmationNumber,
693694
QrCode: MdOutlineQrCode2,
695+
ArrowOutward: MdOutlineArrowOutward,
694696
};

0 commit comments

Comments
 (0)