-
Notifications
You must be signed in to change notification settings - Fork 681
Fix: Angular contacts lookup example #387
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
base: main
Are you sure you want to change the base?
Fix: Angular contacts lookup example #387
Conversation
| "help", | ||
| "home", | ||
| "info", | ||
| "link", |
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.
We can't add this here, because it is inconsistent with the specification in https://github.com/google/A2UI/blob/main/specification/0.8/json/standard_catalog_definition.json
Can we make do without the link icon?
It's a pretty reasonable feature request to add support for this in a future spec version though!!
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.
Thanks for sharing the reason here.
I can update the code to remove it for now to keep the PR clean. Makes sense.
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.
@jacobsimionato , @crisbeto I've updated the PR to remove the usage of the link icon
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.
Thanks! I'll let @crisbeto review from here because he knows the Angular codebase much better than me
…tion context and UI for contact lookup sample
a29d374 to
274116f
Compare
| protected readonly resolvedName = computed(() => this.resolvePrimitive(this.name())); | ||
| protected readonly resolvedName = computed(() => { | ||
| const name = this.resolvePrimitive(this.name()); | ||
| return name ? name.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`) : null; |
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.
This seems off to me. The runtime shouldn't be modifying the icon name, but rather the agent should return the right name to begin with.
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.
I can look into why that happens in depth. However, it wasn't returning the right name. It was returning locationOn instead of location-on, for example.
fix: enhance icon handling, expand contact data, and refine agent action context and UI for contact lookup sample
Fixes #386
Before ❌:
Contact Card
Upon following contact
Messaging contact
Now ✅
Contact Card
Following contact
Messaging contact