π OpenHands: AI-Driven Development
chore(frontend): Remove latest conversation text in home screen (#6851)
sp.wack35bab5070d79
diff --git a/frontend/src/api/open-hands.ts b/frontend/src/api/open-hands.tsindex 58abf00956..bb70ffa4ef 100644--- a/frontend/src/api/open-hands.ts+++ b/frontend/src/api/open-hands.ts@@ -239,9 +239,6 @@ class OpenHands {body,);- // TODO: remove this once we have a multi-conversation UI- localStorage.setItem("latest_conversation_id", data.conversation_id);-return data;}diff --git a/frontend/src/routes/_oh._index/route.tsx b/frontend/src/routes/_oh._index/route.tsxindex 15d16e02d6..fd154025b2 100644--- a/frontend/src/routes/_oh._index/route.tsx+++ b/frontend/src/routes/_oh._index/route.tsx@@ -1,8 +1,6 @@import React from "react";import { useDispatch } from "react-redux";-import { useTranslation } from "react-i18next";import posthog from "posthog-js";-import { I18nKey } from "#/i18n/declaration";import { setImportedProjectZip } from "#/state/initial-query-slice";import { convertZipToBase64 } from "#/utils/convert-zip-to-base64";import { useGitHubUser } from "#/hooks/query/use-github-user";@@ -14,7 +12,6 @@ import { HeroHeading } from "#/components/shared/hero-heading";import { TaskForm } from "#/components/shared/task-form";function Home() {- const { t } = useTranslation();const dispatch = useDispatch();const formRef = React.useRef<HTMLFormElement>(null);@@ -26,8 +23,6 @@ function Home() {gitHubClientId: config?.GITHUB_CLIENT_ID || null,});- const latestConversation = localStorage.getItem("latest_conversation_id");-return (<div className="bg-base-secondary h-full rounded-xl flex flex-col items-center justify-center relative overflow-y-auto px-2"><HeroHeading />@@ -56,19 +51,6 @@ function Home() {/></div></div>- {latestConversation && (- <div className="flex gap-4 w-full text-center mt-8">- <p className="text-center w-full">- {t(I18nKey.LANDING$OR)} - <a- className="underline"- href={`/conversations/${latestConversation}`}- >- {t(I18nKey.LANDING$RECENT_CONVERSATION)}- </a>- </p>- </div>- )}</div>);}