-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* disable csrf check for development mode * WIP * fix api key auth * Reduce Pezzo Client execution to 1 request * format * remove console logs * add db migration * WIP * feat: finish onboarding phase * fix: race condition * feat: projects * remove project selector * fix formatting * fix build errors * add auth context * lots of stuff * fix bug and remove unused queries * fix bug where existing prompt validation does not work * fix prompt history value to 4 decimal points * remove console log * feat: dashboard and metrics (#42) * basic metric reporting * relocate prompt tester component * add schema.graphql to gitignore * add influxdb env variable to .env + validation * fix formatting * remove influx db env variable * Merge branch 'release/0.0.17-alpha' into feature/metrics * fix empty state and mismatching headers * increase gutter and change no data message * convert name to get * add linebreak * remove environment slug * update docker compose and readme * remove environmentslug from base executor * add influxdb volume * make influx password longer * update influxdb password * update influxdb admin password in docker-compose * fix formatting * add await to fix race condition * remove unused imports * remove settimeout * fix formatting * fix: remove env slug & add margins * fix formatting --------- Co-authored-by: Itay Elgazar <[email protected]>
- Loading branch information
1 parent
18c402a
commit 9fa96b9
Showing
103 changed files
with
2,708 additions
and
1,770 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,4 +44,5 @@ Thumbs.db | |
**/@generated | ||
.nx-container | ||
|
||
.env.local | ||
.env.local | ||
schema.graphql |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { Breadcrumb, Layout, Menu, Space } from "antd"; | ||
import styled from "@emotion/styled"; | ||
import LogoSquare from "../../../assets/logo.svg"; | ||
import { colors } from "../../lib/theme/colors"; | ||
|
||
const Logo = styled.img` | ||
height: 40px; | ||
display: block; | ||
`; | ||
|
||
export const Header = () => { | ||
return ( | ||
<Layout.Header | ||
style={{ | ||
padding: 20, | ||
position: "sticky", | ||
top: 0, | ||
zIndex: 1, | ||
width: "100%", | ||
display: "flex", | ||
alignItems: "center", | ||
background: "#141414", | ||
borderBottom: `1px solid ${colors.neutral["700"]}`, | ||
}} | ||
> | ||
<div style={{ display: "flex", alignItems: "center" }}> | ||
<Space size="large"> | ||
<Logo src={LogoSquare} alt="Logo" /> | ||
</Space> | ||
</div> | ||
|
||
<div | ||
style={{ | ||
display: "flex", | ||
flex: "100%", | ||
alignItems: "center", | ||
justifyContent: "flex-end", | ||
}} | ||
></div> | ||
|
||
<Menu theme="dark" mode="horizontal" /> | ||
</Layout.Header> | ||
); | ||
}; |
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,57 @@ | ||
import { Breadcrumb, Layout, Row, Space, theme } from "antd"; | ||
import { SideNavigation } from "./SideNavigation"; | ||
import styled from "@emotion/styled"; | ||
import { Header } from "./Header"; | ||
import { useBreadcrumbItems } from "../../lib/hooks/useBreadcrumbItems"; | ||
|
||
const StyledContent = styled(Layout.Content)` | ||
padding: 18px; | ||
max-width: 1280px; | ||
margin-inline: auto; | ||
max-height: calc(100vh - 64px); | ||
overflow-y: auto; | ||
scrollbar-width: none; /* Firefox */ | ||
::-webkit-scrollbar { | ||
display: none; /* Chrome, Safari, Opera */ | ||
} | ||
::-ms-scrollbar { | ||
display: none; /* IE */ | ||
} | ||
`; | ||
|
||
interface Props { | ||
children: React.ReactNode; | ||
withSideNav: boolean; | ||
withHeader?: boolean; | ||
} | ||
|
||
export const LayoutWrapper = ({ | ||
children, | ||
withSideNav, | ||
withHeader = true, | ||
}: Props) => { | ||
const breadcrumbItems = useBreadcrumbItems(); | ||
const { token } = theme.useToken(); | ||
|
||
return ( | ||
<Layout | ||
style={{ height: "100vh", maxHeight: "100vh", flexDirection: "column" }} | ||
> | ||
{withHeader && <Header />} | ||
<div style={{ display: "flex", flexDirection: "row", height: "100%" }}> | ||
{withSideNav && <SideNavigation />} | ||
<StyledContent> | ||
<Breadcrumb | ||
items={breadcrumbItems} | ||
style={{ | ||
marginBottom: token.marginLG, | ||
}} | ||
/> | ||
{children} | ||
</StyledContent> | ||
</div> | ||
</Layout> | ||
); | ||
}; |
Oops, something went wrong.