Skip to main content

Documentation Index

Fetch the complete documentation index at: https://grantmaster.dev/llms.txt

Use this file to discover all available pages before exploring further.

Engineering reference: See src/features/partnerships/partnerships.md and src/features/mission/mission.md for implementation details.

last_updated: 2026-02-22

Partnership & Gamification

StatusUpdatedCovered Files
🟡 In Development2026-02-22src/features/relations/, src/features/partnerships/contracts.ts, src/routes/routeConfig.tsx (partnership routes)

Overview

The Partnership & Gamification system manages external relationships (partner organizations, referrals, revenue sharing) and internal engagement mechanics (badges, achievement campaigns, activity streaks). Partnerships are managed through the Relations feature, while gamification elements are distributed across features.

Partnership System

Partnership Types

TypeDescription
Implementation PartnerOrganizations co-implementing projects
Sub-granteeSub-award recipients receiving pass-through funding
Consortium MemberMembers of multi-organization grant applications
Referral PartnerOrganizations that refer clients/funders
Service ProviderContracted service providers (consultants, vendors)

Partnership Lifecycle

Referral Program

FeatureDescription
Referral trackingTrack which organization referred a funder or partner
Revenue sharingConfigurable percentage-based revenue sharing agreements
AttributionLink grants and revenue back to referring partner
ReportingReferral performance dashboards and payout summaries

Gamification System

Badges & Achievements

Badge CategoryExamples
Compliance”100% Audit Ready”, “Zero Violations (90 days)“
Productivity”Journal Streak (30 days)”, “Report Champion”
Collaboration”Team Player”, “Cross-Project Contributor”
Impact”Milestone Master”, “Target Achiever”
Onboarding”Profile Complete”, “First Expense Submitted”

Campaign System

Campaigns are time-bounded gamification events that encourage specific behaviors:
interface GamificationCampaign {
  id: string;
  organizationId: string;
  name: string;
  description: string;
  startDate: string;
  endDate: string;
  targetAction: string;          // e.g. 'submit_journal', 'complete_training'
  targetCount: number;           // Actions needed to earn reward
  reward: {
    type: 'badge' | 'points' | 'recognition';
    value: string;
  };
  participants: string[];
  isActive: boolean;
}

Activity Streaks

Track consecutive-day engagement for key activities:
ActivityStreak Metric
Journal entriesConsecutive days with time logged
Expense submissionsOn-time submission streak
Report deadlinesConsecutive on-time report submissions
Platform loginDaily active usage streak

Relations Feature

Directory: src/features/relations/ The Relations feature provides the foundation for partnership management:
CapabilityDescription
Contact managementExternal contact profiles and history
Organization profilesPartner organization details and agreements
Interaction loggingMeeting notes, calls, emails tracked
Document sharingShared documents with partner organizations
Activity timelineChronological relationship history

Key Files Reference

FilePurpose
src/features/relations/Relationship and contact management feature
src/features/partnerships/contracts.tsPartnership type definitions
src/routes/routeConfig.tsxPartnership navigation routes