Refactor text overflow solution
オープン
まだ誰も着手していません。
feature-request
- 主要言語
- Rust
- スター
- 22.5k
- フォーク
- 774
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Is your feature request related to a problem? Please describe.
At different places inside the source code it is necessary to render text that is overflowing the width by shortening it and displaying three dots '...' at the end/start instead of the full text.
This code is duplicated and the refactoring should provide a centralized way to handle this without duplicating code.
Additional context
Caught attention in PR #2350 for issue #2172
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
ファイルやテストは指定されていません。まず PR #2350 と issue #2172 を確認し、その後、ソース内で重複している text-overflow の処理を見つけてください。繰り返されている実装が、該当する端で省略記号を使ってテキストを短縮できる単一の中央集約されたソリューションに置き換えられれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- rust
- 領域
- cli
- issue の種類
- リファクタリング
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100