Fresh avatar#3466
Closed
df007df wants to merge 7 commits into
Closed
Conversation
- Install react-nice-avatar and dom-to-image dependencies - AvatarPicker: add upload/generate tab switch - AvatarEditor (detail page): add same switch - Generate mode: react-nice-avatar → canvas → blob → upload via existing flow - Display layer unchanged (still uses avatar_url) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@df007df is attempting to deploy a commit to the IndexLabs Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deployment type
What do you want and why?
头像上传功能目前只支持上传图片,现需要增加 react-nice-avatar 生成头像的功能,让用户可以自主生成一个头像,而不是只能上传本地图片。
Proposed solution
在现有的 AvatarPicker 和 AvatarEditor 组件中增加 [上传图片] / [生成头像] 切换标签:
Changes
packages/views/agents/components/avatar-picker.tsx— 创建表单中增加生成模式packages/views/agents/components/agent-detail-inspector.tsx— 详情页编辑增加相同切换packages/views/package.json— 新增 react-nice-avatar、dom-to-image 依赖packages/views/locales/en/agents.json— 新增翻译 keypackages/views/locales/zh-Hans/agents.json— 新增翻译 keypackages/views/assets.d.ts— 新增资源类型声明Screenshots / mockups (optional)