Editor's Path Properties section has no 'reverse this path's color order' (swap start/end colors for two-color paths) — user with a path that has a gradient (start color → end color) can't reverse the gradient #350
Labels
No labels
blocked:commit-ready-failed
blocked:gate-fetch
blocked:gate-lint
blocked:gate-plan
blocked:gate-research
blocked:needs-attention
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:verify-failed
bug
deferred
feature-request
in-progress
needs-decompose
needs-triage
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/Kimi_Agent_Brother_10_Digitizing_App#350
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finding
grep -rn 'reverseGradient\|swapColors' src/components/editor/returns 0. The editor has no gradient color reversal.A user with a satin path:
The fix is a "Swap colors" button.
Where
src/components/editor/EditorRightPanel.tsxgrep -rn 'swapColors' src/components/editor/returns 0startColor/endColor(let me check)Actually, the editor's path type may not have a gradient. The thread color is a single hex. Gradients would be a new feature.
This may be filed as a feature request, not a bug.
Suggested fix shape
Type: add
startColor: stringandendColor: stringto the StitchPath type (in addition tothreadColorfor backward compat).Render: the path is drawn with a gradient from start to end.
UI: a "Swap colors" button in the Path Properties section:
onSwapColorsswapsstartColorandendColor. The path is re-rendered with the new gradient.Severity
Low. The user can delete and recreate. Power users with gradients notice.
Discovered by
Gap analysis (2026-10-02) of editor color operations.
Related
gradientfield added.gradient: { startColor, endColor }field to StitchPath type (#350 type layer) #393Decomposed into 3 sibling issues (run in this order — each child references the prior):
gradient?: { startColor, endColor }toStitchPathinsrc/components/editor/types.ts. Data-model only, no rendering, no UI.satinRenderer.ts+fillRenderer.tsconsume the newgradientfield. Solid-color paths unchanged. New tests cover the gradient branch.EditorRightPanel.tsxgets Start Color + End Color inputs and a "Swap colors" button (the literal feature #350's title asks for). OnesetPaths + pushHistorypair → one undoable Ctrl+Z.Dependency chain: #393 → #394 → #395. Each ships independently and is verifiable in isolation.
Closing this parent — the work lives on the children. The original "swap start/end colors" feature has no way to land without first giving the path type a gradient field (the body itself flagged: "The thread color is a single hex. Gradients would be a new feature."), so this is the right decomposition.
— triage-runner @ 2026-10-05
gradient: { startColor, endColor }field to StitchPath type (#350 type layer) #393