Skip to content
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

feat: build infra v3 #2353

Merged
merged 29 commits into from
Jan 22, 2025
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
8bf92e3
refactor: rename ConfigMapSecret functions and types for clarity
AbhishekA1509 Dec 21, 2024
c1da947
Merge branch 'feat/build-infra-v2' into feat/build-infra-v3
AbhishekA1509 Dec 24, 2024
43ddcb0
feat: migrate cm cs parser to common
AbhishekA1509 Dec 26, 2024
143be0e
refactor: clean up unused constants and imports in ConfigMapSecret co…
AbhishekA1509 Dec 30, 2024
49afeb4
Merge branch 'develop' into feat/build-infra-v3
AbhishekA1509 Jan 3, 2025
7e79728
Add BuildInfra utility provider and refactor related components
AbhishekA1509 Jan 5, 2025
c653fa4
Refactor ConfigMapSecretForm to use isCreateView prop instead of id f…
AbhishekA1509 Jan 5, 2025
76b53fc
Refactor ConfigMapSecret components to remove deprecated code and imp…
AbhishekA1509 Jan 5, 2025
76f7db2
Merge branch 'feat/build-infra-2.5' into feat/build-infra-v3
AbhishekA1509 Jan 9, 2025
de98b40
refactor: remove FloatingVariablesSuggestions component and update re…
AbhishekA1509 Jan 10, 2025
767f289
feat: add y50
AbhishekA1509 Jan 12, 2025
cb0d02c
chore: update default value for scoped variables
AbhishekA1509 Jan 12, 2025
be03655
feat: add utility class for 1px width
AbhishekA1509 Jan 13, 2025
68a6e17
refactor: update ToggleResolveScopedVariables import from common
AbhishekA1509 Jan 13, 2025
e9e8777
Merge branch 'develop' into feat/build-infra-v3
AbhishekA1509 Jan 13, 2025
e850a43
fix: update isCreateView logic in ConfigMapSecret components
AbhishekA1509 Jan 13, 2025
118f58c
feat: add noContainerPadding prop to ConfigMapSecretForm and update s…
AbhishekA1509 Jan 13, 2025
2c1b936
refactor: update FormComponent to accept multiple validation modes
AbhishekA1509 Jan 13, 2025
adb658f
chore: update yarn.lock to reflect dependency version changes and rem…
AbhishekA1509 Jan 14, 2025
6eca53f
fix: self review
AbhishekA1509 Jan 14, 2025
6d0ddee
feat: add background shade for 50 suffix, and remove unused onError
AbhishekA1509 Jan 14, 2025
e841d0c
refactor: remove unused background color class for 50 suffix and upda…
AbhishekA1509 Jan 14, 2025
7ae6dcb
refactor: update FormComponent to accept a single validation mode ins…
AbhishekA1509 Jan 15, 2025
d2ee5d4
Merge branch 'develop' into feat/build-infra-v3
AbhishekA1509 Jan 16, 2025
b5bd457
chore: update devtron-fe-common-lib to 1.5.1-beta-1 and add react-dra…
AbhishekA1509 Jan 16, 2025
aad1fd8
chore: update devtron-fe-common-lib to 1.5.1-beta-2
AbhishekA1509 Jan 16, 2025
b3d7dc0
Merge branch 'develop' into feat/build-infra-v3
AbhishekA1509 Jan 21, 2025
1ce6092
chore: update devtron-fe-common-lib to version 1.5.3-beta-3
AbhishekA1509 Jan 21, 2025
50b8fa7
Merge branch 'develop' into feat/build-infra-v3
AbhishekA1509 Jan 22, 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
refactor: update FormComponent to accept multiple validation modes
AbhishekA1509 committed Jan 13, 2025
commit 2c1b93617190fc044ddc0a36ce58c571000aa31f
8 changes: 4 additions & 4 deletions src/stories/useForm.stories.tsx
Original file line number Diff line number Diff line change
@@ -34,11 +34,11 @@ const validations: UseFormValidations<FormData> = {
},
}

const FormComponent = ({ validationMode }: { validationMode: 'onChange' | 'onBlur' }) => {
const FormComponent = ({ validationModes }: { validationModes: ('onChange' | 'onBlur')[] }) => {
const { data, errors, register, handleSubmit, formState } = useForm<FormData>({
initialValues: { email: '', password: '' },
validations,
validationMode,
validationModes,
})

const onSubmit: UseFormSubmitHandler<FormData> = (formData, e) => {
@@ -82,12 +82,12 @@ type Story = StoryObj<typeof meta>
// Stories
export const FormWithOnChangeValidationMode: Story = {
args: {
validationMode: 'onChange',
validationModes: ['onChange'],
},
}

export const FormWithOnBlurValidationMode: Story = {
args: {
validationMode: 'onBlur',
validationModes: ['onBlur'],
},
}

Unchanged files with check annotations Beta

BASE_CONFIGURATION_ENV_ID,
ApprovalConfigDataKindType,
getIsApprovalPolicyConfigured,
CMSecretComponentType,

Check failure on line 25 in src/Pages/Applications/DevtronApps/Details/AppConfigurations/MainContent/AppComposeRouter.tsx

GitHub Actions / ci

Module '"@devtron-labs/devtron-fe-common-lib"' has no exported member 'CMSecretComponentType'.
} from '@devtron-labs/devtron-fe-common-lib'
import { ReactComponent as Next } from '@Icons/ic-arrow-forward.svg'
getIsRequestAborted,
MODES,
useAsync,
ToggleResolveScopedVariables,

Check failure on line 13 in src/Pages/Applications/DevtronApps/Details/AppConfigurations/MainContent/ConfigDryRun.tsx

GitHub Actions / ci

Module '"@devtron-labs/devtron-fe-common-lib"' has no exported member 'ToggleResolveScopedVariables'.
} from '@devtron-labs/devtron-fe-common-lib'
import { importComponentFromFELibrary } from '@Components/common'
import { ReactComponent as ICFilePlay } from '@Icons/ic-file-play.svg'
BaseURLParams,
ComponentSizeType,
InvalidYAMLTippyWrapper,
ToggleResolveScopedVariables,

Check failure on line 12 in src/Pages/Applications/DevtronApps/Details/AppConfigurations/MainContent/ConfigToolbar.tsx

GitHub Actions / ci

Module '"@devtron-labs/devtron-fe-common-lib"' has no exported member 'ToggleResolveScopedVariables'.
} from '@devtron-labs/devtron-fe-common-lib'
import { useParams } from 'react-router-dom'
import { importComponentFromFELibrary } from '@Components/common'
getIsRequestAborted,
DraftAction,
checkIfPathIsMatching,
FloatingVariablesSuggestions,

Check failure on line 46 in src/Pages/Applications/DevtronApps/Details/AppConfigurations/MainContent/DeploymentTemplate/DeploymentTemplate.tsx

GitHub Actions / ci

Module '"@devtron-labs/devtron-fe-common-lib"' has no exported member 'FloatingVariablesSuggestions'.
} from '@devtron-labs/devtron-fe-common-lib'
import { Prompt, useLocation, useParams } from 'react-router-dom'
import YAML from 'yaml'
ComponentSizeType,
GenericEmptyState,
ImageType,
CMSecretComponentType,

Check failure on line 7 in src/Pages/Applications/DevtronApps/Details/AppConfigurations/MainContent/NoOverrideEmptyState.tsx

GitHub Actions / ci

Module '"@devtron-labs/devtron-fe-common-lib"' has no exported member 'CMSecretComponentType'.
} from '@devtron-labs/devtron-fe-common-lib'
import cmCsEmptyState from '@Images/cm-cs-empty-state.png'
import { ReactComponent as ICAdd } from '@Icons/ic-add.svg'
ProtectConfigTabsType,
SelectPickerOptionType,
ServerErrors,
CMSecretComponentType,

Check failure on line 13 in src/Pages/Applications/DevtronApps/Details/AppConfigurations/MainContent/types.ts

GitHub Actions / ci

Module '"@devtron-labs/devtron-fe-common-lib"' has no exported member 'CMSecretComponentType'.
} from '@devtron-labs/devtron-fe-common-lib'
import { FunctionComponent, MutableRefObject, ReactNode } from 'react'
import { DeploymentTemplateStateType } from './DeploymentTemplate/types'
import { BuildInfraCMCSFormProps, CM_SECRET_STATE } from '@devtron-labs/devtron-fe-common-lib'

Check failure on line 1 in src/Pages/GlobalConfigurations/BuildInfra/BuildInfraCMCSForm.tsx

GitHub Actions / ci

'"@devtron-labs/devtron-fe-common-lib"' has no exported member named 'BuildInfraCMCSFormProps'. Did you mean 'UseBuildInfraFormProps'?

Check failure on line 1 in src/Pages/GlobalConfigurations/BuildInfra/BuildInfraCMCSForm.tsx

GitHub Actions / ci

Module '"@devtron-labs/devtron-fe-common-lib"' has no exported member 'CM_SECRET_STATE'.
import { ConfigMapSecretForm } from '@Pages/Shared/ConfigMapSecret/ConfigMapSecretForm'
const BuildInfraCMCSForm = ({ parsedData, useFormProps, componentType }: BuildInfraCMCSFormProps) => (
import { BuildInfraUtilityContext, BuildInfraUtilityContextType } from '@devtron-labs/devtron-fe-common-lib'

Check failure on line 1 in src/Pages/GlobalConfigurations/BuildInfra/BuildInfraUtiltityProvider.tsx

GitHub Actions / ci

Module '"@devtron-labs/devtron-fe-common-lib"' has no exported member 'BuildInfraUtilityContext'.

Check failure on line 1 in src/Pages/GlobalConfigurations/BuildInfra/BuildInfraUtiltityProvider.tsx

GitHub Actions / ci

Module '"@devtron-labs/devtron-fe-common-lib"' has no exported member 'BuildInfraUtilityContextType'.
import { useMemo } from 'react'
import BuildInfraCMCSForm from './BuildInfraCMCSForm'
import { BuildInfraUtilityProviderProps } from './types'