Skip to content

refactor: consolidate match grades into single config - #190

Merged
hturnbull93 merged 1 commit into
mainfrom
refactor/match-grades-config
Jul 29, 2026
Merged

refactor: consolidate match grades into single config#190
hturnbull93 merged 1 commit into
mainfrom
refactor/match-grades-config

Conversation

@hturnbull93

Copy link
Copy Markdown
Collaborator

Summary

  • Introduces GradeConfig interface and MATCH_GRADES typed array in lib/matching.ts as single source of truth for grade labels, thresholds, and notifiability
  • matchGradeLabel now derives from MATCH_GRADES instead of hardcoded if-chain; array is runtime-sorted descending so find() always works correctly
  • project-match.ts renamed to project-match-notify.ts to reflect its purpose
  • NOTIFIABLE_GRADES in the notify file derived from MATCH_GRADES — no more duplicated magic strings

Test plan

  • npm run check-all passes

🤖 Generated with Claude Code

https://claude.ai/code/session_01HSjjc1dDRePv7f5YNVjs88

Replace magic strings and duplicated grade set with a typed `MATCH_GRADES`
array that owns labels, thresholds, and notifiability in one place.
Rename lib/project-match.ts → lib/project-match-notify.ts to reflect purpose.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HSjjc1dDRePv7f5YNVjs88
@railway-app
railway-app Bot temporarily deployed to PauseAI Catalyse / catalyse-pr-190 July 27, 2026 19:07 Destroyed
@railway-app

railway-app Bot commented Jul 27, 2026

Copy link
Copy Markdown

🚅 Deployed to the catalyse-pr-190 environment in PauseAI Catalyse

Service Status Web Updated (UTC)
web ✅ Success (View Logs) Web Jul 27, 2026 at 7:09 pm
1 service not affected by this PR
  • Cron for digest

@hturnbull93
hturnbull93 merged commit 3ff59c9 into main Jul 29, 2026
3 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