asyncapi-react icon indicating copy to clipboard operation
asyncapi-react copied to clipboard

feat: show operation summary on sidebar

Open sarisia opened this issue 2 years ago • 3 comments

Description

Prior to @asyncapi/[email protected], operations' summary is shown in sidebar but current version does not:

(code from v0.20.1)

https://github.com/asyncapi/html-template/blob/d2c4513eef9b33bfc977ed5ed92eb188e8988b62/partials/sidebar.html#L50-L58

Changes proposed in this pull request:

  • if operation has a summary, show it on sidebar

Current behavior

image

Updated behavior

image

Related issue(s)

sarisia avatar May 08 '22 08:05 sarisia

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarcloud[bot] avatar May 08 '22 08:05 sonarcloud[bot]

@magicmatatjahu Thank you for reviewing and sorry for my late response.

I think adding channel name to sidebar makes the line length too long and users may feel hard to find operations at a grance.

At Redoc (OpenAPI docs generator) they only show summary on sidebars for years , so I think it's enough to do so.

What do you think?

sarisia avatar Jun 25 '22 18:06 sarisia

@sarisia I would also prefer to add the name of the channel. Here is what it looks like for example.

image

WDYT?

magicmatatjahu avatar Jun 27 '22 07:06 magicmatatjahu

This pull request has been automatically marked as stale because it has not had recent activity :sleeping:

It will be closed in 120 days if no further activity occurs. To unstale this pull request, add a comment with detailed explanation.

There can be many reasons why some specific pull request has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this pull request forward. Connect with us through one of many communication channels we established here.

Thank you for your patience :heart:

github-actions[bot] avatar Oct 26 '22 00:10 github-actions[bot]

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarcloud[bot] avatar Nov 10 '22 11:11 sonarcloud[bot]

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarcloud[bot] avatar Jan 31 '23 15:01 sonarcloud[bot]

@sarisia Thanks for contribution!

magicmatatjahu avatar Jan 31 '23 16:01 magicmatatjahu

:tada: This PR is included in version 1.0.0-next.46 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

asyncapi-bot avatar Jan 31 '23 16:01 asyncapi-bot

https://github.com/asyncapi/asyncapi-react/pull/595#issuecomment-1166993545 @sarisia I would also prefer to add the name of the channel. Here is what it looks like for example.

image

WDYT?

Sorry for not responding for a long time.

Maybe make it controllable by sidebar option is better, but since I'm not the React guy, it may take some time to make PR...

Maybe I'll create an new follow up issue later. Thanks!

sarisia avatar Jan 31 '23 17:01 sarisia

@sarisia No problem! Yeah, it can be :) Please create issue and I will make PR. I would like to close as many issues as possible in the next few days/weeks, because later I will not have time to do it.

magicmatatjahu avatar Jan 31 '23 17:01 magicmatatjahu

@magicmatatjahu #701, thanks!

sarisia avatar Feb 02 '23 16:02 sarisia

I don't like this change. If a summary is really long, it makes the sidebar look like a mess...

shanewazabbas avatar Sep 07 '23 15:09 shanewazabbas

If a summary is really long, it makes the sidebar look like a mess...

Indeed. We had same problem for very long channel name.

#701 suggests adding sidebar option to change the priority between channelName and summary.

sarisia avatar Sep 08 '23 04:09 sarisia