Skip to content

Commit f08f6ae

Browse files
authored
Merge pull request #2 from M-Talha-Atif/talha/desktop-redesign
Redesign the desktop UI without changing what it does
2 parents a6d7b2e + 44f9f55 commit f08f6ae

22 files changed

Lines changed: 2567 additions & 11550 deletions

‎design/current-functionality.md‎

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# What works today, and what is demo content
2+
3+
Written for the November 2026 redesign. The redesign changes how screens look. It does not change what the app sends
4+
to the daemon or the cloud server, or what it saves. In the app, everything in the "Demo" column carries a purple
5+
dashed **Demo** label (or "Not wired yet").
6+
7+
## Screen by screen
8+
9+
| Screen | Works today | Demo or not wired |
10+
| --- | --- | --- |
11+
| **Sign in / Create account** | Calls the cloud server (`/auth/login`, `/auth/signup`, `/auth/social`, `/health`). Saves the device token. If the server is unreachable it signs you in on this laptop only | GitHub and Google do **not** do a real OAuth login: they send a placeholder name and email. "Forgot password" does nothing |
12+
| **Top bar and sidebar** | All pages, live task lists, back and forward, hide sidebar (Ctrl+B), daemon status, notifications from real tasks, theme switch (not remembered after restart) | |
13+
| **Command palette** (Ctrl+K) and Ctrl+N | Navigation, new task, theme switch | |
14+
| **Home** | Waiting and running tasks, recent runs, spend, your projects with approved counts, run a task on a project (fills in the folder), search, filters, grid or list, stars (not saved), link to the review queue | Sample projects when you have none. The five-step bar says "Estimated" unless the daemon sent step events |
15+
| **New task** | Sends the `start` command with folder, task text, agent, model, and a model per step when that is on | The model names in the lists are fixed |
16+
| **All tasks** | Search, All / Active / Review filters, project filter, open a task, delete finished tasks | |
17+
| **One task** | **Approve, Reject, Stop, Resume, Delete**, Try again on a failed task, failure reason, cost, time, model, live events in Logs and Timeline, Copy logs, **the real diff when the daemon stores one** | "Message the agent". **Sample code when there is no diff**. Sample comments. Commit message and file ticks (not sent). Split view and log level filter. Reports tab, including the milestone wording. Sample log and timeline lines when a task has no events |
18+
| **Review queue** | Lists waiting tasks, **Approve & commit, Reject**, open the task | |
19+
| **Projects** | Your projects, filter, a page per project with runs, counts and spend, new task on a project. "Add project" only opens New task with that folder | Sample projects when you have none. Project health. Branch and remote. Workflow, Memory and Settings tabs |
20+
| **Insights** | Task count, approval rate, spend, projects, models used, 14-day chart, recent tasks | The 7/30/90 day buttons do not filter |
21+
| **Settings → Account** | Sign in, sign up, sign out, save display name (on this laptop) | Password change, device identifier, cloud sync |
22+
| **Settings → General** | Dark and light theme | Density, notification choices, workspace folder and port |
23+
| **Settings → other pages** | The three shortcuts listed as working | AI & model routing, planned shortcuts |
24+
| **Terminal strip** | Connection status and the counts it repeats | Every reply is canned text. It is not a shell |
25+
| **Workflows, Models & Routing, Repository Memory, Scheduler & Queue, Environments, Runtime & Logs, Integrations, Security** | Nothing. Local clicks and edits only | All of it. Each is tagged **Demo** in the sidebar |
26+
27+
## How to try it
28+
29+
1. In `codehands-desktop`, start the daemon with the demo runner: `$env:CODEHANDS_RUNNER = 'fake'; node local-daemon-bridge.mjs`
30+
2. In a second terminal: `pnpm dev`, then open http://localhost:1420 (the desktop window needs Rust: `pnpm tauri dev`).
31+
3. In New task, choose **Claude Code CLI**, enter the folder of a throwaway git repository, describe a task, and start it.
32+
33+
The demo runner replays a fixed script. It does not read your task, edit files, create a branch or commit.
34+
35+
## How this was checked
36+
37+
- **Behaviour comparison, before and after.** A script ran the app in a headless browser with a stand-in daemon and a
38+
stand-in cloud server, and recorded everything the app sent or saved. 41 scenarios, 49 recorded messages (daemon
39+
commands, HTTP requests, saved settings, copied text): identical to `main`. 57 on-screen checks: unchanged. The
40+
script's way of moving around was updated for the new layout; what it checks was not. Its reconnect check now waits
41+
for the reconnect instead of a fixed 2.6 s.
42+
- **Real local daemon.** With `local-daemon-bridge.mjs`, the backend watcher (demo runner), a throwaway database and
43+
a throwaway git repository: start and approve, start and reject, delete, stop, resume. 10 of 10 steps passed.
44+
- **Screens.** Captured at 1440×900 and at the 1024×700 minimum, checked for sideways overflow and console errors.
45+
The sample-code warning was checked both ways: shown without a diff, hidden with a real one.
46+
- **Try again.** With a real daemon (demo runner, throwaway database): a task failed on the default agent, Try again on
47+
the Logs tab filled in New task, nothing was sent until Start, and the second try reached waiting for approval. With
48+
the stand-in daemon: a failed Claude Code task keeps its agent and model. 15 of 15 checks, no console errors.
49+
- Not covered: the packaged Tauri window, a real Claude Code run, a real cloud server, and use by another person.
50+
- The test script is not part of this repository.
51+
52+
## Changed on purpose
53+
54+
- All 14 pages stay in the sidebar, in the old three groups. Overview is now "Home", Tasks "All tasks", Usage &
55+
Analytics "Insights". The top bar spans the window; live task lists sit under the pages.
56+
- Duplicate controls removed: the top bar's second "New Task" button, the sidebar search box, the second set of
57+
Approve, Reject and Stop buttons, and a sidebar user menu that nothing could open.
58+
- All tasks is its own page, and a task opens full width. The task list's resize, collapse and "Maximize" are gone.
59+
"Execution" is "Summary" and "Artifacts" is "Reports". Sample comments start closed.
60+
- Projects shows cards first, then one page per project.
61+
- Settings: General now holds theme and notifications.
62+
- Home no longer has the fixed "AI Model Orchestration" box. Models & Routing covers that.
63+
- Cards for real projects no longer show made-up values ("5 phases", "GSD", "main", "Just now"). A real project with
64+
no runs shows 0 tasks, not 8. Project pages show real counts and spend; the old made-up numbers are folded under
65+
"Project health (Demo)".
66+
- Review no longer says "Tests passing, staged": nothing had checked that. In the five-step bar, "Test" turns green
67+
only when the daemon reports a test step.
68+
- New warnings, which change no behaviour: sample code is flagged wherever you can approve; New task says which agents
69+
the daemon cannot run; sign-in says the password is not checked while the server is down.
70+
- Not built from the design: the review verdict, grouped changes, plan approval and line comments. Each needs backend
71+
work first.
72+
- New: **Try again** on a failed task. It opens New task with the same text and folder and creates a new task when you
73+
click Start. If the daemon cannot run the old agent, Claude Code is selected and the form says so. The failed task
74+
stays in history. Per-step model choices are not carried over, because the daemon does not send them back.
75+
- Also removed, none of which did anything: the accent colour picker, the Save buttons on General and Notifications,
76+
the zoom buttons and rules note on Workflows, the cost comparison, routing health panel and side menu on Models &
77+
Routing, and the project count strip on Home (it showed project, pending task and "orchestrated project" counts).
78+
- Build: 30 TypeScript errors on `main` are fixed with type-only changes (`src/types/auth.ts`).
79+
80+
## Problems found, not fixed here
81+
82+
These change behaviour, so each deserves its own pull request.
83+
84+
1. **The daemon the app starts never stores a diff** (`daemon/src/watcher.ts` in codehands-backend; only the
85+
`fake.ts` command-line script does). So in the running app the Changes tab shows sample code, next to a real
86+
Approve button.
87+
2. `parseDiffToFiles` splits a standard `git diff` into two entries for each changed file. The first has no code.
88+
3. New task selects "CodeHands Native Orchestrator" by default, which the daemon cannot run.
89+
4. With the cloud server down, sign-in accepts any password.
90+
5. Insights shows every Claude model as "Claude 3.5 Sonnet".
91+
6. The desktop saves the device token in a plain file under `~/.codehands`, not in the system keychain.

0 commit comments

Comments
 (0)