Skip to content

Add yank reason to release history page#15115

Merged
miketheman merged 6 commits intopypi:mainfrom
cofiem:feature/show-yanked-reason-in-release-history
Feb 12, 2024
Merged

Add yank reason to release history page#15115
miketheman merged 6 commits intopypi:mainfrom
cofiem:feature/show-yanked-reason-in-release-history

Conversation

@cofiem
Copy link
Copy Markdown
Contributor

@cofiem cofiem commented Dec 27, 2023

Adds the yank reason to the release history page.

Notes:

  • I'm happy to change the text colour to blue instead of red, but I thought the red matches the callout on the release page.
  • I've added the existing @include ellipsis; to ensure the yank reason is always restricted to one line.
  • As mentioned in the issue, the full (possibly multi-line) reason is on the release page for those who want to see it.
  • I've included Reason this release was yanked: with the screen reader-only class, because it's obvious looking at the release box, but a screenreader might need some context.

Closes #9837

image

@cofiem cofiem requested a review from a team as a code owner December 27, 2023 12:08
Comment thread warehouse/templates/packaging/detail.html
Copy link
Copy Markdown
Member

@woodruffw woodruffw left a comment

Choose a reason for hiding this comment

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

This approach LGTM overall, thank you @cofiem! I left one thought about presentation.

Copy link
Copy Markdown
Member

@miketheman miketheman 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 - awaiting the final change for the callout block styling.

@miketheman miketheman added UX/UI design, user experience, user interface HTML requires change to HTML files labels Feb 7, 2024
@cofiem
Copy link
Copy Markdown
Contributor Author

cofiem commented Feb 11, 2024

Yanked reason styling updated.
image

Copy link
Copy Markdown
Member

@woodruffw woodruffw left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @cofiem!

@miketheman miketheman merged commit 4f5cf6e into pypi:main Feb 12, 2024
@miketheman
Copy link
Copy Markdown
Member

@cofiem Thanks for working through this! I manually purged one example page to confirm, and it looks good: https://pypi.org/project/Red-DiscordBot/#history

The rest of pages should naturally expire from cache in a day, or as they yank/unyank their HTML will be refreshed.

@cofiem cofiem deleted the feature/show-yanked-reason-in-release-history branch April 3, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

HTML requires change to HTML files UX/UI design, user experience, user interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Public release history and release page do not show yanked reason

3 participants