Skip to content

Commit

Permalink
Dev (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaranvpl authored Apr 16, 2024
2 parents 953b614 + cf075f8 commit 3dc720e
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 26 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/enforcer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: 'Check Branch'

on:
pull_request:
merge_group:

jobs:
check_branch:
runs-on: ubuntu-latest
steps:
- name: Check branch
if: github.base_ref == 'main' && github.head_ref != 'dev'
run: |
echo "ERROR: You can only merge to main from dev."
exit 1
7 changes: 4 additions & 3 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,16 @@ jobs:
defaults:
run:
shell: bash
needs: [docker_build_push]
if: github.ref_name == 'main' || github.ref_name == 'dev'
env:
GITHUB_USERNAME: ${{ github.actor }}
GITHUB_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
PORT: ${{ vars.PORT }}
REACT_APP_CUSTOMER_PORTAL_LINK: ${{ vars.REACT_APP_CUSTOMER_PORTAL_LINK }}
REACT_APP_CUSTOMER_PORTAL_LINK: ${{ github.ref_name == 'main' && vars.PROD_REACT_APP_CUSTOMER_PORTAL_LINK || vars.STAGING_REACT_APP_CUSTOMER_PORTAL_LINK }}
GOOGLE_CLIENT_ID: ${{ github.ref_name == 'main' && secrets.PROD_GOOGLE_CLIENT_ID || secrets.STAGING_GOOGLE_CLIENT_ID }}
GOOGLE_CLIENT_SECRET: ${{ github.ref_name == 'main' && secrets.PROD_GOOGLE_CLIENT_SECRET || secrets.STAGING_GOOGLE_CLIENT_SECRET }}
ADMIN_EMAILS: ${{ vars.ADMIN_EMAILS }}

WASP_SERVER_URL: ${{ github.ref_name == 'main' && vars.PROD_WASP_SERVER_URL || vars.STAGING_WASP_SERVER_URL }}
ADS_SERVER_URL: ${{ github.ref_name == 'main' && vars.PROD_ADS_SERVER_URL || vars.STAGING_ADS_SERVER_URL }}
BACKEND_DOMAIN: ${{ github.ref_name == 'main' && vars.PROD_BACKEND_DOMAIN || vars.STAGING_BACKEND_DOMAIN }}
Expand Down Expand Up @@ -133,11 +133,12 @@ jobs:
runs-on: ubuntu-22.04
permissions:
contents: write
needs: [docker_build_push]
if: github.ref_name == 'main' || github.ref_name == 'dev'
env:
STAGING_BACKEND_DOMAIN: ${{ vars.STAGING_BACKEND_DOMAIN }}
STAGING_SSH_KEY: ${{ secrets.STAGING_SSH_KEY }}
REACT_APP_CUSTOMER_PORTAL_LINK: ${{ vars.REACT_APP_CUSTOMER_PORTAL_LINK }}
REACT_APP_CUSTOMER_PORTAL_LINK: ${{ github.ref_name == 'main' && vars.PROD_REACT_APP_CUSTOMER_PORTAL_LINK || vars.STAGING_REACT_APP_CUSTOMER_PORTAL_LINK }}
REACT_APP_API_URL: ${{ github.ref_name == 'main' && vars.PROD_REACT_APP_API_URL || vars.STAGING_REACT_APP_API_URL }}
steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# fastagency.ai
# FastAgency
Hey 🧙‍♂️! This is a sneak peek at my product's evolving homepage. Get ready for an amazing launch soon!
3 changes: 2 additions & 1 deletion app/src/client/components/AppNavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ 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';

Expand Down Expand Up @@ -55,7 +56,7 @@ export default function AppNavBar() {
{/* <ul className='flex justify-center items-center gap-2 sm:gap-4'>
<DarkModeSwitcher />
</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'>
<div className='flex items-center duration-300 ease-in-out text-airt-font-base hover:text-airt-secondary dark:text-white'>
Expand Down
1 change: 1 addition & 0 deletions app/src/client/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export default function Footer() {
<a
href={item.href}
className='text-sm leading-6 text-airt-font-base hover:text-airt-font-base dark:text-white'
target={`${item.name === 'airt' ? '_blank' : '_self'}`}
>
{item.name}
</a>
Expand Down
18 changes: 4 additions & 14 deletions app/src/client/components/LoadingComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,12 @@ const commonMessageStyles = {

const MessageIcon = () => (
<svg
className='animate-spin -ml-1 mr-3 h-5 w-5 text-captn-dark-blue'
className='animate-spin -ml-1 mr-3 h-5 w-5 text-airt-font-base'
xmlns='http://www.w3.org/2000/svg'
fill='none'
viewBox='0 0 24 24'
>
<circle
className='opacity-25'
cx='12'
cy='12'
r='10'
stroke='currentColor'
strokeWidth='4'
></circle>
<circle className='opacity-25' cx='12' cy='12' r='10' stroke='currentColor' strokeWidth='4'></circle>
<path
className='opacity-75'
fill='currentColor'
Expand All @@ -39,15 +32,12 @@ const MessageIcon = () => (
export default function LoadingComponent() {
return (
<div style={wrapperStyles}>
<div
className='bg-captn-light-cream text-captn-dark-blue'
style={commonMessageStyles}
>
<div className='text-airt-font-base' style={commonMessageStyles}>
<div className='relative rounded-xl overflow-auto p-8'>
<div className='flex items-center justify-center'>
<button
type='button'
className='inline-flex items-center px-4 py-2 leading-6 text-sm shadow rounded-md transition ease-in-out duration-150 cursor-not-allowed border border-captn-dark-blue'
className='inline-flex items-center px-4 py-2 leading-6 text-sm shadow rounded-md transition ease-in-out duration-150 cursor-not-allowed border border-airt-font-base'
disabled
>
<MessageIcon /> Loading...
Expand Down
2 changes: 1 addition & 1 deletion app/src/client/components/UserActionButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const UserActionButton: React.FC<UserActionButtonProps> = ({ user, renderGoToCha
return (
<Link
to='/signup'
className={`rounded-md px-3.5 py-2.5 text-sm ${themeClass} hover:bg-opacity-85 shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600`}
className={`rounded-md px-3.5 pt-2 pb-2.5 text-sm ${themeClass} hover:bg-opacity-85 shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600`}
>
Create an account
</Link>
Expand Down
2 changes: 1 addition & 1 deletion app/src/client/landing-page/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default function LandingPage() {
<div className='mx-auto max-w-8xl px-6 lg:px-8'>
<div className='lg:mb-18 mx-auto max-w-5xl text-center'>
<h1 className='text-4xl font-rubik text-airt-font-base sm:text-6xl dark:text-white'>
FastAgency.ai: A framework for building <span className='italic'>multi-agent </span> AI services.
FastAgency: A framework for building <span className='italic'>multi-agent </span> AI services.
</h1>
<p className='mt-6 mx-auto max-w-2xl text-lg leading-8 text-airt-font-base dark:text-white'>
Quickly build scalable SaaS solutions using our powerful, multi-agent AI framework that streamlines
Expand Down
8 changes: 4 additions & 4 deletions app/src/client/landing-page/contentSections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const features = [
{
name: 'Build with Your Own APIs: Integrate Seamlessly with Custom Agent Design',
description:
'Integrate your existing systems seamlessly by defining agents with your own REST APIs. FastAgency.ai allows you to craft bespoke agents tailored to your specific business processes, enabling a personalized approach to AI-driven solutions. This flexibility ensures that you can create highly specialized services that address unique challenges effectively.',
'Integrate your existing systems seamlessly by defining agents with your own REST APIs. FastAgency allows you to craft bespoke agents tailored to your specific business processes, enabling a personalized approach to AI-driven solutions. This flexibility ensures that you can create highly specialized services that address unique challenges effectively.',
icon: '⚙️', //'🤝',
href: '',
},
Expand All @@ -25,14 +25,14 @@ export const features = [
{
name: 'Launch Faster Than Ever: Accelerate Time-to-Market with Rapid Deployment',
description:
"Accelerate your time-to-market with FastAgency.ai's streamlined deployment process. Our framework is designed for speed, allowing you to move from concept to launch in record time. This rapid deployment capability ensures that you can quickly adapt to market changes and gain a competitive edge.",
"Accelerate your time-to-market with FastAgency's streamlined deployment process. Our framework is designed for speed, allowing you to move from concept to launch in record time. This rapid deployment capability ensures that you can quickly adapt to market changes and gain a competitive edge.",
icon: '⚡',
href: '',
},
{
name: 'Start Collecting Revenue in Just a Week with Rapid Monetization',
description:
'Dive into the market swiftly with FastAgency.ai. Our platform enables you to go from setup to sales within a week, allowing you to start generating revenue almost immediately. This rapid monetization feature is designed to give businesses a significant head start, accelerating the return on investment and enabling you to capitalize on AI-driven opportunities faster than ever.',
'Dive into the market swiftly with FastAgency. Our platform enables you to go from setup to sales within a week, allowing you to start generating revenue almost immediately. This rapid monetization feature is designed to give businesses a significant head start, accelerating the return on investment and enabling you to capitalize on AI-driven opportunities faster than ever.',
icon: '💸',
href: '',
},
Expand Down Expand Up @@ -75,7 +75,7 @@ export const footerNavigation = {
// { name: 'Blog', href: BLOG_URL },
// ],
company: [
{ name: 'About', href: 'https://airt.ai/' },
{ name: 'airt', href: 'https://airt.ai/' },
{ name: 'Privacy', href: '/privacy' },
{ name: 'Terms of Service', href: '/toc' },
],
Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy_backend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ check_variable "BACKEND_DOMAIN"
check_variable "PORT"
check_variable "DATABASE_URL"
check_variable "WASP_WEB_CLIENT_URL"
check_variable "WASP_SERVER_URL"
check_variable "JWT_SECRET"
check_variable "STRIPE_KEY"
check_variable "PRO_SUBSCRIPTION_PRICE_ID"
check_variable "STRIPE_WEBHOOK_SECRET"
check_variable "GOOGLE_CLIENT_ID"
check_variable "GOOGLE_CLIENT_SECRET"
check_variable "WASP_SERVER_URL"



Expand Down

0 comments on commit 3dc720e

Please sign in to comment.