fix(consumers): Slack DAO/Settings selection broken (invalid_blocks) → toggle lists#264
Merged
Merged
Conversation
Slack rejects a `checkboxes` element with more than 10 options as `invalid_blocks` (HTTP 404 on the response_url POST). The DAO list (11) and notification Settings (12 types) had both grown past that cap, so clicking "Manage DAOs" or "Settings" failed with "Sorry, there was an error loading...". Telegram was unaffected (no such limit). Replace both with per-item toggle buttons that save on click and re-render the message in place: - DAOs: a grid of toggle buttons (daoToggleList) — green + checkmark when tracked - Settings: a list of rows, each notification type with an On/Off button accessory A "Done" button collapses the list into a summary; for the DAO onboarding flow it still advances to the wallet step. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PedroBinotto
approved these changes
Jun 19, 2026
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.
Problem
Clicking Manage DAOs or Settings in Slack failed with "Sorry, there was an error loading...".
Root cause: Slack's
checkboxeselement accepts a maximum of 10 options, and both lists had grown past it — 11 DAOs and 12 notification types. Slack rejected the whole message withinvalid_blocks(HTTP 404 on theresponse_urlPOST), which the handler surfaced as the generic error. Telegram was unaffected (different platform, no such limit).Fix
Replaced the checkbox UI with interactive toggle-button lists that save on each click and re-render the message in place:
daoToggleList): a grid of toggle buttons — green + ✅ when tracked.A Done button collapses the list into a summary; in the DAO onboarding flow it still advances to the wallet step (
dao_confirm_subscribekept). New action handlers:dao_toggle_*,settings_toggle_*.Note (out of scope)
Wallet selection still uses
checkboxes— same latent limit, but only breaks for a user with >10 wallets. Left as-is intentionally.Testing
tsc --noEmitclean.railway upand confirmed both flows in Slack: toggling saves + re-renders, no moreinvalid_blocks.🤖 Generated with Claude Code