Repository navigation
refactor(discord): let each flow own its interactions - #497
Open
Isaiahriveraa wants to merge 1 commit into
Open
Isaiahriveraa wants to merge 1 commit into
Isaiahriveraa wants to merge 1 commit into
Conversation
The button naming scheme was split across four places: the HTTP route checked for "approve" to decide when to acknowledge Discord early, the dispatcher sent anything without an rso- prefix to events, and event review buttons had no prefix. Each flow now says which interactions it owns and which need Discord acknowledged first; the dispatcher asks the flows, and the route only knows how to acknowledge early. Event review buttons now use the event- prefix. Buttons on approval cards posted earlier still work. Registered student organization (RSO) approvals, which can create a role and grant two, are now acknowledged first too, so slow approvals no longer risk Discord's reply deadline. An interaction no flow owns gets "not available" instead of going to events. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🚀 Deployed on https://pr-497--iuga.netlify.app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale
The button naming scheme was split across the HTTP route, the dispatcher, and both flows, so a new flow's buttons silently went to events and renaming
approvewould quietly stop the early acknowledgement. Each flow now says what it owns and which interactions are slow; the route only knows how to acknowledge early.Observable Behavior
event-approve/event-deny; buttons on approval cards already posted still work.Verification
acknowledges Discord first only for approvals, which do slow work— the early-acknowledgement rulestill approves from a card posted before review buttons had the event- prefix— old cards keep workingdoesn't claim a button named after a built-in object property—constructor:no longer crashes the lookupStack Context
🤖 Generated with Claude Code