mirror of
https://gh-proxy.org/https://github.com/klinsmaya/multica.git
synced 2026-11-09 01:46:46 +08:00
* feat(issues): add revision-aware concurrency guards * fix(concurrency): decouple text edits from aggregate revisions
17 lines
485 B
TypeScript
17 lines
485 B
TypeScript
import type { UpdateIssueRequest } from "@multica/core/types";
|
|
|
|
/**
|
|
* Mobile keeps text edits last-write-wins until it has a conflict comparison
|
|
* flow. Sending title_base/description_base without that recovery UI would
|
|
* turn a real 409 into an unrecoverable retry loop for the in-memory draft.
|
|
*/
|
|
export function buildIssueTextUpdate(
|
|
title: string,
|
|
description: string,
|
|
): UpdateIssueRequest {
|
|
return {
|
|
title: title.trim(),
|
|
description: description.trim(),
|
|
};
|
|
}
|