Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
e4d513f
Add mattermost OAuth2 flow
ravishankar15 Aug 6, 2024
adfeb1f
Correcting the comments
ravishankar15 Aug 13, 2024
7a9aa2c
Fix the config checks API
ravishankar15 Aug 13, 2024
9b750b4
Fixing the lint errors
ravishankar15 Aug 13, 2024
a039a59
Add mattermost OAuth2 flow
ravishankar15 Aug 6, 2024
9126d1d
Mattermost Connect Channels
ravishankar15 Aug 27, 2024
726c80e
Addressed the review comments
ravishankar15 Aug 30, 2024
71588db
Adding default action and test cases
ravishankar15 Sep 7, 2024
5dc0afa
Review comments
ravishankar15 Sep 10, 2024
2712c29
Fix exception handling of mattermost API
ravishankar15 Sep 11, 2024
5225f2d
Make the feature flag true by default
ravishankar15 Sep 12, 2024
bcc3887
Review comments and changes for latest update on freature branch
ravishankar15 Sep 14, 2024
384a52a
Add token to base for testing
ravishankar15 Sep 14, 2024
2ff3a1d
Remove config checks from OrganizationConfigChecksView
ravishankar15 Sep 17, 2024
20bfd9a
Remove related config check code
ravishankar15 Sep 17, 2024
23d5bbe
Remove missed config check
ravishankar15 Sep 17, 2024
c06a792
Mattermost Channel Integration UI Changes
ravishankar15 Sep 18, 2024
f1b5b0f
Use channel id insted of channel name and team name
ravishankar15 Sep 19, 2024
e85ffb1
Review comments
ravishankar15 Sep 24, 2024
3abfab3
Update to emotion styling
ravishankar15 Oct 1, 2024
7c10ace
Mattermost User Integration
ravishankar15 Sep 20, 2024
ae20e64
Moving to emotion styling review comments
ravishankar15 Oct 1, 2024
6a101ce
Remove unnecessary unique index
ravishankar15 Oct 7, 2024
7e1c528
Mattermost Alert Flow
ravishankar15 Oct 14, 2024
5faec3c
Fix spelling
ravishankar15 Oct 16, 2024
058a60a
Adding tests and review comments
ravishankar15 Oct 31, 2024
a411d60
Fix duplication and lint fixes
ravishankar15 Nov 12, 2024
c4183d5
Add config for ci test
ravishankar15 Nov 12, 2024
95289d8
Address Review comments
ravishankar15 Nov 14, 2024
472c3c3
Fixing Lint and User auth redirect flow
ravishankar15 Nov 19, 2024
b2326ae
Mattermost incoming event handler
ravishankar15 Nov 20, 2024
4d69512
Review comments and tests
ravishankar15 Nov 21, 2024
dbd8f7f
User Notification and Escalation Chain flow
ravishankar15 Nov 26, 2024
9caf6b9
Save notification record and review comments
ravishankar15 Nov 30, 2024
0cb8cca
Remove print statement
ravishankar15 Dec 3, 2024
95c3928
Regenerate migrations
matiasb Dec 3, 2024
a3126fe
Documentation for mattermost integration
ravishankar15 Dec 4, 2024
4fca9b0
Update docs, fix lint
matiasb Dec 4, 2024
6136504
Add mattermost alert group integration flow
ravishankar15 Dec 7, 2024
93552d3
Add chatops display condition and review comments
ravishankar15 Dec 10, 2024
e7b4dfa
Minor updates and refactorings
matiasb Dec 27, 2024
1aaff07
Updates from review
matiasb Jan 3, 2025
d40c8fc
Update db migration
matiasb Jan 7, 2025
a104a9b
Updates post-rebase
matiasb Mar 3, 2025
53afedd
Upgrade django
matiasb Apr 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Moving to emotion styling review comments
  • Loading branch information
ravishankar15 authored and matiasb committed Apr 21, 2025
commit ae20e64851463d5a175fa3557b642777782c7577

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useCallback } from 'react';

import { Button, Stack } from '@grafana/ui';
import cn from 'classnames/bind';
import { css } from '@emotion/css';
import { Button, Stack, useStyles2 } from '@grafana/ui';
import { UserActions } from 'helpers/authorization/authorization';
import { DOCS_MATTERMOST_SETUP, StackSize } from 'helpers/consts';

Expand All @@ -10,11 +10,9 @@ import { Text } from 'components/Text/Text';
import { WithPermissionControlDisplay } from 'containers/WithPermissionControl/WithPermissionControlDisplay';
import { useStore } from 'state/useStore';

import styles from './MattermostInfo.module.css';

const cx = cn.bind(styles);

export const MattermostInfo = () => {
const styles = useStyles2(getStyles);

const { mattermostStore } = useStore();

const handleClickConnectMattermostAccount = useCallback(() => {
Expand All @@ -24,7 +22,7 @@ export const MattermostInfo = () => {
return (
<WithPermissionControlDisplay userAction={UserActions.UserSettingsWrite}>
<Stack direction="column" gap={StackSize.lg}>
<Block bordered withBackground className={cx('mattermost-infoblock', 'u-width-100')}>
<Block bordered withBackground className={styles.mattermostInfoblock}>
<Stack direction="column" alignItems="center" gap={StackSize.lg}>
<Text>
Personal Mattermost connection will allow you to manage alert group in your connected mattermost channel
Expand All @@ -48,3 +46,11 @@ export const MattermostInfo = () => {
</WithPermissionControlDisplay>
);
};

const getStyles = () => {
return {
mattermostInfoblock: css`
text-align: center;
`,
};
};