-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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(autofix): Repository configuration for autofix #87801
Conversation
❌ 15 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
4799ec2
to
7abdd86
Compare
|
||
const tooltipMessage = isGithub | ||
? '' | ||
: t('Support for %s will be coming soon', repo.provider?.name || t('this provider')); |
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.
lies
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.
🤫
} | ||
|
||
export function SelectableRepoItem({repo, isSelected, onToggle}: Props) { | ||
const isGithub = repo.provider?.name?.toLowerCase() === 'github'; |
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.
nit: isSupportedProvider
or something would probably be better for the future
<RepoName>{repo.name}</RepoName> | ||
<RightAlign> | ||
<RepoProvider>{repo.provider?.name || t('Unknown Provider')}</RepoProvider> | ||
{isGithub && <AddIcon size="xs" />} |
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.
should the icon disappear, or be grayed out?
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.
hmm i think disappear gives a bigger distinction but i don't mind either lol
`; | ||
|
||
const RepoName = styled('div')` | ||
font-weight: 600; |
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.
font-weight: 600; | |
font-weight: ${p => p.theme.fontWeight.bold}; |
idk if my syntax is correct but you get the idea
gap: ${space(2)}; | ||
`; | ||
|
||
const RepositorySettingsSection = styled('div')``; |
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.
is this necessary
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.
no, :bufo-vibe-codes:
style: { | ||
zIndex: 0, | ||
}, |
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.
i hear there's a preference for styled components over inline styles but I won't be the grammar police
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.
yeah but this is a prop, sadly
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
Adds a preferences dropdown in the seer drawer, where users can configure the repos that Autofix will have access to. They can also provide free-text instructions and set a custom branch. Loading:  Searchable list of repos to add:  After you add one:  Editing the repo settings will need to be saved:  Max 8 repos: 
Adds a preferences dropdown in the seer drawer, where users can configure the repos that Autofix will have access to. They can also provide free-text instructions and set a custom branch.
Loading:


Searchable list of repos to add:
After you add one:


Editing the repo settings will need to be saved:
Max 8 repos:
