mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
* 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> |
||
|---|---|---|
| .. | ||
| public | ||
| scripts | ||
| src | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| AGENTS.md | ||
| CLAUDE.md | ||
| components.json | ||
| Dockerfile | ||
| eslint.config.mjs | ||
| next.config.ts | ||
| openapi-ts.config.ts | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.mjs | ||
| README.md | ||
| sentry.edge.config.ts | ||
| sentry.server.config.ts | ||
| tsconfig.json | ||
This is a Next.js project bootstrapped with create-next-app.
Getting Started
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Login Flow
- The redirection happens server side using
ui/src/stack.tsxafter the user has logged in.
Sentry and PostHog
- Initialized in
ui/src/instrumentation-client.ts