Skip to content

feat(ui): guess names for new pipelines, workflows, templates and API tokens - #342

Merged
adeelahmad merged 11 commits into
mainfrom
claude/project-thread-hdnrkt
Oct 14, 2026
Merged

adeelahmad merged 11 commits into
mainfrom
claude/project-thread-hdnrkt

Conversation

@adeelahmad

@adeelahmad adeelahmad commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Description

Before: making a workflow, template or API token meant typing a name first (6 to 13 keys), and the Create button stayed off until you did. A new pipeline was called "Pipeline N" (#336). Pipelines, templates and tokens couldn't be renamed afterwards, and workflows could only be renamed through the API.

After: the name field shows a guess and Create uses it unless you type something else, as routines already did:

A guess that's taken gets a number ("Prompt template 2"). A pencil next to the name on the pipeline, workflow and template pages, and next to each token in the list, renames it in place (Enter saves, Escape keeps the old name).

The new-token form now also opens once the token list comes back empty. Before, the account menu only added ?new=1 when its own token query had already loaded, so a quick click landed on the empty list and needed an extra click.

The clicks survey's run.sh now waits for its API and web app to stop before it returns, and the survey waits for the web installer. Before, the API could still answer for a moment after run.sh returned. CI runs the phone survey straight after the computer's, so the phone run could reach the old API, land on Sign in (that API already had an admin) and fail every journey. That happened once on this PR.

Motivation and Context

Adeel asked to cut clicks, keys and taps; the survey (clicks-survey/latest.md) listed "Create a pipeline, routine, workflow, template, token: 10 to 14 keys each, target 0 keys".

How: uniqueName() in lib/format.ts plus a suggested…Name() per model file, used as the field's placeholder and as the fallback on Create (the pattern suggestedName() in routine-model.ts already uses). A shared RenameTitle component handles the in-place rename. New PATCH /pipelines/{id}, PATCH /templates/{id} (name, description) and PATCH /tokens/{id} (name, your own tokens only, audited as token.rename) match the existing PATCH /workflows/{id}.

Measured (clicks survey)

Journey Computer before → after Phone before → after
Make an API token 3 clicks · 6 keys → 3 · 0 3 taps · 6 keys → 3 · 0
Make a workflow 4 · 13 → 4 · 0 5 · 13 → 5 · 0
Make a prompt template 4 · 10 → 4 · 0 5 · 10 → 5 · 0
Make a pipeline, a routine 2 · 1 (Enter, from #336), unchanged 3 · 1, unchanged

Both baselines are regenerated here from ci/clicks/run.sh and ci/clicks/run.sh --device phone on this branch, merged with main: computer 337 → 308, phone 384 → 355. Every other journey is the same; on a phone, switching namespace still can't be done, as in main's baseline.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change; ! in the title)

Checklist:

  • The title is a Conventional Commit.
  • My code follows the code style of this project (ruff, mypy, eslint, tsc and prettier pass locally).
  • I added or updated tests: API tests for the three renames, less-typing.test.ts for the guesses, rename-title.test.tsx for the in-place rename, and tokens-page.test.tsx for the token form.
  • My change requires documentation updates, and I have updated docs/ accordingly (processing.md, api.md, authentication.md).
  • Users need more than the title to understand it, so I wrote it under ## Unreleased in CHANGELOG.md.

Done questions (AGENTS.md)

  • Goal: 0 name keys for all five, on a computer and on a phone; merges on green CI.
  • Agents: agents already name things through the API; renaming pipelines, templates and tokens is new in the API (PATCH), alongside workflows.
  • Zero setup: nothing to set up.
  • Fewest clicks and keystrokes: see the table; renaming is one click, then Enter.
  • Configurable: n/a, no new settings.
  • Light: n/a, no new dependencies or services.
  • Private and secure: the renames use the same access as before (admins for pipelines and templates, the owner for tokens). There is no new kind of surface, so the threat model is unchanged.
  • Cost: n/a, no model calls; the guesses are computed in the browser.
  • User decides: nothing is created without Create (or Enter), the guess is shown before it's used, and existing names and defaults are unchanged.
  • Upgrades: n/a, no change to stored data.
  • Honest: docs say what is built; the counts come from the survey run.
  • Tests, docs and generated files updated (make openapi).
  • Open standards; no new dependencies.
  • Result reported with evidence. Refine later: the server could guess a name when the API is called without one; new workflows and templates could submit on Enter from the name field, as pipelines do.
  • Reused existing code: the routine's placeholder-and-fallback pattern, the passkey row's rename pattern, and PATCH /workflows as the model for the new endpoints.

🤖 Generated with Claude Code

https://claude.ai/code/session_014pKRz6HkdQ7hTqEbpnyhYo

… tokens

A new pipeline, workflow, template or API token no longer needs a name
typed: the field shows a guess (from the pipeline's steps, what the
workflow runs on, the template's kind, the token's scope), numbered when
it's taken, and Create uses it unless something else is typed, as
routines already did. The pencil next to the name renames them later;
PATCH /pipelines/{id}, /templates/{id} and /tokens/{id} are new for that.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014pKRz6HkdQ7hTqEbpnyhYo
The journeys take the guessed name instead of typing one: pipeline -14
keys, routine -12, API token -6 (computer survey 229 from 261).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014pKRz6HkdQ7hTqEbpnyhYo
@adeelahmad adeelahmad self-assigned this Oct 10, 2026
…r steps

Takes #336's Enter on a new pipeline's name and its pipeline and routine
journeys, keeps the step-based guess instead of "Pipeline N", and opens
the new-token form once the token list comes back empty, so the account
menu's ?new=1 no longer races its own query. Computer survey 229 from 235.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014pKRz6HkdQ7hTqEbpnyhYo
Bring in #325's phone survey and drop the name typing from the workflow and
template journeys, now that Lens names them. Both baselines are regenerated
from ci/clicks/run.sh (computer and phone): -29 keys each.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014pKRz6HkdQ7hTqEbpnyhYo
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014pKRz6HkdQ7hTqEbpnyhYo
run.sh killed the API and the web app on exit without waiting, so the API
could still answer for a moment after it returned. CI runs the phone survey
straight after the computer's: its readiness check reached the old API, the
installer's Open Lens landed on Sign in because that API already had an
admin, and every phone journey failed. run.sh now waits for each server to
exit (forced after 30 seconds), and the survey waits for the web installer.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014pKRz6HkdQ7hTqEbpnyhYo
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014pKRz6HkdQ7hTqEbpnyhYo
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014pKRz6HkdQ7hTqEbpnyhYo
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014pKRz6HkdQ7hTqEbpnyhYo
@adeelahmad
adeelahmad merged commit 89f77e4 into main Oct 14, 2026
10 checks passed
@adeelahmad
adeelahmad deleted the claude/project-thread-hdnrkt branch October 14, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants