Skip to content

Commit 58a70d4

Browse files
authored
Merge pull request #2367 from devtron-labs/feat/theming-v2
feat: theming v2
2 parents fc91b8a + 7c2d706 commit 58a70d4

File tree

83 files changed

+547
-380
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+547
-380
lines changed

index.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
/* TODO: Comment when theming goes live on production */
1313
/* @media (prefers-color-scheme: dark) {
14-
--bg-tertiary: #0d0f1c;
15-
--bg-devtron-loader: #172433;
16-
--fill-devtron-loader: #74B5FF;
14+
--bg-tertiary: #15161F;
15+
--bg-devtron-loader: #28364c;
16+
--fill-devtron-loader: #6195d2;
1717
} */
1818
}
1919

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"homepage": "/dashboard",
66
"dependencies": {
7-
"@devtron-labs/devtron-fe-common-lib": "1.5.1",
7+
"@devtron-labs/devtron-fe-common-lib": "1.5.2",
88
"@esbuild-plugins/node-globals-polyfill": "0.2.3",
99
"@rjsf/core": "^5.13.3",
1010
"@rjsf/utils": "^5.13.3",

src/Pages/GlobalConfigurations/Authorization/Shared/components/AppPermissions/constants.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616

1717
import { ACCESS_TYPE_MAP, EntityTypes, SelectPickerOptionType } from '@devtron-labs/devtron-fe-common-lib'
18+
import { StylesConfig } from 'react-select'
1819
import { SELECT_ALL_VALUE } from '../../../../../../config'
1920
import { ActionTypes, authorizationSelectStyles } from '../../../constants'
2021
import { getDefaultStatusAndTimeout } from '../../../libUtils'
@@ -72,10 +73,10 @@ export enum DirectPermissionFieldName {
7273
status = 'status',
7374
}
7475

75-
export const roleSelectStyles = {
76+
export const roleSelectStyles: StylesConfig = {
7677
...authorizationSelectStyles,
77-
valueContainer: (base) => ({
78-
...authorizationSelectStyles.valueContainer(base),
78+
valueContainer: (base, state) => ({
79+
...authorizationSelectStyles.valueContainer(base, state),
7980
display: 'flex',
8081
flexWrap: 'nowrap',
8182
textOverflow: 'ellipsis',

src/Pages/GlobalConfigurations/Authorization/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ export const authorizationSelectStyles = {
7676
..._selectStyles.control(base, state),
7777
height: '36px',
7878
}),
79-
valueContainer: (base) => ({
80-
..._selectStyles.valueContainer(base),
79+
valueContainer: (base, state) => ({
80+
..._selectStyles.valueContainer(base, state),
8181
maxHeight: '100%',
8282
}),
8383
option: (base, state) => ({
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
import { ReactComponent as Upload } from '@Icons/ic-upload.svg'
2+
import { Button } from '@devtron-labs/devtron-fe-common-lib'
23
import { UploadButtonProps } from '../types'
34

45
const UploadButton = ({ handleOpenUploadChartModal }: UploadButtonProps) => (
5-
<button
6-
type="button"
6+
<Button
7+
text="Upload Chart"
8+
startIcon={<Upload />}
79
onClick={handleOpenUploadChartModal}
8-
data-testid="upload-custom-chart-button"
9-
className="cta h-32 flex"
10-
>
11-
<Upload className="icon-dim-14 dc__no-svg-fill mr-8" />
12-
Upload Chart
13-
</button>
10+
dataTestId="upload-custom-chart-button"
11+
/>
1412
)
1513

1614
export default UploadButton

src/Pages/Shared/LinkedCIDetailsModal/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export const environmentFilterDropdownStyles = {
4747
height: 32,
4848
minHeight: 32,
4949
}),
50-
menu: (base) => ({
51-
...commonStyles.menu(base),
50+
menu: (base, state) => ({
51+
...commonStyles.menu(base, state),
5252
zIndex: 5,
5353
}),
5454
}

src/Pages/Shared/OrganizationFrame/OrganizationFrame.component.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import { getRandomColor } from '@devtron-labs/devtron-fe-common-lib'
1818
import { ReactComponent as ICDevtron } from '../../../assets/icons/ic-devtron-blue-outline.svg'
19+
import './organizationFrame.scss'
1920

2021
const OrganizationFrame = () => (
2122
<div className="w-36 h-42 dc__no-shrink flexbox dc__position-rel dc__content-center">
@@ -30,7 +31,7 @@ const OrganizationFrame = () => (
3031
</span>
3132
</div>
3233

33-
<ICDevtron className="icon-dim-20 dc__no-shrink dc__position-abs dc__bottom-0" />
34+
<ICDevtron className="icon-dim-20 dc__no-shrink dc__position-abs dc__bottom-0 organization-frame__logo" />
3435
</div>
3536
)
3637

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.organization-frame {
2+
&__logo {
3+
> path:first-child {
4+
fill: var(--bg-sidebar);
5+
}
6+
}
7+
}

src/assets/gif/ic-no-eligible-commit.svg

Lines changed: 1 addition & 1 deletion
Loading

src/assets/ic-info-filled-border.svg

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)