Skip to content

Commit 669dc23

Browse files
authored
Merge pull request #200 from OpenWebhook/display-store-config
fix: github urls and layout
2 parents 98f87cf + 8be42ed commit 669dc23

2 files changed

Lines changed: 25 additions & 21 deletions

File tree

src/NavBar/StoreConfig/StoreConfigDialog.tsx

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ export const StoreConfigInnerDialog = ({
2222
<h1>Store Config</h1>
2323
</Heading>
2424
<div style={{ display: "flex" }}>
25-
<DataWell label="Access" subLabel={accessConfig.sublabel}>
25+
<DataWell
26+
style={{ paddingLeft: "0" }}
27+
label="Access"
28+
subLabel={accessConfig.sublabel}
29+
>
2630
{accessConfig.type} {accessConfig.type === "public" ? "⚠️" : null}
2731
</DataWell>
2832
{storageLimit && (
@@ -39,36 +43,36 @@ export const StoreConfigInnerDialog = ({
3943
)}
4044
</div>
4145

42-
{userHasAccessToStore
43-
? "You have access to this store"
44-
: "You don't have access to this store"}
46+
{userHasAccessToStore ? null : "You don't have access to this store"}
4547

4648
<Heading>
4749
<h1>Your private webhooks stores</h1>
4850
</Heading>
4951

50-
<List>
51-
{availableStores.length > 0
52-
? availableStores.map((store) => (
53-
<List.Item>
54-
<Link>
55-
<a href={store.url}>{store.display}</a>
56-
</Link>
57-
</List.Item>
58-
))
59-
: null}
60-
</List>
52+
<div style={{ padding: "0 24px" }}>
53+
<List type="bulleted">
54+
{availableStores.length > 0
55+
? availableStores.map((store) => (
56+
<List.Item>
57+
<Link>
58+
<a href={store.url}>{store.display}</a>
59+
</Link>
60+
</List.Item>
61+
))
62+
: null}
63+
</List>
64+
</div>
6165

6266
<P>
63-
<Link>
67+
<Link appearance={Link.appearances.subtle}>
6468
<a href="https://www.openwebhook.io/docs/intro/#authentication">
6569
WebhookStore access documentation
6670
</a>
6771
</Link>
6872
</P>
6973

7074
<P>
71-
<Link>
75+
<Link appearance={Link.appearances.subtle}>
7276
<a href="https://www.openwebhook.io/docs/intro/#%EF%B8%8F-public-organisation-membership">
7377
You don't see your organisation here?
7478
</a>

src/NavBar/StoreConfig/StoreConfigNavItem.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ export const StoreConfigNavItem = () => {
5656
const availableStores = identityToken
5757
? [
5858
{
59-
url: `https://${identityToken.payload.name}.github-org.webhook.store/?access_token=${idToken}`,
60-
display: `${identityToken.payload.name}.github-org.webhook.store`,
59+
url: `https://${identityToken.payload.name}.github.webhook.store/?access_token=${idToken}`,
60+
display: `${identityToken.payload.name.toLowerCase()}.github.webhook.store`,
6161
},
6262
...identityToken.payload.ghOrganisations.map((orgName) => ({
63-
url: `https://${orgName}.github.webhook.store/?access_token=${idToken}`,
64-
display: `${orgName}.github-org.webhook.store`,
63+
url: `https://${orgName}.github-org.webhook.store/?access_token=${idToken}`,
64+
display: `${orgName.toLowerCase()}.github-org.webhook.store`,
6565
})),
6666
]
6767
: [

0 commit comments

Comments
 (0)