Skip to content

Improve the maintenance badge user experience #2140

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

Merged

Conversation

jhinch
Copy link
Contributor

@jhinch jhinch commented Jan 17, 2020

  • Change the alt-text to be a little more descriptive
    and screen-reader friendly
  • Link to the Cargo documentation from the badge which describes what the maintenance intentions are

This addresses #2134. Have a read through of my summary for the motivations on the ticket to get a little context of what this is trying to achieve.

@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @smarnach (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@jhinch
Copy link
Contributor Author

jhinch commented Jan 17, 2020

I'm happy to add tests but I'm unsure exactly what they would look like or if there are some examples I can look at. I'm a little out of practice with my frontend dev

@jhinch jhinch force-pushed the feature/2134/improve-maintenance-intention-badge branch from a828ba1 to a281fd7 Compare January 25, 2020 03:40
@jhinch
Copy link
Contributor Author

jhinch commented Jan 25, 2020

I have rebased my changes onto master to fix the broken tests which appear to be fixed on master. I am not familiar percy.io or what is needed to get it to pass.

@jhinch
Copy link
Contributor Author

jhinch commented Feb 2, 2020

When I looked into the percy.io failure, it seems like the visual difference actually fixes a bug in terms of the vertical alignment (at least when I look at the vertical line spacing in comparison with other badges.

@bors
Copy link
Contributor

bors commented Feb 19, 2020

☔ The latest upstream changes (presumably #2185) made this pull request unmergeable. Please resolve the merge conflicts.

@locks
Copy link
Contributor

locks commented Feb 19, 2020

@jhinch thank you for helping out! Can you check the current conflict?

@jhinch
Copy link
Contributor Author

jhinch commented Feb 19, 2020

Thanks for the response! I'll take a look at resolving the conflict

@jtgeibel
Copy link
Member

@jhinch we discussed these changes in the team meeting yesterday, and the general consensus is that we should avoid duplicating documentation between crates.io and cargo. So far, we've preferred to link to cargo documentation unless the documentation is specific to crates.io, such as the policies page.

Would you mind splitting the documentation improvement part of this PR into a PR against the cargo documentation? I'd like to merge the improvements to the badge text and alt-text as part of this PR and then land a separate PR to link to the improved documentation. There are already some upstream changes to the cargo documentation that are currently in beta (linked below). Relative to the current stable the beta changes split [badges] into its own section. Maybe the documentation improvements from this PR can be applied there with a new header added under that section so that the maintenance badge section can be linked to directly.

The downside to this approach is that the documentation changes then take 6 to 12 weeks to hit stable. That still seems preferable to duplicating documentation between the two repos, and we could temporarily link to nightly/beta temporarily until the changes land on stable.

Okay, having said all that, there is a reasonable argument that the [badges] section is special. It's entirely possible that alternative registries offer different (or even no) badges. So maybe the badges section in cargo's documentation should just mention that the section is registry-specific and link to a page on crates.io. Moving all the badges documentation to this repo would be a larger change and we'd want to make sure the cargo team agrees with that change in approach as well.

So in summary, would you mind trimming this PR down to just the alt-text and screen reader improvements and then opening either a PR against cargo to improve the documentation or opening an issue to discuss migrating the badges documentation?

Docs Source (master): https://github.com/rust-lang/cargo/blob/master/src/doc/src/reference/manifest.md#the-badges-section
Rendered (beta): https://doc.rust-lang.org/beta/cargo/reference/manifest.html#the-badges-section

@jhinch
Copy link
Contributor Author

jhinch commented Feb 22, 2020

Thanks for the detailed response. It's much appreciated. I agree that keeping the documentation in one place is much better if the Cargo documentation can be expanded on. For this PR, should I keep the link in place but link to the Cargo documentation, or would you like me to remove the link as well?

@jtgeibel
Copy link
Member

jtgeibel commented Feb 22, 2020 via email

@jhinch jhinch force-pushed the feature/2134/improve-maintenance-intention-badge branch 2 times, most recently from 1872b0d to f510151 Compare February 24, 2020 10:56
@jhinch
Copy link
Contributor Author

jhinch commented Feb 24, 2020

PR has been updated with feedback addressed. Apologies for the delay.

@Turbo87 Turbo87 force-pushed the feature/2134/improve-maintenance-intention-badge branch from f510151 to d58a732 Compare March 31, 2020 14:22
jhinch and others added 2 commits March 31, 2020 16:26
* Change the alt-text to be a little more descriptive
  and screen-reader friendly
* Link to the Cargo documentation from the badge which describes what
  the maintenance intentions are
@Turbo87 Turbo87 force-pushed the feature/2134/improve-maintenance-intention-badge branch from 5d34329 to cc7d217 Compare March 31, 2020 14:27
@Turbo87
Copy link
Member

Turbo87 commented Mar 31, 2020

@bors r+

@bors
Copy link
Contributor

bors commented Mar 31, 2020

📌 Commit cc7d217 has been approved by Turbo87

@bors
Copy link
Contributor

bors commented Mar 31, 2020

⌛ Testing commit cc7d217 with merge ecc3239...

@Turbo87 Turbo87 added the A-ui label Mar 31, 2020
@bors
Copy link
Contributor

bors commented Mar 31, 2020

☀️ Test successful - checks-travis
Approved by: Turbo87
Pushing ecc3239 to master...

@bors bors merged commit ecc3239 into rust-lang:master Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants