@peasant-labs/fairtrade 0.0.35 → 0.0.37
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/lib/{GraphLegend-BJuccGWD.js → GraphLegend-7PmEpBZQ.js} +0 -1
- package/dist/lib/analytics.js +1 -5
- package/dist/lib/commons.js +98 -139
- package/dist/lib/components.css +1 -1
- package/dist/lib/graph.css +1 -1
- package/dist/lib/graph.js +5 -11
- package/dist/lib/tokens.css +1 -0
- package/dist/lib/tokens.json +4 -0
- package/dist/lib/types/AppSidebar.d.ts +64 -8
- package/dist/lib/types/CliOnboard.d.ts +7 -1
- package/dist/lib/types/Publish.d.ts +20 -3
- package/dist/lib/types/Settings.d.ts +4 -1
- package/dist/lib/{ui-DOj8c_45.js → ui-DoMWMsXK.js} +1718 -1590
- package/dist/lib/ui.js +2 -2
- package/package.json +1 -1
|
@@ -3772,7 +3772,6 @@ function Kr({ accountLabel: e, villageLabel: t, domains: n, collectives: r, cate
|
|
|
3772
3772
|
] }), ie = /* @__PURE__ */ f("div", {
|
|
3773
3773
|
className: "vobs-catalog",
|
|
3774
3774
|
children: [
|
|
3775
|
-
/* @__PURE__ */ d("p", { children: "Read saved observations offline. Fetch checks metadata only, without downloading transcripts or publishing." }),
|
|
3776
3775
|
te === "catalog" && re,
|
|
3777
3776
|
/* @__PURE__ */ d("p", { children: "Relevant collectives only. Tracking does not join a collective or grant access." }),
|
|
3778
3777
|
r.length === 0 ? /* @__PURE__ */ d("p", { children: "No saved relevant collectives. Fetch metadata to check available sources." }) : /* @__PURE__ */ d("ul", {
|
package/dist/lib/analytics.js
CHANGED
|
@@ -630,7 +630,6 @@ function pe({ payload: c, title: l, subtitle: u, sections: h, showSectionToggle:
|
|
|
630
630
|
P.sessionsPerWeek ? /* @__PURE__ */ i(v, {
|
|
631
631
|
icon: s,
|
|
632
632
|
title: "sessions per week",
|
|
633
|
-
subtitle: "agent sessions bucketed by iso week",
|
|
634
633
|
aside: `${b(F.totalSessions)} total`,
|
|
635
634
|
children: /* @__PURE__ */ i(e, {
|
|
636
635
|
data: J(Q(F.sessionsPerWeek, "count")),
|
|
@@ -647,7 +646,7 @@ function pe({ payload: c, title: l, subtitle: u, sections: h, showSectionToggle:
|
|
|
647
646
|
P.weeklyActiveContributors ? /* @__PURE__ */ i(v, {
|
|
648
647
|
icon: _,
|
|
649
648
|
title: "weekly active contributors",
|
|
650
|
-
subtitle: B === "new" ?
|
|
649
|
+
subtitle: B === "new" ? `${b($(Q(F.newContributorVelocity, "newContributors")))} new` : `${b($(Q(F.weeklyActiveContributors, "contributors")))} active`,
|
|
651
650
|
aside: /* @__PURE__ */ i(he, {
|
|
652
651
|
view: B,
|
|
653
652
|
canShowNew: !!P.newContributorVelocity,
|
|
@@ -680,7 +679,6 @@ function pe({ payload: c, title: l, subtitle: u, sections: h, showSectionToggle:
|
|
|
680
679
|
P.newContributorVelocity ? /* @__PURE__ */ i(v, {
|
|
681
680
|
icon: te,
|
|
682
681
|
title: "new contributors per week",
|
|
683
|
-
subtitle: "first recorded session, by contributor",
|
|
684
682
|
aside: `${b($(Q(F.newContributorVelocity, "newContributors")))} new`,
|
|
685
683
|
children: /* @__PURE__ */ i(e, {
|
|
686
684
|
data: J(Q(F.newContributorVelocity, "newContributors")),
|
|
@@ -714,7 +712,6 @@ function pe({ payload: c, title: l, subtitle: u, sections: h, showSectionToggle:
|
|
|
714
712
|
P.outcomeDistribution ? /* @__PURE__ */ i(v, {
|
|
715
713
|
icon: m,
|
|
716
714
|
title: "outcome distribution",
|
|
717
|
-
subtitle: "share of session outcomes",
|
|
718
715
|
aside: `${b(R)} total`,
|
|
719
716
|
children: /* @__PURE__ */ i(ge, { data: F.outcomeDistribution })
|
|
720
717
|
}) : null,
|
|
@@ -730,7 +727,6 @@ function pe({ payload: c, title: l, subtitle: u, sections: h, showSectionToggle:
|
|
|
730
727
|
P.contributorTable ? /* @__PURE__ */ a(v, {
|
|
731
728
|
icon: _,
|
|
732
729
|
title: "contributors",
|
|
733
|
-
subtitle: "rolled up, sorted by session volume",
|
|
734
730
|
aside: `${b(F.perContributorBreakdown.length)} people`,
|
|
735
731
|
className: "gan-tablecard",
|
|
736
732
|
children: [/* @__PURE__ */ i(W, {
|
package/dist/lib/commons.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { At as e, Ot as t, Tt as n, ht as r, lt as i, pt as a, ut as o } from "./GraphLegend-
|
|
2
|
-
import { At as s, Et as c, Nt as l, Ot as u, _t as d, cn as f, dn as p, fn as m, ft as h, gt as g, jt as _, kt as v, lr as y, nr as b, or as x, pt as S, qn as C, sr as w, un as T, ut as E, wr as D } from "./ui-
|
|
1
|
+
import { At as e, Ot as t, Tt as n, ht as r, lt as i, pt as a, ut as o } from "./GraphLegend-7PmEpBZQ.js";
|
|
2
|
+
import { At as s, Et as c, Nt as l, Ot as u, _t as d, cn as f, dn as p, fn as m, ft as h, gt as g, jt as _, kt as v, lr as y, nr as b, or as x, pt as S, qn as C, sr as w, un as T, ut as E, wr as D } from "./ui-DoMWMsXK.js";
|
|
3
3
|
import { useEffect as O, useId as k, useMemo as A, useRef as j, useState as M } from "react";
|
|
4
4
|
import { Fragment as N, jsx as P, jsxs as F } from "react/jsx-runtime";
|
|
5
5
|
import { ArrowRight as I, Check as L, ChevronDown as R, ChevronRight as z, ClipboardCheck as B, Compass as V, Copy as H, ExternalLink as U, Eye as W, EyeOff as G, FileText as ee, FolderGit2 as K, GitBranch as q, GitPullRequest as J, Hash as te, KeyRound as Y, LayoutGrid as ne, List as re, Lock as ie, LogOut as ae, MoreHorizontal as X, Plus as oe, Search as se, SearchX as ce, Settings as Z, ShieldAlert as Q, SlidersHorizontal as le, TriangleAlert as ue, Upload as de, User as fe, UserPlus as pe, Users as $, X as me } from "lucide-react";
|
|
@@ -731,36 +731,29 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
731
731
|
className: `cex-root ${n}`.trim(),
|
|
732
732
|
children: [/* @__PURE__ */ F("header", {
|
|
733
733
|
className: "cex-explore-head",
|
|
734
|
-
children: [
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
/* @__PURE__ */ P("
|
|
740
|
-
className: "
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
children: /* @__PURE__ */ P(ce, {
|
|
758
|
-
size: 14,
|
|
759
|
-
"aria-hidden": "true"
|
|
760
|
-
})
|
|
761
|
-
})]
|
|
762
|
-
})
|
|
763
|
-
]
|
|
734
|
+
children: [/* @__PURE__ */ P("h2", {
|
|
735
|
+
className: "cex-h2",
|
|
736
|
+
children: "explore transcripts"
|
|
737
|
+
}), /* @__PURE__ */ F("div", {
|
|
738
|
+
className: "input-ico cex-searchbar",
|
|
739
|
+
children: [/* @__PURE__ */ P("input", {
|
|
740
|
+
className: "input",
|
|
741
|
+
type: "text",
|
|
742
|
+
value: m,
|
|
743
|
+
onChange: (e) => h(e.target.value),
|
|
744
|
+
placeholder: "search transcripts",
|
|
745
|
+
"aria-label": "search transcripts, collectives, projects, models"
|
|
746
|
+
}), m && /* @__PURE__ */ P("button", {
|
|
747
|
+
type: "button",
|
|
748
|
+
className: "cex-clear",
|
|
749
|
+
"aria-label": "clear search",
|
|
750
|
+
onClick: () => h(""),
|
|
751
|
+
children: /* @__PURE__ */ P(ce, {
|
|
752
|
+
size: 14,
|
|
753
|
+
"aria-hidden": "true"
|
|
754
|
+
})
|
|
755
|
+
})]
|
|
756
|
+
})]
|
|
764
757
|
}), /* @__PURE__ */ F("div", {
|
|
765
758
|
className: "cex-explore-body",
|
|
766
759
|
children: [/* @__PURE__ */ P(l, {
|
|
@@ -1071,13 +1064,10 @@ function Ve() {
|
|
|
1071
1064
|
}),
|
|
1072
1065
|
/* @__PURE__ */ P("header", {
|
|
1073
1066
|
className: "cmg-head",
|
|
1074
|
-
children: /* @__PURE__ */
|
|
1067
|
+
children: /* @__PURE__ */ P("div", { children: /* @__PURE__ */ P("h2", {
|
|
1075
1068
|
className: "cmg-title",
|
|
1076
1069
|
children: "publishing dashboard"
|
|
1077
|
-
})
|
|
1078
|
-
className: "cmg-deck",
|
|
1079
|
-
children: "push transcripts from the peasant cli to the village."
|
|
1080
|
-
})] })
|
|
1070
|
+
}) })
|
|
1081
1071
|
}),
|
|
1082
1072
|
e && /* @__PURE__ */ F("section", {
|
|
1083
1073
|
className: "cmg-gs card",
|
|
@@ -1393,13 +1383,10 @@ function We() {
|
|
|
1393
1383
|
}),
|
|
1394
1384
|
/* @__PURE__ */ P("header", {
|
|
1395
1385
|
className: "cmg-head",
|
|
1396
|
-
children: /* @__PURE__ */
|
|
1386
|
+
children: /* @__PURE__ */ P("div", { children: /* @__PURE__ */ P("h2", {
|
|
1397
1387
|
className: "cmg-title",
|
|
1398
1388
|
children: "contribute to AI Research Team"
|
|
1399
|
-
})
|
|
1400
|
-
className: "cmg-deck",
|
|
1401
|
-
children: "select your own transcripts to share with this collective."
|
|
1402
|
-
})] })
|
|
1389
|
+
}) })
|
|
1403
1390
|
}),
|
|
1404
1391
|
/* @__PURE__ */ P("section", {
|
|
1405
1392
|
className: "card cmg-contribute",
|
|
@@ -1656,7 +1643,7 @@ function Xe(e, t, n) {
|
|
|
1656
1643
|
}, e));
|
|
1657
1644
|
}
|
|
1658
1645
|
function Ze({ data: e = {}, actions: t = {} } = {}) {
|
|
1659
|
-
let { collectives: n = [], linkedOrgs: r = [], title: i = "collectives", deck: a
|
|
1646
|
+
let { collectives: n = [], linkedOrgs: r = [], title: i = "collectives", deck: a, crumb: o, caption: s = "collectives", createLabel: c = "new collective", createBusy: l = !1, whoCanPublish: u = Ge, whoCanRead: d = Ke } = e, { onCreateCollective: f, onOpenCollective: m, onSearchCollectives: h } = t, [g, _] = M(!1), [v, b] = M(""), [x, S] = M(""), [w, T] = M(u[0]?.value ?? ""), [E, O] = M(d[0]?.value ?? ""), [A, j] = M(""), [N, I] = M(""), L = k(), R = [
|
|
1660
1647
|
{
|
|
1661
1648
|
key: "name",
|
|
1662
1649
|
label: "name",
|
|
@@ -1867,36 +1854,29 @@ function Ze({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1867
1854
|
h && /* @__PURE__ */ F("section", {
|
|
1868
1855
|
className: "cmg-section",
|
|
1869
1856
|
"aria-labelledby": `${L}-find`,
|
|
1870
|
-
children: [
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
}
|
|
1880
|
-
/* @__PURE__ */
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
}), /* @__PURE__ */ P("button", {
|
|
1894
|
-
type: "submit",
|
|
1895
|
-
className: "btn btn-secondary",
|
|
1896
|
-
children: "search"
|
|
1897
|
-
})]
|
|
1898
|
-
})
|
|
1899
|
-
]
|
|
1857
|
+
children: [/* @__PURE__ */ P("h3", {
|
|
1858
|
+
className: "cmg-section-title",
|
|
1859
|
+
id: `${L}-find`,
|
|
1860
|
+
children: "find a collective"
|
|
1861
|
+
}), /* @__PURE__ */ F("form", {
|
|
1862
|
+
className: "cmg-find",
|
|
1863
|
+
role: "search",
|
|
1864
|
+
onSubmit: (e) => {
|
|
1865
|
+
e.preventDefault(), h(N);
|
|
1866
|
+
},
|
|
1867
|
+
children: [/* @__PURE__ */ P(D, {
|
|
1868
|
+
label: "collective or github org",
|
|
1869
|
+
type: "search",
|
|
1870
|
+
iconLeft: se,
|
|
1871
|
+
placeholder: "collective name or github org",
|
|
1872
|
+
value: N,
|
|
1873
|
+
onChange: (e) => I(e.target.value)
|
|
1874
|
+
}), /* @__PURE__ */ P("button", {
|
|
1875
|
+
type: "submit",
|
|
1876
|
+
className: "btn btn-secondary",
|
|
1877
|
+
children: "search"
|
|
1878
|
+
})]
|
|
1879
|
+
})]
|
|
1900
1880
|
})
|
|
1901
1881
|
]
|
|
1902
1882
|
});
|
|
@@ -2104,49 +2084,42 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2104
2084
|
"aria-label": "github orgs and members",
|
|
2105
2085
|
children: [/* @__PURE__ */ F("section", {
|
|
2106
2086
|
className: "cmg-rail-box",
|
|
2107
|
-
children: [
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2087
|
+
children: [/* @__PURE__ */ P("h3", {
|
|
2088
|
+
className: "cmg-rail-title",
|
|
2089
|
+
children: "github orgs"
|
|
2090
|
+
}), o.org ? /* @__PURE__ */ F("p", {
|
|
2091
|
+
className: "cmg-rail-line",
|
|
2092
|
+
children: [
|
|
2093
|
+
/* @__PURE__ */ P(K, { "aria-hidden": "true" }),
|
|
2094
|
+
" ",
|
|
2095
|
+
/* @__PURE__ */ P("span", {
|
|
2096
|
+
className: "mono",
|
|
2097
|
+
children: o.org.login
|
|
2098
|
+
}),
|
|
2099
|
+
typeof o.org.total == "number" ? /* @__PURE__ */ F(N, { children: [
|
|
2100
|
+
", ",
|
|
2117
2101
|
/* @__PURE__ */ P("span", {
|
|
2118
|
-
className: "
|
|
2119
|
-
children: o.org.
|
|
2102
|
+
className: "tnum",
|
|
2103
|
+
children: o.org.linked ?? 0
|
|
2120
2104
|
}),
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
})
|
|
2140
|
-
]
|
|
2141
|
-
}) : o.org === null ? /* @__PURE__ */ P("p", {
|
|
2142
|
-
className: "cmg-rail-line cmg-none",
|
|
2143
|
-
children: "nothing linked"
|
|
2144
|
-
}) : null,
|
|
2145
|
-
/* @__PURE__ */ P("p", {
|
|
2146
|
-
className: "cmg-note",
|
|
2147
|
-
children: "a collective links one github org today."
|
|
2148
|
-
})
|
|
2149
|
-
]
|
|
2105
|
+
" of ",
|
|
2106
|
+
/* @__PURE__ */ P("span", {
|
|
2107
|
+
className: "tnum",
|
|
2108
|
+
children: o.org.total
|
|
2109
|
+
}),
|
|
2110
|
+
" repos linked"
|
|
2111
|
+
] }) : null,
|
|
2112
|
+
o.role === "owner" && m && /* @__PURE__ */ P("button", {
|
|
2113
|
+
type: "button",
|
|
2114
|
+
className: "btn btn-ghost btn-sm",
|
|
2115
|
+
onClick: () => v(!0),
|
|
2116
|
+
children: "manage"
|
|
2117
|
+
})
|
|
2118
|
+
]
|
|
2119
|
+
}) : o.org === null ? /* @__PURE__ */ P("p", {
|
|
2120
|
+
className: "cmg-rail-line cmg-none",
|
|
2121
|
+
children: "nothing linked"
|
|
2122
|
+
}) : null]
|
|
2150
2123
|
}), /* @__PURE__ */ F("section", {
|
|
2151
2124
|
className: "cmg-rail-box",
|
|
2152
2125
|
children: [
|
|
@@ -2216,7 +2189,7 @@ function ot({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2216
2189
|
"github orgs",
|
|
2217
2190
|
"pull requests",
|
|
2218
2191
|
...v ? ["danger zone"] : []
|
|
2219
|
-
], C = (e) => `cmg-settings-${e.replace(/ /g, "-")}
|
|
2192
|
+
], C = (e) => `cmg-settings-${e.replace(/ /g, "-")}`;
|
|
2220
2193
|
return /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ F("div", {
|
|
2221
2194
|
className: "iu-page cmg-settings",
|
|
2222
2195
|
children: [
|
|
@@ -2234,18 +2207,15 @@ function ot({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2234
2207
|
{ label: "settings" }
|
|
2235
2208
|
] })
|
|
2236
2209
|
}),
|
|
2237
|
-
/* @__PURE__ */
|
|
2210
|
+
/* @__PURE__ */ P("header", {
|
|
2238
2211
|
className: "iu-page-head",
|
|
2239
|
-
children:
|
|
2212
|
+
children: /* @__PURE__ */ F("h2", {
|
|
2240
2213
|
className: "iu-page-title",
|
|
2241
2214
|
children: [/* @__PURE__ */ P("span", {
|
|
2242
2215
|
className: "iu-page-title-content",
|
|
2243
2216
|
children: l.name
|
|
2244
2217
|
}), ", settings"]
|
|
2245
|
-
})
|
|
2246
|
-
className: "iu-page-sub",
|
|
2247
|
-
children: "changes save right away."
|
|
2248
|
-
})]
|
|
2218
|
+
})
|
|
2249
2219
|
}),
|
|
2250
2220
|
/* @__PURE__ */ F(S, {
|
|
2251
2221
|
sections: x.map((e) => ({
|
|
@@ -2279,7 +2249,7 @@ function ot({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2279
2249
|
id: C("access"),
|
|
2280
2250
|
children: [/* @__PURE__ */ P(d, {
|
|
2281
2251
|
label: "who can publish",
|
|
2282
|
-
help:
|
|
2252
|
+
help: ((e) => e.filter((e) => e.help).map((e) => `${e.label}: ${e.help}`).join(" "))(a),
|
|
2283
2253
|
control: "select",
|
|
2284
2254
|
value: rt(l.mode, a),
|
|
2285
2255
|
options: nt(l.mode, a),
|
|
@@ -2415,29 +2385,18 @@ function ot({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2415
2385
|
})]
|
|
2416
2386
|
})
|
|
2417
2387
|
}),
|
|
2418
|
-
/* @__PURE__ */
|
|
2388
|
+
/* @__PURE__ */ P(g, {
|
|
2419
2389
|
label: "pull requests",
|
|
2420
2390
|
defaultOpen: !0,
|
|
2421
2391
|
count: 1,
|
|
2422
2392
|
id: C("pull requests"),
|
|
2423
|
-
children:
|
|
2393
|
+
children: /* @__PURE__ */ P(d, {
|
|
2424
2394
|
label: "show transcripts on pull requests",
|
|
2425
2395
|
help: "adds a peasant / prompts comment and check on pull requests in this collective's repos, listing which commits have transcripts. it never blocks merging.",
|
|
2426
2396
|
control: "switch",
|
|
2427
2397
|
value: i,
|
|
2428
2398
|
onCommit: u("showOnPullRequests")
|
|
2429
|
-
})
|
|
2430
|
-
className: "srow-note",
|
|
2431
|
-
children: [
|
|
2432
|
-
"automatic linking is now a personal setting, in ",
|
|
2433
|
-
T ? /* @__PURE__ */ P("a", {
|
|
2434
|
-
className: "link",
|
|
2435
|
-
href: T,
|
|
2436
|
-
children: "your settings"
|
|
2437
|
-
}) : "your settings",
|
|
2438
|
-
"."
|
|
2439
|
-
]
|
|
2440
|
-
})]
|
|
2399
|
+
})
|
|
2441
2400
|
}),
|
|
2442
2401
|
v && /* @__PURE__ */ F(g, {
|
|
2443
2402
|
label: "danger zone",
|
|
@@ -2577,10 +2536,10 @@ function ft({ data: e = lt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2577
2536
|
className: "cmg-title",
|
|
2578
2537
|
children: r.name || "collective"
|
|
2579
2538
|
}),
|
|
2580
|
-
/* @__PURE__ */ P("p", {
|
|
2539
|
+
r.description ? /* @__PURE__ */ P("p", {
|
|
2581
2540
|
className: "cmg-deck",
|
|
2582
|
-
children: r.description
|
|
2583
|
-
}),
|
|
2541
|
+
children: r.description
|
|
2542
|
+
}) : null,
|
|
2584
2543
|
/* @__PURE__ */ F("span", {
|
|
2585
2544
|
className: "cmg-orgpill mono",
|
|
2586
2545
|
children: [
|