Commit cfae2af
authored
[CRCR] Align per-repo page styling and fix tooltip behavior (#8467)
## Summary
Aligns both PR and nightly per-repo dashboard pages
(`/crcr/{org}/{repo}`) with the main HUD styling, and fixes
tooltip-related issues.
### 1. Fix scrollbar on tooltip hover
The table wrapper uses `overflowX: auto` for horizontal scrolling, but
the `TooltipTarget` popup (`position: absolute`) expands the scrollable
area vertically, causing both scrollbars to flash on hover. Setting
`overflowY: visible` on both table wrappers lets the tooltip escape the
container without triggering scrollbars.
### 2. Align column/row highlighting with main HUD
- **PR matrix header**: Was applying `hudStyles.highlight` to both the
`<th>` and the inner `<span>`, causing a double-highlight. Removed
highlight from `<th>` to match main HUD.
- **Nightly matrix**: Converted from inline styles to `hudStyles` CSS
classes and added column/row highlighting via `CrcrPinnedContext`.
### 3. Align nightly matrix with PR matrix styling
Replaced all inline style constants (`headerBaseStyle`,
`jobHeaderStyle`, `jobHeaderNameStyle`, `cellStyle`) with `hudStyles`
CSS classes (`hudTable`, `regularHeader`, `jobHeader`, `jobHeaderName`,
`colTime`, `colSha`, `colCommit`, `colJob`, `jobMetadata`,
`jobMetadataTruncated`, `mono`). Both matrices now use identical
styling.
### 4. Link "Show log" to specific job
Tooltip "Show log" link now navigates to the specific job
(`workflow_run_url/job/check_run_id`) instead of the workflow run
overview page.
### Cleanup
- Removed unused `CSSProperties` import
- Removed unused MUI `Tooltip` import (replaced with native `title`
attribute)
- Added `hudStyles.mono` to SHA cell in PR matrix for consistency
| Commit | What |
|--------|------|
| `016880f` | Fix scrollbar on tooltip hover (`overflowY: visible`) |
| `1ef362f` | Align highlighting + convert nightly to hudStyles |
| `f5df5d1` | Fix Prettier ternary formatting |
| `1936683` | Fix Prettier className ternary |
| `67067fd` | Replace MUI Tooltip with native `title` in nightly |
| `fa28915` | Add `mono` class to SHA cell in PR matrix |
| `90a76d6` | Link "Show log" to specific job via `check_run_id` |
## Test plan
- [ ] Hover over job cell — no scrollbars appear
- [ ] Click a cell to pin tooltip — "Show log" links to the specific job
- [ ] Click a column header — yellow highlight through entire column
- [ ] Click a row — yellow highlight on entire row
- [ ] Press Escape or click elsewhere — highlight dismissed
- [ ] SHA column renders in monospace on both PR and nightly views
- [ ] All above works on both PR view and nightly view
(`?event=nightly`)1 parent 0fe1899 commit cfae2af
1 file changed
Lines changed: 92 additions & 94 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | | - | |
25 | 23 | | |
26 | 24 | | |
27 | 25 | | |
| |||
238 | 236 | | |
239 | 237 | | |
240 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
241 | 246 | | |
242 | 247 | | |
| 248 | + | |
243 | 249 | | |
244 | 250 | | |
245 | 251 | | |
| |||
258 | 264 | | |
259 | 265 | | |
260 | 266 | | |
261 | | - | |
| 267 | + | |
262 | 268 | | |
263 | 269 | | |
264 | | - | |
| 270 | + | |
265 | 271 | | |
266 | 272 | | |
267 | 273 | | |
| |||
403 | 409 | | |
404 | 410 | | |
405 | 411 | | |
| 412 | + | |
406 | 413 | | |
407 | 414 | | |
408 | | - | |
| 415 | + | |
409 | 416 | | |
410 | | - | |
| 417 | + | |
411 | 418 | | |
412 | 419 | | |
413 | 420 | | |
| |||
640 | 647 | | |
641 | 648 | | |
642 | 649 | | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | 650 | | |
679 | 651 | | |
680 | 652 | | |
| |||
752 | 724 | | |
753 | 725 | | |
754 | 726 | | |
755 | | - | |
| 727 | + | |
756 | 728 | | |
757 | 729 | | |
758 | 730 | | |
| |||
774 | 746 | | |
775 | 747 | | |
776 | 748 | | |
777 | | - | |
778 | | - | |
779 | | - | |
| 749 | + | |
780 | 750 | | |
781 | 751 | | |
782 | 752 | | |
| |||
832 | 802 | | |
833 | 803 | | |
834 | 804 | | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | | - | |
839 | | - | |
840 | | - | |
841 | | - | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
842 | 814 | | |
843 | 815 | | |
844 | 816 | | |
| |||
1004 | 976 | | |
1005 | 977 | | |
1006 | 978 | | |
| 979 | + | |
1007 | 980 | | |
1008 | 981 | | |
1009 | 982 | | |
| |||
1026 | 999 | | |
1027 | 1000 | | |
1028 | 1001 | | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
| 1002 | + | |
| 1003 | + | |
1037 | 1004 | | |
1038 | | - | |
1039 | | - | |
1040 | | - | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
1041 | 1008 | | |
1042 | | - | |
| 1009 | + | |
1043 | 1010 | | |
1044 | 1011 | | |
1045 | 1012 | | |
1046 | 1013 | | |
1047 | | - | |
1048 | | - | |
1049 | | - | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
1050 | 1017 | | |
1051 | | - | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
1052 | 1030 | | |
| 1031 | + | |
1053 | 1032 | | |
1054 | | - | |
1055 | 1033 | | |
1056 | 1034 | | |
1057 | 1035 | | |
1058 | | - | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
1059 | 1043 | | |
1060 | 1044 | | |
1061 | 1045 | | |
| |||
1066 | 1050 | | |
1067 | 1051 | | |
1068 | 1052 | | |
| 1053 | + | |
| 1054 | + | |
1069 | 1055 | | |
1070 | | - | |
1071 | | - | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
1072 | 1072 | | |
1073 | 1073 | | |
1074 | | - | |
1075 | | - | |
1076 | | - | |
1077 | | - | |
1078 | | - | |
1079 | | - | |
1080 | | - | |
1081 | | - | |
1082 | | - | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
1083 | 1084 | | |
1084 | | - | |
1085 | | - | |
| 1085 | + | |
| 1086 | + | |
1086 | 1087 | | |
1087 | 1088 | | |
1088 | 1089 | | |
1089 | 1090 | | |
1090 | | - | |
1091 | | - | |
1092 | | - | |
1093 | | - | |
1094 | | - | |
1095 | | - | |
1096 | | - | |
1097 | | - | |
| 1091 | + | |
1098 | 1092 | | |
1099 | 1093 | | |
1100 | 1094 | | |
1101 | | - | |
| 1095 | + | |
1102 | 1096 | | |
1103 | 1097 | | |
| 1098 | + | |
| 1099 | + | |
1104 | 1100 | | |
1105 | 1101 | | |
1106 | 1102 | | |
1107 | 1103 | | |
1108 | 1104 | | |
1109 | 1105 | | |
1110 | 1106 | | |
1111 | | - | |
| 1107 | + | |
| 1108 | + | |
1112 | 1109 | | |
1113 | 1110 | | |
1114 | 1111 | | |
| |||
1126 | 1123 | | |
1127 | 1124 | | |
1128 | 1125 | | |
1129 | | - | |
| 1126 | + | |
| 1127 | + | |
1130 | 1128 | | |
1131 | 1129 | | |
1132 | 1130 | | |
| |||
0 commit comments