Skip to content

Remove Redux in Insight page#5915

Merged
ffjlabo merged 2 commits into
masterfrom
redux-replace-insight-page
Jun 30, 2025
Merged

Remove Redux in Insight page#5915
ffjlabo merged 2 commits into
masterfrom
redux-replace-insight-page

Conversation

@hongky-1994
Copy link
Copy Markdown
Contributor

@hongky-1994 hongky-1994 commented Jun 3, 2025

What this PR does:

  • This MR depends on !5893
  • remove redux modules/insight
  • remove redux modules/deployment-change-failure-rate
  • remove redux modules/deployment-frequency
  • add query for insight
  • add query for app list , piped list
  • add toast messages context
  • update query provider with error handler show toast

Why we need it:

  • remove redux module from insight page

Which issue(s) this PR fixes:

Partof #5868

Does this PR introduce a user-facing change?:

  • How are users affected by this change:
  • Is this breaking change:
  • How to migrate (if breaking change):

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 28.16%. Comparing base (fdb9066) to head (dfc1e0d).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5915   +/-   ##
=======================================
  Coverage   28.16%   28.16%           
=======================================
  Files         516      516           
  Lines       55895    55895           
=======================================
  Hits        15743    15743           
  Misses      38900    38900           
  Partials     1252     1252           
Flag Coverage Δ
. 23.22% <ø> (ø)
.-pkg-app-pipedv1-plugin-kubernetes 66.42% <ø> (ø)
.-pkg-app-pipedv1-plugin-kubernetes_multicluster 67.51% <ø> (ø)
.-pkg-app-pipedv1-plugin-wait 35.51% <ø> (ø)
.-pkg-plugin-sdk 50.89% <ø> (ø)
.-tool-actions-gh-release 19.23% <ø> (ø)
.-tool-actions-plan-preview 25.30% <ø> (ø)
.-tool-codegen-protoc-gen-auth 0.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hongky-1994 hongky-1994 changed the title Redux replace insight page Replace Redux in Insight page Jun 3, 2025
@hongky-1994 hongky-1994 changed the title Replace Redux in Insight page Remove Redux in Insight page Jun 3, 2025
@hongky-1994 hongky-1994 force-pushed the redux-replace-insight-page branch 2 times, most recently from eaa460f to 33bf7e8 Compare June 10, 2025 17:18
@hongky-1994 hongky-1994 force-pushed the redux-replace-insight-page branch from 33bf7e8 to e1bb2a3 Compare June 16, 2025 17:52
@hongky-1994 hongky-1994 force-pushed the redux-replace-insight-page branch from e1bb2a3 to a635bc6 Compare June 26, 2025 08:19
- remove module insight
- remove module deployment-change-failure-rate
- remove module deployment-frequency
- add query for insight
- add query for app list , piped list
- add toast messages context
- update query provider with error handler show toast

Signed-off-by: kypham <hongkyhvnh@gmail.com>
@hongky-1994 hongky-1994 force-pushed the redux-replace-insight-page branch from a635bc6 to dfc1e0d Compare June 26, 2025 09:21
@hongky-1994 hongky-1994 marked this pull request as ready for review June 26, 2025 09:29
@hongky-1994 hongky-1994 requested review from a team as code owners June 26, 2025 09:29
khanhtc1202
khanhtc1202 previously approved these changes Jun 26, 2025
Copy link
Copy Markdown
Member

@khanhtc1202 khanhtc1202 left a comment

Choose a reason for hiding this comment

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

Here you go 👍

@ffjlabo
Copy link
Copy Markdown
Member

ffjlabo commented Jun 27, 2025

@hongky-1994
I have two questions about this PR. Could you check them?

1. Applications by piped show the different values for the two cases below. Is this related to the fix in this PR?

2. On my local check, I found the icon like the image below. Is it for development mode?
PipeCD

When clicking the icon, we can see something like the image below.
PipeCD

Signed-off-by: kypham <hongkyhvnh@gmail.com>
@hongky-1994
Copy link
Copy Markdown
Contributor Author

hongky-1994 commented Jun 28, 2025

Thanks @ffjlabo

  1. Applications by piped show the different values for the two cases below. Is this related to the fix in this PR?
  • My mistake, I have updated the code to not count deleted apps. The applications by piped should not count deleted app.
  1. On my local check, I found the icon like the image below. Is it for development mode?
    Yes it is only on development. It is the react-query devtools support view cache and query state of react-query. In production mode it will be hidden.

CleanShot 2025-06-28 at 09 02 32

@ffjlabo
Copy link
Copy Markdown
Member

ffjlabo commented Jun 30, 2025

@hongky-1994 Thank you for checking, LGTM!

@ffjlabo
Copy link
Copy Markdown
Member

ffjlabo commented Jun 30, 2025

@khanhtc1202 Sorry, plz re-approve

@ffjlabo ffjlabo requested a review from khanhtc1202 June 30, 2025 01:13
@ffjlabo ffjlabo enabled auto-merge (squash) June 30, 2025 01:13
Copy link
Copy Markdown
Member

@khanhtc1202 khanhtc1202 left a comment

Choose a reason for hiding this comment

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

👌

@ffjlabo ffjlabo merged commit bd8ca74 into master Jun 30, 2025
36 checks passed
@ffjlabo ffjlabo deleted the redux-replace-insight-page branch June 30, 2025 01:15
@github-actions github-actions Bot mentioned this pull request Jul 14, 2025
@github-actions github-actions Bot mentioned this pull request Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants