Bug: [Trees] collapsed/flattened folders ignore gitignore markup
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 静か
- 技術スタック
- typescript
- 領域
- frontend
調査の方向性
Trees コンポーネントにおけるフラット化された行の行アイデンティティロジックから着手する:ペイロードの gitStatusByPath、ignoredDirectoryPaths、ignored 継承フォールバック、および ancestorPaths。フラット化された行がどのようにして自身のパスを記録するか、そしてフラット化された中間ディレクトリがなぜ決して参照されないのかを追跡し、flattenEmptyDirectories: true の設定で src-tauri/gen/schemas/ の例を再現する。完了条件:フラット化された行が ignored ステータス(薄い不透明度)を継承し、既存のツリー描画テストが引き続き合格すること。
索引モデルが issue の本文から書いたものです。
説明
Prerequisites
- I have searched for duplicate or closed issues
- I have read the contributing guidelines
Describe the issue
In the image below, src-tauri/gen is gitignored
but it's rendered at full opacity
AI Analysis
For flattened rows, Pierre uses the deepest segment's path as the row identity, but
gitStatusByPathand the ignored-inheritance fallback only consult that one path plus the visible ancestors — never the flattened intermediates. So ifsrc-tauri/gen/is inignoredDirectoryPathsand Pierre flattens it with its single childsrc-tauri/gen/schemas/, the rendered row is "stamped" assrc-tauri/gen/schemas/withancestorPaths = ["src-tauri/"], and nothing in that lookup chain knows aboutsrc-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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pierrecomputer/pierre のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
pierrecomputer/pierre#1187 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
pierrecomputer/pierre#1150 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Bug: Dragging a selection past the edge of an editable CodeView collapses it, then stops it growingオープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
pierrecomputer/pierre#1189 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
pierrecomputer/pierre#1184 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 63/100
pierrecomputer/pierre#1172 ·
メンテナーはふだん 1 日以内に返信
pierrecomputer/pierre の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ranxianglei/billion-context#3583 ·
メンテナーはふだん 1 日以内に返信
-
bug:new
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
callstackincubator/simlock#673 ·
メンテナーはふだん 1 日以内に返信
-
documentation v3
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
anomalyco/opencode#56380 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信