Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Make it easier to diff against previous versions

オープン
#2,934 コメント 0 件 リアクション 3 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
nuxt, typescript
領域
frontend

調査の方向性

Start by locating the package page UI described in the issue, especially the version header, diff link, and version sidebar. Trace how the base and target versions are selected and how the diff URL is formed. Done means users can readily compare a package version with its predecessor and understand or change the comparison direction.

索引モデルが issue の本文から書いたものです。

説明

front
Describe the feature

In the current UI it's surprisingly difficult to diff a version against its predecessor:

  • If you're viewing the latest version (i.e., the default page) of a package then the diff link is hidden by default, so you first have to navigate to the version you want to compare against, then click the diff link there (which will then default to comparing against latest).
  • Things get even trickier for patch versions: To compare the prior version, you again first have to select the prior version, then choose the version you wanted to compare against in the first place.

I can think of a few changes that would reduce the friction:

  1. Always display the diff link. Hiding it just makes the feature more difficult to discover and doesn't do all that much to unclutter the UI.
  2. Show base and target version together. The base version (the one you're viewing) is currently displayed and selected in the top right header, while the target version is managed in the lefthand sidebar, which flips the direction of the comparison and URL parts. Showing both versions close to each other helps users understand what they are comparing, and makes it easier to add affordances to change the direction.
  3. Compare old vs new. When a user selects a target version in the UI and the relation to the base version is clear (e.g. shared semver parts), ensure that the older version becomes the base. UI affordances can still allow users to change the direction explicitly.
  4. Make the prior version more accessible. If a preceding version can be determined, either default the base to it or show it prominently in the base dropdown.
Additional information
  • Would you be willing to help implement this feature?
Final checks
主要言語
TypeScript
スター
3.6k
フォーク
533
平均マージ
4日 1時間
マージ済み PR(30日)
39

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

npmx-dev/npmx.dev のほかの issue

npmx-dev/npmx.dev の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。