-
Notifications
You must be signed in to change notification settings - Fork 558
feat(OIDC): adjusts for the trust relationships UI #8313
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
Open
talissoncosta
wants to merge
4
commits into
main
Choose a base branch
from
chore/trust-relationships-ds-fixes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+272
−148
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
8b0847e
refactor(forms): Let Switch and FieldLabel take an id
talissoncosta e725563
fix(icons): Make the GitHub mark visible in dark mode
talissoncosta a3fa542
refactor(OIDC): Use design system components and name every control
talissoncosta 41f5321
feat(OIDC): Rebuild the provider chooser and show the chosen provider
talissoncosta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...ettings/tabs/trust-relationships/NewTrustRelationshipModal/NewTrustRelationshipModal.scss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| .new-trust-relationship__provider { | ||
| border: 1px solid var(--color-border-default); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...nents/pages/organisation-settings/tabs/trust-relationships/ProviderCard/ProviderCard.scss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| // Layout, spacing and radius come from utilities; this is what they cannot | ||
| // express. `border-1` is not an option here: it uses a black alpha, so it all | ||
| // but disappears in dark mode. | ||
| .provider-card { | ||
| border: 1px solid var(--color-border-default); | ||
|
|
||
| &:hover { | ||
| border-color: var(--color-border-strong); | ||
| background: var(--color-surface-subtle); | ||
| } | ||
|
|
||
| &__body { | ||
| min-width: 0; | ||
| } | ||
|
|
||
| &__title { | ||
| font-weight: var(--font-weight-medium); | ||
| } | ||
| } |
50 changes: 50 additions & 0 deletions
50
...onents/pages/organisation-settings/tabs/trust-relationships/ProviderCard/ProviderCard.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| import { FC, ReactNode } from 'react' | ||
| import { colorIconSecondary } from 'common/theme/tokens' | ||
| import BareButton from 'components/base/forms/BareButton' | ||
| import Chip from 'components/base/Chip' | ||
| import Icon from 'components/icons/Icon' | ||
| import './ProviderCard.scss' | ||
|
|
||
| export type ProviderCardProps = { | ||
| icon: ReactNode | ||
| title: string | ||
| description: string | ||
| badge?: string | ||
| onClick: () => void | ||
| } | ||
|
|
||
| const ProviderCard: FC<ProviderCardProps> = ({ | ||
| badge, | ||
| description, | ||
| icon, | ||
| onClick, | ||
| title, | ||
| }) => ( | ||
| <BareButton | ||
| className='provider-card d-flex align-items-center gap-3 w-100 p-3 text-start rounded-xl transition-fast' | ||
| onClick={onClick} | ||
| > | ||
| <span | ||
| className='d-flex align-items-center justify-content-center flex-shrink-0 p-2 rounded-lg bg-surface-muted' | ||
| aria-hidden | ||
| > | ||
| {icon} | ||
| </span> | ||
| <span className='provider-card__body d-flex flex-column gap-1 flex-fill'> | ||
| <span className='d-flex align-items-center gap-2 flex-wrap'> | ||
| <span className='provider-card__title'>{title}</span> | ||
| {!!badge && ( | ||
| <Chip size='xs' variant='accent'> | ||
| {badge} | ||
| </Chip> | ||
| )} | ||
| </span> | ||
| <span className='fs-small text-secondary'>{description}</span> | ||
| </span> | ||
| <span className='d-flex align-items-center flex-shrink-0' aria-hidden> | ||
| <Icon name='chevron-right' width={20} fill={colorIconSecondary} /> | ||
| </span> | ||
| </BareButton> | ||
| ) | ||
|
|
||
| export default ProviderCard | ||
2 changes: 2 additions & 0 deletions
2
...web/components/pages/organisation-settings/tabs/trust-relationships/ProviderCard/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| export { default } from './ProviderCard' | ||
| export type { ProviderCardProps } from './ProviderCard' |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.