makecindy / makecindy/cindy

维护者确认:#4301 文件树「显示被忽略的目录」开关

Open
#4,305 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.7k
Forks
395
Avg merge
21h 48m
Merged PRs (30d)
776

Description

## 需要维护者确认

PR: https://github.com/makecindy/cindy/pull/4301
作者: @zyjisdog
标题: feat(file-browser): 文件树标题行新增「显示被忽略的目录」开关
head: `41aa02d96de5da40fb20062b29e378fb6205c316`

这是新的用户可见能力,不是存量行为修补。

### 这次改了什么

- 文件树标题行新增「显示被忽略的目录」图标开关(RSB 与 doc 模式侧栏共用同一组件)。
- 默认关闭:`build` / `dist` / `node_modules` 等仍隐藏;打开后才列出可放行目录。
- 偏好写入 localStorage(只存 override),并进入 `useFileTree` store key,切换即重建扫描与 watcher。
- 传输链透传可选字段:desktop IPC → SSH daemon(bundle 0.2.4 → 0.2.5)→ device-link `listDir`。
- `docs/design-rules/design-inventory.md` 随新组件重新生成(`FileTreeIgnoredDirsToggle` 入账)。

### 为何需要确认

当前确认门触发:

1. **产品 / UI**:feat + 生产 UI 路径(新控件、新文案、新偏好)。不是 bugfix,也不是已有开关的小修。
2. **架构**:核心路径约 431 行,全 diff 924 行;改到 main/preload、file-browser-core、remote-file-service 协议与 watcher。
3. **规则文档**:`docs/design-rules/design-inventory.md` 有变更(生成物账本,随 UI 组件入账)。

请维护者直接在 PR 上 **Approve** 放行讨论门;若入口位置、默认关、协议透传或 watcher 边界需要改,请 **Request Changes**。

本 issue 只用于维护者确认,不代替代码审查。

---
关联 PR:#4301(作者 @zyjisdog);本 issue 由 review-pr 流程自动创建,用于先讨论该 PR 涉及的产品 / UI 变更,维护者确认后 PR 会恢复推进。

Contributor guide

Open the contributing guide

Research direction

Start by reviewing PR #4301 and the shared FileTreeIgnoredDirsToggle path, then inspect useFileTree and the desktop IPC → SSH daemon → device-link listDir flow. Check docs/design-rules/design-inventory.md alongside the production UI and watcher changes; done means a maintainer approves the feature or requests specific changes on the PR.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.