Skip to content

fix: display Slack profile name for chapter leaders without WorkOS accounts#696

Merged
bokelley merged 1 commit into
mainfrom
bokelley/fix-london-slack-id
Jan 10, 2026
Merged

fix: display Slack profile name for chapter leaders without WorkOS accounts#696
bokelley merged 1 commit into
mainfrom
bokelley/fix-london-slack-id

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

  • Leaders added via Slack ID that haven't linked their WorkOS account were showing raw Slack user IDs (e.g., U09BEKNJ3GB) instead of their names
  • Updated getLeaders and getLeadersBatch queries to include slack_user_mappings.slack_real_name and slack_display_name as fallback name sources
  • Added clarifying comments explaining why the same table is joined twice (for ID resolution vs profile name)

Test plan

  • Verify London chapter page shows proper leader names instead of Slack IDs
  • Confirm leaders with linked WorkOS accounts still display correctly
  • Verify chapters list page shows correct leader names

🤖 Generated with Claude Code

…counts

Leaders added via Slack ID that haven't linked their WorkOS account were
showing raw Slack user IDs (e.g., U09BEKNJ3GB) instead of their names.

The getLeaders and getLeadersBatch queries now include slack_user_mappings
as an additional name source, falling back to slack_real_name or
slack_display_name before showing the raw user ID.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bokelley bokelley merged commit fa68588 into main Jan 10, 2026
6 checks passed
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.

1 participant