Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
45d69aa
feat: add flag skip If hibernated in trigger cd service
arunjaindev Apr 2, 2025
9dfff2b
Merge branch 'develop' of https://github.com/devtron-labs/devtron-fe-…
arunjaindev Apr 3, 2025
a43bb5d
chore: add flag for deployUnhibernatedAppOnly
arunjaindev Apr 3, 2025
a948853
Merge branch 'develop' of https://github.com/devtron-labs/devtron-fe-…
arunjaindev Apr 3, 2025
e7588a5
fix: improve import/export order across modules via eslint-plugin-sim…
RohitRaj011 Apr 8, 2025
c810de1
chore: update vite to version 5.4.17
RohitRaj011 Apr 8, 2025
d0f405b
chore: update vite to version 5.4.17 and fix package.json formatting
RohitRaj011 Apr 8, 2025
02025c1
Merge pull request #690 from devtron-labs/fix/dependabot-issues
RohitRaj011 Apr 8, 2025
4a28b9c
Merge branch 'develop' of github.com:devtron-labs/devtron-fe-common-l…
RohitRaj011 Apr 8, 2025
381d7aa
fix: update @Shared/index to proper imports to remove cyclic dependency
RohitRaj011 Apr 8, 2025
027f327
chore: version bump
RohitRaj011 Apr 8, 2025
82a136d
Merge pull request #688 from devtron-labs/fix/sort-imports
RohitRaj011 Apr 8, 2025
38d7f39
feat: resource browser icons
shivani170 Apr 10, 2025
8796878
feat: add AnimatedTimer component and associated assets
AbhishekA1509 Apr 10, 2025
97b26eb
feat: replace ic-arrow-clockwise with ic-synced icon in Icon component
AbhishekA1509 Apr 10, 2025
e2f8132
feat: add ic-arrow-clockwise icon to Icon component
AbhishekA1509 Apr 10, 2025
4041e83
chore: rename flag for helm app status
arunjaindev Apr 10, 2025
1a77226
Merge branch 'develop' of https://github.com/devtron-labs/devtron-fe-…
arunjaindev Apr 10, 2025
8092842
feat: remove ic-synced icon and update AnimatedTimer component to acc…
AbhishekA1509 Apr 10, 2025
7ae0502
feat: refactor AnimatedTimer component to use constants for dimension…
AbhishekA1509 Apr 10, 2025
8f48415
chore: unnecessary code removed
shivani170 Apr 10, 2025
973c7c7
chore: remove duplicated code
arunjaindev Apr 10, 2025
f6899a1
chore: rename helm status available flag
arunjaindev Apr 10, 2025
5382d9c
chore: version bump
arunjaindev Apr 10, 2025
9067135
chore: cluster svg update
shivani170 Apr 10, 2025
686f3cd
chore: svg update
shivani170 Apr 10, 2025
13f61e3
Merge branch 'main' of github.com:devtron-labs/devtron-fe-common-lib …
RohitRaj011 Apr 11, 2025
93143ac
Merge pull request #697 from devtron-labs/chore/sync-develop-with-main
RohitRaj011 Apr 11, 2025
c6e0e59
feat: add fallbackString param to getTimeDifference and move its para…
AbhishekA1509 Apr 13, 2025
e9b8396
Merge branch 'develop' into feat/poll-release-status
AbhishekA1509 Apr 13, 2025
98e3c09
Merge branch 'develop' into feat/bulk-kubeconfig
shivani170 Apr 14, 2025
bc504fa
Merge branch 'develop' into feat/skip-hibernated-deploy
AbhishekA1509 Apr 14, 2025
ce5d5f8
chore: update common lib version to 1.11.1
AbhishekA1509 Apr 14, 2025
d102749
chore: update version to 1.11.0-pre-1
AbhishekA1509 Apr 14, 2025
c48078e
Merge pull request #672 from devtron-labs/feat/skip-hibernated-deploy
AbhishekA1509 Apr 14, 2025
a69b927
chore: KUBE_CONFIG link added
shivani170 Apr 14, 2025
b9c9bb2
Merge branch 'develop' into feat/poll-release-status
AbhishekA1509 Apr 14, 2025
4bf34d6
feat: add tooltipContent on AnimatedTimer
AbhishekA1509 Apr 14, 2025
d93a1ab
chore: update package version to v1.11.0-beta-3
AbhishekA1509 Apr 14, 2025
e2cced6
fix: AnimatedTimer alignment and update common verison to 1.11.0-beta-4
AbhishekA1509 Apr 14, 2025
ea56f20
Merge branch 'develop' into feat/bulk-kubeconfig
shivani170 Apr 14, 2025
a069379
chore: link fix
shivani170 Apr 14, 2025
ce2c6a9
chore: update package version to 1.11.0-pre-2
AbhishekA1509 Apr 14, 2025
088c0f3
Merge pull request #692 from devtron-labs/feat/poll-release-status
AbhishekA1509 Apr 14, 2025
dc2b29d
chore: slider vertical icon added
shivani170 Apr 14, 2025
9c469df
Merge branch 'develop' into feat/bulk-kubeconfig
shivani170 Apr 15, 2025
029667a
chore: version bump
shivani170 Apr 15, 2025
a05377a
chore: version bump
shivani170 Apr 15, 2025
d9c752d
chore: Icon component classname update for active link
shivani170 Apr 15, 2025
be83ad1
chore: version bump
shivani170 Apr 15, 2025
f11eaf2
Merge pull request #693 from devtron-labs/feat/buld-kubeconfig
shivani170 Apr 15, 2025
6c65b80
Merge branch 'develop' into feat/navigate-to-env-override
shivani170 Apr 15, 2025
e6342f5
chore: version bump
shivani170 Apr 15, 2025
04ad875
Merge pull request #698 from devtron-labs/feat/navigate-to-env-override
shivani170 Apr 15, 2025
368aa51
feat: add type for registry authentication type
arunjaindev Apr 15, 2025
c24bf63
chore: version bump
RohitRaj011 Apr 15, 2025
3351ea7
Merge branch 'fix-ng-changes' into fix-ng-changes-develop
AbhishekA1509 Apr 16, 2025
ce31ffb
chore: update common version to 1.11.0-beta-7
AbhishekA1509 Apr 16, 2025
2f3c926
chore: conditional rendering of generic commit info header
shivani170 Apr 16, 2025
2c3df69
chore: version bump
shivani170 Apr 16, 2025
918a5f4
chore: package lock update
shivani170 Apr 16, 2025
d2398b5
Merge pull request #700 from devtron-labs/fix/webhook-generic-info-he…
shivani170 Apr 16, 2025
0a91969
feat: update name for registry credentials type
arunjaindev Apr 17, 2025
65544c3
Merge develop in fix-ng-changes-develop
AbhishekA1509 Apr 21, 2025
46d307c
chore: bump version to 1.11.0-pre-6 in package.json and package-lock.…
AbhishekA1509 Apr 21, 2025
97b0439
Merge branch 'develop' of https://github.com/devtron-labs/devtron-fe-…
AbhishekA1509 Apr 21, 2025
2bafdc7
Merge pull request #702 from devtron-labs/fix-ng-changes-develop
AbhishekA1509 Apr 21, 2025
87866ca
Merge branch 'main' of https://github.com/devtron-labs/devtron-fe-com…
arunjaindev Apr 21, 2025
1dae146
Merge pull request #703 from devtron-labs/chore/sync-activate-license
arunjaindev Apr 21, 2025
b356f1f
Merge branch 'main' of github.com:devtron-labs/devtron-fe-common-lib …
RohitRaj011 Apr 25, 2025
bd92bff
chore(version): bump to 1.12.0
RohitRaj011 Apr 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 23 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
* limitations under the License.
*/

const tsconfigPath = require('./tsconfig.json')

module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'react', 'prettier', 'import'],
plugins: ['@typescript-eslint', 'react', 'prettier', 'import', 'simple-import-sort'],
env: {
browser: true,
es2021: true,
Expand Down Expand Up @@ -109,6 +111,26 @@ module.exports = {
'import/prefer-default-export': 'off',
'no-restricted-exports': 'off',
'import/named': 'off',
'simple-import-sort/imports': [
'error',
{
groups: [
// Packages `react` related packages and external packages.
['^react', '^@?\\w'],
// Devtron packages
['^@devtron-labs'],
// Internal packages.
[...Object.keys(tsconfigPath.compilerOptions.paths).map((alias) => alias.replace('/*', ''))],
// Side effect imports.
['^\\u0000'],
// Put same-folder imports, `..` and `.` last. Other relative imports.
['^\\.\\.(?!/?$)', '^\\.\\./?$', '^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$',],
// Style imports.
[ '^.+\\.?(css|scss)$'],
],
},
],
'simple-import-sort/exports': 'error',
},
overrides: [
{
Expand Down
23 changes: 16 additions & 7 deletions package-lock.json

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

9 changes: 5 additions & 4 deletions 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.11.2",
"version": "1.12.0",
"description": "Supporting common component library",
"type": "module",
"main": "dist/index.js",
Expand Down Expand Up @@ -60,6 +60,7 @@
"eslint-plugin-prettier": "^5.1.2",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"glob": "^10.3.3",
"husky": "^7.0.4",
"json-schema": "^0.4.0",
Expand All @@ -73,7 +74,7 @@
"sharp": "^0.33.5",
"svgo": "^3.3.2",
"typescript": "5.5.4",
"vite": "5.4.14",
"vite": "5.4.17",
"vite-plugin-dts": "4.0.3",
"vite-plugin-image-optimizer": "^1.1.8",
"vite-plugin-lib-inject-css": "2.1.1",
Expand Down Expand Up @@ -108,10 +109,10 @@
"@replit/codemirror-indentation-markers": "6.5.3",
"@replit/codemirror-vscode-keymap": "6.0.2",
"@types/react-dates": "^21.8.6",
"@xyflow/react": "12.4.2",
"@uiw/codemirror-extensions-hyper-link": "4.23.10",
"@uiw/codemirror-theme-github": "4.23.7",
"@uiw/react-codemirror": "4.23.7",
"@xyflow/react": "12.4.2",
"ansi_up": "^5.2.1",
"codemirror-json-schema": "0.8.0",
"dayjs": "^1.11.13",
Expand Down Expand Up @@ -141,7 +142,7 @@
"monaco-editor": "0.44.0"
},
"vite-plugin-svgr": {
"vite": "5.4.14"
"vite": "5.4.17"
},
"react-virtualized-sticky-tree": {
"react": "^17.0.2",
Expand Down
3 changes: 3 additions & 0 deletions src/Assets/IconV2/ic-arrow-clockwise.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/Assets/IconV2/ic-bg-cluster.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-file-key.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-sliders-vertical.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-terminal-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: 7 additions & 2 deletions src/Common/API/CoreAPI.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { INVALID_LICENSE_KEY, ResponseHeaders } from '@Shared/index'
import { API_STATUS_CODES, APIOptions, FALLBACK_REQUEST_TIMEOUT, Host, noop, ResponseType, ServerErrors } from '..'
import { API_STATUS_CODES, FALLBACK_REQUEST_TIMEOUT, Host } from '@Common/Constants'
import { noop } from '@Common/Helper'
import { ServerErrors } from '@Common/ServerError'
import { APIOptions, ResponseType } from '@Common/Types'
import { INVALID_LICENSE_KEY } from '@Shared/constants'
import { ResponseHeaders } from '@Shared/types'

import { CoreAPIConstructorParamsType, FetchAPIParamsType, FetchInTimeParamsType } from './types'
import { handleServerError } from './utils'

Expand Down
2 changes: 1 addition & 1 deletion src/Common/API/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ const dashboardAPI = new CoreAPI({
})

export const { post, put, patch, get, trash } = dashboardAPI
export { getIsRequestAborted, abortPreviousRequests, handleRedirectToLicenseActivation } from './utils'
export { default as CoreAPI } from './CoreAPI'
export { abortPreviousRequests, getIsRequestAborted, handleRedirectToLicenseActivation } from './utils'
4 changes: 3 additions & 1 deletion src/Common/API/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { ServerErrors } from '@Common/ServerError'
import { MutableRefObject } from 'react'

import { URLS } from '@Common/Constants'
import { ServerErrors } from '@Common/ServerError'

import { RESPONSE_MESSAGES } from './constants'

export const handleServerError = async (contentType: string, response: Response) => {
Expand Down
2 changes: 1 addition & 1 deletion src/Common/AddCDButton/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

import { AddCDPositions, AddPipelineType, PipelineType, WorkflowNodeType } from '../Types'
import { HandleAddCD, GetPipelineType } from './types'
import { GetPipelineType, HandleAddCD } from './types'

const getPipelineType = ({ startNode }: GetPipelineType) => {
if (startNode.type === WorkflowNodeType.WEBHOOK) {
Expand Down
8 changes: 5 additions & 3 deletions src/Common/ClipboardButton/ClipboardButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@
* limitations under the License.
*/

import { useState, useEffect, useRef } from 'react'
import { useEffect, useRef, useState } from 'react'

import Tooltip from '@Common/Tooltip/Tooltip'

import { ReactComponent as Check } from '../../Assets/Icon/ic-check.svg'
import { ReactComponent as ICCopy } from '../../Assets/Icon/ic-copy.svg'
import { copyToClipboard, noop, stopPropagation } from '../Helper'
import ClipboardProps from './types'
import { ReactComponent as ICCopy } from '../../Assets/Icon/ic-copy.svg'
import { ReactComponent as Check } from '../../Assets/Icon/ic-check.svg'

/**
* @param content - Content to be copied
Expand Down
2 changes: 2 additions & 0 deletions src/Common/CodeEditor/CodeEditor.reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
*/

import YAML from 'yaml'

import { noop, YAMLStringify } from '@Common/Helper'

import { MODES } from '../Constants'
import { Action, CodeEditorInitialValueType, CodeEditorState } from './types'
import { getCodeEditorThemeFromAppTheme } from './utils'
Expand Down
1 change: 1 addition & 0 deletions src/Common/CodeEditor/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

import { AppThemeType } from '@Shared/Providers'

import { MODES } from '../Constants'

export interface InformationBarProps {
Expand Down
1 change: 1 addition & 0 deletions src/Common/CodeEditor/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

import { AppThemeType } from '@Shared/Providers'

import { CodeEditorInterface, CodeEditorThemesKeys } from './types'

export const getCodeEditorThemeFromAppTheme = (
Expand Down
6 changes: 3 additions & 3 deletions src/Common/CodeMirror/CodeEditor.components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

import { ReactNode } from 'react'

import { ReactComponent as ICWarningY5 } from '@Icons/ic-warning-y5.svg'
import { ReactComponent as Info } from '@Icons/ic-info-filled.svg'
import { ReactComponent as ErrorIcon } from '@Icons/ic-error-exclamation.svg'
import { ReactComponent as ICCompare } from '@Icons/ic-compare.svg'
import { ReactComponent as ErrorIcon } from '@Icons/ic-error-exclamation.svg'
import { ReactComponent as Info } from '@Icons/ic-info-filled.svg'
import { ReactComponent as ICWarningY5 } from '@Icons/ic-warning-y5.svg'
import { ClipboardButton } from '@Common/ClipboardButton'
import { getComponentSpecificThemeClass } from '@Shared/Providers'

Expand Down
4 changes: 2 additions & 2 deletions src/Common/CodeMirror/CodeEditor.theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

import { EditorView } from '@uiw/react-codemirror'
import { githubDarkInit, githubLightInit } from '@uiw/codemirror-theme-github'
import { tags } from '@lezer/highlight'
import { githubDarkInit, githubLightInit } from '@uiw/codemirror-theme-github'
import { EditorView } from '@uiw/react-codemirror'

import { CODE_EDITOR_FONT_SIZE } from './CodeEditor.constants'

Expand Down
36 changes: 18 additions & 18 deletions src/Common/CodeMirror/CodeEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,42 +15,42 @@
*/

import { useEffect, useMemo, useRef, useState } from 'react'
import { foldGutter } from '@codemirror/language'
import { lintGutter } from '@codemirror/lint'
import { search } from '@codemirror/search'
import { indentationMarkers } from '@replit/codemirror-indentation-markers'
import { vscodeKeymap } from '@replit/codemirror-vscode-keymap'
import { hyperLink } from '@uiw/codemirror-extensions-hyper-link'
import {
Extension,
ReactCodeMirrorProps,
basicSetup,
BasicSetupOptions,
Compartment,
keymap,
EditorView,
EditorState,
EditorView,
Extension,
keymap,
ReactCodeMirrorProps,
} from '@uiw/react-codemirror'
import { foldGutter } from '@codemirror/language'
import { search } from '@codemirror/search'
import { lintGutter } from '@codemirror/lint'
import { vscodeKeymap } from '@replit/codemirror-vscode-keymap'
import { indentationMarkers } from '@replit/codemirror-indentation-markers'
import { hyperLink } from '@uiw/codemirror-extensions-hyper-link'

import { AppThemeType, useTheme } from '@Shared/Providers'
import { getUniqueId } from '@Shared/Helpers'
import { cleanKubeManifest } from '@Common/Helper'
import { DEFAULT_JSON_SCHEMA_URI, MODES } from '@Common/Constants'
import { cleanKubeManifest } from '@Common/Helper'
import { getUniqueId } from '@Shared/Helpers'
import { AppThemeType, useTheme } from '@Shared/Providers'

import { codeEditorFindReplace, readOnlyTooltip, yamlHighlight } from './Extensions'
import { Clipboard, Container, ErrorBar, Header, Information, Warning } from './CodeEditor.components'
import { CodeEditorContext } from './CodeEditor.context'
import { getCodeEditorTheme } from './CodeEditor.theme'
import { CodeEditorRenderer } from './CodeEditorRenderer'
import {
blurOnEscape,
openSearchPanel,
openSearchPanelWithReplace,
replaceAll,
showReplaceFieldState,
} from './Commands'
import { codeEditorFindReplace, readOnlyTooltip, yamlHighlight } from './Extensions'
import { CodeEditorContextProps, CodeEditorProps } from './types'
import { getFoldGutterElement, getLanguageExtension, getValidationSchema, parseValueToCode } from './utils'
import { CodeEditorContext } from './CodeEditor.context'
import { Clipboard, Container, ErrorBar, Header, Information, Warning } from './CodeEditor.components'
import { getCodeEditorTheme } from './CodeEditor.theme'
import { CodeEditorRenderer } from './CodeEditorRenderer'

import './codeEditor.scss'

Expand Down
6 changes: 3 additions & 3 deletions src/Common/CodeMirror/CodeEditorRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
*/

import { useEffect, useRef, useState } from 'react'
import CodeMirror, { EditorView, ReactCodeMirrorRef, ViewUpdate } from '@uiw/react-codemirror'
import { MergeView } from '@codemirror/merge'
import CodeMirror, { EditorView, ReactCodeMirrorRef, ViewUpdate } from '@uiw/react-codemirror'

import { getComponentSpecificThemeClass } from '@Shared/Providers'
import { Progressing } from '@Common/Progressing'
import { getComponentSpecificThemeClass } from '@Shared/Providers'

import { useCodeEditorContext } from './CodeEditor.context'
import { DiffMinimap } from './Extensions'
import { CodeEditorRendererProps } from './types'
import { getCodeEditorHeight, getRevertControlButton, getScanLimit, updateDiffMinimapValues } from './utils'
import { DiffMinimap } from './Extensions'

export const CodeEditorRenderer = ({
codemirrorMergeKey,
Expand Down
2 changes: 1 addition & 1 deletion src/Common/CodeMirror/Extensions/DiffMinimap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import { useEffect, useRef, useState } from 'react'

import { getComponentSpecificThemeClass } from '@Shared/Providers'

import { DiffMinimapProps } from '../types'
import { CODE_EDITOR_FONT_SIZE, CODE_EDITOR_MIN_OVERLAY_HEIGHT } from '../CodeEditor.constants'
import { DiffMinimapProps } from '../types'

export const DiffMinimap = ({ view, theme, diffMinimapParentRef, scalingFactor }: DiffMinimapProps) => {
// STATES
Expand Down
Loading
Loading