Inject an issue reference into the terminal on click (#31) #34

Merged
pedromcaraujo merged 1 commit from panel-inject-issue into main 2026-08-26 15:41:50 +01:00

Step 3 of #31. Turns an issue into a prompt for the running agent — the Forge-specific payoff of hosting issues in-app.

What's here (web/index.html only)

  • Click an issue's number → types look at issue #N: <title> into the active channel's terminal via the existing /type sidecar (tmux send-keys -l), the same path the file-drop and compose box use. No Enter — the line lands at the prompt so you can extend it before sending, matching how a dropped file's path is injected. stopPropagation keeps the click off the row's expand handler, and the number briefly flashes to acknowledge.
  • Expanded detail gets an accessible "Send to terminal" button beside the Open-in-Forgejo link — same action, reachable by keyboard and more discoverable. The number also handles Enter/Space for keyboard users.

Verification

  • JS parse check passes.
  • No runtime test on the live box by design: the injection is the exact /type POST shape ({channel, text, enter:false}) the compose box and file-drop already use in production, matching TypeReq in tmux_ctl.py.

Note

Stacked on main (steps 1 + 2 are already merged, #32 + #33). Refs #31; quick-add (step 4) and docs/mobile polish (step 5) remain.

Step 3 of #31. Turns an issue into a prompt for the running agent — the Forge-specific payoff of hosting issues in-app. ## What's here (`web/index.html` only) - **Click an issue's number** → types `look at issue #N: <title>` into the active channel's terminal via the existing `/type` sidecar (tmux `send-keys -l`), the same path the file-drop and compose box use. **No Enter** — the line lands at the prompt so you can extend it before sending, matching how a dropped file's path is injected. `stopPropagation` keeps the click off the row's expand handler, and the number briefly flashes to acknowledge. - **Expanded detail** gets an accessible **"Send to terminal"** button beside the Open-in-Forgejo link — same action, reachable by keyboard and more discoverable. The number also handles Enter/Space for keyboard users. ## Verification - JS parse check passes. - No runtime test on the live box by design: the injection is the exact `/type` POST shape (`{channel, text, enter:false}`) the compose box and file-drop already use in production, matching `TypeReq` in `tmux_ctl.py`. ## Note Stacked on `main` (steps 1 + 2 are already merged, #32 + #33). Refs #31; quick-add (step 4) and docs/mobile polish (step 5) remain.
Inject an issue reference into the terminal on click (#31)
All checks were successful
CI / check (pull_request) Successful in 6s
750d2573fd
Step 3 of the side panel: turn an issue into a prompt for the running agent.

- Clicking an issue's number types `look at issue #N: <title>` into the active
  channel's terminal via the existing /type sidecar (send-keys -l), the same
  path the file-drop uses. No Enter — the line lands at the prompt so it can be
  extended before sending; the number flashes to acknowledge.
- The expanded detail gets an accessible "Send to terminal" button beside the
  Open-in-Forgejo link, doing the same thing for keyboard/discoverability.

Quick-add (step 4) and docs (step 5) follow.
Refs #31.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pedromcaraujo/forge!34
No description provided.