-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
custom dashboard #193
base: coderabbit_micro_frontend
Are you sure you want to change the base?
custom dashboard #193
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ import { css, cx } from '@emotion/css'; | |
import { useLayoutEffect } from 'react'; | ||
|
||
import { GrafanaTheme2, PageLayoutType } from '@grafana/data'; | ||
import { config } from '@grafana/runtime'; | ||
import { useStyles2 } from '@grafana/ui'; | ||
import { useGrafana } from 'app/core/context/GrafanaContext'; | ||
|
||
|
@@ -94,24 +93,13 @@ Page.Contents = PageContents; | |
|
||
const getStyles = (theme: GrafanaTheme2) => { | ||
return { | ||
wrapper: css( | ||
config.featureToggles.bodyScrolling | ||
? { | ||
label: 'page-wrapper', | ||
display: 'flex', | ||
flex: '1 1 0', | ||
flexDirection: 'column', | ||
position: 'relative', | ||
} | ||
: { | ||
label: 'page-wrapper', | ||
height: '100%', | ||
display: 'flex', | ||
flex: '1 1 0', | ||
flexDirection: 'column', | ||
minHeight: 0, | ||
} | ||
), | ||
wrapper: css({ | ||
label: 'page-wrapper', | ||
display: 'flex', | ||
flex: '1 1 0', | ||
flexDirection: 'column', | ||
position: 'relative', | ||
}), | ||
Comment on lines
+96
to
+102
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Based on the evidence gathered, I can now provide a final response: Removal of bodyScrolling toggle requires careful consideration The
Please:
🔗 Analysis chainVerify removal of bodyScrolling feature toggle The style implementation has been simplified by removing the conditional logic based on The search results show that Let's check if there are any recent changes specifically related to the bodyScrolling feature toggle in the Page component or related files. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Search for other usages of bodyScrolling feature toggle
rg "featureToggles.bodyScrolling" -A 3
Length of output: 7304 Script: #!/bin/bash
# Check recent commits mentioning bodyScrolling
git log --oneline -n 10 | grep -i "bodyscroll"
# Check if there are any migration or cleanup files related to this
fd -e ts -e tsx -e md | rg -i "migration|cleanup|scroll"
Length of output: 4827 Script: #!/bin/bash
# Check the git history of the Page component and related files
git log -p -- public/app/core/components/Page/Page.tsx | grep -A 5 "bodyScrolling"
# Check for any feature toggle documentation
fd -e md | xargs rg -i "bodyscrolling"
Length of output: 38 |
||
pageContent: css({ | ||
label: 'page-content', | ||
flexGrow: 1, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Method signature needs improvements
The new method signature has several issues that should be addressed:
any
forqueryParams
(e.g.,UrlQueryMap
which is already imported)updatePathname
)void
)📝 Committable suggestion