-
Notifications
You must be signed in to change notification settings - Fork 2
Refactor chat functionality for message tracking and fetching optimization #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,9 +51,9 @@ export function PlatformUsernameInput({ | |
| ); | ||
|
|
||
| const handleBlur = () => { | ||
| if (validateOnBlur && value.trim()) { | ||
| // if (validateOnBlur && value.trim()) { | ||
| setShouldValidate(true); | ||
| } | ||
| // } | ||
| }; | ||
|
|
||
| const handleChange = (newValue: string) => { | ||
|
|
@@ -139,7 +139,7 @@ export function PlatformUsernameInput({ | |
| </div> | ||
|
|
||
| {/* Status message */} | ||
| <AnimatePresence mode="wait"> | ||
| {/* <AnimatePresence mode="wait"> | ||
| {shouldValidate && getStatusMessage() && ( | ||
| <motion.div | ||
| initial={{ opacity: 0, y: -5 }} | ||
|
Comment on lines
141
to
145
|
||
|
|
@@ -157,10 +157,10 @@ export function PlatformUsernameInput({ | |
| <span>{getStatusMessage()}</span> | ||
| </motion.div> | ||
| )} | ||
| </AnimatePresence> | ||
| </AnimatePresence> */} | ||
|
|
||
| {/* Clean Preview Card */} | ||
| <AnimatePresence> | ||
| {/* <AnimatePresence> | ||
| {showPreview && data && ( | ||
| <motion.div | ||
| initial={{ opacity: 0, y: -10 }} | ||
|
|
@@ -203,7 +203,7 @@ export function PlatformUsernameInput({ | |
| </div> | ||
| </motion.div> | ||
| )} | ||
| </AnimatePresence> | ||
| </AnimatePresence> */} | ||
| </div> | ||
| ); | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
handleBlurcurrently ignoresvalidateOnBlurand whether the input is non-empty, because the guard is commented out. This changes behavior for callers that passvalidateOnBlur={false}and also triggers validation state even when the field is blank. Please restore the conditional (or implement an equivalent) so validation only enables when intended.