Skip to content

feat(dashboard,backend): native clipboard fallback and chat UI polish - #420

Merged
jubaoliang merged 2 commits into
developfrom
feature/dashboard-backend
Aug 25, 2026
Merged

feat(dashboard,backend): native clipboard fallback and chat UI polish#420
jubaoliang merged 2 commits into
developfrom
feature/dashboard-backend

Conversation

@jubaoliang

Copy link
Copy Markdown
Collaborator

Summary

Splits the original working-tree diff into two focused PRs (this is the dashboard + backend half; the FnOS packaging restructure is in a separate PR).

  • Replace the copy-to-clipboard dependency with a native clipboard helper (navigator.clipboard + execCommand fallback) in dashboard/src/utils/copyText.ts.
  • Chat UI polish: ChatInputActionsRow, MessageBubble, ScrollToBottomButton refinements and updated PWA service-worker registration tests.
  • Backend: mobile shell websocket hardening (api/routers/mobile/shell_ws.py), browser setup (infra/browser/setup.py), and connector CLI install (infra/connectors/gateway/cli_install.py) with accompanying unit tests.

Notes

  • The first commit (fix(tests): align subagent catalog division count with bundled library) is included as the base of this branch to keep develop green — the bundled subagent catalog now loads 19 divisions (272 agents), which two pre-existing tests still asserted as 16. The same fix base is carried by the companion FnOS PR.
  • Pre-commit hook (make all + dashboard build) passes on both commits.

Test plan

  • uv run pytest -m "not live" and the dashboard npm run build run green via the pre-commit hook.
  • uv run pytest tests/unit/browser tests/unit/connectors -q for the backend changes.
  • Dashboard: cd dashboard && npx tsc --noEmit.

The bundled subagent catalog now loads 19 divisions (272 agents), but two
tests still hard-coded an expected count of 16. Update the assertions so the
pre-commit suite is green.
Replace the copy-to-clipboard dependency in the dashboard with a native
navigator.clipboard + execCommand fallback (copyText), and refine the chat
UI components (ChatInputActionsRow, MessageBubble, ScrollToBottomButton).

Backend: adjust mobile shell_ws, browser setup, and connector cli_install,
with accompanying unit tests.
@jubaoliang
jubaoliang merged commit 8711b7d into develop Aug 25, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants