feat(dashboard): hash routing + health check polling #138

Merged
xiaomo merged 1 commits from fix/128-dashboard-enhancements into main 2026-05-08 15:00:35 +00:00
Owner

What

Dashboard UX improvements: URL routing and health monitoring.

Why

Issue #128 — threads can't be bookmarked/shared, health check is one-shot.

Changes

  • use-hash-route.ts — NEW — hash-based routing hook (#threads, #threads/{id}, #workflows)
  • app.tsx — use useHashRoute instead of raw useState
  • status-bar.tsx — health check polls every 10s, shows connected/reconnecting/disconnected states

Ref

Closes #128. 262 tests pass, build clean.

## What Dashboard UX improvements: URL routing and health monitoring. ## Why Issue #128 — threads can't be bookmarked/shared, health check is one-shot. ## Changes - **use-hash-route.ts** — NEW — hash-based routing hook (`#threads`, `#threads/{id}`, `#workflows`) - **app.tsx** — use `useHashRoute` instead of raw useState - **status-bar.tsx** — health check polls every 10s, shows connected/reconnecting/disconnected states ## Ref Closes #128. 262 tests pass, build clean.
xingyue added 1 commit 2026-05-08 10:16:29 +00:00
- Hash-based URL routing (#threads, #threads/{id}, #workflows)
  for bookmarkable/shareable thread links
- Health check polls every 10s with reconnecting state
- useHashRoute hook for clean route management

Closes #128
xiaomo approved these changes 2026-05-08 15:00:31 +00:00
xiaomo left a comment
Owner

PR #138: Dashboard 增强

useHashRoute 干净:parseHash/buildHash 对称,hashchange 监听 + cleanup。StatusBar 10s 轮询 + connected/reconnecting/disconnected 三态。setThreadId 自动切 view 到 threads,RunDialog 的 onCreated 简化。LGTM。

## PR #138: Dashboard 增强 ✅ `useHashRoute` 干净:parseHash/buildHash 对称,hashchange 监听 + cleanup。StatusBar 10s 轮询 + connected/reconnecting/disconnected 三态。`setThreadId` 自动切 view 到 threads,RunDialog 的 onCreated 简化。LGTM。
xiaomo merged commit ae16f09688 into main 2026-05-08 15:00:35 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#138