Skip to content

Conversation

@KrumTy
Copy link
Contributor

@KrumTy KrumTy commented Dec 4, 2025

What

  • Updates Select Index menu styles
  • moves Create index button to bottom of list as per new design

Testing

  1. Navigate to a database instance
  2. Browse -> Search by Values of Keys
  3. Observe Select Index menu
Before After Figma
Screenshot 2025-12-04 at 10 11 17 Screenshot 2025-12-04 at 10 16 05 f01e60f8-a756-4bc2-b9cb-9a9accf84bce
Screenshot 2025-12-04 at 10 11 33 Screenshot 2025-12-04 at 10 15 41

Note

Cursor Bugbot is generating a summary for commit ecb17de. Configure here.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 4, 2025

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 82.8% 21051/25423
🟡 Branches 67.97% 8844/13011
🟡 Functions 77.9% 5767/7403
🟢 Lines 83.2% 20616/24778

Test suite run success

5468 tests passing in 703 suites.

Report generated by 🧪jest coverage report action from ecb17de

@KrumTy KrumTy merged commit f0917a7 into main Dec 4, 2025
19 checks passed
@KrumTy KrumTy deleted the fe/RI-7790/create-index-styles branch December 4, 2025 08:36
import styled from 'styled-components'

export const Container = styled.div<React.HTMLAttributes<HTMLDivElement>>`
height: 36px;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image Please use some of the theme values.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the style of the container from the sass file; I simply turned it into a styled components to get rid of the unused styles

import { Text } from 'uiSrc/components/base/text'
import styles from './styles.module.scss'
import { Row } from 'uiSrc/components/base/layout/flex'
import * as S from './RediSearchIndexesList.styles'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is single component there, why this obscurity?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SM's style guide https://github.com/redislabsdev/cloud-ui/blob/master/style-guide/styling-themes.md#-good

THis is a scalable solution - does not changes imports in case of multiple components

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we adopt it officially? Since this was merged, the discussion is pointless, but I disagree with the points it makes regarding imports. When I type in the editor, it does not suggest me to import S from './styles.ts', it suggests Container.
Also in the same file there is https://github.com/redislabsdev/cloud-ui/blob/master/style-guide/styling-themes.md#-good-2 and you violate it on the spot

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re 2nd paragraph - as I said, I just moved sass styles to styled components 1:1. Both values you provided (32, 40) are different than what we had - 36. We need to come up with a solution separately regarding these values and usage across codebase.

Comment on lines 186 to 217
<S.Container>
<RiSelect.Compose
disabled={loading}
options={options}
value={index || ''}
onChange={onChangeIndex}
>
<RiSelect.Trigger.Compose data-testid="select-search-mode">
<RiSelect.Trigger.Value
placeholder="Select Index"
data-testid="select-index-placeholder"
valueRender={selectValueRender}
/>
<RiSelect.Trigger.LoadingIndicator loading={loading} />
<RiSelect.Trigger.Arrow data-testid="select-index-arrow" />
<div style={{ zIndex: 6 }}>
<RiTooltip content="Refresh Indexes">
<IconButton
size="M"
icon={ResetIcon}
disabled={loading}
onClick={handleRefresh}
aria-label="refresh indexes list"
data-testid="refresh-indexes-btn"
onPointerDown={(e) => e.stopPropagation()}
/>
</RiTooltip>
</div>
</RiSelect.Trigger.Compose>
<RiSelect.Content optionValueRender={selectValueRender} />
</RiSelect.Compose>
</div>
</S.Container>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<Container>
<RiSelect.Compose
disabled={loading}
options={options}
@@ -212,7 +214,7 @@ const RediSearchIndexesList = (props: Props) => {
</RiSelect.Trigger.Compose>
<RiSelect.Content optionValueRender={selectValueRender} />
</RiSelect.Compose>
</Container>

import { Text } from 'uiSrc/components/base/text'
import styles from './styles.module.scss'
import { Row } from 'uiSrc/components/base/layout/flex'
import * as S from './RediSearchIndexesList.styles'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import * as S from './RediSearchIndexesList.styles'
import { Container } from './RediSearchIndexesList.styles'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants