Skip to content

Conversation

@dantovska
Copy link
Collaborator

@dantovska dantovska commented Nov 6, 2025

What

  • Change Edit DB modal -> DB info section styling
  • Change the styles for the Clone button

Testing

Standalone

Before After
image image
image image

Cluster

Before After
image image
image image

Sentinel

Before After
image image
image image

Redis Stack

Before After
image image
image image

valkirilov
valkirilov previously approved these changes Nov 6, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2025

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 82.53% 20504/24844
🟡 Branches 67.71% 8769/12951
🟡 Functions 77.11% 5500/7133
🟢 Lines 82.94% 20076/24204

Test suite run success

5260 tests passing in 687 suites.

Report generated by 🧪jest coverage report action from ab46e31

const { connectionType, nameFromProvider, sentinelMaster, host, port } = props

const handleCopy = (text = '') => {
navigator.clipboard.writeText(text)
Copy link
Collaborator

Choose a reason for hiding this comment

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

We have similar functionality in so many places. We should extract it to utility function

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@valkirilov noted me of that, aren't you handling this already? If so, please share so I can follow what you are doing?

export const DbInfoGroup = styled(Group)`
background-color: ${({ theme }) =>
theme.semantic.color.background.neutral200};
border: 1px solid ${({ theme }) => theme.semantic.color.border.neutral400};
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is starting to get out of hand, we use semantic.color.border in 26 places (at least), 21 are neutral500, one of 400, 600, 800, and one primary600.

This is more like a question to everybody - do you think it makes sense to define the colors we use in RI explicitly? Like borderColor, bgColor etc ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure keeping our version in sync with redis ui would be easy

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, for sure, it might come with some struggles (keeping them in sync), but also, I see Redis UI introduces major breaking changes, so we're also kind of blocked now (we can't get the latest bug fixes and features because of that).

And I think that soon we'll end up in a state where we don't treat it as a main source of truth, but instead build an intermediate abstract layer that depends on it. Just like we did with our components (RiIcon, RiTabs, etc.), we might need something similar for the color palette/theme.

For sure, it's not something straightforward (maybe), but we should definitely consider it and think more about it, and how we can handle it in an efficient way.

Copy link
Collaborator Author

@dantovska dantovska Nov 7, 2025

Choose a reason for hiding this comment

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

@pd-redis I don't know if it will be expected to have the same border everywhere? And we will need an effort to change that. I don't just want to introduce the variable, without changing everywhere and then we will end up like the eui colors that we are trying to get rid off ... borderLight, borderLighter ... It does makes sense if we do a redesign again and want to change border everywhere... Anyway, I don't think it should start in this PR

export const DbInfoGroup = styled(Group)`
background-color: ${({ theme }) =>
theme.semantic.color.background.neutral200};
border: 1px solid ${({ theme }) => theme.semantic.color.border.neutral400};
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure keeping our version in sync with redis ui would be easy

valkirilov
valkirilov previously approved these changes Nov 6, 2025
@dantovska dantovska merged commit f0c4232 into main Nov 7, 2025
18 checks passed
@dantovska dantovska deleted the fe/feature/RI-7681-edit-db-info branch November 7, 2025 09:07
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.

5 participants