Commit graph

258 commits

Author SHA1 Message Date
Mgrdich
5601fe85ac
Adding Test File for Settings Component (#1712) 2022-03-10 14:17:49 +04:00
NelyDavtyan
f7e7bc0e38
Update frontend to reflect design changes (#1708)
* adding new colors and changing styles

* removing unneccessary code
2022-03-09 15:15:19 +04:00
Sasha Stepanyan
b08e22915d
Issue-1184: fix logo link and remove redundant path segment "ui" (#1658) 2022-03-03 15:48:24 +04:00
NelyDavtyan
39359bb9a9
live message tailing (#1672)
* live tailing

* addind test case

* fixing useffect array deps

* adding test cases for select

* adding test cases for filters

* deleting unused code

* adding test case for filter
2022-03-03 15:15:40 +04:00
Ricardo Brasil
e85e1aafa1
Add clear message when topic creation fails (#1669) 2022-03-02 12:30:28 +03:00
sasunprov
cc926b2fc9
Rename offsets columns and add "message count" in topic details page (#1651) 2022-02-22 14:34:43 +04:00
Zorii4
627f1391bc
Fix frontend linter warnings (#1647)
* quick fix

* fix SendMessage component

Co-authored-by: Anton Zorin <zorii4@Antons-MacBook-Pro.local>
2022-02-21 19:31:22 +03:00
Denys Malofeiev
77706ce670
[Fixed issue/1302] Edited the behavior of form submitting when you send default values of fields (#1586)
* edited the behavior of form submitting

* removed useMemo hook in SendMessage

Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2022-02-21 17:02:50 +02:00
Zorii4
d40af6d386
[issue-1521] Add Port and Host columns to Broker info (#1642)
* Add port column to brokers info

* Add Port and Host columns to Broker info

Co-authored-by: Anton Zorin <ant.zorin@gmail.com>
2022-02-21 16:56:23 +03:00
Si Tang
dd42dbe0cd
#867: add a view for comparing schema versions (#1044)
* #867: add a view for comparing schema versions

* fixing test for diff component

* adding color to lines which are different in versions

* adding function to determine schema type and display correct format when comparing versions

* removing unneccessary style

* changing fetch approach and fixing test issue

* fixinf schema versions comparision path change approach

* remove unnecessary code

* removing enzyme,removing direct use of Colors and adding dispatch to array of deps

* added requested changes

* makeing requested changes

Co-authored-by: NelyDavtyan <ndavtyan@provectus.com>
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
Co-authored-by: NelyDavtyan <96067981+NelyDavtyan@users.noreply.github.com>
2022-02-21 17:12:27 +04:00
Denys Malofeiev
94b1f4a772
[Fixed issue/1587] Got rid of react-hooks/exhaustive-deps errors (#1616)
* got rid of react-hooks/exhaustive-deps errors - part 1

* got rid of react-hooks/exhaustive-deps errors in useSearch

* got rid of react-hooks/exhaustive-deps errors in Filters

* got rid of react-hooks/exhaustive-deps errors in ResetOffsets

* got rid of react-hooks/exhaustive-deps errors in Filters

* got rid of react-hooks/exhaustive-deps errors in Breadcrumbs

* got rid of react-hooks/exhaustive-deps errors in DynamicTextButton

* got rid of react-hooks/exhaustive-deps errors in useDataSaver

* got rid of react-hooks/exhaustive-deps errors in ResultRenderer

Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2022-02-21 14:03:56 +02:00
Denys Malofeiev
3f0693bad6
fixed problem with performance of cluster name in left side (#1635) 2022-02-21 13:53:55 +02:00
Damir Abdulganiev
0832462bfc
[FE] Add the logo (#1611)
* Changes favicon

* Adds logo

* Removes bulma from Version and makes it look just like in figma
2022-02-18 12:32:54 +03:00
Denys Malofeiev
f084dc36a1
[FIXED issue/1544] Resolved bug with export of JSON message to clipboard/file (#1592)
* issue/1544

* added additional data check in copyToClipboard

Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2022-02-16 09:10:36 +02:00
NelyDavtyan
58fdb85fb8
Fix URP status color for topics and brokers (#1565)
* fix URP color for topcis and brokers

* brokers ISR fix

Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
Co-authored-by: Alla Golosenko <92585878+agolosen@users.noreply.github.com>
2022-02-14 17:13:57 +03:00
Zorii4
fbbc6537c8
[Issue-1492] Fixed all tag-badges background colors (#1594)
Co-authored-by: Anton Zorin <ant.zorin@gmail.com>
2022-02-14 13:27:42 +03:00
Denys Malofeiev
217f0ead0d
edited color display of the circularAlert (#1590) 2022-02-13 13:08:37 +02:00
Zorii4
445dc3e270
made adaptive heigth in connectors config component (#1583)
Co-authored-by: Anton Zorin <zorii4@Antons-MacBook-Pro.local>
2022-02-10 15:07:03 +03:00
Denys Malofeiev
164d33b707
[FIXED issue/1545] added feedback to the user when a message content is copied to clipboard (#1570)
* added alert after "Copy to clipborad"

* moved main logic to useDataSaver

* fixed typographical mistake

* updated useDataSaver test
2022-02-10 08:58:12 +02:00
Zorii4
4eaf8ea2c6
[ISSUE-1512]Added sorting by topics size
* [ISSUE-1512]Added sorting by topics size

* Add sort by Size.Refactoring sort order

* correct a little mistake

* Improve test coverage

* got rid code dupliction

* refactoring

Co-authored-by: ValentinPrischepa <valentin.prischepa@gmail.com>
Co-authored-by: Anton Zorin <ant.zorin@gmail.com>
Co-authored-by: Oleg Shur <workshur@gmail.com>
2022-02-09 15:46:11 +03:00
Denys Malofeiev
7ba6801b9c
[Fixed issue/1449] Refactored ksqlDb reducer to reduxjs/toolkit approach (#1530)
* refactored ksqlDb reducer to reduxjs/toolkit approach

* fixed prettier requirement

* added ksql Execution test

* added new test
2022-02-05 10:07:04 +02:00
Denys Malofeiev
54bd778d9c
Fixed issue/1465 partially got rid of enzyme in tests (#1489)
* got rid of enzyme in Dropdown tests

* got rid of enzyme in DynamicTextButton tests

* got rid of enzyme in Search tests

* Revert "got rid of enzyme in Search tests"

This reverts commit cd2c5b10ab.

* got rid of enzyme in Search tests

* got rid of enzyme in SQLEditor tests

* got rid of enzyme in Connect tests

* got rid of enzyme in Connect/Details tests

* got rid of enzyme in Topics\Topic tests

* got rid of ThemeProvider in render function

* fixed redundant

* used userEvent instead of fireEvent

* fixed snapshot tests

* used screen

* rise testing-library approach

* got rid of snapshot in Search component test

* changed titles of Search component test

* fixed topics details test
2022-02-04 22:34:34 +02:00
Zorii4
6d7817ffa7
[Issue-1535] Hide 'Clear Messages' button on Topic whithout Delete Clean Up Policy (#1542)
Co-authored-by: Anton Zorin <zorii4@Antons-MacBook-Pro.local>
2022-02-04 16:22:02 +03:00
Zorii4
00bac4eded
[ISSUE-1533] Update visible list in dropdown selector (#1540)
* Update visible list in dropdown select selector

* refactoring

* changed horizontal scrollbar

Co-authored-by: Anton Zorin <zorii4@Antons-MacBook-Pro.local>
2022-02-04 15:22:52 +03:00
Zorii4
8a7399b093
[Issue 1508] Improve test coverage (#1527)
* component Utils test covered

* component Topic test covered

* Improved test coverage

* edited ConfigListItem component

* Resolve feedback's comment

* made correct description in test case title
2022-02-03 14:06:13 +03:00
Damir Abdulganiev
ced74ac550
[Fixes #1534] No originally selected custom parameters in topic's edit tab (#1538)
- Fixes No originally selected custom parameters in topic's edit tab #1534
- Adds test case for CustomParams to verify fix
- Updates CustomParamsField to use predefined value
- Renames INDEX_PREFIX to TOPIC_CUSTOM_PARAMS_PREFIX and moves it to constants file
- Removes unused configs from Topic/Edit component
- Rewrites DangerZone styled's
- Rewrites DangerZone tests
- Adds margin to DangerZone to match TopicForm width
- Adds simple Topic/Edit test
- Changes sonar-project.properties file's sonar.exclusions to correctly ignore paths

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

Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2022-02-03 13:29:02 +03:00
Zorii4
0b5f9283d6
fixed Code Smells from PR 1494 (#1536)
Co-authored-by: Anton Zorin <zorii4@Antons-MacBook-Pro.local>
Co-authored-by: Oleg Shur <workshur@gmail.com>
2022-02-02 16:04:27 +03:00
Damir Abdulganiev
982d29709b
[Fixes #1510] UI, Critical: retention.bytes parameter set to 0 (#1514)
* Changes Default value of rentention.bytes

* Adds test for TopicForm
* Removes bug from Topic/New test
* Updates Topic/New test
* Adds accessible names for TopicForm
* Add id's to Select component
2022-02-01 17:08:46 +03:00
Damir Abdulganiev
4390923e48
[Fixes #1520] Too short visible list for Schema compatibility level selector (#1524)
* Updates Select styles to always show scrollbar on webkit

Co-authored-by: Damir Abdulganiev <dabdulganiev@provectus.com>
2022-02-01 16:35:42 +03:00
Zorii4
10e6160eaf
[ISSUE 1408] Get rid of Bulma's classes 'Elements'. (#1494)
* Removed sass modules not used in project

* get rid Icon from Bulma

* Get rid of Bulma's classes 'Elements'.

* resoved comments from review

* resolved Code Smells problem

* refactoring TableHeader styles

* merge master

Co-authored-by: Oleg Shur <workshur@gmail.com>
2022-01-31 15:20:59 +03:00
ValentinPrischepa
540b8eb79b
Schema registry pagination and search
* [ISSUE-1191, ISSUE-1208] Implemented search and pagination for schema registry overview page.

* [ISSUE-1191, ISSUE-1208] Implemented search and pagination for schema registry overview page.

* [ISSUE-1191, ISSUE-1208] Implemented search and pagination for schema registry overview page.

* [ISSUE-1191, ISSUE-1208] fixed Checkstyle violation issue.

* WIP: Fixes some frontend issues just to build frontend

* WIP: Fixes fronted just to build it

* WIP: Fixes frontend to build it

* WIP: Schemas tests are failing

* WIP: List tests work

* WIP: Details test work

* WIP: Updates tests

* WIP: Fixes lint errors and comments

* WIP: Changes usePagination, some tests have warns

* WIP: Refreshes with query string works correctly

* cleanup

* WIP: cleanup

* WIP: cleanup

* WIP: Removes ThemeProvider from test as render function uses ThemeProvider

* WIP: Pagination + Search works correcly

* WIP: Cleanup

* WIP: Cleanup

* WIP: Cleanup

Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
Co-authored-by: Damir Abdulganiev <dabdulganiev@provectus.com>
Co-authored-by: Damir Abdulganiev <damupka@gmail.com>
2022-01-31 13:24:39 +03:00
Damir Abdulganiev
9bd881a97b
Changes Connect/Details/Tasks/ListItem compoenents label to restart task from 'Clear messages' to 'Restart task' and refactors ListItem's test to use testing library (#1507)
Co-authored-by: Damir Abdulganiev <dabdulganiev@provectus.com>
2022-01-31 12:56:15 +03:00
Zorii4
c116c844bb
[ISSUE 1406] Get rid of direct use of colors map. Refactoring.
* Get rid of direct use of colors map

* Edited direct using color map in styled component

* Resolved conflicts, refactored Dropdown component

* resolved feedback

* refactoring

Co-authored-by: Oleg Shur <workshur@gmail.com>
2022-01-25 18:10:02 +03:00
Ekaterina Petrova
471e84d0f9
Schema type is not updated when history push (#1474)
Co-authored-by: Ekaterina Petrova <epetrova@provectus.com>
2022-01-25 15:54:46 +03:00
NelyDavtyan
f2272bd6b3
replacing enzyme with react testing library for topics overview (#1475) 2022-01-25 14:53:27 +04:00
Azat Belgibayev
e569e46a8a
Refactor breadcrumbs params detection (#1394)
Co-authored-by: Oleg Shur <workshur@gmail.com>
2022-01-25 12:01:37 +03:00
NelyDavtyan
05174fd684
fixing cannot create a topic issue,added some default values to pass … (#1467)
* fixing cannot create a topic issue,added some default values to pass validation

* fixed default values in other forms

Co-authored-by: Ekaterina Petrova <epetrova@provectus.com>
2022-01-24 21:33:16 +03:00
Dekshut
9446d9c39d
[Fixes #1410] Edited using colors in styled components using our Theme (#1442)
* Edited using colors in syled components

* updated snapshots

* updated snapshots

* edited stylistic mistake

Co-authored-by: Oleg Shur <workshur@gmail.com>
2022-01-22 15:49:41 +02:00
dependabot[bot]
e2b63fcec2
Bump eslint-config-airbnb-typescript from 12.3.1 to 14.0.2 in /kafka-ui-react-app (#1294)
* Bump eslint-config-airbnb-typescript in /kafka-ui-react-app

Bumps [eslint-config-airbnb-typescript](https://github.com/iamturns/eslint-config-airbnb-typescript) from 12.3.1 to 14.0.2.
- [Release notes](https://github.com/iamturns/eslint-config-airbnb-typescript/releases)
- [Changelog](https://github.com/iamturns/eslint-config-airbnb-typescript/blob/master/CHANGELOG.md)
- [Commits](https://github.com/iamturns/eslint-config-airbnb-typescript/compare/v12.3.1...v14.0.2)

---
updated-dependencies:
- dependency-name: eslint-config-airbnb-typescript
  dependency-type: direct:development
  update-type: version-update:semver-major
...

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

* Update Eslint config

* Update eslint

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Oleg Shuralev <workshur@gmail.com>
2022-01-21 23:45:38 +03:00
Ilya Kuramshin
f85a340b79
ISSUE-1444: Additional params added to connector restart endpoint to be able to… (#1445)
* Additional params added to connector restart endpoint to be able to restart not only connector instance, but all its tasks
* RESTARTING state added to ConnectorTaskStatus
* Restart connector button rename

Co-authored-by: iliax <ikuramshin@provectus.com>
2022-01-21 15:24:13 +03:00
Damir Abdulganiev
31954ceb55
[Fixes #1428] Improve Sonar Cloud security hotspots metrics (#1436)
* Removes regex from compareVersions

* Replaces regexes in reducers

* Rewrite Version and compareVersions to expect undefined

* Adds safeguard against strange cases

* Fixes regression from another PR

Co-authored-by: Damir Abdulganiev <dabdulganiev@provectus.com>
2022-01-20 20:18:31 +03:00
Ekaterina Petrova
205d8d000d
Bugfix/select (#1397)
* new select styles init

* Custom select compound component

* Select component fix styles

* Added react hook form controller

* Moved from compound component

* fixed vslues & onChange for controller

* fixed tests & code cleanup

* fix review

* fixed linter

* fixed discussions

Co-authored-by: Ekaterina Petrova <epetrova@provectus.com>
2022-01-20 16:41:20 +03:00
Ekaterina Petrova
2b79fee1e4
Space sensitive syntax for Create Connector #1217
* added trim to json config

* refactored new tests

* refactored edit tests

* fix new test act warning

* first working tests

* fixed textarea props

* resolved discussions

Co-authored-by: Ekaterina Petrova <epetrova@provectus.com>
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2022-01-20 15:26:29 +03:00
Damir Abdulganiev
8639403448
[Resolves #1221] Unclear parameters for Consumers` Search. Inconsistency of Search line on Consumers page. (#1429)
* Changed Search component placeholder

* Updates test

Co-authored-by: Damir Abdulganiev <dabdulganiev@provectus.com>
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2022-01-20 12:39:23 +03:00
NelyDavtyan
68f1d3e7ee
Protobuf schema is not formatted properly (#1426)
* clusters"s table styles was fixed, added hyphens to breadcrumbs, URP is not abbreviated and ISR is abbreviated already and "f0" was changed to 0

* styled component name for cluster table was changed

* adding tests for clusterwidget cells, adding title for ISR and bringing back changes in breadcrumb regarding hyphens

* fixing clusterWidget test

* fixing double scroll issue inside Topics > Messages > Content for large message content

* bring back last changes

* changing styles for scrollbar

* fixing protobuf schema to be formatted correctly

* makeing requested changes, JSONEditor renamed to Editor,fixed schema edit and versions

* rename JSONViewer to EditorViewer

Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2022-01-20 13:21:13 +04:00
Oleg Shur
422f90f0aa
Prepare bulma for removal (#1427) 2022-01-20 11:55:03 +03:00
Damir Abdulganiev
2d5a8c024a
[Fixes #1391] Incorrect topic message content type (avro -> json) (#1422)
* Updates MessageContent to use keyFormat and valueFormat data from API

* Changes imports to * from S

* Adds tests verify keyFormat and contentFormat renders correctly

Co-authored-by: Damir Abdulganiev <dabdulganiev@provectus.com>
2022-01-19 17:45:50 +03:00
Damir Abdulganiev
7789523613
[Fixes #1213] Topic Creation: Inconsistency in Deleted parameters (#1395)
* CustomParams: Fixed condition error. Now existingFields updates correctly when one of CustomParamsFields is deleted

* Resolves bug when you select option and after select another - existingFields do not update correctly

* CustomParams fields update correctly

* Increases coverage

Co-authored-by: Damir Abdulganiev <dabdulganiev@provectus.com>
2022-01-19 17:34:12 +03:00
Oleg Shur
d0761e2040
Fix schema versions order (#1413) 2022-01-19 17:24:12 +03:00
NelyDavtyan
3291b85838
clusters"s table styles was fixed, added hyphens to breadcrumbs, URP … (#1384)
* clusters"s table styles was fixed, added hyphens to breadcrumbs, URP is not abbreviated and ISR is abbreviated already and "f0" was changed to 0

* styled component name for cluster table was changed

* adding tests for clusterwidget cells, adding title for ISR and bringing back changes in breadcrumb regarding hyphens

* fixing clusterWidget test

* fixing double scroll issue inside Topics > Messages > Content for large message content

* bring back last changes

* changing styles for scrollbar

* added required changes from reviewers and removed enzyme from clusterWidgets test
2022-01-19 16:14:47 +04:00