Commit 271f990
Fix: Remove leading # from search result tags in advanced search (#1115)
* fix: remove leading # from search result tags in advanced search
- Strip # prefix from node badges to show correct 3-letter abbreviations
- Applies to both nodeConfig and nodeTypeLabel fallback cases
- Fixes tags showing as #CL and #QU instead of CLM and QUE
Co-authored-by: Michael Gartner <mdroidian@users.noreply.github.com>
* refactor: introduce formatBadgeText utility for consistent badge formatting
- Added formatBadgeText function to standardize the removal of leading # and limit badge text to 3 uppercase letters.
- Updated getNodeBadgeText and ResultRow components to utilize the new utility for improved consistency in badge display.
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Michael Gartner <mdroidian@users.noreply.github.com>1 parent 3e60913 commit 271f990
2 files changed
Lines changed: 11 additions & 10 deletions
Lines changed: 8 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 1 | + | |
8 | 2 | | |
9 | 3 | | |
10 | 4 | | |
| |||
37 | 31 | | |
38 | 32 | | |
39 | 33 | | |
| 34 | + | |
40 | 35 | | |
41 | 36 | | |
42 | 37 | | |
| |||
49 | 44 | | |
50 | 45 | | |
51 | 46 | | |
52 | | - | |
53 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
54 | 50 | | |
55 | 51 | | |
56 | 52 | | |
| |||
102 | 98 | | |
103 | 99 | | |
104 | 100 | | |
105 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
106 | 104 | | |
107 | 105 | | |
108 | 106 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
| |||
0 commit comments