fix: board icon emoji shows as unicode text on create modal#1023
Open
rusackas wants to merge 1 commit into
Open
fix: board icon emoji shows as unicode text on create modal#1023rusackas wants to merge 1 commit into
rusackas wants to merge 1 commit into
Conversation
Without initialValue, Ant Design's Form.Item has no field value until the user picks an emoji, causing FormEmojiPickerInput to display the raw unicode fallback text instead of rendering the emoji character. Matches the existing pattern in UsersTable.tsx (initialValue="👤"). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
mistercrunch
approved these changes
Apr 17, 2026
Member
mistercrunch
left a comment
There was a problem hiding this comment.
needs rebase but approved!
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.
Problem
When opening the Create Agent modal in Settings, the board icon field displays the default emoji (
📋) as raw unicode text (e.g.📋) instead of rendering the actual emoji character. Once you pick an emoji from the picker, it displays correctly.Root Cause
Form.Item name="icon"was missinginitialValue="📋". Without it, Ant Design's form has no stored value for the field until the user interacts with it.FormEmojiPickerInputreads the form value viaform.getFieldValue(fieldName), which returnsundefinedinitially — falling through to thedefaultEmojiprop. But the inner<Input>renders with the form'sFieldContext, and without an initialValue the field value shown can differ from the prefix display.Fix
Added
initialValue="📋"to both the create and edit modal'sForm.Item name="icon", matching the existing pattern inUsersTable.tsx(which correctly hasinitialValue="👤").The edit modal already calls
form.setFieldsValue({ icon: board.icon })before opening, soinitialValuethere is redundant but harmless.🤖 Generated with Claude Code