Commit graph

748 commits

Author SHA1 Message Date
Oleg Shur
b6834c81bb
Use Node v16.15.0 (#1958) 2022-05-12 13:08:51 +03:00
Oleg Shur
eb47ec012d
Upgrade to React 18 (#1955)
* Upgrade deps

* migration

* Fix specs

* exclude index.tsx from sonar metrics

* Update deps
2022-05-12 01:03:08 +03:00
Oleg Shur
19c8fe8693
Romove enzyme. Cleanup warnings (#1950)
* remove enzyme from dependencies

* Fix warnings

* cleanup code smels

* Rollback contract change
2022-05-11 16:54:11 +03:00
Smbat Siradeghyan
ee102aa87e
In Sync Replicas metric displays correct information (#1920)
Co-authored-by: Smbat Siradeghyan
Co-authored-by: Oleg Shur <workshur@gmail.com>
2022-05-11 11:37:07 +03:00
Mgrdich
e597f14b8d
Issues/215 topics page tests (#1948)
* Add Tests to Topics Lists Page for TopicsTableCells

* Delete obsolete ListItems and its test suites from topics.

* Add tests suites for the new Topic creation

* Add tests suites for TopicForm styled components

* Minor code modifications in the CustomParamField test file

* Minor code modifications in the CustomParams test file

* Minor code modifications in the Topic folder

* Add test suites for Topic Edit Page + minor modifications in the DangerZone test suite

* Add tests suites for Topic Edit page

* Add tests suites for Topic Edit page

* Add tests suites for Topic Edit page

* Add tests suites for DangerZone and validation

* Add tests suites for DangerZone

* Add tests suites for DangerZone

* Add tests suites to SendMessage

* increase the tests coverage for validateMessage

* minor changes in the SendMessage and validateMessage function

* add alert message suggestion in the SendMessage

* add alert message suggestion in the SendMessage

* Total Coverage of Overview test suites

* increase tests suite coverage in the Filters styles

* increase tests suite coverage in the Filters styles + Messages Page

* improve the test coverage of the Message Component

* improve the test coverage of the Message Component

* improve the test coverage of the MessagesTable Component

* improve the test coverage of the MessagesTable Component

* improve the test coverage of the MessagesTable Component

* Add Tests for Topic Page

* Change to react testing library from enzyme Topics list

* optimizing List elements Tests suites

* delete necessary file

* minor bug fix in messages due to the rebase

* minor semantic changes in the Test suites
2022-05-11 12:27:22 +04:00
Oleg Shur
a94697c6af
replace enzyme with testing library (#1909)
* Removed two enzyme test with testing-library tests

* Got rid of enzyme and wrapper in List.spec.tsx

* Got rid of enzyme and wrapper in ListItem.spec.tsx

* Got rid of enzyme and wrapper in BytesFormatted.spec.tsx

* Got rid of enzyme and wrapper in ConfirmationModal.spec.tsx

* Got rid of enzyme and wrapper in Tabs.spec.tsx

* Got rid of enzyme and wrapper in Actions.spec.tsx

* Got rid of enzyme and wrapper in ListItem.spec.tsx

* Got rid of enzyme and wrapper in FiltersContainer.spec.tsx

* Got rid of enzyme and wrapper in ListItem.spec.tsx

* Got rid of Enzyme in a two more files

* Got rid of Enzyme in testHelpers.tsx

* Got rid of snapshots

* Three wrappers replaced with render from testHelpers

* Testing id replaced

* Fixed linter warnings

* Got rid of testIds

* Got rid of unnecessary containers and ...queryBy functions

* Got rid of dublicated ...getByRole functions

* Got rid of dublicated more than two times ...getByText functions

* Got rid of unused imports

* Got rid of unused import

* Desciptions fixed

* Got rid of providers

* Got rid of unused imports

* package-lock.json reverted

* Refactor Actions component specs

* Get rid of TestRouterWrapper

* Refactor specs

* Refactor specs

* linting

Co-authored-by: k.morozov <k.morozov@ffin.ru>
Co-authored-by: lazzy-panda <grifx.design@gmail.com>
2022-05-11 01:36:25 +03:00
dependabot[bot]
5d706eaf59
Bump async from 2.6.3 to 2.6.4 in /kafka-ui-react-app (#1937)
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-09 18:20:37 +04:00
dependabot[bot]
e72fbfa78b
Bump ejs from 3.1.6 to 3.1.7 in /kafka-ui-react-app (#1927)
Bumps [ejs](https://github.com/mde/ejs) from 3.1.6 to 3.1.7.
- [Release notes](https://github.com/mde/ejs/releases)
- [Changelog](https://github.com/mde/ejs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mde/ejs/compare/v3.1.6...v3.1.7)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-09 17:51:54 +04:00
Arsen Simonyan
5358461040 modify dependencies to fix partitions filter bug (#1901) 2022-05-04 10:47:51 +04:00
Arsen Simonyan
b511b8cdda display a human-readable error message for topic custom parameers value field (#1896) 2022-05-04 10:47:51 +04:00
Arsen Simonyan
b160b504f9 Show confirmation modal when clear messages is clicked in topics list (#1899)
* show confirmation modal when clear messages is clicked in topics list

* change variable name

* add missing dependencies

* use useModal hook for topics list modals
2022-05-04 10:47:51 +04:00
Arsen Simonyan
2b5917dd54 Refetch topics list to display the updated data (#1900)
* refetch topics list to display the updated data

* fixing sonar code smells (#1826)

* fixing sonar code smells

* removing unnecessary change

* fixing some sonar code smell issues

* making requested changes

* Fix sonar badges in readme (#1906)

Co-authored-by: Robert Azizbekyan <103438454+rAzizbekyan@users.noreply.github.com>
Co-authored-by: Oleg Shur <workshur@gmail.com>
2022-05-04 10:47:51 +04:00
Arsen Simonyan
45931a63ed fix seek type select border-radius and user-select (#1904) 2022-05-04 10:47:51 +04:00
Arsen Simonyan
8413998974 Persist show internal topics switch state (#1832)
* persist show internal topics switch state

* minor improvements in topics list tests

* prevent duplication in topic list test file
2022-05-04 10:47:51 +04:00
Arsen Simonyan
b296c1a803 Fix test warnings (#1908)
* fix fetch mock warnings in brokers.spec.tsx

* use separate waitFor-s for fetch-mock call expects
2022-05-04 10:47:51 +04:00
Arsen Simonyan
bd9292e8a9 Add positive notifications after some successful actions. (#1830)
* add some positive notifications after successful actions

* some improvements

* improve alerts reducer tests
2022-05-04 10:47:51 +04:00
Robert Azizbekyan
3275b3fb94 Implement code highlighting for smart filters (#1868)
* Implement code highlighting for smart filters

* delete unnecessary code

* fixing eslint problem

* fixing sonar code smells (#1826)

* fixing sonar code smells

* removing unnecessary change

* fixing some sonar code smell issues

* making requested changes

* Fix sonar badges in readme (#1906)

* fixing merge conflicts

Co-authored-by: Oleg Shur <workshur@gmail.com>
2022-05-04 10:47:51 +04:00
Arsen Simonyan
3d04007883 Transform redux connect reducer and actions into toolkit slice. (#1883)
* integrate redux toolkit for connects

* uncomment test case

* remove unnecessary comment

* reduce duplication
2022-05-04 10:47:51 +04:00
Arsen Simonyan
521ba0cb2f
Improve live tailing. (#1898)
* disable filter options when live tailing mode is enabled

* prevent seek direction change when stop loading is pressed on live mode

* disable submit button while tailing

* write tests for MultiSelect.styled component to achieve 100% coverage
2022-05-02 10:05:24 +04:00
Oleg Shur
247fd23bc0
Fix sonar badges in readme (#1906) 2022-04-27 15:28:35 +04:00
Robert Azizbekyan
a55068d122
fixing sonar code smells (#1826)
* fixing sonar code smells

* removing unnecessary change

* fixing some sonar code smell issues

* making requested changes
2022-04-27 14:17:10 +04:00
Arsen Simonyan
9acef94234
Improve smart filters (#1903) 2022-04-27 10:14:56 +04:00
Arsen Simonyan
b2a04a202e
Improve tests coverage (#1864)
* improve tests coverage of topic details component

* improve tests coverage on topic details overview component
2022-04-22 18:04:09 +04:00
Kirill Morozov
deddf09ed4
Сlone topic functionality (FE) (#1825)
* Added Copy button in list of topics

* Added copy topic functionality

* Whitespaces removed

* Removed extra string wrapper

* Copy component removed, routing fixed, tests fixed

* Ternary and returning null removed

* Dublicated code refactored

* Added tests for ternary header

* Added enum for the form fields

Co-authored-by: k.morozov <k.morozov@ffin.ru>
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2022-04-22 16:51:00 +03:00
Mgrdich
29ee6b1517
Add Debounce to the Filters search component (#1848) 2022-04-22 17:40:01 +04:00
Kirill Morozov
db217e1605
Fix topic names fitting in a table cell (#1812)
* Fixed tags width and added scroll to the table

* Dropdown position fixed

* Prop up=true moved directly to the table

* Scroll removed, table resized

* Unused divider removed

* Removed extra Divider import

Co-authored-by: k.morozov <k.morozov@ffin.ru>
2022-04-22 17:33:00 +04:00
Robert Azizbekyan
b0552e4a6f
fixing timestamp type for message content (#1821)
* fixing timestamp type for message content

* adding test cases to improve coverage

* fixing test cases names

* removing testId from test cases
2022-04-22 17:00:12 +04:00
Arsen Simonyan
e9260cf9cb
fix broker hosts and ports bug (#1881) 2022-04-22 13:38:17 +04:00
Arsen Simonyan
62f4778803
Fix dropdown jump effect bug on mouse over in topics list (#1875)
* fix dropdown jump effect bug on mouse over in topics list

* fix isHidden condition
2022-04-22 13:01:08 +04:00
Arsen Simonyan
4c76d07f04
remove offset input render condition in topic messages filters (#1876) 2022-04-22 12:33:03 +04:00
Arsen Simonyan
f70809128b
Fix double topic message display bug (#1870)
* fix double topic message display bug

* fix variable name
2022-04-22 12:25:23 +04:00
Arsen Simonyan
85f095657c
Fix topic custom parameter duplication overriding (#1859)
* fix topic custom parameter multiple items of the same field bug

* move condition into the updateSelectedOption function
2022-04-22 11:39:07 +04:00
Arsen Simonyan
efe135342e
fix topic messages old data persistence (#1838) 2022-04-22 11:13:01 +04:00
Arsen Simonyan
f6e98ec5f5
Fix topic messages offset filter bug (#1849)
* fix topic messages offset filter bug

* refactor function to improve readability

* fix infinite fetching bug

Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2022-04-22 10:41:40 +04:00
Kirill Morozov
3a9e1d12f4
Auto-closing of alert message removed (#1869)
Co-authored-by: k.morozov <k.morozov@ffin.ru>
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2022-04-22 07:58:41 +03:00
Kirill Morozov
fde88d0034
Hardcoded string with dropdown removed (#1867)
Co-authored-by: k.morozov <k.morozov@ffin.ru>
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2022-04-22 07:50:28 +03:00
Robert Azizbekyan
2a0c8176ab
Fix KSQLDB breadcrumbs spelling (#1843)
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2022-04-22 04:38:06 +04:00
Robert Azizbekyan
25266991df
KC: Display a clear message if connector already exists (#1839)
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2022-04-21 04:32:52 +04:00
Arsen Simonyan
b406d1bba3
Fix broken topics' sandwich menu (#1829)
* fix topic list invisible actions menu

* use styled component instead of inline styles

* remove unnecessary prop type

Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2022-04-21 02:09:40 +04:00
Kirill Morozov
c5234ce470
Fix clearing offset upon "clear all" button click (#1866)
Co-authored-by: k.morozov <k.morozov@ffin.ru>
2022-04-21 01:59:11 +04:00
Arsen Simonyan
a038762409
Remove unnecessary links and texts in topic messages (#1851)
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2022-04-19 19:51:24 +04:00
Mgrdich
6eb6bb1d7e
Smart filters improvements (#1814)
* Add Filters add button and remove the Add Filter Icon

* Generalize DeleteFilterModal and write tests suites + add custom addModal hook

* add react-testing-hook-lib + add tests to useModal hook

* Add parameter to ConfirmationModal + remove delete Modal add generic modal in add filter page

* implementing the modal hook on add Filter

* Finalize the Smart Filters functionality

* Styling code modifications

* Styling code modifications

* Filters styling code modifcations

* minor modifications in the tests suites

* minor tests suites description modifications

* minor tests suites code modifications

* Adding unNamed Filter selection option + tests suites

* Fix typo

Signed-off-by: Roman Zabaluev <rzabaluev@provectus.com>

* Adding tests Wuites to AddEditFilterContainer and to addFilter

* Add Filters add button and remove the Add Filter Icon

* Generalize DeleteFilterModal and write tests suites + add custom addModal hook

* add react-testing-hook-lib + add tests to useModal hook

* Add parameter to ConfirmationModal + remove delete Modal add generic modal in add filter page

* implementing the modal hook on add Filter

* Finalize the Smart Filters functionality

* Styling code modifications

* Styling code modifications

* Filters styling code modifcations

* minor modifications in the tests suites

* minor tests suites description modifications

* minor tests suites code modifications

* Adding unNamed Filter selection option + tests suites

* Fix typo

Signed-off-by: Roman Zabaluev <rzabaluev@provectus.com>

* Adding tests Wuites to AddEditFilterContainer and to addFilter

* q parameter modifications in the SmartFilters

* Add popup close functionality after applying the filters

Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2022-04-18 14:14:53 +04:00
Mgrdich
b4e52afbdb
Issues/1740 live tailing order (#1824)
* fixing Message addition order during Live tailing

* fixing Message addition order during Live tailing adding tests suites

* minor changes in the function name for prepending addTopics during live mode

* delete minor code repetition

Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2022-04-14 20:24:58 +04:00
Oleg Shur
ee09fc73b6
Adjust sonar exclusion list (#1833) 2022-04-14 17:43:50 +04:00
Arsen Simonyan
d79412fe26
fix page reset on search input change (#1823)
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2022-04-13 13:39:59 +04:00
Kirill Morozov
a38077d9d7
Added functionality to ClearAll button (#1813)
* Added functionality to ClearAll button

* Added updating count of partitions in URL

* Comments removed

* Added SeekDirection reset

* White spaces removed

Co-authored-by: k.morozov <k.morozov@ffin.ru>
2022-04-12 20:09:46 +03:00
Kirill Morozov
161b8a7238
Added maxWidth to the table row styles (#1810)
* Added new styles to table cells
* Styled td component moved to TableHeaderCell.styled

Co-authored-by: k.morozov <k.morozov@ffin.ru>
2022-04-07 16:28:18 +03:00
NelyDavtyan
09b29ded04
Frontend: Restart connectors buttons (#1717)
* restart_all_tasks and restart_failed_tasks

* Add Batch to minimize react-redux rendering in multiple dispatch scenarios for restartTasks Async Action

Co-authored-by: Mgrdich <mgotm13@gmail.com>
Co-authored-by: Mgrdich <46796009+Mgrdich@users.noreply.github.com>
2022-04-06 13:25:15 +04:00
Mgrdich
68f8eed8f8
Issues/1740 live tailing improvements (#1774)
* Implementing Context to the Topic messages pages

* Using TopicContext in the Topics Topic MessageTable component

* Using TopicContext variable in the Filters component

* Fixing the Ordering of the Live mode Topic messaging

* Fixing isLive parameter bug during page refresh

* Minor code modification in Topic Filter Message page

* Implement the correct seekType during live mode in url as well as in api call

* Add Test cases to Messages and refactor eventSource Mock

* Add initial Testing file for messages table

* improve the MessagesTable test File

* improve the MessagesTable test File + Filter Test File

* improve the MessagesTable test File

* Change the function name toggleSeekDirection  to changeSeekDirection

* change the name of the test suites to be more declarative

* Display the table progress bar in live mode only when no data is fetched
2022-04-05 16:04:41 +04:00
Mgrdich
c79905ce32
Issues/921 pagination consumer groups (#1802)
* Add Pagination to the ConsumerGroups Page

* Consumer Groups test suites minor code modifications

* Consumer Groups test Search results code

* Consumer Groups test Search with Api request

* Consumer Groups Search Logic
2022-04-05 15:48:22 +04:00