Skip to content

Commit

Permalink
fix: missing commit
Browse files Browse the repository at this point in the history
  • Loading branch information
isaaclindenman committed Jan 15, 2024
1 parent 2879ef2 commit 719753b
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 27 deletions.
16 changes: 8 additions & 8 deletions frontend/public/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,23 +192,23 @@
"invalidNameErrorMessage": "Name must be unique"
},
"landingPage": {
"benefitsPrivacyDescription": "We don't save any of your users' data. We act as a pure pipeline between your users' device and the AI models.",
"benefitsPrivacyTitle": "0% of Your Users Data Saved. ",
"benefitsScalabilityDescription": "Integrate in minutes, scale to millions. BaseMind allows you to focus on your product, not your infrastructure.",
"benefitsPrivacyDescription": "We don't save any of your users' data. We act as a pure pipeline between your users' devices and the AI models.",
"benefitsPrivacyTitle": "None of Your Users Data Saved. ",
"benefitsScalabilityDescription": "BaseMind allows you to focus on your product, not your infrastructure. Ready for scale from day 1.",
"benefitsScalabilityTitle": "Scalable Infrastructure. ",
"benefitsSpeedDescription": "Built with Golang and GRPC, BaseMind delivers exceptional speed, outperforming traditional backends with swift response times and scalable performance.",
"benefitsSpeedDescription": "Built with Golang and GRPC, BaseMind outperforms traditional backends with swift response times and scalable performance.",
"benefitsSpeedTitle": "Lightning Speed. ",
"better": "better",
"ctaSectionSubtitle": "Sign-up to our free beta, No credit card required.",
"ctaSectionTitle": "Your AI journey starts here.",
"faqACostToStart": "Starting with BaseMind is free, and no credit card is required. We provide initial credits worth a dollar for AI model usage, which typically lasts for hundreds to thousands of calls. For production use, we offer customized packages that scale with your needs and fit every stage of your AI journey.",
"faqADoYouSaveMyUserData": "No, we don't store any of your user data or requests. Privacy is a priority, so rest assured, 0% of your data is saved on our servers.",
"faqACostToStart": "Starting with BaseMind is free and no credit card is required. We provide initial credits for AI model usage, which typically lasts for hundreds of calls. For production use, we offer customized packages that scale with your needs and fit every stage of your AI journey.",
"faqADoYouSaveMyUserData": "No, privacy and security is paramount for us. We therefore dont save any of your users' data on our system.",
"faqAFasterThanBackend": "Yes, our system, built with Golang and GRPC, is much faster than a typical custom backend. Plus, our systems can scale with your needs, ensuring efficiency as your app grows.",
"faqAHelpWithSDK": "Definitely! Just contact us and we'll guide you through the implementation process.",
"faqAIsItSecure": "Yes, it's secure. With our SDK, storing the key in your app is safe thanks to GRPC encryption. Plus, even if someone accesses the key, they can only use the prompts you configured.",
"faqAIsItSecure": "Yes, it's secure. With our SDK, storing the key in your app is safe. Plus, even if someone accesses the key, they can only use the prompts you configured.",
"faqANeedOpenAIKey": "No, an OpenAI key isn't necessary. Just sign up, create a key for your app, and manage all AI model billing through BaseMind without exposing your OpenAI key.",
"faqQCostToStart": "How much does it cost, and do I need a credit card to start using BaseMind?",
"faqQDoYouSaveMyUserData": "Do you save my user data or requests?",
"faqQDoYouSaveMyUserData": "Do you save my users' data?",
"faqQFasterThanBackend": "Are you faster than a custom backend?",
"faqQHelpWithSDK": "Can you help me implement the BaseMind SDK?",
"faqQIsItSecure": "Is it secure to store the BaseMind key in my mobile app?",
Expand Down
25 changes: 11 additions & 14 deletions frontend/src/app/[locale]/page.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,17 @@ describe('Landing Page', () => {
);
});
});
it('should render all sections', () => {
const sections = [
'static-site-header',
'landing-page-hero',
'landing-page-features',
'landing-page-benefits',
'landing-page-pricing',
'landing-page-faq',
'landing-page-cta',
'static-site-footer',
];
it.each([
'static-site-header',
'landing-page-hero',
'landing-page-features',
'landing-page-benefits',
'landing-page-pricing',
'landing-page-faq',
'landing-page-cta',
'static-site-footer',
])('should render section %s', (sectionId) => {
render(<LandingPage params={{ locale: 'en' }} />);
sections.forEach((section) => {
expect(screen.getByTestId(section)).toBeInTheDocument();
});
expect(screen.getByTestId(sectionId)).toBeInTheDocument();
});
});
2 changes: 1 addition & 1 deletion frontend/src/components/static-site/features-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export function FeatureSection() {
<div className="marketing-card md:col-span-6 lg:col-span-5 max-h-min">
<ModelsCard />
</div>
<div className="marketing-card md:col-span-6 lg:col-span-7 card-side lg:flex-row">
<div className="marketing-card md:col-span-6 lg:col-span-7 lg:card-side lg:flex-row">
<PromptManagementCard />
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/components/static-site/nav-auction-icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { Book, Discord, Github, Telephone } from 'react-bootstrap-icons';

import { Navigation } from '@/constants';
import { ExternalNavigation } from '@/constants';
import { useAnalytics } from '@/hooks/use-analytics';
import { getEnv } from '@/utils/env';

Expand All @@ -15,12 +15,12 @@ export const NavAuctionIconsList = [
{
icon: <Github />,
name: 'github-button',
url: 'https://github.com/orgs/basemind-ai/repositories',
url: ExternalNavigation.Github,
},
{
icon: <Book />,
name: 'docs-button',
url: Navigation.Docs,
url: ExternalNavigation.Docs,
},
{
icon: <Telephone />,
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/static-site/pricing-card.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Navigation } from '@/constants';

describe('PricingCard Tests', () => {
global.open = vi.fn();

it('clicking on cta should send analytic event', async () => {
render(
<PricingCard
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/constants/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export enum Navigation {
Billing = '/en/projects/:projectId/billing',
ConfigCreateWizard = '/en/projects/:projectId/applications/:applicationId/config-create-wizard',
CreateProject = '/en/projects/create',
Docs = 'https://docs.basemind.ai/',
PrivacyPolicy = '/en/privacy-policy',
ProjectDetail = '/en/projects/:projectId',
Projects = '/en/projects',
Expand All @@ -15,6 +14,11 @@ export enum Navigation {
TOS = '/en/terms-of-service',
Testing = '/en/projects/:projectId/testing',
}

export enum ExternalNavigation {
Docs = 'https://docs.basemind.ai/',
Github = 'https://github.com/orgs/basemind-ai/repositories',
}
export const SUPPORT_EMAIL = 'support@basemind.ai';

export enum PromptConfigPageTab {
Expand Down

0 comments on commit 719753b

Please sign in to comment.