Commit d90720f
committed
feat(editing): wire editor tracking into the editing paths and the UI
The core helpers added in #1897 had no caller: `editorTracking` could only be
set by hand-editing a project, no UI offered it, and nothing stamped a feature.
This connects them.
Configuration lives in a new Editor Tracking section of the layer style panel
(enable, the four column names, and the name to record edits under, which is
shared with the Comments panel via `geolibre_author_name`). Identity resolves
collaboration session name -> local name -> `local-user`; the default is
deliberately untranslated, since it is written into the user's data.
Stamping happens on every path that authors features:
- the geometry editor, per session save. `reconcileEditedFeatures` now
classifies each feature — drawn during the session is a create, geometry
changed against a baseline captured at load is an update, untouched is left
alone. Without the baseline, opening a session and saving would restamp the
whole layer, because Geoman re-serializes every feature it loaded.
- the Sketches sync, which also carries the tracking columns forward from the
store: the editor keeps its own copy of the features and never sees them, so
each sync would otherwise wipe them and re-create from scratch.
- attribute table saves, on exactly the drafted rows (not the export preview,
which runs the same transform).
- the Field Calculator and Field Collection capture.
The four columns are maintained by the app, so the attribute table lists them
but refuses to edit, rename or delete them, and the Field Calculator refuses
them as a target — a calculated value there would be overwritten by the next
edit's stamp. They are listed as soon as tracking is on, before any feature
carries one.
Verified in a browser across all four paths in both themes: only the features
actually created or changed are stamped, creation columns survive later edits,
and features that predate tracking stay empty rather than being credited to
whoever opened the layer.1 parent ca1394f commit d90720f
34 files changed
Lines changed: 1358 additions & 23 deletions
File tree
- apps/geolibre-desktop/src
- components
- layout
- panels
- i18n/locales
- lib
- packages
- core/src
- plugins/src/plugins
- tests
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
607 | 609 | | |
608 | 610 | | |
609 | 611 | | |
610 | | - | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
611 | 621 | | |
612 | 622 | | |
613 | 623 | | |
| |||
Lines changed: 51 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| 16 | + | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
| |||
238 | 243 | | |
239 | 244 | | |
240 | 245 | | |
| 246 | + | |
241 | 247 | | |
242 | 248 | | |
243 | 249 | | |
| |||
247 | 253 | | |
248 | 254 | | |
249 | 255 | | |
250 | | - | |
| 256 | + | |
251 | 257 | | |
252 | 258 | | |
253 | 259 | | |
| |||
262 | 268 | | |
263 | 269 | | |
264 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
265 | 278 | | |
266 | 279 | | |
267 | 280 | | |
| |||
461 | 474 | | |
462 | 475 | | |
463 | 476 | | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
464 | 490 | | |
465 | 491 | | |
466 | 492 | | |
| |||
745 | 771 | | |
746 | 772 | | |
747 | 773 | | |
748 | | - | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
749 | 778 | | |
750 | 779 | | |
751 | 780 | | |
| |||
937 | 966 | | |
938 | 967 | | |
939 | 968 | | |
940 | | - | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
941 | 982 | | |
942 | 983 | | |
943 | 984 | | |
| |||
1113 | 1154 | | |
1114 | 1155 | | |
1115 | 1156 | | |
1116 | | - | |
| 1157 | + | |
1117 | 1158 | | |
1118 | 1159 | | |
1119 | 1160 | | |
| |||
1407 | 1448 | | |
1408 | 1449 | | |
1409 | 1450 | | |
1410 | | - | |
| 1451 | + | |
1411 | 1452 | | |
1412 | 1453 | | |
1413 | 1454 | | |
| |||
1440 | 1481 | | |
1441 | 1482 | | |
1442 | 1483 | | |
1443 | | - | |
| 1484 | + | |
1444 | 1485 | | |
1445 | 1486 | | |
1446 | 1487 | | |
| |||
1892 | 1933 | | |
1893 | 1934 | | |
1894 | 1935 | | |
1895 | | - | |
| 1936 | + | |
1896 | 1937 | | |
1897 | 1938 | | |
1898 | 1939 | | |
| |||
1915 | 1956 | | |
1916 | 1957 | | |
1917 | 1958 | | |
1918 | | - | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
1919 | 1962 | | |
1920 | 1963 | | |
1921 | 1964 | | |
| |||
Lines changed: 153 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
5016 | 5017 | | |
5017 | 5018 | | |
5018 | 5019 | | |
| 5020 | + | |
| 5021 | + | |
| 5022 | + | |
| 5023 | + | |
| 5024 | + | |
| 5025 | + | |
| 5026 | + | |
| 5027 | + | |
| 5028 | + | |
| 5029 | + | |
5019 | 5030 | | |
5020 | 5031 | | |
5021 | 5032 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4650 | 4650 | | |
4651 | 4651 | | |
4652 | 4652 | | |
| 4653 | + | |
4653 | 4654 | | |
4654 | 4655 | | |
4655 | 4656 | | |
| |||
5238 | 5239 | | |
5239 | 5240 | | |
5240 | 5241 | | |
| 5242 | + | |
| 5243 | + | |
| 5244 | + | |
| 5245 | + | |
| 5246 | + | |
| 5247 | + | |
| 5248 | + | |
| 5249 | + | |
| 5250 | + | |
| 5251 | + | |
| 5252 | + | |
| 5253 | + | |
| 5254 | + | |
| 5255 | + | |
5241 | 5256 | | |
5242 | 5257 | | |
5243 | 5258 | | |
| |||
0 commit comments