Skip to content

Commit 489aca4

Browse files
DIYgodclaude
andcommitted
refactor: remove deprecated features (referral, invitations, memory, wallet)
Remove the following modules and features: - Referral/invitation system across desktop, mobile, and SSR - AI memory management (SaveMemoryCard, ManageMemoryCard, UserMemorySection) - Daily reward claim and reward description modal - Activity points and level display in wallet - Related query files and imports Co-Authored-By: Claude Haiku 4.5 <[email protected]>
1 parent 11a0bd7 commit 489aca4

File tree

35 files changed

+13
-2068
lines changed

35 files changed

+13
-2068
lines changed

apps/desktop/layer/renderer/src/modules/ai-chat/components/message/AIMessageParts.tsx

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import { useChatStatus } from "../../store/hooks"
1111
import { AIChainOfThought } from "../displays"
1212
import type { ChainReasoningPart } from "../displays/AIChainOfThought"
1313
import { AIMarkdownStreamingMessage } from "./AIMarkdownMessage"
14-
import { ManageMemoryCard } from "./ManageMemoryCard"
15-
import { SaveMemoryCard } from "./SaveMemoryCard"
1614
import { ToolInvocationComponent } from "./ToolInvocationComponent"
1715

1816
const LazyAIDisplayFlowPart = React.lazy(() =>
@@ -24,9 +22,7 @@ interface AIMessagePartsProps {
2422
isLastMessage: boolean
2523
}
2624

27-
const bypassedToolNames = new Set(["tool-save_user_memory", "tool-manage_user_memory"])
28-
const shouldBypassMergeToolName = (name: string) =>
29-
bypassedToolNames.has(name) || name.startsWith("tool-display")
25+
const shouldBypassMergeToolName = (name: string) => name.startsWith("tool-display")
3026

3127
export const AIMessageParts: React.FC<AIMessagePartsProps> = React.memo(
3228
({ message, isLastMessage }) => {
@@ -132,24 +128,6 @@ export const AIMessageParts: React.FC<AIMessagePartsProps> = React.memo(
132128
</ErrorBoundary>
133129
)
134130
}
135-
case "tool-save_user_memory": {
136-
return (
137-
<SaveMemoryCard
138-
key={partKey}
139-
part={part as ToolUIPart<BizUITools>}
140-
variant="tight"
141-
/>
142-
)
143-
}
144-
case "tool-manage_user_memory": {
145-
return (
146-
<ManageMemoryCard
147-
key={partKey}
148-
part={part as ToolUIPart<BizUITools>}
149-
variant="tight"
150-
/>
151-
)
152-
}
153131

154132
default: {
155133
if (part.type.startsWith("tool-")) {

apps/desktop/layer/renderer/src/modules/ai-chat/components/message/ManageMemoryCard.tsx

Lines changed: 0 additions & 128 deletions
This file was deleted.

apps/desktop/layer/renderer/src/modules/ai-chat/components/message/SaveMemoryCard.tsx

Lines changed: 0 additions & 98 deletions
This file was deleted.
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
export { AIMarkdownStreamingMessage } from "./AIMarkdownMessage"
22
export { AIMessageParts } from "./AIMessageParts"
3-
export { ManageMemoryCard } from "./ManageMemoryCard"
4-
export { SaveMemoryCard } from "./SaveMemoryCard"
53
export { ToolInvocationComponent } from "./ToolInvocationComponent"

apps/desktop/layer/renderer/src/modules/ai-memory/query.ts

Lines changed: 0 additions & 90 deletions
This file was deleted.

0 commit comments

Comments
 (0)