Commit graph

300 commits

Author SHA1 Message Date
Shubham Jain
a9c31e6a32
Fix topic edit redirect (#2485) 2022-08-25 00:41:22 +04:00
KriKiparoidze
6de2eaeab1
#2261 "Value" field is focused with adding the Custom Parameter in a Topic (#2469) 2022-08-22 15:11:53 -05:00
KriKiparoidze
26d800f997
Fix smart filters multiple conditions (#2400)
Co-authored-by: Oleg Shur <workshur@gmail.com>
2022-08-18 16:51:51 +04:00
Oleg Shur
8d3f098385
Use back link instead of breadcrumbs (#2430)
* Use back link instead of breadcrumbs

* Unify topic pages

* Unify topic page actions

* fix

* Remove unused test
2022-08-15 14:08:10 +03:00
Oleg Shur
e1fb6bacc3
Get rid of SmartTable component (#2444)
* Get rid of SmartTable component

* Clickable rows

* Improve test coverage
2022-08-15 13:46:13 +03:00
Oleg Shur
21f17ad39e
Use new table component for topics list (#2426)
* Use new table component for topics list

* Fix styling

* Migrate BrokerLogdir to new tables

* Improve test coverage
2022-08-12 15:36:07 +03:00
Roman Zabaluev
5fdcd2124c
Fix a typo within topic's statistics (#2422) 2022-08-12 15:22:27 +04:00
MichaelGonzalezMurillo
24243e36ac
Fix validation message for Topic name field (#2425)
* Fixes #2203

* Fixes #2203 adding unit tests
2022-08-12 15:21:15 +04:00
Oleg Shur
7765a268af
Topic statistics (#2413)
* Topic statistics

* Typo

* Code smell

* Specs

* Specs

* Use timestamp helper

* Improve coverage

* styling
2022-08-09 16:13:03 +03:00
Oleg Shur
8efd890540
Update Alerts to use ReactNode as a message content (#2399) 2022-08-08 13:00:43 +03:00
Oleg Shur
8f0ffe665c
Refactor topics (#2386) 2022-08-05 00:25:50 +03:00
Oleg Shur
2d82b9c0a9
New Confirmation Messages modal (#2376)
* New Confirmation Messages

* Fix #2348

* Fix codesmels

* fix #2242

* fix #2347
2022-08-03 11:37:35 +03:00
Smbat Siradeghyan
819ae60e6b
Fix default properties' values propagation upon topic edit (#2205)
* fix topic  edit form

* remove unused import

* add test for topicParamsTransformer

* add tests for topicParamsTransformer

* try to fix tests topicParamsTransformer

* try to fix tests topicParamsTransformer

* try to fix tests topicParamsTransformer

* fix tests for topicParamsTransformer

* try to fix tests topicParamsTransformer

* try to fix tests topicParamsTransformer

* try to fix tests topicParamsTransformer

* try to fix tests topicParamsTransformer

* fix review comments

* fix tests name

* fix tests name

* remove default value from getValue function

* fix tests names

* fix topic create page

* remove unused import

Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2022-08-01 21:17:08 +04:00
Oleg Shur
c4f97327c0
Make frontend work properly with custom context url (#2363)
* Add an ability to run app from subfolder

* linting

* Fix all the static resources URLs and manifest.json

Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2022-08-01 20:47:49 +04:00
Oleg Shur
70414d2279
New Dropdown component (#2355)
* New Dropdown component

* Cleanup

* Styling

* Minireset
2022-07-31 15:38:44 +03:00
Oleg Shur
bffe316063
Use react-hot-toaster for alerts (#2312)
* Use react-hot-toaster for alerts

* Fix linting problems
2022-07-25 14:16:00 +03:00
Robert Azizbekyan
48325bc5ad
fixing newest first mode issue and actionscell dispatch issue (#2305) 2022-07-21 16:57:49 +04:00
Robert Azizbekyan
6891f71452
fixing create schema page validation issue (#2313) 2022-07-21 14:03:13 +04:00
Robert Azizbekyan
30f836645d
Dependabot/npm and yarn/kafka UI react app/eslint plugin react 7.30.1 (#2232)
* Bump eslint-plugin-react from 7.29.4 to 7.30.1 in /kafka-ui-react-app

Bumps [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) from 7.29.4 to 7.30.1.
- [Release notes](https://github.com/jsx-eslint/eslint-plugin-react/releases)
- [Changelog](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jsx-eslint/eslint-plugin-react/compare/v7.29.4...v7.30.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-react
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

* taking ActionsCell out of List

* removing package-lock

* refactoring props

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-19 18:53:07 +04:00
Oleg Shur
96b00785b5
Upgrade redux (#2299)
* got rid of redux-thunk

* Bump redux

* Bump ace. Got rid of node-fetch

* Fix vite config
2022-07-19 16:18:28 +03:00
Oleg Shur
7d4e42c860
got rid of the dead code (#2286) 2022-07-18 18:33:44 +03:00
Robert Azizbekyan
7845476af1
fixing forms not no be able to submit until all required fields are f… (#2221)
* fixing forms not no be able to submit until all required fields are filled

* fixing topic form validation issue
2022-07-18 17:08:32 +04:00
Robert Azizbekyan
002e4db355
fixing create topic (#2275) 2022-07-18 14:57:28 +04:00
Oleg Shur
9af6b0032b
Kafka Connect with React-Query (#2258)
* Kafka Connect hooks

* Migrate connectors list page to RQ

* Migrate connector details page overview to RQ

* Migrate connector config page to RQ

* Migrate connector tasks page to RQ

* Get rid of some deadcode

* Migrate connector Actions page to RQ

* Get rid of some deadcode

* Migrate connector create page to RQ

* Migrate connector Edit page to RQ

* move fixtures to lib folder

* refactoring
2022-07-18 13:06:55 +03:00
Oleg Shur
a4046d46ef
chore: migrate clusters from toolkit to react-query (#2214) 2022-06-28 15:15:12 +03:00
Oleg Shur
8acbcbacb9
Upgrade deps (#2206)
* hook

* Upgrade Jest to v28

* Upgrade Typescript
2022-06-27 13:07:47 +03:00
Robert Azizbekyan
aa839b4d69
add asterix for custom params (#2192) 2022-06-22 11:48:03 +04:00
Tom Lai
41fd765d83
Fixed width of messages meta info block (#2171)
Co-authored-by: Yiu ming Lai <ymlai87416@gmail.com>
2022-06-16 10:19:09 +03:00
Oleg Shur
1b71ccb975
Migrate React app to Vite (#2153)
* Ejected CRA

* Cleanup

* jest

* Cleanup

* refactor cluster widgets

* configure build

* configure build

* configure coverage

* Experiment with lazy

* add ace to vendor

* Cleanup
2022-06-15 16:59:02 +03:00
Robert Azizbekyan
d859dd6b3f
fix adding message for topics (#2161) 2022-06-15 16:56:47 +04:00
Oleg Shur
70656b7fc0
Use react-query for server state managment (#2133)
* Use react-query for server state managment

* Refactor using of react query
2022-06-07 13:30:15 +03:00
Oleg Shur
3cd0c2897a
get rid of unused bulma styles. small UI refactoring (#2130)
* Get rid of bulma

* Refactor SecondaryTabs

* Refactor Messages View

* Refactor Inputs

* get rid of unused components

* refactoring

* Remove unused bulma styles
2022-06-07 11:15:30 +03:00
Robert Azizbekyan
a211c41207
adding AsyncRequestStatus enum to avoid possible gramatical issues (#2093) 2022-06-02 13:33:13 +04:00
Robert Azizbekyan
70d3cee0bf
fixing partition dropdown (#2073) 2022-06-02 13:21:20 +04:00
Robert Azizbekyan
eb9aeef2d1
disable produce message button if cluster is readOnly (#2077) 2022-05-31 19:04:33 +04:00
Oleg Shur
a90aa52af5
Pkg update (#2063)
* Get Rid of react-router + minor updates

* jest update

* upgrade use-debounce & dayjs versions

* Refactor specs to reduce number of warnings
2022-05-31 14:49:47 +03:00
Mgrdich
71ac16357b
react router migration (#2045)
* remove withRouter HOC from FiltersContainer

* remove withRouter HOC from Topics DetailsContainer

* remove withRouter HOC from Topics TopicsConsumerGroupsContainer

* withRouter HOC from Topics TopicsConsumerGroupsContainer

* minor code refactor in the Details spec

* Routes code modifications to refactor strings representation to functions

* Settings and TopicsConsumer removal of HOC with Router

* Remove withRouter HOC from Overview file

* Remove withRouter HOC from Edit file

* replace Router path with functions instead of strings

* delete CustomParamsContainer and use the simple component in the TopicForm

* remove HOC from DangerZone container

* Remove withRouter HOC from Connect pages like Config , Overview , Tasks

* Remove withRouter HOC from Connect pages like Actions, Details, Edit, New

* Refactor Kafka Connect Codes

* Refactor Topics pages

* Remove HOC from Diff component and minor code refactor

* Route component migration into children instead of renderProps or component param in App Component

* Route component migration into children instead of renderProps or component param in Cluster Component

* Route component migration into children instead of renderProps or component param in Topics Component

* Route component migration into children instead of renderProps or component param in Topic Component

* Route component migration into children instead of renderProps or component param in Topic Component

* minor bug fix in the Overview selector spread

* change Router from component Render to child render
in ConsumerGroups page

* change Router from component Render to child render
in Schemas page

* change Router from component Render to child render
in KsqlDb page

* change Router from component Render to child render
in Connect page

* change Router from component Render to child render
in Connect Details page

* Overview Details styling code modifications

* All written path to paths with functions

* Route Parameters code fix with functions and params with variables

* Updating BreadCrumb Route

* Refactor Redirects

* WIP React Router v6 migration

* Remove unused imports from the file

* Make KsqlDb pages work with relative Routes

* WIP Make Connect pages work and fix the Schema page testing problem

* transforming consumer groups into relative path router

* Transform Topics pages into relative routes

* Transform Topic pages into relative routes

* Minor changes in Connect and KsqlDb test suites relative routes

* Minor changes in Connect and KsqlDb test suites relative routes

* change the Details into relative Routes

* Topics List naviagtion and caching issue fixed in tests suites

* Topic New Naviagation issue fix + tests suites

* Details navigate migrating into relative paths

* Send Message Submit Naviagttion with tests suites

* Topic Edit pages with working routes navigation

* Topic Details and ResetOffsets Pages tests suites and navigations

* Messages Table Tests suites

* BreadCrumbs Routes fixes

* ClusterMenu and Links styling minor code modifications

* ClusterMenu and Links styling minor code modifications

* Minor Code modifications

* Fix Lintter Problems

* fix Code Smells

* create custom useParams hook

* Adding Path tests

* minor code refactors

* Fix the Button Component redundant Props + transforming routes to relative

* Fix linter issues
2022-05-31 12:33:15 +03:00
Robert Azizbekyan
2a51f0ee14
fixing form error message issue (#2047) 2022-05-31 13:32:41 +04:00
Robert Azizbekyan
7ba10c1b7a
adding error message when created message has wrong header format (#2033) 2022-05-30 18:36:04 +04:00
Kirill Morozov
996e127a02
Fixed Selected partitions label (#2042)
* Fixed Selected partitions label

* Console logs removed
2022-05-30 13:24:59 +03:00
Kirill Morozov
4f1078aabb
Next button removed (#2036)
* Next button removed

* Removed Next button functionality

* Removed unused import
2022-05-30 13:15:27 +03:00
Oleg Shur
93a09a6327
Get rid of senseless useCallback hooks (#2048)
* Remove senseless React.useCallback

* Remove senseless React.useCallback
2022-05-30 12:45:21 +03:00
Robert Azizbekyan
cf6454c987
fixing message count problem when clearing or adding messages (#2029) 2022-05-30 11:38:46 +04: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
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
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