-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into messages_v2
- Loading branch information
Showing
42 changed files
with
1,047 additions
and
516 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,37 +13,45 @@ jobs: | |
NODE_ENV: dev | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
# Disabling shallow clone is recommended for improving relevancy of reporting | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
token: ${{ github.token }} | ||
|
||
- uses: pnpm/[email protected] | ||
with: | ||
version: 8.6.12 | ||
|
||
- name: Install node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: "18.17.1" | ||
cache: "pnpm" | ||
cache-dependency-path: "./frontend/pnpm-lock.yaml" | ||
|
||
- name: Install Node dependencies | ||
run: | | ||
cd frontend/ | ||
pnpm install --frozen-lockfile | ||
- name: Generate sources | ||
- name: Compile | ||
run: | | ||
cd frontend/ | ||
pnpm gen:sources | ||
pnpm compile | ||
- name: Linter | ||
run: | | ||
cd frontend/ | ||
pnpm lint:CI | ||
- name: Tests | ||
run: | | ||
cd frontend/ | ||
pnpm test:CI | ||
- name: SonarCloud Scan | ||
if: false # TODO remove when public | ||
uses: sonarsource/sonarcloud-github-action@master | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 0 additions & 30 deletions
30
frontend/src/components/Brokers/Broker/Configs/Configs.styled.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,6 @@ | ||
import styled from 'styled-components'; | ||
|
||
export const ValueWrapper = styled.div` | ||
display: flex; | ||
justify-content: space-between; | ||
button { | ||
margin: 0 10px; | ||
} | ||
`; | ||
|
||
export const Value = styled.span` | ||
line-height: 24px; | ||
margin-right: 10px; | ||
text-overflow: ellipsis; | ||
max-width: 400px; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
`; | ||
|
||
export const ButtonsWrapper = styled.div` | ||
display: flex; | ||
`; | ||
export const SearchWrapper = styled.div` | ||
margin: 10px; | ||
width: 21%; | ||
`; | ||
|
||
export const Source = styled.div` | ||
display: flex; | ||
align-content: center; | ||
svg { | ||
margin-left: 10px; | ||
vertical-align: middle; | ||
cursor: pointer; | ||
} | ||
`; |
103 changes: 24 additions & 79 deletions
103
frontend/src/components/Brokers/Broker/Configs/Configs.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 0 additions & 91 deletions
91
frontend/src/components/Brokers/Broker/Configs/InputCell.tsx
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
...ts/Brokers/Broker/Configs/TableComponents/ConfigSourceHeader/ConfigSourceHeader.styled.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import styled from 'styled-components'; | ||
|
||
export const Source = styled.div` | ||
display: flex; | ||
align-content: center; | ||
svg { | ||
margin-left: 10px; | ||
vertical-align: middle; | ||
cursor: pointer; | ||
} | ||
`; |
27 changes: 27 additions & 0 deletions
27
...mponents/Brokers/Broker/Configs/TableComponents/ConfigSourceHeader/ConfigSourceHeader.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react'; | ||
import Tooltip from 'components/common/Tooltip/Tooltip'; | ||
import InfoIcon from 'components/common/Icons/InfoIcon'; | ||
import { CONFIG_SOURCE_NAME_MAP } from 'components/Brokers/Broker/Configs/lib/constants'; | ||
|
||
import * as S from './ConfigSourceHeader.styled'; | ||
|
||
const tooltipContent = `${CONFIG_SOURCE_NAME_MAP.DYNAMIC_TOPIC_CONFIG} = dynamic topic config that is configured for a specific topic | ||
${CONFIG_SOURCE_NAME_MAP.DYNAMIC_BROKER_LOGGER_CONFIG} = dynamic broker logger config that is configured for a specific broker | ||
${CONFIG_SOURCE_NAME_MAP.DYNAMIC_BROKER_CONFIG} = dynamic broker config that is configured for a specific broker | ||
${CONFIG_SOURCE_NAME_MAP.DYNAMIC_DEFAULT_BROKER_CONFIG} = dynamic broker config that is configured as default for all brokers in the cluster | ||
${CONFIG_SOURCE_NAME_MAP.STATIC_BROKER_CONFIG} = static broker config provided as broker properties at start up (e.g. server.properties file) | ||
${CONFIG_SOURCE_NAME_MAP.DEFAULT_CONFIG} = built-in default configuration for configs that have a default value | ||
${CONFIG_SOURCE_NAME_MAP.UNKNOWN} = source unknown e.g. in the ConfigEntry used for alter requests where source is not set`; | ||
|
||
const ConfigSourceHeader = () => ( | ||
<S.Source> | ||
Source | ||
<Tooltip | ||
value={<InfoIcon />} | ||
content={tooltipContent} | ||
placement="top-end" | ||
/> | ||
</S.Source> | ||
); | ||
|
||
export default ConfigSourceHeader; |
Oops, something went wrong.