Add responsive breakpoints / mobile layout to dsh-web-frontend #5482
AlexMollard
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This is largely a +1 on #4429 (and #1721, #1293, #1053, #5058) — the mobile/responsive ask is clearly already on the table. Posting anyway because it adds two things I haven't seen together in those threads: a verified workaround for safe phone access today, and one more piece of concrete evidence for the responsive-layout request.
(中文 TL;DR 见下方)
1. Remote access from a phone already works today — no
--host 0.0.0.0neededThe web UI ships as a proper installable PWA (
manifest.webmanifest,display: "fullscreen", SVG icon), and paired with Tailscale it makes a genuinely great remote-control story:Install to home screen on iOS/Android → launches fullscreen with its own icon, no browser chrome.
Reach it from anywhere without exposing anything to the LAN or internet: the webserver trusts authorities via
trustedHosts, so pairingtailscale servewith a profile patch layer means the harness on my PC is reachable from my phone anywhere — valid HTTPS, zero router ports opened:tailscale serve --bg 3080 # proxies https://<node>.<tailnet>.ts.net -> 127.0.0.1:3080Being able to drive the agent on my PC from my phone over the tailnet is fantastic. This also sidesteps the
--host 0.0.0.0ask in 还没法--host 0.0.0.0启动啊 #76 entirely — nothing needs to listen on the LAN, and nobody can even see the port without being authenticated to your tailnet.2. The PWA installs fine — the UI inside it is desktop-only
The PWA shell is there, but the UI itself has no mobile treatment. Concretely, in the shipped
dsh-web-frontenddist:@mediarules, bothprefers-reduced-motion— zero responsive breakpoints.So on a phone the app installs and connects fine, but actually using it (reading threads, hitting the composer, navigating panels) is rough.
The ask
Responsive treatment for the shipped web frontend, per #4429 / #1721 — the modular
dsh-client-ui-*package structure seems well suited to it:The PWA plumbing already exists, so this feels like a natural iteration on an existing asset rather than a new app — and it would complete the remote story that #75, #76, and #91 are circling: driving your harness from anywhere, including from a phone, with no extra software beyond a browser.
中文摘要
这主要是对 #4429(以及 #1721、#1293、#1053、#5058)的补充+1。带两个增量:
1. 手机远程访问今天就能安全实现,不需要
--host 0.0.0.0: Web UI 自带 PWA manifest,加到主屏幕即可全屏启动;配合tailscale serve --bg 3080和~/.dsh/profiles/web/cordis.patch.yml里给web-runtime行配置trustedHosts(加上你的 ts.net 域名),手机在任何地方都能通过 HTTPS 访问 PC 上的 harness——不暴露局域网端口,不进路由器。配置片段见上方英文部分。2. UI 本身完全没有移动端适配: 打包的 CSS 里只有两条
@media(都是prefers-reduced-motion),没有任何响应式断点;桌面密度的面板布局、小点击目标、依赖 hover 的交互,在手机上很不好用。希望按 #4429 的方向给 web 前端做响应式:窄屏单栏/抽屉式布局、触摸友好的点击目标、软键盘弹出时输入框的 safe-area 处理。PWA 基础已经有了,补上这块就能真正实现"手机上远程指挥 PC 上的 agent"。
All reactions