-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: show failed payment banner and block the workspace integration #6560
Conversation
contributes to - https://github.com/SigNoz/platform-pod/issues/306 |
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
916698d
to
6e1064c
Compare
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
1 similar comment
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Changes requested. Reviewed everything up to 69654ac in 1 minute and 44 seconds
More details
- Looked at
1066
lines of code in22
files - Skipped
1
files when reviewing. - Skipped posting
10
drafted comments based on config settings.
1. ee/query-service/app/api/license.go:139
- Draft comment:
EnsureactiveLicense
is not nil before accessingactiveLicense.Data
to avoid potential nil pointer dereference. - Reason this comment was not posted:
Comment did not seem useful.
2. frontend/src/AppRoutes/Private.tsx:256
- Draft comment:
ThenavigateToWorkSpaceSuspended
function is defined but not used. Consider using it or removing it if unnecessary. - Reason this comment was not posted:
Comment looked like it was already resolved.
3. frontend/src/container/AppLayout/index.tsx:280
- Draft comment:
ThehandleFailedPayment
function is defined but not used. Consider using it or removing it if unnecessary. - Reason this comment was not posted:
Marked as duplicate.
4. frontend/src/pages/WorkspaceSuspended/WorkspaceSuspended.tsx:55
- Draft comment:
ThehandleUpdateCreditCard
function is defined but not used. Consider using it or removing it if unnecessary. - Reason this comment was not posted:
Marked as duplicate.
5. frontend/src/pages/WorkspaceSuspended/WorkspaceSuspended.styles.scss:114
- Draft comment:
Use design tokens or predefined color constants instead of hardcoding color values for consistency. This applies to other hardcoded colors in this file as well. - Reason this comment was not posted:
Marked as duplicate.
6. frontend/src/pages/WorkspaceSuspended/WorkspaceSuspended.styles.scss:126
- Draft comment:
Use design tokens or predefined color constants instead of hardcoding color values for consistency. This applies to other hardcoded colors in this file as well. - Reason this comment was not posted:
Marked as duplicate.
7. frontend/src/pages/WorkspaceSuspended/WorkspaceSuspended.styles.scss:139
- Draft comment:
Use design tokens or predefined color constants instead of hardcoding color values for consistency. This applies to other hardcoded colors in this file as well. - Reason this comment was not posted:
Marked as duplicate.
8. frontend/src/pages/WorkspaceSuspended/WorkspaceSuspended.styles.scss:140
- Draft comment:
Use design tokens or predefined color constants instead of hardcoding color values for consistency. This applies to other hardcoded colors in this file as well. - Reason this comment was not posted:
Marked as duplicate.
9. frontend/src/pages/WorkspaceSuspended/WorkspaceSuspended.styles.scss:141
- Draft comment:
Use design tokens or predefined color constants instead of hardcoding color values for consistency. This applies to other hardcoded colors in this file as well. - Reason this comment was not posted:
Marked as duplicate.
10. frontend/src/pages/WorkspaceSuspended/WorkspaceSuspended.styles.scss:142
- Draft comment:
Use design tokens or predefined color constants instead of hardcoding color values for consistency. This applies to other hardcoded colors in this file as well. - Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_JowE0fPad1UXSCTN
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
|
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Changes requested. Incremental review on 8405bdd in 55 seconds
More details
- Looked at
129
lines of code in5
files - Skipped
0
files when reviewing. - Skipped posting
4
drafted comments based on config settings.
1. frontend/src/utils/timeUtils.ts:26
- Draft comment:
// Format the date as "18 Nov 2013 HH:mm" - Reason this comment was not posted:
Marked as duplicate.
2. frontend/src/container/AppLayout/index.tsx:360
- Draft comment:
EnsuregetFormattedDateWithMinutes
is correctly formatting the date and time as expected. This function is used in multiple places, including here and inWorkspaceSuspended.tsx
. - Reason this comment was not posted:
Comment did not seem useful.
3. frontend/src/container/AppLayout/index.tsx:357
- Draft comment:
Avoid using inline styles. Consider using CSS classes or styled components instead. - Reason this comment was not posted:
Comment was not on a valid diff hunk.
4. frontend/src/container/AppLayout/index.tsx:379
- Draft comment:
Avoid using inline styles. Consider using CSS classes or styled components instead. - Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_6oEoRTDCvE4ScHiD
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on 016f6ba in 14 seconds
More details
- Looked at
25
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. frontend/public/locales/en-GB/titles.json:40
- Draft comment:
Ensure that the order of keys in this file matches the order inen/titles.json
for consistency and easier maintenance. - Reason this comment was not posted:
Confidence changes required:50%
The addition of the "WORKSPACE_SUSPENDED" key is consistent across both files, which is correct. However, the order of keys is slightly different between the two files, which might lead to confusion or maintenance issues in the future.
2. frontend/public/locales/en-GB/titles.json:40
- Draft comment:
Ensure that the addition of "WORKSPACE_SUSPENDED" is used consistently across the application where needed. - Reason this comment was not posted:
Confidence changes required:50%
The addition of the "WORKSPACE_SUSPENDED" title in both files is consistent and follows the existing pattern.
Workflow ID: wflow_9oZE1E57ddQnNsoU
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Summary
v3/licenses/active
AppContext
to only fetch the required details once rather than fetching them multiple times across multiple components. theAppContext
will be later used to migrate everything from store.workspace-suspended
to handle all the suspensions based on events. the current route is not made scalable.FAILED_PAYMENT
event then show the warning banner.SUSPENDED
and state isPAYMENT_FAILED
then suspend the workspaceRelated Issues / PR's
Screenshots
NA
Affected Areas and Manually Tested Areas
Important
Introduces a new feature to handle failed payments by adding an endpoint, context, and UI components, including a new route for workspace suspension.
v3/licenses/active
inapi.go
to fetch active license.AppContext
to fetch required details once, reducing multiple fetches.workspace-suspended
for handling workspace suspensions.WorkspaceSuspended
component inWorkspaceSuspended.tsx
with styles inWorkspaceSuspended.styles.scss
.AppLayout
to show payment failed banner and handle billing.failedPayment.json
.getActiveLicenseV3
function inlicense.go
to fetch active license data.getActive
function ingetActive.ts
to call the new API endpoint.routes.ts
andpageComponents.ts
to includeWorkspaceSuspended
.useActiveLicenseV3
hook andAppProvider
for context management.This description was created by for 016f6ba. It will automatically update as commits are pushed.