Skip to content

Repo checker: a result clean apart from unchecked private packages offers only a CLI command without --index-url, and the share line says "1 of 1 dependencies has" #246

Done

Description

@patrickballard

Two small things left after #244 and #245.

  1. Unchecked private packages. When every checked package has a wheel but some weren't checked (their index isn't known to be PyPI), the next-steps heading says "Fix it", the fix-prompt button and its note are hidden, and the only thing offered is the CLI command, which has no --index-url. The private-index alert above it tells the visitor to use one. The CLI command shown should then carry --index-url YOUR_INDEX_URL (a placeholder, never a real URL), or the next steps should say to add it, matching what the alert says.
  2. Share line plural. shareText's gaps branch (site/check/check-logic.mjs) says "1 of 1 dependencies has no wheel on 1 target". It should be "1 of 1 dependency has", the same way verdictText words it.

Done when

  • renderNext (site/check/check.mjs) shows the CLI command with an --index-url placeholder (or a line saying to add one) when notCheckedCount(r) > 0, and the same as today otherwise. A test in tests/site/check-page.test.mjs for both cases.
  • shareText agrees in number for 1 package; the existing shareText tests in tests/site/check-logic.test.mjs updated plus one new case.
  • Text built with textContent only (strict CSP).

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions