Skip to content
This repository has been archived by the owner on Jun 18, 2023. It is now read-only.

New badges #21

Merged
merged 4 commits into from
Oct 14, 2022
Merged

New badges #21

merged 4 commits into from
Oct 14, 2022

Conversation

jrlambs
Copy link
Contributor

@jrlambs jrlambs commented Oct 14, 2022

  • sort channels by protocol, operation, and name
  • split operation badge from protocol badge
  • add icon to operation badge

and "consumer" -> "subscribe"
split operation badge from protocol badge
add icon to operation badge
# Conflicts:
#	src/app/shared/asyncapi.service.ts
Copy link
Member

@timonback timonback left a comment

Choose a reason for hiding this comment

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

LGTM. I added some minor style items

color: #fff
}

.fa {
Copy link
Member

Choose a reason for hiding this comment

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

Such a generic class will apply to font-awesome icons on the page.
I suggest making it a bit more selective

Suggested change
.fa {
.badge .fa {

this.asyncApiService.getAsyncApis().subscribe(asyncapi => this.channels = asyncapi.get(name).channels);
this.asyncApiService.getAsyncApis().subscribe(asyncapi => {
this.channels = this.sortChannels(asyncapi.get(name).channels);
console.log(this.channels);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
console.log(this.channels);

Probably not needed anymore :)

}


private sortByProperty(toSort: Array<any>, property: string) {
Copy link
Member

Choose a reason for hiding this comment

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

Is this used anywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nope, gone now.

@@ -123,6 +123,8 @@ export class AsyncApiService {
private mapOperation(operationName: string, message: Message, bindings?: any): Operation {
return {
type: this.getProtocol(bindings) + operationName,
Copy link
Member

Choose a reason for hiding this comment

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

As the type got split, is it possible to remove the field?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep, gone now.

@timonback
Copy link
Member

Closes #20

@stavshamir
Copy link
Member

Looks great, thanks

@stavshamir stavshamir merged commit a91d4cc into springwolf:master Oct 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants