Skip to content

Commit f0822cd

Browse files
Reset recent activity indicator on settings change (#1353)
* Reset recent activity indicator on settings change * Bump version to 12.0.0-alpha.1 [skip ci] * Fix issues filters persistence --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent f76dd1d commit f0822cd

File tree

4 files changed

+26
-18
lines changed

4 files changed

+26
-18
lines changed

package-lock.json

Lines changed: 6 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "digma-ui",
3-
"version": "12.0.0-alpha.0",
3+
"version": "12.0.0-alpha.1",
44
"description": "Digma UI",
55
"scripts": {
66
"lint:eslint": "eslint --cache .",
@@ -140,7 +140,7 @@
140140
"react-hook-form": "^7.48.2",
141141
"react-product-fruits": "^2.2.61",
142142
"react-redux": "^9.2.0",
143-
"react-router": "^7.5.1",
143+
"react-router": "^7.5.2",
144144
"react-scrollbar-size": "^5.0.0",
145145
"react-syntax-highlighter": "^15.6.1",
146146
"react-transition-group": "^4.4.5",
@@ -152,5 +152,10 @@
152152
"uuid": "^9.0.1",
153153
"zustand": "^4.5.5",
154154
"zustand-slices": "^0.3.0"
155+
},
156+
"overrides": {
157+
"react-syntax-highlighter": {
158+
"prismjs": "1.30.0"
159+
}
155160
}
156161
}

src/components/Insights/hooks/useIssuesPersistence.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,6 @@ export const useIssuesPersistence = () => {
160160
]);
161161

162162
return {
163-
areFiltersRehydrated: persistedFilters !== null
163+
areFiltersRehydrated: !isUndefined(persistedFilters)
164164
};
165165
};

src/components/RecentActivity/index.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,18 @@ export const RecentActivity = () => {
174174
);
175175
}, [recentActivityData.environments]);
176176

177+
useEffect(() => {
178+
if (!config.userInfo?.id && config.backendInfo?.centralize) {
179+
void toggleRecentIndicator({
180+
status: false
181+
});
182+
}
183+
}, [
184+
config.backendInfo?.centralize,
185+
config.userInfo?.id,
186+
toggleRecentIndicator
187+
]);
188+
177189
useEffect(() => {
178190
const isAnyRecentActivity = environments.some(
179191
(environment) => environment.hasRecentActivity

0 commit comments

Comments
 (0)