Repository navigation
feat(hq-ui): redesign the Giao việc dialog — one session, by role, or whole project - #41
Merged
Merged
Conversation
… 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]>
…e project Co-Authored-By: Claude Fable 5.1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
apps/hq-ui/lib/assign.tswithtests/assign-ui.test.ts;RoleIconresolved at module load.Checks
tsc --noEmit,eslint,vitest(assign-ui 9 tests + guide + roles) green locally./secon the diff: gitleaks clean; pnpm audit only the pre-existingbracesadvisory.🤖 Generated with Claude Code