8000 feat: add combobox for selecting claim field value for group/role idp sync by jaaydenh · Pull Request #16459 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: add combobox for selecting claim field value for group/role idp sync #16459

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
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: more cleanup
  • Loading branch information
jaaydenh committed Feb 7, 2025
commit 4356123f7ba6e94369c44c706278999194f02a0c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export const IdpGroupSyncForm: FC<IdpGroupSyncFormProps> = ({
inputValue={comboInputValue}
onInputChange={setComboInputValue}
onKeyDown={handleKeyDown}
onSelect={(value: string) => {
onSelect={(value) => {
setIdpGroupName(value);
setOpen(false);
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export const IdpRoleSyncForm: FC<IdpRoleSyncFormProps> = ({
inputValue={comboInputValue}
onInputChange={setComboInputValue}
onKeyDown={handleKeyDown}
onSelect={(value: string) => {
onSelect={(value) => {
setIdpRoleName(value);
setOpen(false);
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,8 @@ export const IdpSyncPage: FC = () => {
rolesQuery,
] = useQueries({
queries: [
{
...groupIdpSyncSettings(organizationName),
onSuccess: (data: GroupSyncSettings) => {
if (data?.field) {
setGroupField(data.field);
}
},
},
{
...roleIdpSyncSettings(organizationName),
onSuccess: (data: RoleSyncSettings) => {
if (data?.field) {
setRoleField(data.field);
}
},
},
groupIdpSyncSettings(organizationName),
roleIdpSyncSettings(organizationName),
groupsByOrganization(organizationName),
organizationRoles(organizationName),
],
Expand Down
Loading
0