Skip to content

Conversation

@AhsanAyaz
Copy link
Contributor

fix: enhance icon handling, expand contact data, and refine agent action context and UI for contact lookup sample

Fixes #386

Before ❌:

Contact Card

2025-12-24-204728_hyprshot

Upon following contact

2025-12-24-204756_hyprshot

Messaging contact

image

Now ✅

Contact Card

2025-12-24-202741_hyprshot

Following contact

2025-12-24-202805_hyprshot

Messaging contact

2025-12-24-202859_hyprshot

"help",
"home",
"info",
"link",
Copy link
Collaborator

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!!

Copy link
Contributor Author

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.

Copy link
Contributor Author

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

Copy link
Collaborator

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
@AhsanAyaz AhsanAyaz force-pushed the fix/angular-contacts-demo-example branch from a29d374 to 274116f Compare January 6, 2026 19:53
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;
Copy link
Collaborator

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.

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] (angular) - Contacts list demo has several issues

3 participants