diff options
| author | MaheshtheDev <[email protected]> | 2026-01-20 17:03:22 +0000 |
|---|---|---|
| committer | MaheshtheDev <[email protected]> | 2026-01-20 17:03:22 +0000 |
| commit | 731808be6838f33aa649129434bbc5ce71800c38 (patch) | |
| tree | 1a127fe5a5c84c9c6f277d825c125ba0be3ec817 /packages | |
| parent | fix(tools): multi step agent prompt caching (#685) (diff) | |
| download | supermemory-731808be6838f33aa649129434bbc5ce71800c38.tar.xz supermemory-731808be6838f33aa649129434bbc5ce71800c38.zip | |
feat: create space, delete spaces and emoji picker (#687)01-19-feat_create_space_and_delete_spaces_and_emoji_picker
### Add user display name functionality and enhance space management with emoji support and deletion capabilities.
### What changed?
- Added support for user display names, which are now stored and displayed throughout the app
- Implemented emoji support for spaces (projects), allowing users to customize their space icons
- Created a new `AddSpaceModal` component with emoji picker for creating spaces
- Added space deletion functionality with options to move content to another space or delete everything
- Enhanced the space selector UI to show emojis and delete options
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/lib/types.ts | 1 | ||||
| -rw-r--r-- | packages/validation/api.ts | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/packages/lib/types.ts b/packages/lib/types.ts index 024c4811..02469b11 100644 --- a/packages/lib/types.ts +++ b/packages/lib/types.ts @@ -9,4 +9,5 @@ export interface Project { createdAt: string updatedAt: string isExperimental?: boolean + emoji?: string } diff --git a/packages/validation/api.ts b/packages/validation/api.ts index 9d8c1983..3669c9eb 100644 --- a/packages/validation/api.ts +++ b/packages/validation/api.ts @@ -1233,6 +1233,10 @@ export const ProjectSchema = z description: "Number of documents in this project", example: 42, }), + emoji: z.string().optional().openapi({ + description: "Emoji icon for the project", + example: "📁", + }), }) .openapi({ description: "Project object for organizing memories", @@ -1246,6 +1250,11 @@ export const CreateProjectSchema = z minLength: 1, maxLength: 100, }), + emoji: z.string().max(10).optional().openapi({ + description: "Emoji icon for the project", + example: "📁", + maxLength: 10, + }), }) .openapi({ description: "Request body for creating a new project", |