feat: prefill agent-edit modal, Ctrl+Enter for all modals, improved README #1

Merged
luna merged 1 commits from feature/prefill-ctrlenter-readme into main 2026-07-19 22:43:54 +02:00
Collaborator

Changes

1. Prefill agent-edit modal

AgentFormModal now syncs its form fields to the current agent values whenever the modal opens (useEffect on open + agent). Previously, state initialised only on component mount, so reopening after switching between create and edit showed stale or empty values.

2. Ctrl+Enter submits all appropriate modals

Modal gains an optional onSubmit prop. When open, a keydown listener fires onSubmit on Ctrl+Enter (or Cmd+Enter). Wired up in AgentFormModal, DecisionModal, and both Settings modals (disable 2FA, delete account). Textarea newline behaviour is unaffected.

3. Substantially improved README

Expanded to cover: purpose and guarantees, full request lifecycle with state table, capabilities, limits, tech stack, repo layout, Docker Compose quick start, dev setup, testing, before-commit checklist, and all three agent integration paths (OpenClaw, generic MCP, REST).

4. TODO.md

Removed the three corresponding completed items.

Verification

  • UI lint: 0 errors
  • UI build: clean
  • Backend lint: 2 pre-existing warnings, 0 errors (no backend code changed)
## Changes ### 1. Prefill agent-edit modal AgentFormModal now syncs its form fields to the current agent values whenever the modal opens (useEffect on open + agent). Previously, state initialised only on component mount, so reopening after switching between create and edit showed stale or empty values. ### 2. Ctrl+Enter submits all appropriate modals Modal gains an optional onSubmit prop. When open, a keydown listener fires onSubmit on Ctrl+Enter (or Cmd+Enter). Wired up in AgentFormModal, DecisionModal, and both Settings modals (disable 2FA, delete account). Textarea newline behaviour is unaffected. ### 3. Substantially improved README Expanded to cover: purpose and guarantees, full request lifecycle with state table, capabilities, limits, tech stack, repo layout, Docker Compose quick start, dev setup, testing, before-commit checklist, and all three agent integration paths (OpenClaw, generic MCP, REST). ### 4. TODO.md Removed the three corresponding completed items. ## Verification - UI lint: 0 errors - UI build: clean - Backend lint: 2 pre-existing warnings, 0 errors (no backend code changed)
luna added 1 commit 2026-07-19 22:41:08 +02:00
feat: prefill agent-edit modal, Ctrl+Enter submits modals, improve README
Deploy / Build (pull_request) Successful in 29s
Deploy / Test & Lint (pull_request) Successful in 32s
Deploy / Build and Push Docker Image (pull_request) Has been skipped
dfa0c55e3c
- AgentFormModal: sync form state to current agent values when the modal
  opens (useEffect on open/agent), so edit always shows the agent's
  current name, description, website, icon URL, and max-pending value.
- Modal: add optional onSubmit prop; Ctrl+Enter (or ⌘+Enter) fires it,
  covering AgentFormModal, DecisionModal, and both Settings modals
  (disable 2FA, delete account) without breaking textarea newlines or
  text-input behaviour.
- README: substantially expanded — purpose, capabilities, architecture,
  quick-start with Docker Compose, dev setup, testing, agent integration
  (OpenClaw, generic MCP, REST), and privacy notes.
- TODO.md: remove three completed items (prefill modal, Ctrl+Enter, human
  readme).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
space approved these changes 2026-07-19 22:43:27 +02:00
luna merged commit 313ace0684 into main 2026-07-19 22:43:54 +02: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: space/patchpass#1