Commit 7591268
committed
Resolves #4160 ([FR-1383https://lablup.atlassian.net/browse/FR-1383))
# Fix tooltip rendering and add missing i18n key for Recently Created Sessions
## Summary
Fix missing i18n key and HTML rendering issues in tooltip components.
## Issues Fixed
- **Missing i18n key**: The tooltip was not displayed correctly due to the missing RecentlyCreatedSessionsTooltip key
- **HTML rendering**: i18n messages containing HTML tags (e.g., p tags) were displayed as plain strings instead of rendered HTML
## Changes
- ✅ Added missing RecentlyCreatedSessionsTooltip key to all 21 language files
- ✅ Modified MyResource.tsx to use Trans component for proper HTML rendering in tooltips
- ✅ Updated BaseResourceItem.tsx tooltip prop type from string to ReactNode to support React components
- ✅ Enhanced RecentlyCreatedSession.tsx to support parameterized tooltips with count values
- ✅ Added i18n-ally regex patterns to code-workspace for better i18n key detection
## Files Changed
- backend.ai-webui.code-workspace - Added i18n-ally regex patterns
- react/src/components/BaseResourceItem.tsx - Enhanced tooltip prop type
- react/src/components/MyResource.tsx - Added Trans component usage
- react/src/components/RecentlyCreatedSession.tsx - Added count parameter support
- resources/i18n/*.json (21 files) - Added missing translation key
1 parent 2ad58c7 commit 7591268
File tree
24 files changed
+27
-4
lines changed- react/src/components
- resources/i18n
24 files changed
+27
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1284 | 1284 | | |
1285 | 1285 | | |
1286 | 1286 | | |
| 1287 | + | |
1287 | 1288 | | |
1288 | 1289 | | |
1289 | 1290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1282 | 1282 | | |
1283 | 1283 | | |
1284 | 1284 | | |
| 1285 | + | |
1285 | 1286 | | |
1286 | 1287 | | |
1287 | 1288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1291 | 1291 | | |
1292 | 1292 | | |
1293 | 1293 | | |
| 1294 | + | |
1294 | 1295 | | |
1295 | 1296 | | |
1296 | 1297 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1286 | 1286 | | |
1287 | 1287 | | |
1288 | 1288 | | |
| 1289 | + | |
1289 | 1290 | | |
1290 | 1291 | | |
1291 | 1292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1285 | 1285 | | |
1286 | 1286 | | |
1287 | 1287 | | |
| 1288 | + | |
1288 | 1289 | | |
1289 | 1290 | | |
1290 | 1291 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1286 | 1286 | | |
1287 | 1287 | | |
1288 | 1288 | | |
| 1289 | + | |
1289 | 1290 | | |
1290 | 1291 | | |
1291 | 1292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1284 | 1284 | | |
1285 | 1285 | | |
1286 | 1286 | | |
| 1287 | + | |
1287 | 1288 | | |
1288 | 1289 | | |
1289 | 1290 | | |
| |||
0 commit comments