-
-
Notifications
You must be signed in to change notification settings - Fork 193
FE: Optional FTS #1402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Vixtir
wants to merge
39
commits into
main
Choose a base branch
from
issues/1333-optional-fts-fe
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
FE: Optional FTS #1402
Changes from 35 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
844e34e
Impl HeartbeatSerde
Haarolean 496aa43
Impl OffsetSyncSerde
Haarolean 13c951f
Impl CheckpointSerde
Haarolean c25604b
lint
Haarolean de52924
Change result type from string to json in appropriate cases
Haarolean 6146073
Impl tests
Haarolean fc59e6b
Logs
Haarolean 267d52d
Split k/v methods
Haarolean 89ca82c
Upd fields visibility
Haarolean 1ea2aa6
Auto register serdes for well known topic patterns
Haarolean 9c987ef
Simplify serialization
Haarolean 7e25c7c
Reduced duplicate code
germanosin c5cb67d
Reduced duplicate code
germanosin 40760ca
Reduced duplicate code
germanosin 68a8a26
Reduced duplicate code
germanosin dfa9cbb
Reduced duplicate code
germanosin 6b2431c
Reduced duplicate code
germanosin 35f6c08
Reduced duplicate code
germanosin bf2fce1
BE: issue-1333 optional fts
germanosin 57ede6c
FE: Add button for enabling topics fts search
Vixtir 1b36d3a
FE: Fix tests, icon styles
Vixtir db6aca2
Merge main
germanosin 552c305
Merge branch 'main' into issues/1333-optional-fts-fe
germanosin 40d6a38
Add useFts to topic table
Vixtir 1333af0
Merge branch 'main' into issues/1333-optional-fts-fe
germanosin fb7faa1
Merge branch 'main' into issues/1333-optional-fts-fe
germanosin ca25d84
FE: Add fts to other resources, add logic to show and handle fts button
Vixtir 07190b2
FE: Use config vars
Vixtir 4ed5e88
FE: Fix state sync
Vixtir 2a96c1e
FE: Use config vars
Vixtir 6384333
FE: Fix race condition in cluster context
Vixtir 6f5b2ca
FE: Use config vars
Vixtir 9ea7766
FE: Remove redundant connectors request
Vixtir 353bbc2
FE: Fix test
Vixtir 137037d
FE: Fix typos
Vixtir 7470cbd
FE: Fix set params
Vixtir 0285669
FE: Make a nav scrollbar thin
Vixtir 362ff3c
FE: Add useFts deps
Vixtir 40d03b2
Merge branch 'main' into issues/1333-optional-fts-fe
germanosin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
8 changes: 7 additions & 1 deletion
8
frontend/src/components/ACLPage/lib/useConsumerGroupsOptions.ts
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,46 @@ | ||
| import React from 'react'; | ||
| import FtsIcon from 'components/common/Icons/FtsIcon'; | ||
| import styled from 'styled-components'; | ||
| import Tooltip from 'components/common/Tooltip/Tooltip'; | ||
| import ClusterContext from 'components/contexts/ClusterContext'; | ||
|
|
||
| import useFts, { FtsAvailableResource } from './useFts'; | ||
|
|
||
| export const IconWrapper = styled.span.attrs<{ active: boolean }>(() => ({ | ||
| role: 'button', | ||
| tabIndex: 1, | ||
| }))` | ||
| display: inline-block; | ||
| &:hover { | ||
| cursor: pointer; | ||
| } | ||
| color: ${(props) => | ||
| props.active | ||
| ? props.theme.icons.ftsIcon.active | ||
| : props.theme.icons.ftsIcon.normal}; | ||
| `; | ||
|
|
||
| const Fts = ({ resourceName }: { resourceName: FtsAvailableResource }) => { | ||
| const { ftsEnabled: isFtsFeatureEnabled } = React.useContext(ClusterContext); | ||
| const { handleSwitch, isFtsEnabled } = useFts(resourceName); | ||
|
|
||
| if (!isFtsFeatureEnabled) { | ||
| return null; | ||
| } | ||
|
|
||
| return ( | ||
| <Tooltip | ||
| value={ | ||
| <IconWrapper onClick={handleSwitch} active={isFtsEnabled}> | ||
| <FtsIcon /> | ||
| </IconWrapper> | ||
| } | ||
| content="Apply full text search" | ||
| placement="bottom" | ||
| showTooltip | ||
| fullWidth | ||
| /> | ||
| ); | ||
| }; | ||
|
|
||
| export default Fts; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.