Skip to content
Merged
Show file tree
Hide file tree
Changes from 54 commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
09ef590
feat: notifications page ui new icons added
asika-gadgeon Sep 12, 2025
fe7f280
feat: recommendation ui added new icon
asika-gadgeon Sep 12, 2025
f8dc9ab
feat: notification ui added new icon
asika-gadgeon Sep 15, 2025
bebb618
feat: notifications page ui new icons
asika-gadgeon Sep 15, 2025
24c5c3f
feat: Icons for Recommendation status
chith-git Sep 15, 2025
12d5241
feat: Icon name change
chith-git Sep 15, 2025
804bb0a
feat:new root for connecting athena apis
chith-git Sep 23, 2025
e93208e
feat: chatbot changes
asika-gadgeon Sep 30, 2025
754404e
adding new icons
chith-git Sep 30, 2025
3722b01
feat: chatbot makdown styles updated
asika-gadgeon Oct 1, 2025
d6dba96
Icons added
chith-git Oct 1, 2025
a610454
icons changing to IconsV2
chith-git Oct 6, 2025
16646ea
Removing unwanted changes
chith-git Oct 6, 2025
e013add
Icons adding
chith-git Oct 6, 2025
91a76e3
Adding medium icon
chith-git Oct 6, 2025
dc4ef22
Correct icon replaced
chith-git Oct 6, 2025
df3d18f
code formatting
chith-git Oct 6, 2025
516f676
Removing service paths
chith-git Oct 6, 2025
4961797
API changes added
chith-git Oct 7, 2025
10443db
feat: Runbook implentation
chith-git Oct 12, 2025
85943f0
Changing the path
chith-git Oct 15, 2025
ac708d7
duplicates icons removed
chith-git Oct 22, 2025
a66904e
feat: chatbot graphs
asika-gadgeon Oct 13, 2025
e23ba7a
audit-logs
asika-gadgeon Oct 23, 2025
867f263
sample run book link added
chith-git Oct 23, 2025
a882d6c
version bump
chith-git Oct 23, 2025
195f2a9
version bump
chith-git Oct 23, 2025
1f4c37c
charts added axes configs
asika-gadgeon Oct 25, 2025
bfa8934
chart config version update
asika-gadgeon Oct 25, 2025
2b2a5de
version bump
chith-git Oct 27, 2025
ad6dab7
Merge remote-tracking branch 'origin/kubecon-2025' into develop-kubeo…
chith-git Nov 3, 2025
bd2f185
Merge pull request #945 from devtron-labs/develop-kubeon-devtron
chith-git Nov 3, 2025
0c4370c
version bump
chith-git Nov 3, 2025
6c415b0
version bump
chith-git Nov 3, 2025
b11fedc
reverted changes in axes config
asika-gadgeon Nov 4, 2025
39a74ab
version bump
asika-gadgeon Nov 4, 2025
81d2be0
graph fix version update
asika-gadgeon Nov 4, 2025
71be984
Merge remote-tracking branch 'origin/kubecon-2025' into develop-kubec…
asika-gadgeon Nov 7, 2025
5f49f1b
merged changes in chart
asika-gadgeon Nov 7, 2025
34effbd
Merge pull request #954 from devtron-labs/develop-kubecon-merge
chith-git Nov 7, 2025
762ed02
version bump
chith-git Nov 7, 2025
d9fd69d
Changing sample doc url
chith-git Nov 7, 2025
a6798df
version bump
chith-git Nov 7, 2025
e0e86aa
Merge branch 'kubecon-2025' of https://github.com/devtron-labs/devtro…
AbhishekA1509 Nov 7, 2025
3ba5401
chore: bump version to 1.20.6-pre-45 in package.json and package-lock…
AbhishekA1509 Nov 7, 2025
9168352
feat: update version to 1.20.6-pre-46, add notifications icon, and in…
AbhishekA1509 Nov 10, 2025
733755e
Merge branch 'kubecon-2025' of https://github.com/devtron-labs/devtro…
AbhishekA1509 Nov 10, 2025
1264044
chore: remove unused SVG icons and clean up Chart component props
arunjaindev Nov 11, 2025
29d315a
Merge remote-tracking branch 'origin/fix/ai-fixes' into chore/update-…
arunjaindev Nov 11, 2025
89fdc67
chore: remove unused SVG icons for confirmation and failure states
arunjaindev Nov 11, 2025
a488946
chore: remove unused SVG icons from Icon component
arunjaindev Nov 11, 2025
cab41b9
feat: Add SVG icon and expose hook.
arunjaindev Dec 5, 2025
801b8c3
Merge pull request #973 from devtron-labs/refactor/ai-chat-history
arunjaindev Dec 5, 2025
6faffb6
Merge pull request #958 from devtron-labs/chore/update-icons
arunjaindev Dec 5, 2025
34acf7c
Merge branch 'develop' of https://github.com/devtron-labs/devtron-fe-…
AbhishekA1509 Dec 8, 2025
bdd9f4e
Merge branch 'develop' of https://github.com/devtron-labs/devtron-fe-…
AbhishekA1509 Dec 12, 2025
fb38dd4
feat: Remove HIDE_AUDIT_LOGS option from customEnv interface
AbhishekA1509 Dec 12, 2025
72053d5
chore: update version to 1.21.0-beta-5 in package.json and package-lo…
AbhishekA1509 Dec 12, 2025
98fb162
Add new SVG illustrations for installation options
AbhishekA1509 Dec 15, 2025
fab5e6f
chore: bump version to 1.21.0-beta-7 in package.json and package-lock…
AbhishekA1509 Dec 15, 2025
adb0815
chore: bump version to 1.21.0-beta-8 in package.json and package-lock…
AbhishekA1509 Dec 15, 2025
28790f7
chore: bump version to 1.21.0-beta-9 in package.json and package-lock…
AbhishekA1509 Dec 16, 2025
0cec9ee
chore: bump version to 1.21.0-beta-11 in package.json and package-loc…
AbhishekA1509 Dec 16, 2025
a7ea5f8
chore: bump version to 1.21.0-beta-12 in package.json and package-loc…
AbhishekA1509 Dec 16, 2025
f5514b6
chore: bump version to 1.21.0-beta-13 in package.json and package-loc…
AbhishekA1509 Dec 16, 2025
09aee76
Merge branch 'main' of https://github.com/devtron-labs/devtron-fe-com…
AbhishekA1509 Dec 16, 2025
55f04e4
chore: bump version to 1.21.1-beta-0 in package.json and package-lock…
AbhishekA1509 Dec 16, 2025
319dac7
chore: update version to 1.21.1-beta-1 and add new celebration SVG il…
AbhishekA1509 Dec 16, 2025
db4bcbb
chore: bump version to 1.21.1-beta-2; update License component to use…
AbhishekA1509 Dec 17, 2025
a3aa6c5
chore: remove FIXME comment about hiding element in dashboard for non…
AbhishekA1509 Dec 17, 2025
bd9ca15
chore: bump version to 1.21.1-beta-3; update LicenseCard component to…
AbhishekA1509 Dec 18, 2025
6a2efd4
chore: bump version to 1.21.1-beta-5; update creationTime type in Dev…
AbhishekA1509 Dec 18, 2025
443382c
chore: bump version to 1.21.1-beta-6; update LicenseCard component to…
AbhishekA1509 Dec 19, 2025
098ee89
chore: bump version to 1.21.1-beta-7
AbhishekA1509 Dec 19, 2025
cd8ca4f
Merge branch 'main' of https://github.com/devtron-labs/devtron-fe-com…
AbhishekA1509 Dec 19, 2025
aab47cf
chore: bump version to 1.22.1
AbhishekA1509 Dec 19, 2025
4e45cb5
Merge pull request #983 from devtron-labs/feat/saas
AbhishekA1509 Dec 19, 2025
2d58eb2
Merge branch 'develop' of https://github.com/devtron-labs/devtron-fe-…
AbhishekA1509 Dec 22, 2025
03f1380
refactor: remove unused PodMetadatum interface and update aggregateNo…
arunjaindev Dec 23, 2025
550e76b
chore: update version from 1.22.0-pre-0 to 1.22.0-beta-1 in package.j…
AbhishekA1509 Dec 24, 2025
5ce81c7
fix: refactor handleDashboardLogout to use getUrlWithSearchParams for…
arunjaindev Dec 24, 2025
c494889
chore: update version to 1.21.2 in package.json and package-lock.json
arunjaindev Dec 24, 2025
0656aee
Merge pull request #992 from devtron-labs/fix/param-redirection
arunjaindev Dec 24, 2025
d6ada44
Merge branch 'main' of https://github.com/devtron-labs/devtron-fe-com…
arunjaindev Dec 24, 2025
a03b2f6
Merge pull request #993 from devtron-labs/fix/param-redirection
arunjaindev Dec 24, 2025
aa9104a
Merge branch 'hotfix-v0.43.0' of https://github.com/devtron-labs/devt…
arunjaindev Dec 26, 2025
b93fea5
chore: version bump
arunjaindev Dec 26, 2025
624d90a
feat: add featureAskDevtronExpert to context and types for enhanced A…
AbhishekA1509 Dec 29, 2025
9d10def
feat: add ATHENA route to Constants and remove unused __ATHENA_ROOT__…
AbhishekA1509 Dec 29, 2025
cde6936
chore: version bump
shivani170 Dec 29, 2025
33cc85e
Merge branch main into refactor/app-details
shivani170 Dec 29, 2025
3916628
chore: update version to 1.22.3 and add new illustration for installi…
AbhishekA1509 Dec 29, 2025
1a35c4c
Merge branch 'main' into refactor/app-details
shivani170 Dec 29, 2025
d0712be
Merge pull request #994 from devtron-labs/feat/add-installing-devtron…
AbhishekA1509 Dec 29, 2025
37fefe9
Merge branch 'main' into refactor/app-details
shivani170 Dec 29, 2025
bd6afa6
feat: remove unused AI recommendations and notifications logic from P…
AbhishekA1509 Dec 29, 2025
021bf24
feat: conditionally set Content-Type header for non-multipart request…
AbhishekA1509 Dec 29, 2025
743c185
chore: update version from 1.22.0-beta-1 to 1.22.0-beta-2 in package.…
AbhishekA1509 Dec 31, 2025
eac8b90
chore: version bump
arunjaindev Jan 5, 2026
d6daac4
refactor: remove margin from LoadingCard component
arunjaindev Jan 5, 2026
868035a
feat: add AIAgentContextSourceType enum and update AIAgentContextType…
AbhishekA1509 Jan 5, 2026
57dff89
fix: format values in SegmentedBarChart to use locale string represen…
arunjaindev Jan 5, 2026
ef3de57
chore: update version from 1.22.0-beta-2 to 1.22.0-beta-3 in package.…
AbhishekA1509 Jan 5, 2026
0fae4b9
chore: update version to 1.22.0-beta-4 in package.json and package-lo…
AbhishekA1509 Jan 5, 2026
29e793f
feat: enhance AppStatusModal with AI debugging capabilities and updat…
AbhishekA1509 Jan 6, 2026
a0da25e
feat: update version to 1.22.0-beta-5 in package.json and package-loc…
AbhishekA1509 Jan 6, 2026
dc11f3d
chore: Remove runbook icon, routes, and documentation links.
arunjaindev Jan 7, 2026
b0f8e89
chore: remove `ic-line.svg` and its corresponding references from the…
arunjaindev Jan 7, 2026
06cbd1d
feat: update AppStatusBody to use debugError instead of additionalMes…
AbhishekA1509 Jan 7, 2026
471deb0
Merge pull request #998 from devtron-labs/chore/remove-runbooks-recos
AbhishekA1509 Jan 7, 2026
deb23c6
feat: enhance debugAgentContext handling in AppStatusBody for improve…
AbhishekA1509 Jan 7, 2026
4b45cde
feat: add avoidFocusTrap prop to various components for improved focu…
arunjaindev Jan 8, 2026
46999df
chore: version bump
arunjaindev Jan 8, 2026
0b4ffbb
Merge pull request #999 from devtron-labs/fix/date-picker-focus
arunjaindev Jan 8, 2026
4639152
feat: add icons and illustrations
arunjaindev Jan 9, 2026
30bf7b1
chore: version bump
arunjaindev Jan 9, 2026
ff7db03
feat: enhance GenericModal with border variant and alignment options;…
arunjaindev Jan 12, 2026
2ff76f5
feat: update ic-curved-arrow.svg path fill color to use CSS variable
arunjaindev Jan 12, 2026
87bc9b8
Merge pull request #1000 from devtron-labs/feat/navigation-upgraded
arunjaindev Jan 12, 2026
1108d26
Merge pull request #995 from devtron-labs/feat/ai-context
AbhishekA1509 Jan 12, 2026
1b2280a
Merge pull request #997 from devtron-labs/feat/debug-ai
AbhishekA1509 Jan 13, 2026
513b20d
feat: refine debugAgentContext prompt for clarity in AppStatusBody
AbhishekA1509 Jan 13, 2026
78407ce
Merge branch 'main' of https://github.com/devtron-labs/devtron-fe-com…
AbhishekA1509 Jan 14, 2026
8636f74
chore: update version to 1.22.5-beta-0 in package.json and package-lo…
AbhishekA1509 Jan 14, 2026
88cdc5c
Merge branch 'main' of https://github.com/devtron-labs/devtron-fe-com…
arunjaindev Jan 15, 2026
2184abe
Merge pull request #991 from devtron-labs/refactor/app-details
arunjaindev Jan 15, 2026
3912efe
chore: update version to 1.22.5-beta-1 in package.json and package-lo…
AbhishekA1509 Jan 15, 2026
d837685
Merge pull request #1005 from devtron-labs/fix/ai-qa
AbhishekA1509 Jan 15, 2026
574d219
Merge branch 'main' of https://github.com/devtron-labs/devtron-fe-com…
AbhishekA1509 Jan 15, 2026
e39ee9e
chore: update version to 1.22.6-beta-0 in package.json and package-lo…
AbhishekA1509 Jan 15, 2026
1dc3999
chore: update version to 1.22.6-beta-1 in package.json and package-lo…
AbhishekA1509 Jan 20, 2026
308d5e6
feat: update version to 1.22.7 and modify navigation types for projec…
AbhishekA1509 Jan 21, 2026
0a78400
fix: revert version to 1.22.6-beta-2 in package.json and package-lock…
AbhishekA1509 Jan 21, 2026
ad8c301
feat: update version to 1.22.7 in package.json and package-lock.json
AbhishekA1509 Jan 21, 2026
871cedb
Merge pull request #1006 from devtron-labs/fix/ea-project
AbhishekA1509 Jan 21, 2026
1e72bc0
feat: add new icons for medium megaphone, thumb down fill, and thumb …
AbhishekA1509 Jan 27, 2026
100a1b1
feat: add GRAFANA_ORG_ID to customEnv interface
arunjaindev Jan 29, 2026
d4e81f1
feat: update version to 1.22.8 in package.json and package-lock.json
arunjaindev Jan 29, 2026
73ad76e
Merge pull request #1010 from devtron-labs/feat/grafana-org-id
arunjaindev Jan 29, 2026
e747beb
feat: add app name validation function and regex pattern
AbhishekA1509 Jan 29, 2026
b0f32e0
chore: update version to 1.22.6-beta-4 in package.json and package-lo…
AbhishekA1509 Jan 30, 2026
982763f
chore: update version to 1.22.6-beta-5 in package.json and package-lo…
AbhishekA1509 Feb 2, 2026
4a41fbd
chore: update version to 1.22.6-beta-6 in package.json and package-lo…
AbhishekA1509 Feb 2, 2026
6190ae8
Merge branch 'main' of https://github.com/devtron-labs/devtron-fe-com…
AbhishekA1509 Feb 3, 2026
f0fc643
Merge branch 'fix/ai-fixes' of https://github.com/devtron-labs/devtro…
AbhishekA1509 Feb 3, 2026
aee954f
Merge branch 'fix/ai-fixes' of https://github.com/devtron-labs/devtro…
AbhishekA1509 Feb 3, 2026
e76c0e1
Merge pull request #1008 from devtron-labs/feat/ai-feedback
AbhishekA1509 Feb 3, 2026
1cb9812
Merge branch 'fix/ai-fixes' of https://github.com/devtron-labs/devtro…
AbhishekA1509 Feb 3, 2026
7c819c2
bump version to 1.22.8-beta-3 in package.json and package-lock.json
AbhishekA1509 Feb 3, 2026
60177eb
bump version to 1.22.8-beta-4 in package.json and package-lock.json
AbhishekA1509 Feb 3, 2026
9946e19
Merge branch 'fix/ai-fixes' of https://github.com/devtron-labs/devtro…
AbhishekA1509 Feb 3, 2026
aff2fc3
refactor: update useMutation options type for consistency
AbhishekA1509 Feb 4, 2026
22a27ac
Merge branch 'fix/ai-fixes' of https://github.com/devtron-labs/devtro…
AbhishekA1509 Feb 10, 2026
b07ed17
Merge pull request #1012 from devtron-labs/feat/ai-actions-and-feedback
AbhishekA1509 Feb 17, 2026
9981a8a
Merge branch 'develop' of https://github.com/devtron-labs/devtron-fe-…
AbhishekA1509 Feb 17, 2026
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
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devtron-labs/devtron-fe-common-lib",
"version": "1.20.6-pre-47",
"version": "1.20.6-pre-48",
"description": "Supporting common component library",
"type": "module",
"main": "dist/index.js",
Expand Down
3 changes: 3 additions & 0 deletions src/Assets/IconV2/ic-bell.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/Assets/IconV2/ic-bulb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/Assets/IconV2/ic-close-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/Assets/IconV2/ic-comment.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/Assets/IconV2/ic-dot-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/Assets/IconV2/ic-line.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/Assets/IconV2/ic-new-chat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/Assets/IconV2/ic-piggybank.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/Assets/IconV2/ic-priority-high-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/Assets/IconV2/ic-priority-low-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/Assets/IconV2/ic-priority-urgent-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/Assets/IconV2/ic-red-bulb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/Assets/IconV2/ic-runbook-color.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/Common/API/CoreAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ class CoreAPI {
method: type,
signal,
body: data ? JSON.stringify(data) : undefined,
headers: {
'Content-Type': 'application/json',
Comment thread
AbhishekA1509 marked this conversation as resolved.
Outdated
},
}
// eslint-disable-next-line dot-notation
options['credentials'] = 'include' as RequestCredentials
Expand Down
18 changes: 18 additions & 0 deletions src/Common/API/reactQueryHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

import {
QueryKey,
useInfiniteQuery as rqUseInfiniteQuery,
UseInfiniteQueryOptions,
UseInfiniteQueryResult,
useMutation as rqUseMutation,
UseMutationOptions,
UseMutationResult,
Expand Down Expand Up @@ -46,4 +49,19 @@ export const useMutation = <TData = unknown, TVariables = void, TContext = unkno
options: UseMutationOptions<ResponseType<TData>, ServerErrors, TVariables, TContext>,
): UseMutationResult<ResponseType<TData>, ServerErrors, TVariables, TContext> => rqUseMutation(options)

export const useInfiniteQuery = <
TQueryFnData = unknown,
TData = TQueryFnData,
TQueryKey extends QueryKey = QueryKey,
WrapWithResponseType extends boolean = true,
>(
options: UseInfiniteQueryOptions<
WrapWithResponseType extends true ? ResponseType<TQueryFnData> : TQueryFnData,
ServerErrors,
TData,
WrapWithResponseType extends true ? ResponseType<TQueryFnData> : TQueryFnData,
TQueryKey
>,
): UseInfiniteQueryResult<TData, ServerErrors> => rqUseInfiniteQuery(options)

export { useQueryClient }
6 changes: 2 additions & 4 deletions src/Common/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ const DATA_PROTECTION_ROOT = '/data-protection-management'
const DATA_PROTECTION_BACKUP_AND_SCHEDULE =
`${DATA_PROTECTION_ROOT}/backup-and-schedule/:view(${Object.values(BackupAndScheduleListViewEnum).join('|')})` as const
const GLOBAL_CONFIG_ROOT = '/global-configuration'
const AI_RECOMMENDATIONS_ROOT = '/ai-recommendations'

export const URLS = {
LOGIN: '/login',
Expand Down Expand Up @@ -116,6 +115,7 @@ export const URLS = {
INFRASTRUCTURE_MANAGEMENT_CHART_STORE_DISCOVER: `${INFRASTRUCTURE_MANAGEMENT_ROOT}/chart-store/discover`,
INFRASTRUCTURE_MANAGEMENT_RESOURCE_BROWSER: `${INFRASTRUCTURE_MANAGEMENT_ROOT}/resource-browser`,
INFRASTRUCTURE_MANAGEMENT_RESOURCE_WATCHER: `${INFRASTRUCTURE_MANAGEMENT_ROOT}/resource-watcher`,
INFRASTRUCTURE_MANAGEMENT_AUDIT_LOGS: `${INFRASTRUCTURE_MANAGEMENT_ROOT}/audit-logs`,
// SOFTWARE RELEASE MANAGEMENT
SOFTWARE_RELEASE_MANAGEMENT: SOFTWARE_RELEASE_MANAGEMENT_ROOT,
// COST VISIBILITY
Expand All @@ -136,6 +136,7 @@ export const URLS = {
// AUTOMATION AND ENABLEMENT
AUTOMATION_AND_ENABLEMENT: AUTOMATION_AND_ENABLEMENT_ROOT,
AUTOMATION_AND_ENABLEMENT_JOB: `${AUTOMATION_AND_ENABLEMENT_ROOT}/job`,
AUTOMATION_ENABLEMENT_RUNBOOKS: `${AUTOMATION_AND_ENABLEMENT_ROOT}/runbooks`,
// DATA PROTECTION
DATA_PROTECTION: DATA_PROTECTION_ROOT,
DATA_PROTECTION_OVERVIEW: `${DATA_PROTECTION_ROOT}/overview`,
Expand All @@ -150,9 +151,6 @@ export const URLS = {
GLOBAL_CONFIG_DOCKER: `${GLOBAL_CONFIG_ROOT}/docker`,
GLOBAL_CONFIG_EDIT_CLUSTER: `${GLOBAL_CONFIG_ROOT}/cluster-env/edit/:clusterId`,
PERMISSION_GROUPS: `${GLOBAL_CONFIG_ROOT}/auth/groups`,
// AI RECOMMENDATIONS
AI_RECOMMENDATIONS: AI_RECOMMENDATIONS_ROOT,
AI_RECOMMENDATIONS_OVERVIEW: `${AI_RECOMMENDATIONS_ROOT}/overview`,
EXTERNAL_APPS: 'ea',
} as const

Expand Down
2 changes: 0 additions & 2 deletions src/Shared/Components/Charts/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@ export type ChartProps = {
placement?: TooltipProps['placement']
datasetValueFormatter?: (value: number) => string | number
}
/** A title for x axis */
xScaleTitle?: string
/** A title for y axis */
yScaleTitle?: string
} & TypeAndDatasetsType

Expand Down
3 changes: 2 additions & 1 deletion src/Shared/Components/DocLink/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ export const DOCUMENTATION = {
GLOBAL_CONFIG_SSO_LOGIN_MICROSOFT: 'global-configurations/authorization/sso-login/microsoft',
GLOBAL_CONFIG_PULL_IMAGE_DIGEST: 'global-configurations/pull-image-digest',
GLOBAL_CONFIG_TAGS: 'getting-started/global-configurations/tags-policy',

// TODO: Replace with correct Url
SAMPLE_RUNBOOK_LINK: 'https://docs.devtron.ai/user-guide/ai-recommendations/runbook#add-runbook-spec',
// Software Release Management
SOFTWARE_DISTRIBUTION_HUB: 'usage/software-distribution-hub',
RELEASE_TRACKS: 'usage/software-distribution-hub/release-hub#creating-release-tracks-and-versions',
Expand Down
40 changes: 38 additions & 2 deletions src/Shared/Components/Header/PageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { Button, ButtonStyleType, ButtonVariantType } from '../Button'
import { Icon } from '../Icon'
import { ImageWithFallback } from '../ImageWithFallback'
import { InfoIconTippy } from '../InfoIconTippy'
import { NOTIFICATIONS_TEMP_WINDOW_TITLE } from './constants'
import { HelpButton } from './HelpButton'
import { IframePromoButton } from './IframePromoButton'
import { ProfileMenu } from './ProfileMenu'
Expand All @@ -51,8 +52,16 @@ const PageHeader = ({
tippyProps,
closeIcon,
}: PageHeaderType) => {
const { setLoginCount, setShowGettingStartedCard, setSidePanelConfig, sidePanelConfig, tempAppWindowConfig } =
useMainContext()
const {
setLoginCount,
setShowGettingStartedCard,
setSidePanelConfig,
sidePanelConfig,
tempAppWindowConfig,
AIRecommendations,
setTempAppWindowConfig,
isSuperAdmin,
} = useMainContext()
const { showSwitchThemeLocationTippy, handleShowSwitchThemeLocationTippyChange } = useTheme()

const {
Expand Down Expand Up @@ -137,6 +146,19 @@ const PageHeader = ({
setSidePanelConfig((prev) => ({ ...prev, state: SidePanelTab.ASK_DEVTRON }))
}

const handleNotificationsButtonClick = () => {
handleAnalyticsEvent({
category: 'AI',
action: `NOTIFICATIONS_AI_RECOMMENDATIONS`,
})

setTempAppWindowConfig({
open: true,
title: NOTIFICATIONS_TEMP_WINDOW_TITLE,
component: <AIRecommendations />,
})
}

const renderLogoutHelpSection = () => (
<>
{window._env_?.FEATURE_ASK_DEVTRON_EXPERT &&
Expand All @@ -153,6 +175,20 @@ const PageHeader = ({
</button>
</Tooltip>
)}

{AIRecommendations && isSuperAdmin && tempAppWindowConfig.title !== NOTIFICATIONS_TEMP_WINDOW_TITLE && (
Comment thread
AbhishekA1509 marked this conversation as resolved.
Outdated
<Button
dataTestId="recommendations-notifications-button"
style={ButtonStyleType.neutral}
variant={ButtonVariantType.borderLess}
icon={<Icon name="ic-bell" color={null} />}
ariaLabel="Open AI Recommendations Notifications"
size={ComponentSizeType.medium}
onClick={handleNotificationsButtonClick}
showAriaLabelInTippy={false}
/>
)}

<HelpButton
serverInfo={currentServerInfo.serverInfo}
fetchingServerInfo={currentServerInfo.fetchingServerInfo}
Expand Down
2 changes: 2 additions & 0 deletions src/Shared/Components/Header/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,5 @@ export const ENTERPRISE_HELP_ACTION_MENU_ITEMS: HelpButtonActionMenuProps['optio
startIcon: { name: 'ic-megaphone-right' },
},
]

export const NOTIFICATIONS_TEMP_WINDOW_TITLE = 'Notifications'
Loading