diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-25 19:48:39 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-25 19:48:39 -0500 |
| commit | 648893bd6ff5f4c403733d03258dbf3e91f2394b (patch) | |
| tree | 3556dde1c81bf9ba0caf62ad6670803d03a60432 /tests/testutil-request.el | |
| parent | e7f15034f1b4dea7fb22ebc0f2f532ee06b3dd57 (diff) | |
| download | pearl-648893bd6ff5f4c403733d03258dbf3e91f2394b.tar.gz pearl-648893bd6ff5f4c403733d03258dbf3e91f2394b.zip | |
feat(save): detect dirty structured fields against synced baselines
The save scan now flags priority, state, assignee, and labels as dirty when their live value differs from the synced baseline, so structured fields ride the same reconcile-at-save path as title and description. Each check is id/scalar-only and runs with no network: the priority cookie's number against LINEAR-PRIORITY, the explicit state id against LINEAR-STATE-ID-SYNCED (the picker arm — keyword cycling lands later), the assignee id against its baseline, and the label id set against its baseline (order-insensitive, since Linear label order isn't meaningful). A missing baseline on a legacy file reads as not-dirty; the saver's missing-property guard covers that edge.
This also makes the priority cookie faithful. The renderer mapped both None and Medium to [#C], so a None issue couldn't be told apart from a Medium one and would have read dirty the moment its baseline said 0. None now renders with no cookie, 1:1 with the four cookie levels — matching what the priority setter already did.
Diffstat (limited to 'tests/testutil-request.el')
0 files changed, 0 insertions, 0 deletions
