Commit Graph
6 Commits
Author SHA1 Message Date
blumia cecf5517a5 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.
2026-12-04 15:09:52 +08:00
blumia 4bd9256ef8 fix: match the web's dev-server filtering on the phone
The web's "running dev servers" list shows ports that belong to a known
project (the current one included) or arrive without a directory; ports
started outside every project sit behind "show hidden ports". 0.7.2 listed
every port that answered with a page, which showed more servers on the
phone than in the web. The phone now applies the same known-project filter,
so the telegram server on 8080 and the directory-less 9090 both appear.

Version 0.7.3+703.
2026-12-04 14:32:48 +08:00
blumia b372bce63f fix: list every discovered dev server on the phone, like the web
The web client's "running dev servers" list is machine-wide. The phone
filtered it to the current project's directory, which hid servers from
other checkouts (for example the telegram-antispam-bot server on 8080).
The empty state now shows the same set of ports that answered with a web
page, regardless of their project, and still hides the non-web ports the
web client puts behind "show hidden ports".

Version 0.7.2+702.
2026-12-04 13:43:42 +08:00
blumia 695d27cdd7 feat: preview the host's dev servers through the dev tunnel
- loopback dev-server URLs are no longer opened on the phone's network: the
  panel binds a local 127.0.0.1 TCP listener and pipes each connection over
  an authenticated WebSocket to the host's /api/dev-tunnel, which dials its
  own loopback port; the WebView keeps the original address in the bar while
  the page, absolute URLs, cookies and HMR sockets use the tunneled origin
- the empty state lists /api/dev-servers results for the project (only ports
  that answered with a web page), with title, URL and command; tapping one
  opens it through the tunnel
- relay transports mint oc_url_token themselves; a direct connection mints
  and caches /auth/url-token and also sends the bearer
- a new loopback port opened from a tunnelled page gets its own tunnel
- version 0.7.1+701; tests cover the URL mapping and tunnel helpers
2026-12-04 12:21:09 +08:00
blumia 318276d3b9 feat: browser navigation moves into a menu, and a note on the network
- back, forward, open in the system browser and history now live in the
  address bar's three-dot menu; history is a submenu (last 20 URLs, or a
  disabled "no history" row), leaving the URL field wide enough on a phone
- the browser runs on the phone's network: localhost is the phone, not the
  OpenChamber host; the empty state says so and points at the host's LAN
  address for server-side dev servers
- version 0.7.0+700
2026-12-04 09:29:02 +08:00
blumia ce944751b4 feat: a browser page in the right sidebar, and icon tabs
- the right sidebar gains a Browser tab: address bar (back/forward, URL,
  go, stop/reload, open in the system browser), history, quick links for
  localhost:3000/5173/8080, and an embedded WebView on Android/iOS with an
  error bar and retry; desktop shows a mobile-only hint
- Android allows cleartext traffic so local dev servers over HTTP load in
  the WebView
- the tab row is now icons with tooltips (Files, Project knowledge,
  Terminal, Browser), so four tabs fit a phone without truncated labels;
  the tabs are kept alive offstage, so switching away and back keeps the
  browser page and terminal state
- webview_flutter 4.14.1; version 0.6.7+607; tests cover the tab icons and
  the desktop fallback
2026-12-04 02:02:19 +08:00