Misc fixes & improvements - #173
Conversation
… in rows Co-authored-by: Alan <45767683+stylessh@users.noreply.github.com>
Requesting review from @stylessh who has experience with the following files modified in this PR:
|
| /** | ||
| * Pending component used for routes rendered inside the dashboard card | ||
| * (`DashboardLayout`). The `h-full` chain resolves against the card so the | ||
| * spinner stays visually centered within the content area. | ||
| * | ||
| * For top-level pending fallbacks where the parent is just `<body>` (e.g. | ||
| * when `_protected` itself is reloading), use `DashboardViewportLoading` | ||
| * instead — `h-full` there collapses to content height and pins the spinner | ||
| * to the top of the viewport. | ||
| */ |
There was a problem hiding this comment.
remove all these unnecessary comments
| /** | ||
| * Full-viewport pending component. Use for route pending states that render | ||
| * directly inside the document body (where no ancestor provides a resolved | ||
| * height). Keeps the spinner centered regardless of how little content the | ||
| * layout has yet rendered. | ||
| */ |
| {/* | ||
| * Split owner/name so a long owner login doesn't consume all the | ||
| * space and hide the repo name. The owner takes flexible space and | ||
| * truncates first; the repo name stays readable at its natural | ||
| * size. See diffkit#154. | ||
| */} |
…iate input Co-authored-by: Alan <45767683+stylessh@users.noreply.github.com>
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughA new viewport-filling loading component ( Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (2 warnings, 1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Uh oh!
There was an error while loading. Please reload this page.
Summary
Miscellaneous bug fixes and improvements across the dashboard:
DashboardViewportLoadingcomponent for full-viewport pending states when routes render directly in the document bodyRepositoryRowto prevent long owner logins from hiding repo names (fixesBug: Repository page truncates repo name when owner login is long #154)DashboardContentLoadingvsDashboardViewportLoadingDashboardViewportLoadingas the pending component for the_protectedrouteChanges
DashboardViewportLoadingexport todashboard-content-loading.tsxwith full-viewport centering usingmin-h-dvhRepositoryRowto display repo owner and name separately with proper truncation behaviorpendingComponentto_protectedroute configurationTest Plan
_protectedroute is pendingScreenshots
Summary by CodeRabbit