Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
5c39760
yoyoy
May 7, 2025
a0d351a
feat: table in RB
May 13, 2025
3747f38
fix: keep rows loading until rows is provided
May 15, 2025
99010be
Merge branch 'develop' of github.com:devtron-labs/devtron-fe-common-l…
May 19, 2025
98a1615
fix: popup menu ref
May 19, 2025
0d590b3
revert: change in useAsync
May 19, 2025
b5820c6
fix: RB table bulk actions props
May 20, 2025
cf594e3
fix: sticky columns in table
May 21, 2025
a28de9b
fix: loading state of table & checkbox alignment
May 21, 2025
a2ee314
fix: alignment for CellComponents
May 21, 2025
06f0059
feat: add icons to Icon component & fix style in table
May 27, 2025
53d3548
fix: uat changes
May 28, 2025
6fcae35
fix: loading during search causes search bar focus loss
May 28, 2025
e83ae75
feat(Icon): add speedometer icon and update icon map
AbhishekA1509 Jun 5, 2025
5d34558
feat(ResourceBrowser): add ResourceRecommenderHeaderType and related …
AbhishekA1509 Jun 6, 2025
a2cbb09
fix(ResourceBrowser.Types): update K8sResourceDetailDataType to handl…
AbhishekA1509 Jun 6, 2025
17a32de
feat(Helpers): add getGroupVersionFromApiVersion function to parse AP…
AbhishekA1509 Jun 6, 2025
2f10c26
feat(Icon): add ic-minus icon and update icon map
AbhishekA1509 Jun 6, 2025
fb1d4a2
feat: add GVKOptionValueType
AbhishekA1509 Jun 7, 2025
fde0bd6
feat: add GetResourceRecommenderResourceListPropsType
AbhishekA1509 Jun 7, 2025
8a75222
feat(BulkSelectionActionWidget): add resource recommendation view and…
AbhishekA1509 Jun 7, 2025
2f99511
feat: add container registry icon and update related components
AbhishekA1509 Jun 8, 2025
425615b
fix: update K8sResourceDetailDataType to use string for value in curr…
AbhishekA1509 Jun 8, 2025
4c275b9
feat(GetResourceRecommenderResourceListPropsType): update props to in…
AbhishekA1509 Jun 9, 2025
7fcfd77
feat: add width mapping for resource recommender headers
AbhishekA1509 Jun 9, 2025
d2ea89d
Merge branch 'main' of https://github.com/devtron-labs/devtron-fe-com…
AbhishekA1509 Jun 10, 2025
b817cf1
fix: update K8sResourceDetailDataType to allow 'none' as a valid valu…
AbhishekA1509 Jun 10, 2025
206f0f3
feat: add gavel icon and update icon map
AbhishekA1509 Jun 10, 2025
42a5441
chore: update version to 1.15.1-beta-1 in package.json and package-lo…
AbhishekA1509 Jun 10, 2025
b8a37ff
Merge branch 'develop' of github.com:devtron-labs/devtron-fe-common-l…
Jun 11, 2025
ec408e0
Merge branch 'feat/rb-table' into fix/rb-table
Jun 11, 2025
041865c
fix: uat changes
Jun 11, 2025
8ef90b3
feat: scale resize-btn on hover
Jun 11, 2025
08ffe92
chore: override sortable-table-cell__resize-btn from table css
Jun 11, 2025
fbcd109
Merge branch 'develop' of github.com:devtron-labs/devtron-fe-common-l…
Jun 12, 2025
509f9b3
feat: add ic-two-cubes icon and update icon map
AbhishekA1509 Jun 12, 2025
1e4ef0e
fix: adjust opacity for readonly input fields in rjsfForm.scss
AbhishekA1509 Jun 12, 2025
d433cef
refactor: remove unused resource recommender header mappings from con…
AbhishekA1509 Jun 13, 2025
9ff305b
fix: add abort controller reference to createNewResource function
AbhishekA1509 Jun 13, 2025
42f5460
Merge branch 'develop' of github.com:devtron-labs/devtron-fe-common-l…
Jun 13, 2025
fe3db8d
Merge branch 'feat/rb-table' into fix/rb-table
Jun 13, 2025
a20748f
chore: update version to 1.15.1-beta-5 in package.json and package-lo…
AbhishekA1509 Jun 16, 2025
2f2e1e5
Merge branch 'develop' of https://github.com/devtron-labs/devtron-fe-…
AbhishekA1509 Jun 18, 2025
985ef2f
feat: add new API status code and update types for resource recommend…
AbhishekA1509 Jun 18, 2025
47b078d
feat: update button size handling in InfoBlock component
AbhishekA1509 Jun 18, 2025
2d4e6ef
fix: add optional chaining for buttonProps in InfoBlock component
AbhishekA1509 Jun 18, 2025
ebfb583
feat: add route for editing cluster environment in global config
AbhishekA1509 Jun 18, 2025
c8de7d5
feat(css): uat
Jun 18, 2025
0c2fd13
Merge branch 'develop' of github.com:devtron-labs/devtron-fe-common-l…
Jun 18, 2025
a33217e
Merge branch 'develop' of https://github.com/devtron-labs/devtron-fe-…
AbhishekA1509 Jun 19, 2025
451cc0b
feat: add defaultUrl property to CommonTabArgsType for tab reset func…
AbhishekA1509 Jun 19, 2025
306753e
fix: scrollTo func instead of scrollToTop prop
Jun 19, 2025
d1bf390
fix: bulk select all if not paginated
Jun 23, 2025
9b8f2a9
Merge branch 'feat/resource-recommender-develop' of github.com:devtro…
Jun 23, 2025
da9d3d9
fix: new pagination const
Jun 24, 2025
eb2b1b0
fix: bulk selection count logic
Jun 24, 2025
fa075f8
feat: add download icon and update icon map; add ResourceRecommenderA…
AbhishekA1509 Jun 24, 2025
b954eff
Merge branch 'fix/rb-table' of https://github.com/devtron-labs/devtro…
AbhishekA1509 Jun 24, 2025
e15749b
fix: filter if filter func provided
Jun 25, 2025
f22829a
fix: add new clearFilters prop to table props
Jun 26, 2025
74c4046
fix: update version from 1.15.3-pre-4 to 1.15.3-beta-3 in package.jso…
AbhishekA1509 Jun 26, 2025
2e1f380
fix: update version from 1.15.3-beta-3 to 1.15.3-beta-4 in package.js…
AbhishekA1509 Jun 26, 2025
5acb7b9
Merge branch 'develop' of github.com:devtron-labs/devtron-fe-common-l…
Jun 27, 2025
07ee634
fix: retain previous active element on backdrop open/close
Jul 1, 2025
f545d66
chore: bump version
Jul 1, 2025
959491c
Merge branch 'develop' of github.com:devtron-labs/devtron-fe-common-l…
Jul 1, 2025
e3bce42
Merge branch 'feat/rb-table' into fix/rb-table
Jul 1, 2025
0a7d2ec
fix: review comments
Jul 1, 2025
b86da2f
chore: expose URL_FILTER_KEYS
Jul 1, 2025
654fca7
Merge branch 'feat/rb-table' into fix/rb-table
Jul 1, 2025
44d758f
fix: review comments
Jul 1, 2025
1cb7a9c
fix: dont scroll to view on horizontal scroll
Jul 1, 2025
1f18d07
chore: bump version
Jul 1, 2025
d4dc889
chore: conditional wrap in bulk selection
Jul 2, 2025
a30adde
Update src/Shared/Components/BulkSelection/types.tsx
whoami-amrit Jul 2, 2025
ec6a4c9
Merge branch 'feat/rb-table' into fix/rb-table
Jul 2, 2025
fbb3975
Merge pull request #804 from devtron-labs/fix/rb-table
whoami-amrit Jul 2, 2025
23cf3f9
Merge branch 'develop' of github.com:devtron-labs/devtron-fe-common-l…
Jul 2, 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
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.16.0-pre-5",
"version": "1.16.0-pre-6",
"description": "Supporting common component library",
"type": "module",
"main": "dist/index.js",
Expand Down
3 changes: 3 additions & 0 deletions src/Assets/IconV2/ic-bug.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-check-all.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-check-square.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-clean-brush.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions src/Assets/IconV2/ic-container-registry.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 2 additions & 18 deletions src/Assets/IconV2/ic-container.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-download.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-code.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-gavel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/Assets/IconV2/ic-info-filled-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/Assets/IconV2/ic-logs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/Assets/IconV2/ic-minus.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-pause-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-speedometer.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-two-cubes.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
66 changes: 32 additions & 34 deletions src/Common/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
* limitations under the License.
*/

import { forwardRef } from 'react'

import { stopPropagation } from '@Common/Helper'

import { CheckboxProps } from '../Types'

import './Checkbox.scss'
Expand All @@ -28,38 +32,32 @@ Valid States of Checkbox:
6. disabled: false, checked: true, value: CHECKED
*/
// TODO: Associate label with input element
export const Checkbox = ({
rootClassName,
onClick,
name,
disabled,
value,
onChange,
tabIndex,
isChecked,
id,
dataTestId,
children,
}: CheckboxProps) => {
const rootClass = `${rootClassName || ''}`
export const Checkbox = forwardRef<HTMLLabelElement, CheckboxProps>(
(
{ rootClassName, onClick, name, disabled, value, onChange, tabIndex, isChecked, id, dataTestId, children },
forwardedRef,
) => {
const rootClass = `${rootClassName || ''}`

return (
// eslint-disable-next-line jsx-a11y/label-has-associated-control
<label className={`dc__position-rel flex left cursor ${rootClass}`} onClick={onClick}>
<input
{...(name ? { name } : {})}
type="checkbox"
className="form__checkbox"
disabled={disabled}
value={value}
onChange={onChange}
tabIndex={tabIndex}
checked={isChecked}
id={id}
data-testid={dataTestId}
/>
<span className="form__checkbox-container" data-testid={`${dataTestId}-chk-span`} />
<span className="form__checkbox-label">{children}</span>
</label>
)
}
return (
// eslint-disable-next-line jsx-a11y/label-has-associated-control
<label ref={forwardedRef} className={`dc__position-rel flex left cursor ${rootClass}`} onClick={onClick}>
<input
{...(name ? { name } : {})}
type="checkbox"
className="form__checkbox"
disabled={disabled}
value={value}
onChange={onChange}
tabIndex={tabIndex}
checked={isChecked}
id={id}
data-testid={dataTestId}
onClick={stopPropagation}
/>
<span className="form__checkbox-container" data-testid={`${dataTestId}-chk-span`} />
<span className="form__checkbox-label">{children}</span>
</label>
)
},
)
2 changes: 2 additions & 0 deletions src/Common/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export const URLS = {
// NOTE: using appId since we are re-using AppConfig component
GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: `${GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP}/detail/:appId`,
LICENSE_AUTH: '/license-auth',
GLOBAL_CONFIG_EDIT_CLUSTER: '/global-config/cluster-env/edit/:clusterId',
} as const

export const ROUTES = {
Expand Down Expand Up @@ -381,6 +382,7 @@ export const API_STATUS_CODES = {
NOT_FOUND: 404,
REQUEST_TIMEOUT: 408,
CONFLICT: 409,
PRE_CONDITION_FAILED: 412,
EXPECTATION_FAILED: 417,
UNPROCESSABLE_ENTITY: 422,
LOCKED: 423,
Expand Down
Loading