-
Notifications
You must be signed in to change notification settings - Fork 419
RI-7681: [NEW UI] Add DB form #5120
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
Merged
Merged
Changes from 17 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
01f41cc
edit text casing
dantovska e048627
change modal title from M to L
dantovska 250c055
increase button sizes
dantovska 1af9725
remove unused style, add spacing
dantovska b0d4960
remove unneeded styles and add wrapper styled component for scrollabl…
dantovska 2fe3da9
style the connection url, remove some styles on the way
dantovska 373190d
remove hard coded unneeded textarea height
dantovska da190cc
add padding on the scrollable wrapper; remove some unneded styles
dantovska 880f2d9
Refactor and move horizontal rule
dantovska 3564e03
remove rocket svg and its usages
dantovska 853dd10
use different redis cloud icon
dantovska 6818019
move shield and redis software to icon registry and refactor connecti…
dantovska 9fd77d6
removing the size from the icon button as it follows the one set to t…
dantovska 296200f
make title one liner - change badge color
dantovska c9d4b4d
remove bunch of unused styles
dantovska cd2d074
remove unneeded styles for the tooltip anchor and replace with flex item
dantovska a1c37d7
revert values interface :)
dantovska f1fda9c
move the custom horizontal rule to styles.ts file
dantovska 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
|---|---|---|
| @@ -1,10 +1,16 @@ | ||
| import React from 'react' | ||
| import styled from 'styled-components' | ||
|
|
||
| import { FormField } from 'uiSrc/components/base/forms/FormField' | ||
| import { TextArea } from 'uiSrc/components/base/inputs' | ||
| import { RiIcon } from 'uiSrc/components/base/icons/RiIcon' | ||
| import { RiTooltip } from 'uiSrc/components' | ||
| import styles from './styles.module.scss' | ||
| import { FlexGroup, FlexItem } from 'uiSrc/components/base/layout/flex' | ||
| import { Text } from 'uiSrc/components/base/text' | ||
|
|
||
| const PointerIcon = styled(RiIcon)` | ||
| cursor: pointer; | ||
| ` | ||
|
|
||
| export interface Props { | ||
| value: string | ||
|
|
@@ -14,8 +20,8 @@ export interface Props { | |
| const ConnectionUrl = ({ value, onChange }: Props) => ( | ||
| <FormField | ||
| label={ | ||
| <div className={styles.connectionUrlInfo}> | ||
| <div>Connection URL</div> | ||
| <FlexGroup gap="s" align="center"> | ||
| <Text>Connection URL</Text> | ||
| <RiTooltip | ||
| title="The following connection URLs are supported:" | ||
| className="homePage_tooltip" | ||
|
|
@@ -37,9 +43,11 @@ const ConnectionUrl = ({ value, onChange }: Props) => ( | |
| </ul> | ||
| } | ||
| > | ||
| <RiIcon type="InfoIcon" style={{ cursor: 'pointer' }} /> | ||
| <FlexItem> | ||
| <PointerIcon type="InfoIcon" /> | ||
| </FlexItem> | ||
| </RiTooltip> | ||
| </div> | ||
| </FlexGroup> | ||
| } | ||
| > | ||
| <TextArea | ||
|
|
@@ -48,7 +56,6 @@ const ConnectionUrl = ({ value, onChange }: Props) => ( | |
| value={value} | ||
| onChangeCapture={onChange} | ||
| placeholder="redis://[email protected]:6379" | ||
| style={{ height: 88 }} | ||
| data-testid="connection-url" | ||
| /> | ||
| </FormField> | ||
|
|
||
8 changes: 0 additions & 8 deletions
8
...rc/pages/home/components/add-database-screen/components/connection-url/styles.module.scss
This file was deleted.
Oops, something went wrong.
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.