Skip to content

Conversation

@valkirilov
Copy link
Member

@valkirilov valkirilov commented Nov 7, 2025

What

Update the visuals of the Slow Log page to reflect the new Redis UI components

  • update the welcome screen
  • update the placement of the action buttons
  • replace the virtual table with Redis UI
  • replace the "Clear Slog logs" confirmation popover with a modal

Testing

Welcome screen

  1. Open Redis Insight and go to the Databases tab
  2. Open an existing database or create a new connection
  3. Go to the Analyze tab from the top navigation
  4. Go to the Slow Log tab

You'll see the welcome screen because no data has been collected yet.

Before After
Screenshot 2025-11-07 at 15 45 46 Screenshot 2025-11-07 at 10 38 21
Screenshot 2025-11-07 at 15 45 53 Screenshot 2025-11-07 at 10 38 43

Config panel

Config panel for a regular database

  1. Click on the Configure button in the top right corner

You should see a popover with input fields to configure the settings on which the analysis will be performed.

Before After
Screenshot 2025-11-07 at 15 45 23 Screenshot 2025-11-07 at 10 40 34
Screenshot 2025-11-07 at 15 45 29 Screenshot 2025-11-07 at 10 40 54

Config panel for a cluster

As a prerequisite, you should spin up a Redis Cluster and connect to it.

  1. Download OpenVPN client (link)

  2. Go to /tests/e2e and start the following Docker container
    docker-compose -f rte.regression.docker-compose.yml -f rte.networks.docker-compose.yml -f vpn.docker-compose.yml up

  3. Go to Redis Insight and open the Databases page

  4. Connect to a new database instance via the following connection string 127.0.0.1:8200

  5. Go to the Analyze tab in the main navbar

  6. Go to the Slow Log tab

  7. Click on the Configure button in the top right corner

You should see a popover with details that you can configure the individual cluster nodes only.

Before After
Screenshot 2025-11-07 at 15 44 57 Screenshot 2025-11-07 at 10 43 55
Screenshot 2025-11-07 at 15 45 03 Screenshot 2025-11-07 at 10 44 05

Analysis screen with slog logs data

  1. Click on the Configure button in the top right corner
  2. Set the "slowlog-log-slower-than" to be 10 micro seconds
  3. Start using the application. Go to Browser page and add/edit/view keys
  4. Go back to the Slow Log tab on the Analyze page

You should see the Slow Log table filled with details for the queries that were performed under the hood

Before After
Screenshot 2025-11-07 at 15 44 14 Screenshot 2025-11-07 at 14 10 20
Screenshot 2025-11-07 at 15 44 20 Screenshot 2025-11-07 at 14 10 30

Clear logs

  1. Click on the "Clear" icon in the top right corner of the screen, visible only when you have some data in the table

A modal should appear on the screen, asking you for confirmation.

Before After
Screenshot 2025-11-07 at 14 15 22 image
Screenshot 2025-11-07 at 14 15 28 image

- update the welcome screen
- update the placement of the action buttons

re #RI-7437
- replace the virtual table with Redis UI

re #RI-7437
@valkirilov valkirilov self-assigned this Nov 7, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2025

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 82.57% 20540/24877
🟡 Branches 67.7% 8782/12972
🟡 Functions 77.2% 5520/7150
🟢 Lines 82.97% 20110/24237

Test suite run success

5269 tests passing in 689 suites.

Report generated by 🧪jest coverage report action from 315224d

@valkirilov valkirilov marked this pull request as ready for review November 7, 2025 13:49
dantovska
dantovska previously approved these changes Nov 7, 2025
<FlexItem>
<Row align="center" gap="s">
<Title size="L" color="primary">
Slow Log
Copy link
Collaborator

Choose a reason for hiding this comment

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

This looks weird. You have the title in the tab, and right below it, you have it again

Copy link
Member Author

Choose a reason for hiding this comment

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

It's what we have in Figma, I didn't make it up myself 🤷‍♂️

Comment on lines +158 to +167
Execution time:{' '}
{numberWithSpaces(
convertNumberByUnits(
slowlogLogSlowerThan,
durationUnit,
),
)}
&nbsp;
{durationUnit === DurationUnits.milliSeconds
? DurationUnits.mSeconds
Copy link
Collaborator

Choose a reason for hiding this comment

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

I know you've copied this over but this is a weird way to represent a single string value

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it's the same code that we had so far. I've worked only on the visual representation of the surrounding elements.

{numberWithSpaces(convertNumberByUnits(duration, durationUnit))}
</Text>
),
header: `Duration, ${DURATION_UNITS.find(({ value }) => value === durationUnit)?.inputDisplay}`,
Copy link
Collaborator

@KrumTy KrumTy Nov 10, 2025

Choose a reason for hiding this comment

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

if you access this from context, you can move this whole column config out of the component and make it static
(you'd just need to create a custom header component)

Copy link
Member Author

Choose a reason for hiding this comment

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

This is a valid point, but I would rather address it in a separate PR, because such refactoring is not part of the scope for the design replacement. Anyway, thanks for pointing it!

@valkirilov valkirilov merged commit 107ff41 into main Nov 10, 2025
18 checks passed
@valkirilov valkirilov deleted the fe/feature/RI-7437/slow-log branch November 10, 2025 14:01
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