fix: count only OpenChamber projects as known work areas
0.7.3 still showed the pitchfork/Downloads/OpenCode ports because app.projects also carries every OpenCode project. The web filters against the OpenChamber project list, so the phone now uses only rows with a settings record (metaId) plus the current directory; directory-less announced servers stay visible. The list now matches the web's two entries (8080 and 9090). Version 0.7.4+704.
This commit is contained in:
1 parent
4bd9256ef8
commit
cecf5517a5
4 files changed
+16
-3
No files matched your search
@@ -5,6 +5,15 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## 0.7.4 已知项目只算 OpenChamber 的项目列表(分支 `flutter`)
|
||||||
|
|
||||||
|
| 项 | 结果 |
|
||||||
|
| --- | --- |
|
||||||
|
| 列表 | 0.7.3 用 `app.projects` 做过滤,但这个列表同时包含 OpenCode 发现的所有目录(`~/.config/pitchfork`、`~/Downloads` 等),所以那些端口仍被当成「已知项目」显示。现在只把带 OpenChamber 设置记录的项目(`metaId` 非空)加上当前项目当作已知工作区,和网页端的项目列表一致;没有目录的 announced 端口(9090)仍显示。手机列表恢复为网页端看到的 8080、9090 |
|
||||||
|
| 版本 | **0.7.4(code 704)** |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## 0.7.3 开发服务器列表与网页端同一套过滤(分支 `flutter`)
|
## 0.7.3 开发服务器列表与网页端同一套过滤(分支 `flutter`)
|
||||||
|
|
||||||
| 项 | 结果 |
|
| 项 | 结果 |
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ Android first. This branch (`flutter`) is a framework evaluation: the same
|
|||||||
feature set as the earlier Asuka/Go and MyGo attempts, reimplemented in
|
feature set as the earlier Asuka/Go and MyGo attempts, reimplemented in
|
||||||
Flutter to compare mobile UI maturity.
|
Flutter to compare mobile UI maturity.
|
||||||
|
|
||||||
Status: 0.7.3 — servers (passwordless / password login, HTTP/HTTPS and
|
Status: 0.7.4 — servers (passwordless / password login, HTTP/HTTPS and
|
||||||
SOCKS5/socks5h proxy, self-signed certificates and pinning, or a pairing link
|
SOCKS5/socks5h proxy, self-signed certificates and pinning, or a pairing link
|
||||||
over the OpenChamber private relay with end-to-end encryption; the pairing
|
over the OpenChamber private relay with end-to-end encryption; the pairing
|
||||||
link is pasted or scanned with the camera), session list with search and live
|
link is pasted or scanned with the camera), session list with search and live
|
||||||
|
|||||||
@@ -188,8 +188,12 @@ class _BrowserPanelState extends State<BrowserPanel> {
|
|||||||
// ports" too.
|
// ports" too.
|
||||||
final known = <String>[
|
final known = <String>[
|
||||||
if (widget.directory.isNotEmpty) widget.directory,
|
if (widget.directory.isNotEmpty) widget.directory,
|
||||||
|
// Only OpenChamber's own project list counts as work, as on the web;
|
||||||
|
// an OpenCode project that happens to exist under ~/Downloads or a
|
||||||
|
// tool's config directory is still outside the user's projects.
|
||||||
for (final project in widget.app.projects)
|
for (final project in widget.app.projects)
|
||||||
if (project.canonical.isNotEmpty) project.canonical,
|
if (project.canonical.isNotEmpty && project.metaId.isNotEmpty)
|
||||||
|
project.canonical,
|
||||||
];
|
];
|
||||||
bool knownDirectory(String directory) {
|
bool knownDirectory(String directory) {
|
||||||
if (directory.isEmpty || known.isEmpty) return true;
|
if (directory.isEmpty || known.isEmpty) return true;
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@ name: openchamber
|
|||||||
description: "A lightweight OpenChamber client for phones."
|
description: "A lightweight OpenChamber client for phones."
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 0.7.3+703
|
version: 0.7.4+704
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.14.0
|
sdk: ^3.14.0
|
||||||
|
|||||||
Reference in new issue
Block a user