dograh/ui/src
spuice f2cb6499e1
feat: inline rename of workflow on the editor page (#273)
* feat: inline rename of workflow on the editor page

Add a pencil icon next to the workflow name in
WorkflowEditorHeader.tsx. Clicking it swaps the <h1> for an inline
<Input> that saves on Enter or Blur, cancels on Esc, validates
empty/whitespace input, skips no-op renames, rolls back on API
error, and guards against double-submit. Reuses
saveWorkflowConfigurations (the existing rename path used by the
Settings page) — no parallel API call.

Closes https://github.com/dograh-hq/dograh/issues/252.

* refactor: collapse rename state and remove silent config fallback

- WorkflowEditorHeader: replace (isEditingName, nameDraft, nameError,
  isRenaming) with a single discriminated-union state. Error and saving
  were mutually exclusive and both meaningless in display mode; the
  union makes the bad combinations unrepresentable and structurally
  prevents the Enter -> disable-input -> blur -> re-fire race that the
  original code only guarded against by convention.

- RenderWorkflow: drop the `?? DEFAULT_WORKFLOW_CONFIGURATIONS` fallback
  in renameWorkflow. In normal flow the store is initialized before the
  header renders, but if it ever weren't, the fallback would silently
  overwrite the server-side config with defaults. Throw instead so the
  header's existing catch surfaces a toast.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Abhishek Kumar <abhishek@a6k.me>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 18:54:12 +05:30
..
app feat: inline rename of workflow on the editor page (#273) 2026-05-12 18:54:12 +05:30
client debug: add SentryErrorBoundary 2026-05-12 17:48:01 +05:30
components debug: add SentryErrorBoundary 2026-05-12 17:48:01 +05:30
constants chore: rename deploy/embed widget section to add to website 2026-05-07 14:56:45 +05:30
context feat: enable FORCE_TURN_RELAY to diagnose turn connectivity for local deployment setups (#272) 2026-05-11 17:13:01 +05:30
hooks chore: add update guide 2026-04-21 08:49:48 +05:30
lib fix: number pool initialization in multi telephony setup 2026-05-08 14:48:53 +05:30
types chore: bump pipecat 2026-05-05 15:59:12 +05:30
instrumentation-client.ts debug: add SentryErrorBoundary 2026-05-12 17:48:01 +05:30
instrumentation.ts feat: refactor node spec and add mcp tools (#244) 2026-04-21 07:56:16 +05:30
middleware.ts feat: add authentication for OSS (#167) 2026-02-20 18:21:24 +05:30