Skip to content

feat: Slack notification on first badge earned #461

@mschilling

Description

@mschilling

Context

When a Framna colleague earns their first badge (e.g., "Connected" 🔗 for linking their GitHub account), it would be great to celebrate publicly in a Slack channel like #codeheroes.

Proposal

Post a message to Slack when a user earns their first badge:

🎉 Michael Schilling just earned the Connected 🔗 badge! Welcome to Code Heroes!

Implementation

  • Trigger: in BadgeService.grantBadge(), check if this is the user's first badge (badge count was 0 before)
  • Or: trigger specifically on the "connected" badge (simpler, more targeted)
  • Use a Slack webhook URL stored in Firebase secrets
  • Fire-and-forget pattern (don't block badge granting on Slack delivery)

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprovement to existing feature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions