Repository navigation
fix(app-shell): a full-height console page gives the impersonation banner its height back - #37588
Draft
objectstack-fleet[bot] wants to merge 2 commits into
Draft
objectstack-fleet[bot] wants to merge 2 commits into
objectstack-fleet[bot] wants to merge 2 commits into
Conversation
… their height back Claude-Session: https://claude.ai/code/session_01L6bhgUuauSMJu1nVSQRQri Co-authored-by: Claude <noreply@anthropic.com>
… app-state screens, give the banners their height back too Claude-Session: https://claude.ai/code/session_01L6bhgUuauSMJu1nVSQRQri Co-authored-by: Claude <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Sales · project thread
Fixes #37528
What changes
ChromeBannerSlot(app-shell/src/layout/chromeBannerHost.tsx): when the console's standing banners (impersonation, read rate, storage) are drawn in place above the routes, adisplay: contentswrapper measures them (ResizeObserveron each child,MutationObserverfor banners that come and go) and publishes the summed height as--os-chrome-bannerson the document root; cleared on unmount and while nothing is drawn. Drawn into an app layout's host (desktop, inside an app, objectstack#36112) nothing is published, as that host sits inside the content area.CONSOLE_FULL_HEIGHT(module-local constants, literal Tailwind classes):AppShellin@object-ui/layout(height, and amin-h-that tailwind-merge puts in place of the sidebar wrapper's ownmin-h-svh),StudioDesignSurface,HomeLayout,AiChatPage, the two organization layouts, the app-unavailable / no-app screens inAppContent, andStudioRoute's access-required screen. The property is unset outside the console and on an ordinary session, so every class there computes to the plain viewport height.sticky; nothing about where it is drawn changes.Why
While an administrator impersonates a user, the banner sat in flow above a shell that still took
100svh/100vh, so the document was taller than the window by the banner's height: list footers and bulk action bars fell below the fold and the page grew a second scrollbar.Measured on
main(4116465) in a local console againstexamples/app-crm(--fresh), impersonating a seeded user,document.documentElement.scrollHeightagainstinnerHeight:/homecrm_lead)/studioThe first push fixed
/homeonly: the sidebar wrapper's ownmin-h-svhand Studio's access-required screen still overflowed, which the second commit covers.Verification
layout/__tests__/chromeBannerHost.bannerHeight-37528.test.tsx(5 cases: in place publishes the summed height and clears on unmount; no banner publishes nothing; a resize and a banner going away republish; drawn into the host publishes nothing; every full-height class reads the property with a0pxfallback). WithchromeBannerHost.tsxrestored frommain, 3 of the 5 go red (the two "nothing published" cases are controls).pnpm --dir ui exec vitest runoverpackages/layout/,packages/app-shell/src/layout/,src/console/__tests__/,src/console/home,src/console/ai,src/console/organizations,src/views/studio-design, the print stylesheet pin,apps/console/src/componentsand the boot-redirect pins: all green (3,325 + 3,862 tests).ai-surface-unavailableinConsoleShellis deliberately left onh-screen:bootRedirectCoverage.test.tsxreads that class as the full-viewport cover.type-checkfor@object-ui/app-shelland@object-ui/layout: clean.eslinton the changed files: 0 errors.overlap-check: exit 0 (sharesStudioDesignSurface.tsxwith feat(studio): 概览 package overview page — Info and Pending tabs, ⋯ menu in its header #37546 andAiChatPage.tsxwith fix(chatbot): redraw record-citation chips after a reload; keep the cited-section scroll to new clicks #37539, both merge cleanly).Clause-②: no
Metadata-protocol: none
Human Minimum
packages/specholds no runtime logic. (not touched)eslinton the changed files passes (the fullpnpm lintruns in CI).main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgUuauSMJu1nVSQRQri