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

Bug: [Trees] collapsed/flattened folders ignore gitignore markup

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
typescript
領域
frontend

調査の方向性

Trees コンポーネントにおけるフラット化された行の行アイデンティティロジックから着手する:ペイロードの gitStatusByPath、ignoredDirectoryPaths、ignored 継承フォールバック、および ancestorPaths。フラット化された行がどのようにして自身のパスを記録するか、そしてフラット化された中間ディレクトリがなぜ決して参照されないのかを追跡し、flattenEmptyDirectories: true の設定で src-tauri/gen/schemas/ の例を再現する。完了条件:フラット化された行が ignored ステータス(薄い不透明度)を継承し、既存のツリー描画テストが引き続き合格すること。

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

説明

bug trees
Prerequisites
Describe the issue

In the image below, src-tauri/gen is gitignored

Image

but it's rendered at full opacity

AI Analysis

For flattened rows, Pierre uses the deepest segment's path as the row identity, but gitStatusByPath and the ignored-inheritance fallback only consult that one path plus the visible ancestors — never the flattened intermediates. So if src-tauri/gen/ is in ignoredDirectoryPaths and Pierre flattens it with its single child src-tauri/gen/schemas/, the rendered row is "stamped" as src-tauri/gen/schemas/ with ancestorPaths = ["src-tauri/"], and nothing in that lookup chain knows about src-tauri/gen/.

Reproduction

Create a tree:

src-tauri/
  gen/
    schemas/
      foo.json

with:

gitStatus: [{ path: 'src-tauri/gen/', status: 'ignored' }]

and

flattenEmptyDirectories: true

=> the row renders at full opacity instead of ignored

What browser(s) are you seeing the problem on?

No response

What version of @pierre/diffs are you using?

1.0.0-beta.3 [trees, not diff]

主要言語
TypeScript
スター
6.2k
フォーク
226
平均マージ
1日 13時間
マージ済み PR(30日)
31

環境構築

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

はじめの一歩

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

pierrecomputer/pierre のほかの issue

pierrecomputer/pierre の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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