Skip to content

Commit a1f33c9

Browse files
authored
Merge pull request #686 from RedisInsight/feature/bugfix
#RI-2963, #RI-2959
2 parents 7cf69b9 + 8654a69 commit a1f33c9

File tree

6 files changed

+23
-18
lines changed

6 files changed

+23
-18
lines changed
Lines changed: 3 additions & 3 deletions
Loading
Lines changed: 3 additions & 3 deletions
Loading

redisinsight/ui/src/components/notifications/success-messages.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ export default {
109109
),
110110
}
111111
},
112-
INSTALLED_NEW_UPDATE: (updateDownloadedVersion: string) => ({
112+
INSTALLED_NEW_UPDATE: (updateDownloadedVersion: string, onClickLink?: () => void) => ({
113113
title: 'Application updated',
114114
message: (
115115
<>
116116
<span>{`Your application has been updated to ${updateDownloadedVersion}. Find more information in `}</span>
117-
<a href={EXTERNAL_LINKS.releaseNotes} className="link-underline" target="_blank" rel="noreferrer">Release Notes.</a>
117+
<a href={EXTERNAL_LINKS.releaseNotes} onClick={() => onClickLink?.()} className="link-underline" target="_blank" rel="noreferrer">Release Notes.</a>
118118
</>
119119
),
120120
group: 'upgrade'

redisinsight/ui/src/electron/utils/ipcCheckUpdates.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ export const ipcCheckUpdates = async (serverInfo: GetServerInfoResponse, dispatc
2222

2323
if (isUpdateDownloaded && !isUpdateAvailable) {
2424
if (serverInfo.appVersion === updateDownloadedVersion) {
25-
dispatch(addMessageNotification(successMessages.INSTALLED_NEW_UPDATE(updateDownloadedVersion)))
25+
dispatch(addMessageNotification(
26+
successMessages.INSTALLED_NEW_UPDATE(updateDownloadedVersion, () => dispatch(setReleaseNotesViewed(true)))
27+
))
2628
}
2729

2830
await ipcRenderer.invoke(IpcEvent.deleteStoreValue, ElectronStorageItem.updateDownloaded)

redisinsight/ui/src/pages/slowLog/SlowLogPage.tsx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@ import { EmptySlowLog, SlowLogTable, Actions } from './components'
3333

3434
import styles from './styles.module.scss'
3535

36+
const HIDE_TIMESTAMP_FROM_WIDTH = 850
3637
const DEFAULT_COUNT_VALUE = '50'
3738
const countOptions: EuiSuperSelectOption<string>[] = [
3839
{ value: '10', inputDisplay: '10' },
3940
{ value: '25', inputDisplay: '25' },
4041
{ value: '50', inputDisplay: '50' },
4142
{ value: '100', inputDisplay: '100' },
42-
{ value: '-1', inputDisplay: 'Max' },
43+
{ value: '-1', inputDisplay: 'Max available' },
4344
]
4445

4546
const SlowLogPage = () => {
@@ -124,7 +125,7 @@ const SlowLogPage = () => {
124125
<EuiFlexGroup responsive={false} alignItems="center" gutterSize="xs">
125126
<EuiFlexItem grow={false}>
126127
<EuiText color="subdued">
127-
{connectionType === ConnectionType.Cluster ? 'Display per node:' : 'Display:'}
128+
{connectionType === ConnectionType.Cluster ? 'Display per node:' : 'Display up to:'}
128129
</EuiText>
129130
</EuiFlexItem>
130131
<EuiFlexItem grow={false}>
@@ -137,12 +138,14 @@ const SlowLogPage = () => {
137138
data-testid="count-select"
138139
/>
139140
</EuiFlexItem>
140-
<EuiFlexItem grow={false} style={{ marginLeft: 12 }}>
141-
<EuiText size="xs" color="subdued" data-testid="entries-from-timestamp">
142-
({data.length} entries
143-
{lastTimestamp && (<>&nbsp;from {format(lastTimestamp * 1000, DATE_FORMAT)}</>)})
144-
</EuiText>
145-
</EuiFlexItem>
141+
{width > HIDE_TIMESTAMP_FROM_WIDTH && (
142+
<EuiFlexItem grow={false} style={{ marginLeft: 12 }}>
143+
<EuiText size="xs" color="subdued" data-testid="entries-from-timestamp">
144+
({data.length} entries
145+
{lastTimestamp && (<>&nbsp;from {format(lastTimestamp * 1000, DATE_FORMAT)}</>)})
146+
</EuiText>
147+
</EuiFlexItem>
148+
)}
146149
</EuiFlexGroup>
147150
</EuiFlexItem>
148151
<EuiFlexItem grow={false}>

redisinsight/ui/src/pages/slowLog/styles.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
}
1818

1919
.countSelect {
20-
width: 78px;
20+
width: 86px;
2121
height: 30px;
2222
padding-left: 12px;
2323
padding-right: 32px;

0 commit comments

Comments
 (0)