Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor: move required external auth buttons to the submit side #18586

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

Merged
merged 6 commits into from
Jun 27, 2025

Conversation

BrunoQuaresma
Copy link
Collaborator

Before:
Screenshot 2025-06-25 at 14 40 16

After:
Screenshot 2025-06-25 at 14 53 53

@BrunoQuaresma BrunoQuaresma self-assigned this Jun 25, 2025
Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

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

I think it would make sense to make the new component have parity with the previous one (or make the previous one reusable) but it looks good to me otherwise.

@BrunoQuaresma BrunoQuaresma requested a review from code-asher June 26, 2025 20:16
Copy link
Member

@code-asher code-asher left a 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!

@@ -303,7 +303,7 @@ const TaskForm: FC<TaskFormProps> = ({ templates }) => {

<Button size="sm" type="submit" disabled={isMissingExternalAuth}>
<Spinner
loading={createTaskMutation.isPending || isLoadingExternalAuth}
loading={createTaskMutation.isPending || isPollingExternalAuth}
Copy link
Member

Choose a reason for hiding this comment

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

I think this one should be createTaskMutation.isPending || isLoadingExternalAuth || isPollingExternalAuth so it spins while waiting for auth to load as well right? (or we could use !missedExternalAuth).

</Button>
</TooltipTrigger>
<TooltipContent>
Retry connect to {auth.display_name}
Copy link
Member

Choose a reason for hiding this comment

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

I think ~ing sounds more natural: Retry connecting to

@BrunoQuaresma BrunoQuaresma merged commit 59a6541 into main Jun 27, 2025
33 checks passed
@BrunoQuaresma BrunoQuaresma deleted the bq/improve-external-auth-on-tasks branch June 27, 2025 13:44
@github-actions github-actions bot locked and limited conversation to collaborators Jun 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants