feat: the files panel uses the server's gitignored setting
- OpenChamber keeps filesViewShowGitignored in its profile settings (the web UI's "Display gitignored files"); the client now reads it in refreshChatSettings instead of starting from a local false, so a server that shows ignored files shows them here too - toggling "Show git-ignored files" writes the same key back through PUT /api/config/settings (surface=mobile) and reloads the listing; a failed save restores the previous value and reports the error - while the panel is open, a change to the setting from another client reloads the list with the new filter - version 0.6.3+603; tests cover reading, writing and rollback
This commit is contained in:
1 parent
8ac36b1fb1
commit
ba3c820186
6 files changed
+154
-9
No files matched your search
@@ -5,6 +5,17 @@
|
||||
|
||||
---
|
||||
|
||||
## 0.6.3 文件侧栏的 gitignore 开关改用服务端值(分支 `flutter`)
|
||||
|
||||
| 项 | 结果 |
|
||||
| --- | --- |
|
||||
| 服务端存储 | OpenChamber 的设置文档里有 `filesViewShowGitignored`(profile scope,网页端也用它),没有该键时默认不显示被 git 忽略的文件。客户端现在从 `/api/config/settings` 读取它,不再写死本地默认值 |
|
||||
| 切换 | 文件侧栏的【显示被 git 忽略的文件】勾选/取消勾选后立即刷新列表,并通过 `PUT /api/config/settings` 写回服务端(`surface=mobile`);保存失败时恢复原值并显示错误 |
|
||||
| 同步 | 侧栏打开期间如果服务端值变化(例如网页端改了同一设置),监听 `AppState` 后按新值重新加载列表 |
|
||||
| 版本 | **0.6.3(code 603)** |
|
||||
|
||||
---
|
||||
|
||||
## 0.6.2 归档选择器只列有归档的项目(分支 `flutter`)
|
||||
|
||||
| 项 | 结果 |
|
||||
|
||||
Reference in new issue
Block a user