@industry-theme/file-city-panel 0.5.74 → 0.5.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/panels/FileCityTrailExplorerPanel/overlays/TrailRequestIntroModal.d.ts +10 -2
- package/dist/panels/FileCityTrailExplorerPanel/overlays/TrailRequestIntroModal.d.ts.map +1 -1
- package/dist/panels.bundle.js +36 -4
- package/dist/panels.bundle.js.map +1 -1
- package/dist/types/Trail.d.ts +11 -0
- package/dist/types/Trail.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -101,12 +101,20 @@ export interface TrailRequestIntroModalProps {
|
|
|
101
101
|
signedByCurrentUser?: boolean;
|
|
102
102
|
/**
|
|
103
103
|
* Display names of distinct note-authors (engaged with the trail).
|
|
104
|
-
* Rendered as the `
|
|
104
|
+
* Rendered as the `NOTES BY` avatar strip below the modal — its
|
|
105
105
|
* own row, separate from `REVIEWED BY`. People who both signed
|
|
106
106
|
* and noted appear in both rows; each row communicates a distinct
|
|
107
107
|
* facet of engagement.
|
|
108
108
|
*/
|
|
109
|
-
|
|
109
|
+
notedBy?: string[];
|
|
110
|
+
/**
|
|
111
|
+
* Display names of visitors who have opened the trail but have
|
|
112
|
+
* neither signed off nor left a note. Rendered as the `VISITED BY`
|
|
113
|
+
* avatar strip — its own row, below `REVIEWED BY` and `NOTES BY`.
|
|
114
|
+
* The panel is responsible for filtering out anyone already
|
|
115
|
+
* present in the other two rosters before passing the list in.
|
|
116
|
+
*/
|
|
117
|
+
visitedBy?: string[];
|
|
110
118
|
/**
|
|
111
119
|
* Optional `author → markerIds[]` map. When present, avatars in
|
|
112
120
|
* either strip become clickable: clicking one opens the manifest
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrailRequestIntroModal.d.ts","sourceRoot":"","sources":["../../../../src/panels/FileCityTrailExplorerPanel/overlays/TrailRequestIntroModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OA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CAAC,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"TrailRequestIntroModal.d.ts","sourceRoot":"","sources":["../../../../src/panels/FileCityTrailExplorerPanel/overlays/TrailRequestIntroModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAY,KAAK,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAmCzD;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;;;;;OAMG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gEAAgE;IAChE,WAAW,EAAE,MAAM,CAAC;IACpB,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,KAAK,CAAC,EAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC9D,oDAAoD;IACpD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC;IAC5B;;;OAGG;IACH,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,KAAK,IAAI,CAAC;IACxC;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,KAAK,KAAK,IAAI,CAAC;IAClE,qEAAqE;IACrE,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;IAC1B;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;CAC1C;AAED,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CA0pBxE,CAAC;AA0JF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC;IAC/B,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb;;;uDAGmD;IACnD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;8BAC0B;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CA6CA,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -258303,7 +258303,8 @@ const TrailRequestIntroModal = ({
|
|
|
258303
258303
|
onDismiss,
|
|
258304
258304
|
signOffs,
|
|
258305
258305
|
signedByCurrentUser = false,
|
|
258306
|
-
|
|
258306
|
+
notedBy,
|
|
258307
|
+
visitedBy,
|
|
258307
258308
|
notesByAuthor
|
|
258308
258309
|
}) => {
|
|
258309
258310
|
const { theme: theme2 } = useTheme();
|
|
@@ -258936,12 +258937,12 @@ ${s2.comment}` : ""}${hasNotes ? "\n(click to highlight their notes on the manif
|
|
|
258936
258937
|
})
|
|
258937
258938
|
}
|
|
258938
258939
|
) : null,
|
|
258939
|
-
|
|
258940
|
+
notedBy && notedBy.length > 0 ? /* @__PURE__ */ jsx(
|
|
258940
258941
|
AvatarStrip,
|
|
258941
258942
|
{
|
|
258942
258943
|
theme: theme2,
|
|
258943
258944
|
label: "NOTES BY",
|
|
258944
|
-
entries:
|
|
258945
|
+
entries: notedBy.map((name2) => {
|
|
258945
258946
|
var _a;
|
|
258946
258947
|
const hasNotes = (((_a = notesByAuthor == null ? void 0 : notesByAuthor[name2]) == null ? void 0 : _a.length) ?? 0) > 0;
|
|
258947
258948
|
return {
|
|
@@ -258953,6 +258954,18 @@ ${s2.comment}` : ""}${hasNotes ? "\n(click to highlight their notes on the manif
|
|
|
258953
258954
|
};
|
|
258954
258955
|
})
|
|
258955
258956
|
}
|
|
258957
|
+
) : null,
|
|
258958
|
+
visitedBy && visitedBy.length > 0 ? /* @__PURE__ */ jsx(
|
|
258959
|
+
AvatarStrip,
|
|
258960
|
+
{
|
|
258961
|
+
theme: theme2,
|
|
258962
|
+
label: "VISITED BY",
|
|
258963
|
+
entries: visitedBy.map((name2) => ({
|
|
258964
|
+
key: name2,
|
|
258965
|
+
name: name2,
|
|
258966
|
+
tooltip: name2
|
|
258967
|
+
}))
|
|
258968
|
+
}
|
|
258956
258969
|
) : null
|
|
258957
258970
|
]
|
|
258958
258971
|
}
|
|
@@ -260875,7 +260888,7 @@ const FileCityTrailSequenceLayout = ({
|
|
|
260875
260888
|
fileCount: new Set(
|
|
260876
260889
|
trail2.markers.map((m) => m.sourcePath).filter((p2) => !!p2 && p2.length > 0)
|
|
260877
260890
|
).size,
|
|
260878
|
-
|
|
260891
|
+
notedBy: (() => {
|
|
260879
260892
|
const noteAuthors = /* @__PURE__ */ new Set();
|
|
260880
260893
|
for (const n of trail2.notes ?? []) {
|
|
260881
260894
|
if (!n.author || n.author === trail2.author) continue;
|
|
@@ -260883,6 +260896,25 @@ const FileCityTrailSequenceLayout = ({
|
|
|
260883
260896
|
}
|
|
260884
260897
|
return Array.from(noteAuthors);
|
|
260885
260898
|
})(),
|
|
260899
|
+
visitedBy: (() => {
|
|
260900
|
+
const signers = new Set(
|
|
260901
|
+
(trail2.signOffs ?? []).map((s2) => s2.author)
|
|
260902
|
+
);
|
|
260903
|
+
const noteAuthors = /* @__PURE__ */ new Set();
|
|
260904
|
+
for (const n of trail2.notes ?? []) {
|
|
260905
|
+
if (n.author) noteAuthors.add(n.author);
|
|
260906
|
+
}
|
|
260907
|
+
const visited = [];
|
|
260908
|
+
const dedupe = /* @__PURE__ */ new Set();
|
|
260909
|
+
for (const v of trail2.visitors ?? []) {
|
|
260910
|
+
if (!v || v === trail2.author) continue;
|
|
260911
|
+
if (signers.has(v) || noteAuthors.has(v)) continue;
|
|
260912
|
+
if (dedupe.has(v)) continue;
|
|
260913
|
+
dedupe.add(v);
|
|
260914
|
+
visited.push(v);
|
|
260915
|
+
}
|
|
260916
|
+
return visited;
|
|
260917
|
+
})(),
|
|
260886
260918
|
notesByAuthor: (() => {
|
|
260887
260919
|
const map2 = /* @__PURE__ */ new Map();
|
|
260888
260920
|
for (const n of trail2.notes ?? []) {
|