Commit graph

13 commits

Author SHA1 Message Date
Rosie Val
eef6637715 feat: add Zipline plugin with pre-send interception
Some checks failed
Build and deploy / deploy (push) Failing after 4s
2026-09-20 21:26:19 -04:00
Rosie Val
077151f429 Remove plugins and add placeholder readme
Some checks failed
Build and deploy / deploy (push) Failing after 4s
2026-08-20 18:06:00 -04:00
0f20a12b93 next-site: custom channels, admin data-round-trip fix, visual polish
Public index.json now exposes every admin-set channel name (not just a hardcoded
"stable"), matching Next's real repository protocol - the in-app UI lists whatever
channel names a repo defines. Admin panel now reads from a new /api/admin/state
endpoint (full override + channel + site data) instead of /index.json, which only
ever carried the public-facing fields - fixes fields appearing blank on reload.
Channel editing is now a free-form name+version input instead of a single
"promote to stable" button.

Also: color accents, drifting background blobs, a few floating decorative icons
(pride flag included), and a custom cursor follower on desktop, applied site-wide
via the shared theme shell.
2026-08-15 13:44:42 -04:00
f91874d676 radial-status: port from Classic (Vendetta-compat) to Revenge Next 2026-08-15 12:21:14 -04:00
13800ddf01 staff-tags: fix existingTag lookup in member list, bump to 1.0.10
1.0.9 fixed the pairing bug and correctly located ret.props.label, but
still used findInReactFiber to search within it for the existing
BotTag element - confirmed live that findInReactFiber never matches
here. It's built for real React fiber nodes, not the plain element
tree innerRender() returns pre-reconciliation, so it silently found
nothing and every row bailed out before ever calling getTag(). Since
label.props.children is already a known flat array, a direct .find()
locates the same BotTag element findInReactFiber was missing. Live
end-to-end verified: OWNER tag now renders correctly in the member
list for the actual guild owner.
2026-08-09 01:52:54 -04:00
abd21f3be1 staff-tags: fix member list tags for real, bump to 1.0.9
1.0.8 fixed the row-pairing bug but kept patching the shared UserRow
memo wrapper's .type via @revenge-mod/patcher's after() - confirmed
live that this breaks member list rendering outright, unconditionally,
even as a single non-stacking patch on a fresh app process. Replaced
with afterJSX() intercepting each createElement(UserRow, props) call
and a plain property assignment (el.type = a single stable function),
never touching the shared object via after()'s Proxy machinery.

Also fixed the actual tag-injection logic, live-verified end to end:
UserRow renders a single TableRow with name+tag at ret.props.label (a
prop, not a child reachable by the old generic tree search - that
mismatch was the reason tags never appeared even before the crash).
The existing tag element found there is Discord's own BotTag, which
derives its label purely from a type enum and ignores any custom
text/color props - so the old "mutate BotTag in place" path was a
silent no-op. Now always injects the plugin's own GradientTag
instead, confirmed live to actually render custom tag text and color.
2026-08-09 01:05:20 -04:00
d128252024 Remove next-eval-checks diagnostic plugin
Live debugging is now handled through the revenge-devtools MCP
server (eval, react_tree, patch_method, etc.), which supersedes
one-shot diagnostic plugins built for a single investigation.
2026-08-09 00:32:19 -04:00
e9000107f6 staff-tags: fix member list tags never landing, bump to 1.0.8
UserRow is React.memo()-wrapped, so every row shares one inner render
function. The old afterJSX+afterRendered approach registered a new
self-unpatching hook on that shared function per row; since every
currently-stacked hook fires on any row's actual render (not just its
own), pairing broke almost immediately and hooks piled up unbounded,
eventually breaking member list rendering outright (confirmed live).
Replaced with a single persistent after() patch on the shared inner
render function, reading props fresh from args[0] each call - same
pattern chat.ts already uses successfully for getTagProperties.
2026-08-09 00:25:29 -04:00
d5e2c25e15 staff-tags: fix afterRendered crash on memo-wrapped components, bump to 1.0.7
Confirmed live: opening the member list crashed with "TypeError: target is
not callable" inside React's renderWithHooks. afterRendered patched
element.type directly, which works for plain function components but not
for UserRow (React.memo()-wrapped): patching the non-callable memo wrapper
object replaces it with a proxy whose *own* stub is callable, which makes
`typeof element.type === 'function'` true even though the real value is a
memo object - React's reconciler checks that before checking $$typeof, so it
takes the plain-function-component path and calls the proxy directly, whose
apply trap forwards to Reflect.apply(realMemoWrapper, ...) and throws, since
the real wrapper was never callable.

Fix: detect a memo-wrapped type and patch its inner .type (the actual render
function memo hides) instead of the wrapper itself - genuinely callable, and
leaves the wrapper's own shape untouched so React's type detection stays
correct. Shared in lib/afterRendered.ts, so it fixes UserRow now and any
future memo-wrapped target automatically.
2026-08-08 22:51:28 -04:00
980f1b33eb Bump versions for the author-name change (staff-tags 1.0.6, next-eval-checks 1.0.5) 2026-08-08 22:38:15 -04:00
ce57431385 Show author as Rosie instead of everestmcarthur 2026-08-08 22:37:41 -04:00
0439a6a67b staff-tags: fix UserRow/HeaderName lookups, bump to 1.0.5
Two of the three previously-broken module lookups now have well-evidenced
fixes (from live sweeps run during an earlier debugging session that were
never actually applied to the code):

- details.tsx: UserRow is React.memo()-wrapped, so a plain withName('UserRow')
  can never match it (memo wrapper objects have no .name). Added
  withMemoDefaultName (lib/filters.ts), a custom filter checking the wrapper's
  inner .type.name instead, matching on the full module namespace so the
  callback gets the wrapper itself - the exact reference afterJSX needs.

- name.tsx: HeaderName doesn't exist under that name anymore; ChannelHeader
  is the confirmed replacement (a plain, non-memo function, found via a
  name-sweep).

DisplayName (the message-author-name row) remains unresolved - never found
under any name across two live sweep sessions, likely inlined into a bigger
component now. Left as a documented, still-guarded no-op rather than guessed
at.
2026-08-08 20:56:46 -04:00
869556245c Import revenge-next-plugs working tree
Includes the already-applied package.json fix (build/build:dev/generate-index/serve
now invoke @revenge-mod/plugin-cli via bun directly, bypassing its broken
node-shebang delegation that crashed both bun run build and Gradle's
packageAllPlugins).
2026-08-08 18:42:50 -04:00