Skip to content

Dev#98

Merged
abhishek-nexgen-dev merged 2 commits into
masterfrom
dev
May 17, 2026
Merged

Dev#98
abhishek-nexgen-dev merged 2 commits into
masterfrom
dev

Conversation

@abhishek-nexgen-dev
Copy link
Copy Markdown
Member

No description provided.

@abhishek-nexgen-dev abhishek-nexgen-dev merged commit c55a181 into master May 17, 2026
1 of 2 checks passed
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the Webhooks feature by adding a permissions field to the payload, implementing pagination support in filters and hooks, and significantly expanding the test suite for the Webhook form. It also includes general cleanup of unused imports, icons, and providers across the codebase. Review feedback identifies a regression where the danger prop was removed from ConfirmModal in task pages without being migrated to variant="danger", as seen in other files. Additionally, the retry functionality in the Webhook details page is currently non-functional due to hardcoded props, and a specific test assertion for secret visibility needs to be more explicit.

onCancel={() => setShowDeleteModal(false)}
isLoading={deleteTask.isPending}
danger

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The danger prop was removed but not replaced with variant="danger". Based on the refactoring seen in WebhookListPage.tsx, it appears the ConfirmModal component now expects a variant prop. Removing this without replacement will likely cause the delete button to lose its destructive visual styling (e.g., red color).

Suggested change
variant="danger"

onCancel={() => setTaskToDelete(null)}
isLoading={deleteTask.isPending}
danger

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

Similar to the change in TaskDetailPage.tsx, the danger prop was removed without being replaced by variant="danger". This regression should be fixed to maintain visual consistency for destructive actions.

Suggested change
variant="danger"

Comment on lines +272 to +273
onRetry={() => {}}
isRetrying={false}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The onRetry and isRetrying props are currently hardcoded or empty. This means the retry functionality in the "Recent Deliveries" table is non-functional on this page. Consider implementing the retry logic using the useRetryWebhookDelivery hook, similar to how it is handled in WebhookLogsPage.tsx.


fireEvent.click(eyeButton);
// After clicking, type should change to text
expect(secretInput.type === "text" || secretInput.type === "password").toBeTruthy();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

This assertion is a tautology and does not effectively test the toggle functionality. Since the input type is initialized as 'password', the test should explicitly verify that it changes to 'text' after the eye button is clicked.

Suggested change
expect(secretInput.type === "text" || secretInput.type === "password").toBeTruthy();
expect(secretInput.type).toBe("text");

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.

1 participant