Commit f8d6fbb
fix: Always show grade qualifiers in coffee classification options
The first option in a group was missing its grade qualifier (e.g.,
"Arabica plantation" instead of "Arabica plantation - A Grade").
Root cause: generateUniqueLabel() returned base label if unique,
before checking if there was a meaningful grade qualifier to show.
Fix: Detect grade patterns (A/B/C/AB/PB/AAA/B/B/B Grade) and always
include them in the label, ensuring users see the full grade info.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent db1f67e commit f8d6fbb
1 file changed
Lines changed: 16 additions & 2 deletions
File tree
- backend/src/services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
831 | 831 | | |
832 | 832 | | |
833 | 833 | | |
834 | | - | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
835 | 849 | | |
836 | | - | |
| 850 | + | |
837 | 851 | | |
838 | 852 | | |
839 | 853 | | |
| |||
0 commit comments