-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update auth admin design + add support for webhooks and openid connec…
…t providers (#369)
- Loading branch information
Showing
25 changed files
with
2,598 additions
and
1,785 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,5 @@ | ||
import styles from "./loadingSkeleton.module.scss"; | ||
|
||
export function LoadingSkeleton({ className }: { className?: string }) { | ||
return <div className={`${styles.loadingSkeleton} ${className ?? ""}`} />; | ||
} |
30 changes: 30 additions & 0 deletions
30
shared/common/newui/loadingSkeleton/loadingSkeleton.module.scss
This file contains 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,30 @@ | ||
@import "@edgedb/common/mixins.scss"; | ||
|
||
.loadingSkeleton { | ||
border-radius: 8px; | ||
background: var(--skeletonBg, #ededed); | ||
background-image: linear-gradient( | ||
90deg, | ||
transparent, | ||
var(--skeletonShimmer, #fafafa) 66%, | ||
transparent | ||
); | ||
background-repeat: no-repeat; | ||
background-size: 100px 100%; | ||
animation: shimmer 2s infinite linear; | ||
|
||
@include darkTheme { | ||
--skeletonBg: #2d2d2d; | ||
--skeletonShimmer: #3c3c3c; | ||
} | ||
} | ||
|
||
@keyframes shimmer { | ||
0% { | ||
background-position: -100px; | ||
} | ||
50%, | ||
100% { | ||
background-position: calc(100% + 100px); | ||
} | ||
} |
This file contains 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,33 @@ | ||
import cn from "@edgedb/common/utils/classNames"; | ||
|
||
import styles from "./panelTabs.module.scss"; | ||
|
||
export interface PanelTabsProps<TabId extends string> { | ||
className?: string; | ||
tabs: {id: TabId; label: string | JSX.Element}[]; | ||
selectedTabId: TabId; | ||
setSelectedTabId: (id: TabId) => void; | ||
} | ||
|
||
export function PanelTabs<TabId extends string = string>({ | ||
className, | ||
tabs, | ||
selectedTabId, | ||
setSelectedTabId, | ||
}: PanelTabsProps<TabId>) { | ||
return ( | ||
<div className={cn(styles.panelTabs, className)}> | ||
{tabs.map((tab) => ( | ||
<div | ||
key={tab.id} | ||
className={cn(styles.tab, { | ||
[styles.active]: selectedTabId === tab.id, | ||
})} | ||
onClick={() => setSelectedTabId(tab.id)} | ||
> | ||
{tab.label} | ||
</div> | ||
))} | ||
</div> | ||
); | ||
} |
This file contains 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,94 @@ | ||
@import "@edgedb/common/mixins.scss"; | ||
|
||
.panelTabs { | ||
grid-column: 1; | ||
grid-row: 1; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 12px; | ||
align-self: start; | ||
position: sticky; | ||
top: 0; | ||
width: max-content; | ||
justify-self: end; | ||
text-align: end; | ||
padding: 64px 24px; | ||
z-index: 1; | ||
|
||
.tab { | ||
position: relative; | ||
font-family: "Roboto Flex Variable", sans-serif; | ||
color: var(--secondary_text_color); | ||
text-decoration: none; | ||
font-weight: 500; | ||
padding: 12px 16px; | ||
border-radius: 8px; | ||
cursor: pointer; | ||
|
||
&:hover { | ||
background: #fff; | ||
} | ||
|
||
&.active { | ||
color: var(--main_text_color); | ||
|
||
&:after { | ||
content: ""; | ||
position: absolute; | ||
right: 1px; | ||
top: 4px; | ||
bottom: 4px; | ||
width: 2px; | ||
border-radius: 1px; | ||
background: #a565cd; | ||
} | ||
} | ||
} | ||
|
||
@include darkTheme { | ||
.tab:hover { | ||
background: var(--Grey12); | ||
} | ||
} | ||
|
||
@include isMobile { | ||
border-bottom: 1px solid var(--Grey93, #ededed); | ||
background: var(--Grey99, #fcfcfc); | ||
box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.08); | ||
flex-direction: row; | ||
padding: 0; | ||
width: 100%; | ||
align-items: center; | ||
justify-content: center; | ||
height: 44px; | ||
flex-shrink: 0; | ||
|
||
.tab { | ||
padding: 10px 12px; | ||
border-radius: 6px; | ||
|
||
&:hover { | ||
background: var(--Grey95, #f2f2f2); | ||
} | ||
|
||
&.active:after { | ||
left: 4px; | ||
right: 4px; | ||
top: auto; | ||
bottom: -3px; | ||
height: 2px; | ||
width: auto; | ||
} | ||
} | ||
|
||
@include darkTheme { | ||
border-bottom: 1px solid var(--Grey22, #363636); | ||
background: var(--Grey18, #2e2e2e); | ||
box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.2); | ||
|
||
.tab:hover { | ||
background: var(--Grey14, #242424); | ||
} | ||
} | ||
} | ||
} |
This file contains 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 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 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 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 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
Oops, something went wrong.