aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/app/dashboard
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-08-20 15:57:34 +0300
committerGitHub <noreply@github.com>2025-08-20 13:57:34 +0100
commitdd53ccb9624e719d019a8fe29fcd66415c1b1528 (patch)
tree5788b06d4280248cf0c0f837318b0722f6d4cdd7 /apps/web/app/dashboard
parent5f07b5075dd45b4b0f4ab35ee70412f11177eff4 (diff)
downloadkarakeep-dd53ccb9624e719d019a8fe29fcd66415c1b1528.tar.zst
deps: Upgrade expo & nextjs to react 19 (#1565)
* Attempt to upgrade expo 53 * Attempt upgrade nextjs * Fix a bunch of peer deps * upgrade some docs deps * fix typecheck * update the shadcn calendar component * more fixes * more fixes * revert ollama upgrade * update react version to use carets * remove react-select from landing * fix the typescript error caused by customFetch * upgrade the new grid user setting to nextjs 15 * mobile: enable react canary to support react 19.1 * upgrade react native menu * fix navigation context error
Diffstat (limited to 'apps/web/app/dashboard')
-rw-r--r--apps/web/app/dashboard/@modal/(.)preview/[bookmarkId]/page.tsx9
-rw-r--r--apps/web/app/dashboard/feeds/[feedId]/page.tsx7
-rw-r--r--apps/web/app/dashboard/lists/[listId]/page.tsx13
-rw-r--r--apps/web/app/dashboard/preview/[bookmarkId]/page.tsx7
-rw-r--r--apps/web/app/dashboard/tags/[tagId]/page.tsx13
5 files changed, 22 insertions, 27 deletions
diff --git a/apps/web/app/dashboard/@modal/(.)preview/[bookmarkId]/page.tsx b/apps/web/app/dashboard/@modal/(.)preview/[bookmarkId]/page.tsx
index 432e7a6c..77d84ec5 100644
--- a/apps/web/app/dashboard/@modal/(.)preview/[bookmarkId]/page.tsx
+++ b/apps/web/app/dashboard/@modal/(.)preview/[bookmarkId]/page.tsx
@@ -1,15 +1,14 @@
"use client";
-import { useState } from "react";
+import { use, useState } from "react";
import { useRouter } from "next/navigation";
import BookmarkPreview from "@/components/dashboard/preview/BookmarkPreview";
import { Dialog, DialogContent } from "@/components/ui/dialog";
-export default function BookmarkPreviewPage({
- params,
-}: {
- params: { bookmarkId: string };
+export default function BookmarkPreviewPage(props: {
+ params: Promise<{ bookmarkId: string }>;
}) {
+ const params = use(props.params);
const router = useRouter();
const [open, setOpen] = useState(true);
diff --git a/apps/web/app/dashboard/feeds/[feedId]/page.tsx b/apps/web/app/dashboard/feeds/[feedId]/page.tsx
index ed5f9e40..a73f0f32 100644
--- a/apps/web/app/dashboard/feeds/[feedId]/page.tsx
+++ b/apps/web/app/dashboard/feeds/[feedId]/page.tsx
@@ -3,11 +3,10 @@ import Bookmarks from "@/components/dashboard/bookmarks/Bookmarks";
import { api } from "@/server/api/client";
import { TRPCError } from "@trpc/server";
-export default async function FeedPage({
- params,
-}: {
- params: { feedId: string };
+export default async function FeedPage(props: {
+ params: Promise<{ feedId: string }>;
}) {
+ const params = await props.params;
let feed;
try {
feed = await api.feeds.get({ feedId: params.feedId });
diff --git a/apps/web/app/dashboard/lists/[listId]/page.tsx b/apps/web/app/dashboard/lists/[listId]/page.tsx
index de0f5054..4714a71c 100644
--- a/apps/web/app/dashboard/lists/[listId]/page.tsx
+++ b/apps/web/app/dashboard/lists/[listId]/page.tsx
@@ -6,15 +6,14 @@ import { TRPCError } from "@trpc/server";
import { BookmarkListContextProvider } from "@karakeep/shared-react/hooks/bookmark-list-context";
-export default async function ListPage({
- params,
- searchParams,
-}: {
- params: { listId: string };
- searchParams?: {
+export default async function ListPage(props: {
+ params: Promise<{ listId: string }>;
+ searchParams?: Promise<{
includeArchived?: string;
- };
+ }>;
}) {
+ const searchParams = await props.searchParams;
+ const params = await props.params;
const userSettings = await api.users.settings();
let list;
try {
diff --git a/apps/web/app/dashboard/preview/[bookmarkId]/page.tsx b/apps/web/app/dashboard/preview/[bookmarkId]/page.tsx
index 236f5447..ea509207 100644
--- a/apps/web/app/dashboard/preview/[bookmarkId]/page.tsx
+++ b/apps/web/app/dashboard/preview/[bookmarkId]/page.tsx
@@ -3,11 +3,10 @@ import BookmarkPreview from "@/components/dashboard/preview/BookmarkPreview";
import { api } from "@/server/api/client";
import { TRPCError } from "@trpc/server";
-export default async function BookmarkPreviewPage({
- params,
-}: {
- params: { bookmarkId: string };
+export default async function BookmarkPreviewPage(props: {
+ params: Promise<{ bookmarkId: string }>;
}) {
+ const params = await props.params;
let bookmark;
try {
bookmark = await api.bookmarks.getBookmark({
diff --git a/apps/web/app/dashboard/tags/[tagId]/page.tsx b/apps/web/app/dashboard/tags/[tagId]/page.tsx
index b33a351a..7971da1e 100644
--- a/apps/web/app/dashboard/tags/[tagId]/page.tsx
+++ b/apps/web/app/dashboard/tags/[tagId]/page.tsx
@@ -7,15 +7,14 @@ import { api } from "@/server/api/client";
import { TRPCError } from "@trpc/server";
import { MoreHorizontal } from "lucide-react";
-export default async function TagPage({
- params,
- searchParams,
-}: {
- params: { tagId: string };
- searchParams?: {
+export default async function TagPage(props: {
+ params: Promise<{ tagId: string }>;
+ searchParams?: Promise<{
includeArchived?: string;
- };
+ }>;
}) {
+ const searchParams = await props.searchParams;
+ const params = await props.params;
let tag;
try {
tag = await api.tags.get({ tagId: params.tagId });