From 8f6c16de49641abddd10058cb4c8dce63da6c6eb Mon Sep 17 00:00:00 2001
From: MaheshtheDev <38828053+MaheshtheDev@users.noreply.github.com>
Date: Sat, 9 May 2026 19:12:01 +0000
Subject: [PATCH] chore: improve the codebase with react doctor (#917)
---
apps/web/app/(app)/onboarding/page.tsx | 10 +--
apps/web/app/(auth)/login/new/page.tsx | 16 ++---
apps/web/app/api/emails/welcome/route.tsx | 2 +-
apps/web/app/auth/connect/page.tsx | 10 +--
apps/web/app/ref/[code]/page.tsx | 14 ++--
apps/web/app/ref/page.tsx | 4 +-
apps/web/app/upgrade-mcp/page.tsx | 12 ++--
.../components/add-document/connections.tsx | 26 +++----
apps/web/components/add-document/file.tsx | 4 +-
apps/web/components/add-document/index.tsx | 71 ++++++-------------
apps/web/components/add-document/link.tsx | 6 +-
apps/web/components/add-space-modal.tsx | 4 +-
apps/web/components/chat/index.tsx | 24 +++----
apps/web/components/chat/input/actions.tsx | 2 +-
.../components/chat/message/agent-message.tsx | 8 +--
apps/web/components/connect-ai-modal.tsx | 28 ++++----
apps/web/components/dashboard-view.tsx | 4 +-
.../document-cards/file-preview.tsx | 4 +-
.../document-cards/google-docs-preview.tsx | 2 +-
.../document-cards/note-preview.tsx | 2 +-
.../document-cards/notion-preview.tsx | 12 ++--
.../document-cards/tweet-preview.tsx | 2 +-
.../document-cards/website-preview.tsx | 2 +-
.../document-cards/youtube-preview.tsx | 2 +-
apps/web/components/document-icon.tsx | 12 ++--
.../document-modal/content/google-doc.tsx | 6 +-
.../document-modal/content/image-preview.tsx | 6 +-
.../document-modal/content/index.tsx | 2 +-
.../components/document-modal/content/pdf.tsx | 4 +-
.../content/text-editor-content.tsx | 2 +-
.../document-modal/content/tweet.tsx | 4 +-
.../document-modal/content/yt-video.tsx | 4 +-
.../document-modal/graph-list-memories.tsx | 50 ++++++-------
apps/web/components/document-modal/index.tsx | 20 +++---
.../web/components/document-modal/summary.tsx | 4 +-
apps/web/components/document-modal/title.tsx | 2 +-
.../components/documents-command-palette.tsx | 3 +-
apps/web/components/feedback-modal.tsx | 6 +-
apps/web/components/fullscreen-note-modal.tsx | 2 +-
apps/web/components/header.tsx | 28 ++++----
apps/web/components/integration-icons.tsx | 20 +++---
.../components/integrations/chrome-detail.tsx | 2 +-
.../integrations/plugins-detail.tsx | 14 ++--
.../integrations/raycast-detail.tsx | 8 +--
.../integrations/shortcuts-detail.tsx | 6 +-
.../claude-desktop-manual-timeline.tsx | 2 +-
apps/web/components/memories-grid.tsx | 28 ++++----
.../components/memory-graph/graph-card.tsx | 4 +-
.../memory-graph/memory-graph-wrapper.tsx | 2 +-
apps/web/components/next-app-research-cta.tsx | 2 +-
apps/web/components/quick-note-card.tsx | 2 +-
.../components/remove-connection-dialog.tsx | 4 +-
apps/web/components/select-spaces-modal.tsx | 8 +--
apps/web/components/settings/account.tsx | 2 +-
apps/web/components/settings/integrations.tsx | 24 +++----
apps/web/components/share-modal.tsx | 28 +++-----
apps/web/components/space-selector.tsx | 10 +--
apps/web/components/superloader.tsx | 4 +-
apps/web/components/text-editor/index.tsx | 2 +-
apps/web/components/timeline-view.tsx | 8 +--
apps/web/components/user-profile-menu.tsx | 12 ++--
61 files changed, 292 insertions(+), 326 deletions(-)
diff --git a/apps/web/app/(app)/onboarding/page.tsx b/apps/web/app/(app)/onboarding/page.tsx
index ac554055..fb4403c1 100644
--- a/apps/web/app/(app)/onboarding/page.tsx
+++ b/apps/web/app/(app)/onboarding/page.tsx
@@ -53,7 +53,7 @@ function XIcon({ className }: { className?: string }) {
fill="currentColor"
aria-hidden="true"
>
-
- Most finish in under a minute. Below is optional — ways to add + Most finish in under a minute. Below is optional: ways to add more later.
@@ -948,7 +948,7 @@ export default function OnboardingPage() {Your first save is ready. When you want more, use Integrations - for browser, phone, editor, and AI tools — all in one place. + for browser, phone, editor, and AI tools, all in one place.
diff --git a/apps/web/app/(auth)/login/new/page.tsx b/apps/web/app/(auth)/login/new/page.tsx index 421d0f06..82d0fd48 100644 --- a/apps/web/app/(auth)/login/new/page.tsx +++ b/apps/web/app/(auth)/login/new/page.tsx @@ -313,7 +313,7 @@ export default function LoginPage() {
- {status === "creating" && `Connecting ${displayName}...`} + {status === "creating" && `Connecting ${displayName}…`} {status === "success" && - `Success! Redirecting back to ${displayName}...`} + `Success! Redirecting back to ${displayName}…`}
Checking invitation...
+Checking invitation…
Migration completed successfully!
diff --git a/apps/web/components/add-document/connections.tsx b/apps/web/components/add-document/connections.tsx index 5814f55c..955a0345 100644 --- a/apps/web/components/add-document/connections.tsx +++ b/apps/web/components/add-document/connections.tsx @@ -409,7 +409,7 @@ export function ConnectContent({ selectedProject }: ConnectContentProps) { className="bg-[#14161A] rounded-[12px] px-4 py-3 flex items-center justify-between gap-3" >{config.title}
@@ -431,7 +431,7 @@ export function ConnectContent({ selectedProject }: ConnectContentProps) {
className="bg-[#4BA0FA] text-black hover:bg-[#4BA0FA]/90 text-[14px] font-medium px-3 h-8 disabled:opacity-50 disabled:cursor-not-allowed transition-colors"
>
{isConnecting ? (
-
{isUpgrading || autumn.isLoading ? (
-
- {formatUsageNumber(tokensUsed)} tokens ·{" "}
- {formatUsageNumber(searchesUsed)} queries
- {
e.currentTarget.style.display = "none"
e.currentTarget.parentElement?.classList.add("opacity-50")
@@ -228,7 +228,7 @@ export function LinkContent({
Ask me anything about your memories...
+Ask me anything about your memories…