panel: an OC-incognito chip, and the Admin column header stops misnaming the mode
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
* source 'oc-incognito' gets its own chip. It read as plain "OC" — true as far as it goes (they are an OC subscriber) but it hides what matters operationally: email matching cannot see them, so their orders match by OC slug. * The Admin section's spend column said "All-time spend" in BOTH modes, so in balance mode the header described data that was not in the table. Now "Spend".
This commit is contained in:
1 parent
a63de0b2b2
commit
33ea1a732d
1 file changed
+8
-2
+8
-2
@@ -952,7 +952,11 @@ function setMemberMode(mode) {
|
|||||||
const adminLabel = document.getElementById('spend-mode-label-admin');
|
const adminLabel = document.getElementById('spend-mode-label-admin');
|
||||||
// Agents always show all-time: their cycle counter resets on the 1st, so a cycle
|
// Agents always show all-time: their cycle counter resets on the 1st, so a cycle
|
||||||
// figure would read as zeroed for the co-op's own bot accounts every month.
|
// figure would read as zeroed for the co-op's own bot accounts every month.
|
||||||
if (adminLabel) adminLabel.textContent = 'All-time spend';
|
// The Admin columns show all-time figures in both modes (their cycle counter
|
||||||
|
// resets on the 1st, so a cycle figure would read as zeroed), but the header
|
||||||
|
// must not claim a mode the reader is not in — it said "All-time spend" while
|
||||||
|
// the table was in balance mode (ntnsndr, 2026-11-13). Just "Spend".
|
||||||
|
if (adminLabel) adminLabel.textContent = 'Spend';
|
||||||
// Balance-only columns (Allowance/Credits/Remaining/Reset) hide in all-time mode
|
// Balance-only columns (Allowance/Credits/Remaining/Reset) hide in all-time mode
|
||||||
$('table-members').parentElement.classList.toggle('members-all-time', mode === 'all');
|
$('table-members').parentElement.classList.toggle('members-all-time', mode === 'all');
|
||||||
const adminTable = document.getElementById('table-admins');
|
const adminTable = document.getElementById('table-admins');
|
||||||
@@ -1021,9 +1025,11 @@ function renderMembers() {
|
|||||||
? '<span class="pill guest" title="' + esc('Guest account — from ' + (m.guest_inviter || '?') +
|
? '<span class="pill guest" title="' + esc('Guest account — from ' + (m.guest_inviter || '?') +
|
||||||
' · expires ' + (m.guest_expires_at ? String(m.guest_expires_at).slice(0, 10) : '?') +
|
' · expires ' + (m.guest_expires_at ? String(m.guest_expires_at).slice(0, 10) : '?') +
|
||||||
' · $2 credit, no OC membership, never swept for dues') + '">guest</span>'
|
' · $2 credit, no OC membership, never swept for dues') + '">guest</span>'
|
||||||
|
: (m.source === 'oc-incognito'
|
||||||
|
? '<span class="pill org" title="' + esc('OC subscription — their Open Collective profile hides its email, so their orders are matched by their OC slug') + '">OC incognito</span>'
|
||||||
: (m.manual
|
: (m.manual
|
||||||
? '<span class="pill manual" title="Manual member (no OC subscription; exempt from sweep)">manual</span>'
|
? '<span class="pill manual" title="Manual member (no OC subscription; exempt from sweep)">manual</span>'
|
||||||
: '<span class="pill active" title="Open Collective Membership subscription">OC</span>');
|
: '<span class="pill active" title="Open Collective Membership subscription">OC</span>'));
|
||||||
// Effective Matrix handle: dashboard-set external MXID, else the local
|
// Effective Matrix handle: dashboard-set external MXID, else the local
|
||||||
// @username:inference.coop identity (pending users have no username yet).
|
// @username:inference.coop identity (pending users have no username yet).
|
||||||
// Account cell: username on top (prominent); email + Matrix handle beneath
|
// Account cell: username on top (prominent); email + Matrix handle beneath
|
||||||
|
|||||||
Reference in new issue
Block a user