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•4w ago
What unique UI state are we talking about here?
mute-goldOP•4w ago
I want to display an indicator that the field was updated by AI. A special gradient applied to the field.
mute-goldOP•4w ago
Here's an example:
https://carbondesignsystem.com/guidelines/carbon-for-ai/#when-to-use-the-ai-label
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•4w 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 labelmute-goldOP•4w ago
Yeah I think that's what I'm headed towards. Thanks for your input, really appreciated.