Skip to content

feat(hq-ui): redesign the Giao việc dialog — one session, by role, or whole project - #41

Merged
8syncdev merged 2 commits into
mainfrom
feat/assign-dialog-ux
Oct 15, 2026
Merged

8syncdev merged 2 commits into
mainfrom
feat/assign-dialog-ux

Conversation

@8syncdev

Copy link
Copy Markdown
Contributor

Why

Owner (2026-10-15): the "Giao việc" dialog was hard to use — one dropdown mixed roles and sessions, so it was unclear whether a task went to one session, to a role, or to every session of a repo.

What

  • Three explicit modes: Một phiên (live sessions grouped by project, with status dot, role, terminal/inbox delivery), Theo vai trò (role cards with model + how many are running; project picker when a new session must start) and Cả dự án (every live session of one project or of all projects; one task row each, posted one after another so a 409 names the session).
  • A summary line above the buttons says exactly where the task will go.
  • P0–P3 segmented control, "Khi nào" beside it, R&D preset as a text link, hint when a role session exists only outside HQ.
  • Pure rules in apps/hq-ui/lib/assign.ts with tests/assign-ui.test.ts; RoleIcon resolved at module load.
  • Guide text + CHANGELOG Unreleased.

Checks

  • tsc --noEmit, eslint, vitest (assign-ui 9 tests + guide + roles) green locally.
  • Screenshots from a headless browser against a seeded preview (dark theme, desktop + phone width). Not verified: Windows/macOS browsers.
  • /sec on the diff: gitleaks clean; pnpm audit only the pre-existing braces advisory.

🤖 Generated with Claude Code

8syncdev and others added 2 commits October 15, 2026 15:38
… whole project

Owner (2026-10-15): "khó dùng giao cho all session repo hay sao giao cho session nào
agent role nào ui ux khó hiểu khó sài chưa đẹp". One dropdown mixed roles and
sessions, so it was unclear whether a task went to one session, to a role, or to
every session of a repo.

- Three explicit modes: Một phiên (live sessions grouped by project with status,
  role, terminal/inbox), Theo vai trò (role cards with model + running count,
  project picker when a new session must start) and Cả dự án (every live session
  of one project or of all, one task row each, sent one after another).
- A summary line says exactly where the task will go before the button is pressed.
- P0–P3 segmented control, "Khi nào" beside it, R&D preset as a text link,
  hint when a role session exists only outside HQ.
- Pure rules in lib/assign.ts (groupTargets, roleTargets, outsideRole,
  projectTargets, assignSummary) with tests/assign-ui.test.ts; RoleIcon resolved
  at module load (react-hooks/static-components).

Checked: tsc, eslint, vitest (assign-ui 9, guide, roles); screenshots from a
headless browser against a seeded preview at desktop and phone width in dark
theme. Not verified: Windows/macOS browsers.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@8syncdev
8syncdev merged commit b352bf5 into main Oct 15, 2026
6 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.

1 participant