-
Notifications
You must be signed in to change notification settings - Fork 7
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
Refresh connection data on add/delete and improve loading spinner states. #252
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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 59ddca0 in 1 minute and 15 seconds
More details
- Looked at
224
lines of code in8
files - Skipped
0
files when reviewing. - Skipped posting
11
drafted comments based on config settings.
1. packages/engine-frontend/components/ConnectionPortal.tsx:127
- Draft comment:
Removing deleteConnection.isLoading from isLoading may lead to unintended UX if deletion is considered a loading state. Verify intended behavior. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =40%
<= threshold50%
The comment is asking the PR author to verify the intended behavior, which violates the rule against asking for confirmation of intention. However, it does point out a potential issue with UX that could be useful for the author to consider. The comment could be rephrased to suggest a specific change or to highlight the potential issue without asking for verification.
2. packages/engine-frontend/components/ConnectionPortal.tsx:159
- Draft comment:
Ensure async onSuccessCallback handles errors from refetch if necessary. - Reason this comment was not posted:
Confidence changes required:50%
<= threshold50%
None
3. packages/ui/domain-components/ConnectionDetails.tsx:91
- Draft comment:
Good enhancement: overlay spinner added for delete state and disable button. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
4. packages/ui/domain-components/IntegrationCard.tsx:27
- Draft comment:
Auto-connect behavior using debounce looks fine; verify that forced auto connection is desired. - Reason this comment was not posted:
Confidence changes required:30%
<= threshold50%
None
5. apps/web/app/dashboard/(authenticated)/connector-configs/ConnectorConfigForm.tsx:80
- Draft comment:
Why is 'destination_id' commented out? Consider adding a TODO or explanation if it's temporary. - Reason this comment was not posted:
Marked as duplicate.
6. packages/engine-frontend/components/AddConnectionTabContent.tsx:30
- Draft comment:
Refetch on error event is added. Confirm if additional user feedback (e.g. error toast) is needed. - Reason this comment was not posted:
Confidence changes required:50%
<= threshold50%
None
7. packages/engine-frontend/components/ConnectionPortal.tsx:127
- Draft comment:
Main loading state now excludes isRefetching and deleteConnection.isLoading. Verify this change reflects the intended UX for spinners. - Reason this comment was not posted:
Marked as duplicate.
8. packages/engine-frontend/components/ConnectionPortal.tsx:159
- Draft comment:
The onSuccessCallback is now async and awaits refetch. Ensure that awaiting the refetch fits the desired flow and consider error handling if needed. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 10% vs. threshold = 50%
The comment is asking the author to "ensure" something and "consider" error handling - this violates our rules about not asking authors to verify things. The change to make the callback async and await the refetch is likely intentional to ensure data is fresh when showing the manage tab. Error handling already exists in the TRPC query setup.
Maybe waiting for the refetch could cause the UI to feel slower or less responsive? Maybe there's a race condition I'm missing?
The change appears intentional to ensure data consistency. Any errors would be handled by the existing TRPC error handling. The brief delay is acceptable for data consistency.
Delete this comment as it's asking for verification of intentional behavior and suggesting speculative improvements without clear evidence of issues.
9. packages/engine-frontend/components/ConnectionsTabContent.tsx:22
- Draft comment:
isDeleting prop is now passed to ConnectionDetails. Confirm all dependent components use this flag consistently. - Reason this comment was not posted:
Confidence changes required:50%
<= threshold50%
None
10. packages/ui/domain-components/ConnectionDetails.tsx:32
- Draft comment:
Overlay spinner and disabled delete button during deletion improve UX. Verify if the overlay covers all interactive elements. - Reason this comment was not posted:
Confidence changes required:30%
<= threshold50%
None
11. packages/ui/domain-components/IntegrationCard.tsx:1
- Draft comment:
Consistent use of Loader2 throughout components is good for uniformity. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
Workflow ID: wflow_1vDTHPgmmvUF9Kxx
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.
apps/web/app/dashboard/(authenticated)/connector-configs/ConnectorConfigForm.tsx
Show resolved
Hide resolved
✨ No issues found! Your code is sparkling clean! ✨ |
OINT-1076
OINT-1084
OINT-1085
OINT-1080
Important
Refresh connection data on add/delete events and update loading spinners across components for improved UX.
AddConnectionTabContent
.onSuccessCallback
inConnectionPortal
to refetch connections after navigation.Loader
withLoader2
inConnectionPortal
,IntegrationSearch
,ConnectionCard
,ConnectionDetails
, andIntegrationCard
for a consistent loading animation.ConnectionDetails
andConnectionCard
when deleting or processing.destination_id
inConnectorConfigForm
schema definition.This description was created by
for 59ddca0. It will automatically update as commits are pushed.