Skip to content

Commit

Permalink
Merge pull request #374 from airtai/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
davorrunje authored Jun 19, 2024
2 parents b788a65 + 5eaa7e9 commit 40851c8
Show file tree
Hide file tree
Showing 90 changed files with 3,552 additions and 774 deletions.
3 changes: 3 additions & 0 deletions .devcontainer/devcontainer.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ AZURE_API_ENDPOINT=${AZURE_API_ENDPOINT}
AZURE_GPT35_MODEL=${AZURE_GPT35_MODEL}
AZURE_API_VERSION=${AZURE_API_VERSION}
TOGETHER_API_KEY=${TOGETHER_API_KEY}
ADMIN_EMAILS=${ADMIN_EMAILS}
GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID}
GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET}
1 change: 0 additions & 1 deletion .devcontainer/python-3.10/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ services:
- NATS_URL=nats://${USER}-nats-py310-fastagency:4222
env_file:
- ../devcontainer.env
platform: linux/amd64
networks:
- fastagency-network
nats-fastagency: # nosemgrep
Expand Down
2 changes: 2 additions & 0 deletions .devcontainer/python-3.11/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ services:
- DATABASE_URL=postgresql://admin:password@${USER}-postgres-py311-fastagency:5432/fastagency
- PY_DATABASE_URL=postgresql://admin:password@${USER}-postgres-py311-fastagency:5432/pyfastagency
- NATS_URL=nats://${USER}-nats-py311-fastagency:4222
env_file:
- ../devcontainer.env
networks:
- fastagency-network
nats-fastagency: # nosemgrep
Expand Down
2 changes: 2 additions & 0 deletions .devcontainer/python-3.12/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ services:
- DATABASE_URL=postgresql://admin:password@${USER}-postgres-py312-fastagency:5432/fastagency
- PY_DATABASE_URL=postgresql://admin:password@${USER}-postgres-py312-fastagency:5432/pyfastagency
- NATS_URL=nats://${USER}-nats-py312-fastagency:4222
env_file:
- ../devcontainer.env
networks:
- fastagency-network
nats-fastagency: # nosemgrep
Expand Down
2 changes: 2 additions & 0 deletions .devcontainer/python-3.9/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ services:
- DATABASE_URL=postgresql://admin:password@${USER}-postgres-py39-fastagency:5432/fastagency
- PY_DATABASE_URL=postgresql://admin:password@${USER}-postgres-py39-fastagency:5432/pyfastagency
- NATS_URL=nats://${USER}-nats-py39-fastagency:4222
env_file:
- ../devcontainer.env
networks:
- fastagency-network
nats-fastagency: # nosemgrep
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ repos:
verbose: true

- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
rev: v1.5.0
hooks:
- id: detect-secrets
args: ["--baseline", ".secrets.baseline"]
Expand Down
2 changes: 1 addition & 1 deletion .secrets.baseline
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.4.0",
"version": "1.5.0",
"plugins_used": [
{
"name": "ArtifactoryDetector"
Expand Down
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,23 @@ COPY fastagency ./fastagency
COPY scripts/* schema.prisma pyproject.toml README.md ./
RUN pip install -e ".[dev]"

# Install wasp
RUN curl -sSL https://get.wasp-lang.dev/installer.sh | sh
# Install github cli
RUN (type -p wget >/dev/null || (apt update && apt-get install wget -y)) \
&& mkdir -p -m 755 /etc/apt/keyrings \
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& apt update \
&& apt install gh -y \
&& rm -rf /var/lib/apt/lists/*
# Install flyctl
RUN curl -L https://fly.io/install.sh | sh
# Include wasp and flyctl in PATH
ENV FLYCTL_INSTALL="/root/.fly"
ENV PATH="${PATH}:/root/.local/bin:${FLYCTL_INSTALL}/bin"

EXPOSE ${PORT}

ENTRYPOINT []
Expand Down
24 changes: 24 additions & 0 deletions app/src/client/Main.css
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,30 @@ code {
}
/* Google login button */

.social-icons-wrapper .discord-link:before {
background-color: #8c9fae;
content: "";
display: flex;
height: 24px;
-webkit-mask-image: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJHcmFwaGljX0VsZW1lbnRzIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjAiIHk9IjAiIHZpZXdCb3g9IjAgMCAxMzUgMTM1IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxMzUgMTM1IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGU+LnN0MHtmaWxsOiNmZmZ9PC9zdHlsZT48cGF0aCBjbGFzcz0ic3QwIiBkPSJNNjcuNSAwQzMwLjIgMCAwIDMwLjIgMCA2Ny41UzMwLjIgMTM1IDY3LjUgMTM1IDEzNSAxMDQuOCAxMzUgNjcuNSAxMDQuOCAwIDY3LjUgMHptNDMuNCA4OS43Yy02LjYgNS0xNC4xIDguNy0yMiAxMS4xLTEuOC0yLjQtMy40LTUtNC43LTcuNiAyLjYtMSA1LjEtMi4yIDcuNC0zLjYtLjYtLjUtMS4yLS45LTEuOC0xLjQtMTQgNi42LTMwLjEgNi42LTQ0LjEgMC0uNi41LTEuMi45LTEuOCAxLjQgMi40IDEuNCA0LjkgMi42IDcuNCAzLjUtMS40IDIuNy0yLjkgNS4yLTQuNyA3LjctNy45LTIuNC0xNS40LTYuMi0yMi0xMS4xQz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i42LTMwLjEgNi42LTQ0LjEgMC0uNi41LTEuMi45LTEuOCAxLjQgMi40IDEuNCA0LjkgMi42IDcuNCAzLjUtMS40IDIuNy0yLjkgNS4yLTQuNyA3LjctNy45LTIuNC0xNS40LTYuMi0yMi0xMS4xQzIzIDczLjUgMjYuMSA1NyAzNy40IDQwLjFjNS43LTIuNiAxMS44LTQuNSAxOC01LjYuOSAxLjUgMS43IDMuMSAyLjQgNC43IDYuNi0xIDEzLjMtMSAxOS45IDAgLjYtMS41IDEuNS0zLjMgMi4zLTQuNyA2LjIgMS4xIDEyLjIgMi45IDE4IDUuNSA5LjggMTQuNiAxNC43IDMwLjkgMTIuOSA0OS43eiIvPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik01My4yIDYyLjJjLTQuNCAwLTcuOCA0LTcuOCA4LjhzMy41IDguOCA3LjggOC44YzQuNCAwIDcuOC00IDcuOC04LjguMS00LjktMy40LTguOC03LjgtOC44ek04Mi4xIDYyLjJjLTQuNCAwLTcuOCA0LTcuOCA4LjhzMy41IDguOCA3LjggOC44YzQuNCAwIDcuOC00IDcuOC04LjguMS00LjktMy40LTguOC03LjgtOC44eiIvPjwvc3ZnPg==);
width: 24px;
}

.social-icons-wrapper .github-link:before {
background-color: #8c9fae;
content: "";
display: flex;
height: 24px;
-webkit-mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMzUgMTMzIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxMzUgMTMzIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNMTM1IDY3LjVDMTM1IDMwLjIgMTA0LjggMCA2Ny41IDBTMCAzMC4yIDAgNjcuNWMwIDMxLjYgMjEuNyA1OC4xIDUxIDY1LjUgMC0uMi4xLS40LjEtLjYgMC0xLjUtLjEtNi44LS4xLTEyLjMtMTguNCA0LTIyLjItNy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LTkuNy02LTQuMS40LTQuMS40LTQuMSA2LjcuNCAxMC4yIDYuOCAxMC4yIDYuOCA1LjkgMTAuMSAxNS40IDcuMyAxOS4yIDUuNS41LTQuMyAyLjMtNy4zIDQuMi04LjktMTQuNi0xLjUtMzAtNy4zLTMwLTMyLjggMC03LjMgMi42LTEzLjIgNi44LTE3LjgtLjctMS43LTMtOC41LjctMTcuNiAwIDAgNS42LTEuOCAxOC4xIDYuOCA1LjQtMS41IDEwLjktMi4yIDE2LjUtMi4yczExLjMuOCAxNi41IDIuMmMxMi42LTguNiAxOC4xLTYuOCAxOC4xLTYuOCAzLjYgOS4xIDEuMyAxNiAuNyAxNy42IDQuMyA0LjYgNi44IDEwLjYgNi44IDE3LjggMCAyNS41LTE1LjQgMzEuMS0zMC4yIDMyLjggMi40IDIuMSA0LjUgNi4xIDQuNSAxMi4zIDAgOC45LS4xIDE2LjEtLjEgMTguMyAwIC4yIDAgLjQuMS43IDI5LjItNy40IDUxLTMzLjkgNTEtNjUuNnoiIHN0eWxlPSJmaWxsLXJ1bGU6ZXZlbm9kZDtjbGlwLXJ1bGU6ZXZlbm9kZDtmaWxsOiNmZmYiLz48L3N2Zz4=);
width: 24px;
}

.social-icons-wrapper .discord-link:hover, .social-icons-wrapper .github-link:hover {
opacity: 0.6;
}

@layer utilities {
/* Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
Expand Down
3 changes: 3 additions & 0 deletions app/src/client/components/AgentConversationHistory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ interface AgentConversationHistoryProps {
initialState?: boolean;
isAgentWindow?: boolean;
isDeploymentInstructions?: boolean;
containerTitle?: string;
}

const AgentConversationHistory: React.FC<AgentConversationHistoryProps> = ({
agentConversationHistory,
initialState = false,
isAgentWindow = false,
isDeploymentInstructions = false,
containerTitle,
}) => {
const [showHistory, setShowHistory] = useState(initialState);

Expand All @@ -38,6 +40,7 @@ const AgentConversationHistory: React.FC<AgentConversationHistoryProps> = ({
maxHeight={maxH}
isOpenOnLoad={isDeploymentInstructions ? isDeploymentInstructions : isAgentWindow}
theme={isDeploymentInstructions ? 'modelDeployment' : null}
containerTitle={containerTitle}
/>
</div>
</div>
Expand Down
16 changes: 8 additions & 8 deletions app/src/client/components/AppNavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import { HiBars3 } from 'react-icons/hi2';
import logo from '../static/logo.svg';
import DropdownUser from './DropdownUser';
import { DOCS_URL, BLOG_URL } from '../../shared/constants';
import DarkModeSwitcher from '../admin/components/DarkModeSwitcher';
import UserActionButton from '../components/UserActionButton';
import { UserMenuItems } from '../components/UserMenuItems';
import { navigation } from '../landing-page/contentSections';
import SocialMediaIcons from './SocialMediaIcons';

const NavLogo = () => <img className='h-8' src={logo} style={{ width: '1.8rem' }} alt='FastAgency' />;

Expand All @@ -30,7 +30,7 @@ export default function AppNavBar() {
<NavLogo />
<span className='ml-2 text-4xl font-rubik text-airt-font-base leading-6 dark:text-white'>FastAgency</span>
<span className='ml-2 text-sm font-semibold leading-6 '>
<sup className='text-base text-airt-font-base'>βeta</sup>
<sup className='text-base text-airt-font-base'>αlpha</sup>
</span>
</a>
</div>
Expand Down Expand Up @@ -63,9 +63,9 @@ export default function AppNavBar() {
})}
</div>
<div className='hidden lg:flex lg:flex-1 gap-3 justify-end items-center'>
{/* <ul className='flex justify-center items-center gap-2 sm:gap-4'>
<DarkModeSwitcher />
</ul> */}
<ul className='flex justify-center items-center gap-2 sm:gap-4'>
<SocialMediaIcons />
</ul>
<UserActionButton user={user} renderGoToChat={false} theme='light' />
{isUserLoading ? null : !user ? (
<a href={!user ? '/login' : '/account'} className='text-sm font-semibold leading-6 ml-4'>
Expand Down Expand Up @@ -128,9 +128,9 @@ export default function AppNavBar() {
<UserMenuItems user={user} setMobileMenuOpen={setMobileMenuOpen} />
)}
</div>
{/* <div className='py-6'>
<DarkModeSwitcher />
</div> */}
<div className='py-6'>
<SocialMediaIcons />
</div>
</div>
</div>
</Dialog.Panel>
Expand Down
2 changes: 1 addition & 1 deletion app/src/client/components/CustomSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export const navLinkItems: NavLinkItem[] = [
componentName: 'team',
},
{
label: 'Applications',
label: 'Deployments',
svgIcon: (
<svg
width='26px'
Expand Down
Loading

0 comments on commit 40851c8

Please sign in to comment.