Brojd/polish insights (#3625)

# What this PR does
- remove duplicated inner page padding
- reorder items in sidebar

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
This commit is contained in:
Dominik Broj 2024-01-08 14:17:42 +01:00 committed by GitHub
parent 139df23911
commit 5337baa0fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 6 deletions

View file

@ -0,0 +1,6 @@
// Required to remove inner page padding since grafana-scenes doesn't support its style modification
.insights div[class*='page-inner'] {
padding-left: 0;
padding-right: 0;
border: none;
}

View file

@ -21,6 +21,7 @@ import Text from 'components/Text/Text';
import { useStore } from 'state/useStore';
import { DOCS_ROOT } from 'utils/consts';
import styles from './Insights.module.scss';
import { InsightsConfig } from './Insights.types';
import getAlertGroupsByIntegrationScene from './scenes/AlertGroupsByIntegration';
import getAlertGroupsByTeamScene from './scenes/AlertGroupsByTeam';
@ -45,10 +46,10 @@ const Insights = observer(() => {
const appScene = useSceneApp(() => getAppScene({ isOpenSource, datasource }));
return (
<>
<div className={styles.insights}>
<InsightsInfoAlert />
<appScene.Component model={appScene} />
</>
</div>
);
});

View file

@ -88,16 +88,16 @@
},
{
"type": "page",
"name": "Settings",
"path": "/a/grafana-oncall-app/settings",
"name": "Insights",
"path": "/a/grafana-oncall-app/insights",
"role": "Viewer",
"action": "grafana-oncall-app.other-settings:read",
"addToNav": true
},
{
"type": "page",
"name": "Insights",
"path": "/a/grafana-oncall-app/insights",
"name": "Settings",
"path": "/a/grafana-oncall-app/settings",
"role": "Viewer",
"action": "grafana-oncall-app.other-settings:read",
"addToNav": true