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

Add link icon to release card header #1492

Merged
merged 4 commits into from
Sep 9, 2023

Conversation

zbynek
Copy link
Contributor

@zbynek zbynek commented Sep 3, 2023

Fixes #1273 (the remaining part)

Also fixes some of the warnings Gatsby now produces in dev mode.

@zbynek zbynek requested a review from a team as a code owner September 3, 2023 07:29
@@ -7,10 +7,6 @@ function Pagination({limit, page, pages, total, setPage}) {
const [pagesToDisplay, setPagesToDisplay] = React.useState(5);
const [marginPagesDisplayed, setMarginPagesDisplayed] = React.useState(2);

if (total == 0) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The only place where Pagiation is called guards for total == 0 already

@NotMyFault
Copy link
Member

Looks good to me, but the build thinks otherwise

@@ -53,7 +53,7 @@ function PluginReleases({pluginId, versions}) {
<a href={release.htmlURL} title="See the release on GitHub" className="github-icon d-flex"><ion-icon name="logo-github" /></a>
</>)}
<a className="anchor after" href={`#version_${version.version}`}>
<ion-icon name="link-outline"></ion-icon>
<ion-icon name="link-outline"/>
Copy link
Member

Choose a reason for hiding this comment

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

I believe web components must have closing tags, not self closing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, self-closing custom elements are still not valid HTML (as far as I understand WICG/webcomponents#624 ), but

  • ESlint prefers self-closing tags and we're using it this way for all icons in the repo
  • This is .jsx so HTML parsing restrictions do not apply

Co-authored-by: Gavin Mogan <[email protected]>
@zbynek zbynek merged commit b50cfc3 into jenkins-infra:master Sep 9, 2023
@zbynek zbynek deleted the release-anchor branch September 9, 2023 11:46
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.

Feature Request: be able to jump directly on a specific plugin release via an anchor
3 participants