T
TanStack4w ago
mute-gold

AI modified field

When an AI assistant modifies a field I need to display a unique UI state. I can set value and manipulate the metadata on the field, is this OK? Should I add something to the field.store? Any other ideas? Thank you.
5 Replies
inland-turquoise
inland-turquoise4w ago
What unique UI state are we talking about here?
mute-gold
mute-goldOP4w ago
I want to display an indicator that the field was updated by AI. A special gradient applied to the field.
mute-gold
mute-goldOP4w ago
Carbon Design System
Carbon is IBM’s open source design system for products and digital experiences. With the IBM Design Language as its foundation, the system consists of working code, design tools and resources, human interface guidelines, and a vibrant community of contributors.
inland-turquoise
inland-turquoise4w ago
field meta is not implemented yet, so adding this directly is not possible at the moment. One way I can see this being solved is that you can keep a Partial<Record<DeepKeys<YourFormValues>, boolean>> to determine if the field has been filled by AI. When rendering, if the field.name is present in the list, show the label
mute-gold
mute-goldOP4w ago
Yeah I think that's what I'm headed towards. Thanks for your input, really appreciated.

Did you find this page helpful?