Commit graph

822 commits

Author SHA1 Message Date
Robert Azizbekyan
b32ff9ca8b
fixing dropdown arrow behavior for Topics Messages (#2028)
* fixing dropdown arrow behavior

* adding color from theme
2022-05-30 11:46:32 +04:00
Robert Azizbekyan
cf6454c987
fixing message count problem when clearing or adding messages (#2029) 2022-05-30 11:38:46 +04:00
Robert Azizbekyan
cc109a7125
Show close icon on hover (#2034)
* show close icon on hover

* style changes to avoid repeating styles
2022-05-30 11:24:06 +04:00
doomcrewinc
6b1b47f02b
issues/2037: Changed 'Connects' to 'Connectors' (#2041)
Signed-off-by: doomcrewinc <oilfield101@gmail.com>
2022-05-27 11:59:52 +03:00
Roman Zabaluev
0c881b2df5
Rename messages consumed text (#2027) 2022-05-25 21:00:21 +04:00
Kirill Morozov
ab805c39c5
Click function moved from icon to row (#2017)
* Click function moved from icon to row

* Added cursor: pointer style
2022-05-25 14:52:57 +03:00
Kirill Morozov
ad2966f31b
Topics sorted alphabetically (#1999)
* Added topics sorting and tests

* Sorting topics logic moved to redux, test improved

* LocaleCompare replaced with default sort function

* Shadow fixed on overview topic page

* Code samples fixed in InfoModal

* String type removed

* Unused import removed

* Default JS sort method removed with lodash library sorting method
2022-05-25 14:33:05 +03:00
Robert Azizbekyan
6d8c6cace0
Refactoring Topics reducer into redux toolkit (#1939)
* WIP: creating topicSlice

* reformating reducer into toolkit slice and fixed tests

* removing unnecessary lines

* removing dismiss alert action and tests for actions

* removing unnecessary code

* adding tests for selectors

* adding test case for new topics

* adding test cases for topic reducer when fulfilled

* removing unnecessary code

* adding test cases for asyncthunks to increase coverage

* adding new test cases to cover topicSlice

* adding clear messsages fulfilled test case

* removing unnecessary code
2022-05-25 14:54:33 +04:00
Kirill Morozov
3ee2f87255
Feature/1334 please add a counters of all connectors tasks and failed connectors tasks (#2002)
* Added failed connections counter

* Getting failed connectors moved to Redux selector

* Failed connectors test has been rewritten in testing-library way

* Update kafka-ui-react-app/src/components/Connect/List/List.tsx

Co-authored-by: Oleg Shur <workshur@gmail.com>

* Suggestion exepted

* Added test case for failed connectors counter

* Unused import removed

* Added failed tasks counter

* Update kafka-ui-react-app/src/redux/reducers/connect/selectors.ts

Co-authored-by: Oleg Shur <workshur@gmail.com>

* Reduce args renamed

Co-authored-by: k.morozov <k.morozov@ffin.ru>
Co-authored-by: Oleg Shur <workshur@gmail.com>
2022-05-20 20:53:31 +03:00
Kirill Morozov
d1c59dd74b
Added replicas data to topic overview page (#1993)
* Added replicas data to topic overview page

* Added tests

* Tests improved

* Some logic moved to css plus some refactoring

* Index removed

* Tests improved
2022-05-19 14:44:26 +03:00
Kirill Morozov
ca545ddf36
1865 implement a tooltip with smart filters documentation (#1989)
* Added QuestionIcon

* Added Info button functionality and tests

* Styled component renamed

* Info button testing moved to AddFilter spec

* Styled paragraph renamed

* Info text fixed
2022-05-18 11:30:21 +03:00
dependabot[bot]
3321460185
Bump @hookform/resolvers from 2.8.5 to 2.8.9 in /kafka-ui-react-app (#1978)
Bumps [@hookform/resolvers](https://github.com/react-hook-form/resolvers) from 2.8.5 to 2.8.9.
- [Release notes](https://github.com/react-hook-form/resolvers/releases)
- [Commits](https://github.com/react-hook-form/resolvers/compare/v2.8.5...v2.8.9)

---
updated-dependencies:
- dependency-name: "@hookform/resolvers"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-18 10:35:16 +03:00
Kirill Morozov
18eadfca28
1865 implement a tooltip with smart filters documentation (#1952)
* Added QuestionIcon

* Added Info button functionality and tests

* Styled component renamed

* Info button testing moved to AddFilter spec

* Styled paragraph renamed
2022-05-17 15:10:41 +03:00
Kirill Morozov
7eab325ac3
Added failed connections counter (#1831)
* Added failed connections counter

* Getting failed connectors moved to Redux selector

* Failed connectors test has been rewritten in testing-library way

* Update kafka-ui-react-app/src/components/Connect/List/List.tsx

Co-authored-by: Oleg Shur <workshur@gmail.com>

* Suggestion exepted

* Added test case for failed connectors counter

* Unused import removed

Co-authored-by: k.morozov <k.morozov@ffin.ru>
Co-authored-by: Oleg Shur <workshur@gmail.com>
2022-05-17 13:04:59 +03:00
Kirill Morozov
20300f327d
Spinner fixed (#1964)
* Spinner fixed

* Tests refactored
2022-05-17 12:53:38 +03:00
Kirill Morozov
06864984a1
Border radius fixed (#1985) 2022-05-17 12:04:01 +03:00
Roman Zabaluev
26e84ff185
Fix indicator pane gap width (#1981) 2022-05-17 00:49:57 +04:00
Kirill Morozov
7958e2a9b5
Added fixed width to the tables cells (#1959)
* Added fixed width to the tables cells

* Removed affecting on other tables width
2022-05-16 18:51:12 +03:00
Smbat Siradeghyan
527df864bb
add test (#1979) 2022-05-16 18:03:32 +04:00
Oleg Shur
13791d0401
Update lockfile version (#1983) 2022-05-16 15:03:20 +03:00
dependabot[bot]
818e5d8127
Bump @fortawesome/fontawesome-free in /kafka-ui-react-app (#1749)
Bumps [@fortawesome/fontawesome-free](https://github.com/FortAwesome/Font-Awesome) from 5.15.4 to 6.1.1.
- [Release notes](https://github.com/FortAwesome/Font-Awesome/releases)
- [Changelog](https://github.com/FortAwesome/Font-Awesome/blob/6.x/CHANGELOG.md)
- [Commits](https://github.com/FortAwesome/Font-Awesome/compare/5.15.4...6.1.1)

---
updated-dependencies:
- dependency-name: "@fortawesome/fontawesome-free"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-12 16:56:12 +03:00
Robert Azizbekyan
81d1e955da
Refactor TopicMessages's store to redux/toolkit (#1902)
* Refactor TopicMessages's store to redux/toolkit

* adding test cases to improve coverage

* fixing eslint error

* removing extra code

* Transform redux connect reducer and actions into toolkit slice. (#1883)

* integrate redux toolkit for connects

* uncomment test case

* remove unnecessary comment

* reduce duplication

* 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>

* Add positive notifications after some successful actions. (#1830)

* add some positive notifications after successful actions

* some improvements

* improve alerts reducer tests

* Fix test warnings (#1908)

* fix fetch mock warnings in brokers.spec.tsx

* use separate waitFor-s for fetch-mock call expects

* 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

* fix seek type select border-radius and user-select (#1904)

* 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>

* 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

* display a human-readable error message for topic custom parameers value field (#1896)

* modify dependencies to fix partitions filter bug (#1901)

Co-authored-by: Arsen Simonyan <103444767+simonyandev@users.noreply.github.com>
Co-authored-by: Oleg Shur <workshur@gmail.com>
2022-05-12 16:41:58 +04:00
dependabot[bot]
fa6f587f97
Bump jest-styled-components from 7.0.6 to 7.0.8 in /kafka-ui-react-app (#1295)
Bumps [jest-styled-components](https://github.com/styled-components/jest-styled-components) from 7.0.6 to 7.0.8.
- [Release notes](https://github.com/styled-components/jest-styled-components/releases)
- [Changelog](https://github.com/styled-components/jest-styled-components/blob/main/CHANGELOG.md)
- [Commits](https://github.com/styled-components/jest-styled-components/compare/v7.0.6...v7.0.8)

---
updated-dependencies:
- dependency-name: jest-styled-components
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-12 14:27:54 +03:00
dependabot[bot]
a3d7a1f376
Bump @testing-library/jest-dom in /kafka-ui-react-app (#1806)
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 5.14.1 to 5.16.4.
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/jest-dom/compare/v5.14.1...v5.16.4)

---
updated-dependencies:
- dependency-name: "@testing-library/jest-dom"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-12 13:59:32 +03:00
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