Backend messages and field descriptions that reach the UI lose their em-dashes

Per the Microcopy rule: size and duration errors, the flavor errors, run
parameter errors, the Resources field descriptions, 401/409/400 details,
secret errors, the websocket node description and its on_connect setting.
The generated client follows.

Claude-Session: https://claude.ai/code/session_01SSi5AvZ7pFmySK8zy3NPMh
This commit is contained in:
2026-10-27 17:52:55 +01:00
parent e487588710
commit bcc9cb365d
12 changed files with 39 additions and 39 deletions
+1 -1
View File
@@ -527,7 +527,7 @@ def get_current_user(request: Request, session: SessionDep, token: TokenDep) ->
if user is None or not user.is_active:
raise HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="This session is no longer valid — please log in again",
detail="This session is no longer valid. Please log in again",
)
return user
+1 -1
View File
@@ -182,7 +182,7 @@ async def discard_dashboard_draft(name: str, store: DashboardStoreDep) -> Any:
raise HTTPException(
status_code=400,
detail=(
f"Dashboard '{name}' has never been published — delete it instead "
f"Dashboard '{name}' has never been published. Delete it instead "
"of discarding it"
),
)
+2 -2
View File
@@ -303,7 +303,7 @@ def _require_enabled(controller: FlowController, name: str) -> None:
if not controller.is_enabled(name):
raise HTTPException(
status_code=409,
detail=f"Flow '{name}' is stopped — start it before running it",
detail=f"Flow '{name}' is stopped. Start it before running it",
)
@@ -601,7 +601,7 @@ async def discard_draft(name: str, controller: FlowControllerDep) -> Any:
raise HTTPException(
status_code=400,
detail=(
f"Flow '{name}' has never been published — delete it instead of "
f"Flow '{name}' has never been published. Delete it instead of "
"discarding it"
),
)