Skip to content

fix(slack): surface the real Home-view error + minimal fallback#663

Merged
buremba merged 1 commit into
mainfrom
fix/slack-home-publish-error-detail
May 13, 2026
Merged

fix(slack): surface the real Home-view error + minimal fallback#663
buremba merged 1 commit into
mainfrom
fix/slack-home-publish-error-detail

Conversation

@buremba
Copy link
Copy Markdown
Member

@buremba buremba commented May 13, 2026

Follow-up to #653. The App Home publish was failing in prod with an unhelpful {"error":{}} log line — pino doesn't serialize a Slack WebAPIPlatformError logged under the error key. This extracts error.message + the Slack .data payload so we can see what views.publish is actually rejecting, and — so the user isn't left staring at the stale cached view — falls back to publishing a plain text-only home view if the rich one is rejected.

Tests: +1 (fallback path), 10 total green; build + typecheck clean.

🤖 Generated with Claude Code

…ck to a minimal view

The Home-tab publish was failing with an unhelpful '{}' log (pino didn't
serialize the Slack WebAPIPlatformError). Extract message + .data, and on
failure publish a plain text-only home view so the user isn't stuck on the
stale cached one.
@buremba buremba merged commit 12dcdcb into main May 13, 2026
12 of 14 checks passed
@buremba buremba deleted the fix/slack-home-publish-error-detail branch May 13, 2026 03:37
@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants