Skip to content

Commit

Permalink
fixes from review (part 1)
Browse files Browse the repository at this point in the history
* Add provider button text
* Connected serivces page button color
* italics text
  • Loading branch information
lorenzo-cavazzi committed Oct 2, 2024
1 parent 13bfef7 commit ae60afd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 19 deletions.
2 changes: 1 addition & 1 deletion client/src/features/admin/AddConnectedServiceButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function AddConnectedServiceButton() {
<>
<Button className="btn-outline-rk-green" onClick={toggle}>
<PlusLg className={cx("bi", "me-1")} />
Add Session Environment
Add Service Provider
</Button>
<AddConnectedServiceModal isOpen={isOpen} toggle={toggle} />
</>
Expand Down
24 changes: 7 additions & 17 deletions client/src/features/admin/ConnectedServicesSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,27 +130,17 @@ function ConnectedService({ provider }: ConnectedServiceProps) {

<Collapse isOpen={isOpen}>
<CardBody className="pt-0">
<CardText className="mb-2">ID: {provider.id}</CardText>
<CardText className="mb-2">Kind: {provider.kind}</CardText>
<CardText className="mb-2">URL: {provider.url}</CardText>
<CardText className="mb-2">
ID: <i>{provider.id}</i>
Client ID: {provider.client_id}
</CardText>
<CardText className="mb-2">
Kind: <i>{provider.kind}</i>
</CardText>
<CardText className="mb-2">
URL: <i>{provider.url}</i>
</CardText>
<CardText className="mb-2">
Client ID: <i>{provider.client_id}</i>
</CardText>
<CardText className="mb-2">
Client secret: <i>{provider.client_secret}</i>
</CardText>
<CardText className="mb-2">
Scope: <i>{provider.scope}</i>
</CardText>
<CardText>
Use PKCE: <i>{provider.use_pkce.toString()}</i>
Client secret: {provider.client_secret}
</CardText>
<CardText className="mb-2">Scope: {provider.scope}</CardText>
<CardText>Use PKCE: {provider.use_pkce.toString()}</CardText>
</CardBody>

<CardFooter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function ConnectButton({ connectionStatus, id }: ConnectButtonParams) {
connectionStatus === "connected" ? "btn-outline-primary" : "btn-primary";

return (
<a className={cx(color, "btn", "btn-secondary", "ms-auto")} href={url}>
<a className={cx(color, "btn", "ms-auto")} href={url}>
{text}
</a>
);
Expand Down

0 comments on commit ae60afd

Please sign in to comment.