UX improvements

This commit is contained in:
Stan Wohlwend 2024-04-19 18:52:01 +02:00
parent 44b14ec413
commit 3b9e96e460
2 changed files with 10 additions and 1 deletions

View File

@ -73,7 +73,7 @@ export default function ProvidersClient() {
</Paragraph>
<Paragraph sidenote>
In order to add a new provider, you can choose to use shared credentials created by us, or create your own OAuth client on the provider&apos;s website. Pick an OAuth-compatible service from the list below to get started.
In order to add a new provider, you can choose to use shared credentials created by us, or create your own OAuth client on the provider&apos;s website.
</Paragraph>
</SimpleCard>
</>

View File

@ -156,6 +156,10 @@ export default function UrlsAndCallbacksClient() {
return (
<>
<Paragraph sidenote>
List the paths to the handlers that will receive callbacks from your project. Note, if a third-party gains control of your handler, they can potentially access your user data.
</Paragraph>
<SimpleCard title="Domains and Handler">
<Box sx={{ my: 2 }}>
<SmartSwitch
@ -179,6 +183,11 @@ export default function UrlsAndCallbacksClient() {
"--List-radius": "9px",
}}
>
{domains.size === 0 && (
<ListItem>
<Typography>No handlers added yet. Click the button below to add your first</Typography>
</ListItem>
)}
{[...domains].map(({ domain, handlerPath }, i) => (
<React.Fragment key={domain}>
{i !== 0 && <ListDivider />}