Commit efc38be
refactor: add hover content for metadata name & append human readable name with metadata key in one column (#2081)
## Description
This PR improves metadata field usability by adding support for
searching and displaying both human-readable names and metadata keys
(raw names).
Users can now search metadata fields using either human-readable names
or metadata keys in the search parameters dialog. The dialog and
condition panels display both human-readable names (primary) and
metadata keys (secondary, italic) for better clarity.
<img width="701" height="518" alt="image"
src="https://github.com/user-attachments/assets/cf7a807c-2d57-4dfc-b178-f4012d6a8eee"
/>
An icon with hover card shows full details of both naming conventions
both in search parameters dialog and in the condition section.
<img width="1387" height="1022" alt="image"
src="https://github.com/user-attachments/assets/2767e208-82d1-4f67-9326-89950b205f38"
/>
<img width="674" height="419" alt="image"
src="https://github.com/user-attachments/assets/f69e11c9-bb1f-48a4-821c-3ea405f89301"
/>
The UI includes condition chips with summary of the condition and empty
spaces has been removed and fields are more compact.
<img width="573" height="245" alt="image"
src="https://github.com/user-attachments/assets/c58b216e-ba1f-44c8-98fc-db294905be2f"
/>
Metadata-table:
<img width="861" height="486" alt="image"
src="https://github.com/user-attachments/assets/f0dd7d1a-9bdf-497e-bac2-999c88fe0f3c"
/>
<img width="998" height="610" alt="image"
src="https://github.com/user-attachments/assets/2c0d3a7b-d90a-4b6c-a7a1-9a3773fba4af"
/>
## Motivation
* https://jira.ess.eu/browse/SWAP-5064
## Fixes:
Please provide a list of the fixes implemented in this PR
* Items added
## Changes:
Please provide a list of the changes implemented by this PR
* changes made
## Tests included
- [ ] Included for each change/fix?
- [ ] Passing? (Merge will not be approved unless this is checked)
## Documentation
- [ ] swagger documentation updated \[required\]
- [ ] official documentation updated \[nice-to-have\]
### official documentation info
If you have updated the official documentation, please provide PR # and
URL of the pages where the updates are included
## Backend version
- [ ] Does it require a specific version of the backend
- which version of the backend is required:
## Summary by Sourcery
Combine human-readable and raw metadata names into one responsive column
and introduce hover overlays for detailed name display in metadata
tables and search parameter dialogs.
New Features:
- Add hover cards to display both human-readable and raw metadata names
on hover in dynamic tables and the search parameters dialog
- Combine human-readable and raw metadata names into a single column
with ellipsis styling
Enhancements:
- Merge raw and human-readable metadata name columns into one and adjust
SCSS for consistent hover-card appearance
- Introduce hoverOnCell and hoverContent flags with configurable overlay
positions in the dynamic-material-table
- Adjust dialog dimensions and styling for improved user experience in
metadata and condition dialogs
Build:
- Import MatCardModule and OverlayModule in SearchParametersDialogModule
---------
Co-authored-by: Abdi Abdulle <[email protected]>
Co-authored-by: junjiequan <[email protected]>1 parent 547b4bb commit efc38be
File tree
20 files changed
+786
-141
lines changed- cypress/e2e/datasets
- src
- app
- datasets
- datasets-filter
- settings
- state-management/models
20 files changed
+786
-141
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
111 | 119 | | |
112 | 120 | | |
113 | 121 | | |
| |||
157 | 165 | | |
158 | 166 | | |
159 | 167 | | |
160 | | - | |
| 168 | + | |
161 | 169 | | |
162 | 170 | | |
163 | 171 | | |
| |||
213 | 221 | | |
214 | 222 | | |
215 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
216 | 368 | | |
217 | 369 | | |
218 | 370 | | |
| |||
433 | 585 | | |
434 | 586 | | |
435 | 587 | | |
436 | | - | |
437 | 588 | | |
438 | 589 | | |
439 | 590 | | |
| |||
464 | 615 | | |
465 | 616 | | |
466 | 617 | | |
467 | | - | |
| 618 | + | |
468 | 619 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
742 | 742 | | |
743 | 743 | | |
744 | 744 | | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | 745 | | |
749 | 746 | | |
750 | 747 | | |
| |||
753 | 750 | | |
754 | 751 | | |
755 | 752 | | |
756 | | - | |
| 753 | + | |
757 | 754 | | |
758 | 755 | | |
759 | 756 | | |
| |||
Lines changed: 69 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
70 | 133 | | |
71 | 134 | | |
72 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
73 | 138 | | |
74 | 139 | | |
75 | 140 | | |
76 | 141 | | |
77 | | - | |
| 142 | + | |
78 | 143 | | |
79 | 144 | | |
80 | 145 | | |
| |||
287 | 352 | | |
288 | 353 | | |
289 | 354 | | |
| 355 | + | |
290 | 356 | | |
291 | 357 | | |
292 | 358 | | |
| |||
0 commit comments