Skip to content
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

feat(core): update agent label and imageUrl plus per connection label and imageUrl #516

Merged
merged 3 commits into from
Nov 3, 2021

Conversation

janrtvld
Copy link
Contributor

@janrtvld janrtvld commented Nov 2, 2021

#506

This pr contains:

  • Support for updating agent label
  • Support for custom label on connection/invitation

I would also like to add support for a custom imageUrl on connection/label, but before that i would like some feedback on this draft.

@janrtvld janrtvld changed the title Agentlabel Support for updating agent label and setting custom labels Nov 2, 2021
@janrtvld janrtvld changed the title Support for updating agent label and setting custom labels feat(core): support for updating agent label and setting custom labels Nov 2, 2021
@berendsliedrecht
Copy link
Contributor

berendsliedrecht commented Nov 2, 2021

Nice! Great addition. I was really missing this feature.

Copy link
Contributor

@TimoGlastra TimoGlastra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good @janrtvld!

public async createRequest(connectionId: string): Promise<ConnectionProtocolMsgReturnType<ConnectionRequestMessage>> {
public async createRequest(
connectionId: string,
myLabel?: string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd add the myLabel in a config like the other ones. This will make it easier to extend with more properties later on (e.g. the imageUrl)

@janrtvld janrtvld marked this pull request as ready for review November 2, 2021 12:56
@janrtvld janrtvld requested a review from a team as a code owner November 2, 2021 12:56
@codecov-commenter
Copy link

codecov-commenter commented Nov 2, 2021

Codecov Report

Merging #516 (12df8d6) into main (d2c04c3) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #516      +/-   ##
==========================================
+ Coverage   86.25%   86.27%   +0.01%     
==========================================
  Files         266      266              
  Lines        5755     5762       +7     
  Branches      925      931       +6     
==========================================
+ Hits         4964     4971       +7     
  Misses        790      790              
  Partials        1        1              
Impacted Files Coverage Δ
packages/core/src/agent/Agent.ts 97.97% <100.00%> (+0.04%) ⬆️
packages/core/src/agent/AgentConfig.ts 94.44% <100.00%> (-0.11%) ⬇️
.../core/src/modules/connections/ConnectionsModule.ts 73.80% <100.00%> (+0.63%) ⬆️
.../modules/connections/services/ConnectionService.ts 95.87% <100.00%> (+0.08%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d2c04c3...12df8d6. Read the comment docs.

Copy link
Contributor

@TimoGlastra TimoGlastra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TimoGlastra TimoGlastra changed the title feat(core): support for updating agent label and setting custom labels feat(core): update agent label and imageUrl plus per connection label and imageUrl Nov 3, 2021
@TimoGlastra TimoGlastra merged commit 5e9a641 into openwallet-foundation:main Nov 3, 2021
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.

Allow to set custom label on connection invitation and connection request
4 participants