diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 5f51aca438..40d1324323 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -374,7 +374,7 @@ In addition, you will need to update the registries: Add your block to the blocks registry (`/apps/sim/blocks/registry.ts`): ```typescript:/apps/sim/blocks/registry.ts - import { PineconeBlock } from './blocks/pinecone' + import { PineconeBlock } from '@/blocks/blocks/pinecone' // Registry of all available blocks export const registry: Record = { diff --git a/apps/docs/components/ui/block-info-card.tsx b/apps/docs/components/ui/block-info-card.tsx index b9d034898f..6474f24acc 100644 --- a/apps/docs/components/ui/block-info-card.tsx +++ b/apps/docs/components/ui/block-info-card.tsx @@ -1,7 +1,7 @@ 'use client' import type * as React from 'react' -import { blockTypeToIconMap } from './icon-mapping' +import { blockTypeToIconMap } from '@/components/ui/icon-mapping' interface BlockInfoCardProps { type: string diff --git a/apps/docs/components/ui/image.tsx b/apps/docs/components/ui/image.tsx index 88864af923..6cf9f2d478 100644 --- a/apps/docs/components/ui/image.tsx +++ b/apps/docs/components/ui/image.tsx @@ -2,8 +2,8 @@ import { useState } from 'react' import NextImage, { type ImageProps as NextImageProps } from 'next/image' +import { Lightbox } from '@/components/ui/lightbox' import { cn } from '@/lib/utils' -import { Lightbox } from './lightbox' interface ImageProps extends Omit { className?: string diff --git a/apps/sim/app/(auth)/components/auth-background.tsx b/apps/sim/app/(auth)/components/auth-background.tsx index 0f522c521d..ec12774a19 100644 --- a/apps/sim/app/(auth)/components/auth-background.tsx +++ b/apps/sim/app/(auth)/components/auth-background.tsx @@ -1,5 +1,5 @@ import { cn } from '@/lib/utils' -import AuthBackgroundSVG from './auth-background-svg' +import AuthBackgroundSVG from '@/app/(auth)/components/auth-background-svg' type AuthBackgroundProps = { className?: string diff --git a/apps/sim/app/(auth)/components/social-login-buttons.tsx b/apps/sim/app/(auth)/components/social-login-buttons.tsx index 12efe9a6af..19d2a8cb5c 100644 --- a/apps/sim/app/(auth)/components/social-login-buttons.tsx +++ b/apps/sim/app/(auth)/components/social-login-buttons.tsx @@ -4,7 +4,7 @@ import { type ReactNode, useEffect, useState } from 'react' import { GithubIcon, GoogleIcon } from '@/components/icons' import { Button } from '@/components/ui/button' import { client } from '@/lib/auth-client' -import { inter } from '@/app/fonts/inter/inter' +import { inter } from '@/app/_styles/fonts/inter/inter' interface SocialLoginButtonsProps { githubAvailable: boolean diff --git a/apps/sim/app/(auth)/layout.tsx b/apps/sim/app/(auth)/layout.tsx index 3a8131337f..aaa76e0bf1 100644 --- a/apps/sim/app/(auth)/layout.tsx +++ b/apps/sim/app/(auth)/layout.tsx @@ -1,8 +1,8 @@ 'use client' import { useEffect } from 'react' +import AuthBackground from '@/app/(auth)/components/auth-background' import Nav from '@/app/(landing)/components/nav/nav' -import AuthBackground from './components/auth-background' // Helper to detect if a color is dark function isColorDark(hexColor: string): boolean { diff --git a/apps/sim/app/(auth)/login/login-form.tsx b/apps/sim/app/(auth)/login/login-form.tsx index b37ae78647..37a948f4f9 100644 --- a/apps/sim/app/(auth)/login/login-form.tsx +++ b/apps/sim/app/(auth)/login/login-form.tsx @@ -20,10 +20,10 @@ import { getEnv, isFalsy, isTruthy } from '@/lib/env' import { createLogger } from '@/lib/logs/console/logger' import { getBaseUrl } from '@/lib/urls/utils' import { cn } from '@/lib/utils' +import { inter } from '@/app/_styles/fonts/inter/inter' +import { soehne } from '@/app/_styles/fonts/soehne/soehne' import { SocialLoginButtons } from '@/app/(auth)/components/social-login-buttons' import { SSOLoginButton } from '@/app/(auth)/components/sso-login-button' -import { inter } from '@/app/fonts/inter/inter' -import { soehne } from '@/app/fonts/soehne/soehne' const logger = createLogger('LoginForm') diff --git a/apps/sim/app/(auth)/reset-password/page.tsx b/apps/sim/app/(auth)/reset-password/page.tsx index f70c372887..e1d2112645 100644 --- a/apps/sim/app/(auth)/reset-password/page.tsx +++ b/apps/sim/app/(auth)/reset-password/page.tsx @@ -4,9 +4,9 @@ import { Suspense, useEffect, useState } from 'react' import Link from 'next/link' import { useRouter, useSearchParams } from 'next/navigation' import { createLogger } from '@/lib/logs/console/logger' +import { inter } from '@/app/_styles/fonts/inter/inter' +import { soehne } from '@/app/_styles/fonts/soehne/soehne' import { SetNewPasswordForm } from '@/app/(auth)/reset-password/reset-password-form' -import { inter } from '@/app/fonts/inter/inter' -import { soehne } from '@/app/fonts/soehne/soehne' const logger = createLogger('ResetPasswordPage') diff --git a/apps/sim/app/(auth)/reset-password/reset-password-form.tsx b/apps/sim/app/(auth)/reset-password/reset-password-form.tsx index 8d22e54838..5c8a30e842 100644 --- a/apps/sim/app/(auth)/reset-password/reset-password-form.tsx +++ b/apps/sim/app/(auth)/reset-password/reset-password-form.tsx @@ -6,7 +6,7 @@ import { Button } from '@/components/ui/button' import { Input } from '@/components/ui/input' import { Label } from '@/components/ui/label' import { cn } from '@/lib/utils' -import { inter } from '@/app/fonts/inter/inter' +import { inter } from '@/app/_styles/fonts/inter/inter' interface RequestResetFormProps { email: string diff --git a/apps/sim/app/(auth)/signup/signup-form.tsx b/apps/sim/app/(auth)/signup/signup-form.tsx index 4dbc4cb0ab..c908d006a9 100644 --- a/apps/sim/app/(auth)/signup/signup-form.tsx +++ b/apps/sim/app/(auth)/signup/signup-form.tsx @@ -12,10 +12,10 @@ import { quickValidateEmail } from '@/lib/email/validation' import { getEnv, isFalsy, isTruthy } from '@/lib/env' import { createLogger } from '@/lib/logs/console/logger' import { cn } from '@/lib/utils' +import { inter } from '@/app/_styles/fonts/inter/inter' +import { soehne } from '@/app/_styles/fonts/soehne/soehne' import { SocialLoginButtons } from '@/app/(auth)/components/social-login-buttons' import { SSOLoginButton } from '@/app/(auth)/components/sso-login-button' -import { inter } from '@/app/fonts/inter/inter' -import { soehne } from '@/app/fonts/soehne/soehne' const logger = createLogger('SignupForm') diff --git a/apps/sim/app/(auth)/sso/page.tsx b/apps/sim/app/(auth)/sso/page.tsx index 4ecb92f9bf..ba8b82d022 100644 --- a/apps/sim/app/(auth)/sso/page.tsx +++ b/apps/sim/app/(auth)/sso/page.tsx @@ -1,6 +1,6 @@ import { redirect } from 'next/navigation' import { getEnv, isTruthy } from '@/lib/env' -import SSOForm from './sso-form' +import SSOForm from '@/app/(auth)/sso/sso-form' export const dynamic = 'force-dynamic' diff --git a/apps/sim/app/(auth)/sso/sso-form.tsx b/apps/sim/app/(auth)/sso/sso-form.tsx index 1fb6544487..497a4d8c27 100644 --- a/apps/sim/app/(auth)/sso/sso-form.tsx +++ b/apps/sim/app/(auth)/sso/sso-form.tsx @@ -11,8 +11,8 @@ import { quickValidateEmail } from '@/lib/email/validation' import { env, isFalsy } from '@/lib/env' import { createLogger } from '@/lib/logs/console/logger' import { cn } from '@/lib/utils' -import { inter } from '@/app/fonts/inter/inter' -import { soehne } from '@/app/fonts/soehne/soehne' +import { inter } from '@/app/_styles/fonts/inter/inter' +import { soehne } from '@/app/_styles/fonts/soehne/soehne' const logger = createLogger('SSOForm') diff --git a/apps/sim/app/(auth)/verify/verify-content.tsx b/apps/sim/app/(auth)/verify/verify-content.tsx index 2ebdb4944f..d622f4257d 100644 --- a/apps/sim/app/(auth)/verify/verify-content.tsx +++ b/apps/sim/app/(auth)/verify/verify-content.tsx @@ -5,9 +5,9 @@ import { useRouter } from 'next/navigation' import { Button } from '@/components/ui/button' import { InputOTP, InputOTPGroup, InputOTPSlot } from '@/components/ui/input-otp' import { cn } from '@/lib/utils' +import { inter } from '@/app/_styles/fonts/inter/inter' +import { soehne } from '@/app/_styles/fonts/soehne/soehne' import { useVerification } from '@/app/(auth)/verify/use-verification' -import { inter } from '@/app/fonts/inter/inter' -import { soehne } from '@/app/fonts/soehne/soehne' interface VerifyContentProps { hasEmailService: boolean diff --git a/apps/sim/app/(landing)/careers/page.tsx b/apps/sim/app/(landing)/careers/page.tsx index 15640865bd..f531615264 100644 --- a/apps/sim/app/(landing)/careers/page.tsx +++ b/apps/sim/app/(landing)/careers/page.tsx @@ -17,9 +17,9 @@ import { quickValidateEmail } from '@/lib/email/validation' import { isHosted } from '@/lib/environment' import { createLogger } from '@/lib/logs/console/logger' import { cn } from '@/lib/utils' +import { soehne } from '@/app/_styles/fonts/soehne/soehne' import Footer from '@/app/(landing)/components/footer/footer' import Nav from '@/app/(landing)/components/nav/nav' -import { soehne } from '@/app/fonts/soehne/soehne' const logger = createLogger('CareersPage') diff --git a/apps/sim/app/(landing)/components/footer/footer.tsx b/apps/sim/app/(landing)/components/footer/footer.tsx index acccebef0e..11a7446175 100644 --- a/apps/sim/app/(landing)/components/footer/footer.tsx +++ b/apps/sim/app/(landing)/components/footer/footer.tsx @@ -7,7 +7,7 @@ import { LinkedInIcon, xIcon as XIcon, } from '@/components/icons' -import { inter } from '@/app/fonts/inter/inter' +import { inter } from '@/app/_styles/fonts/inter/inter' const blocks = [ 'Agent', diff --git a/apps/sim/app/(landing)/components/hero/components/index.ts b/apps/sim/app/(landing)/components/hero/components/index.ts index 067f6bdcb5..6bda3e756c 100644 --- a/apps/sim/app/(landing)/components/hero/components/index.ts +++ b/apps/sim/app/(landing)/components/hero/components/index.ts @@ -1,11 +1,9 @@ -// Hero Components export { IconButton } from './icon-button' export { DotPattern } from './landing-canvas/dot-pattern' export type { LandingBlockProps, LandingCardData, } from './landing-canvas/landing-block/landing-block' -// Landing Block export { LandingBlock } from './landing-canvas/landing-block/landing-block' export type { LoopNodeData } from './landing-canvas/landing-block/landing-loop-node' export { LandingLoopNode } from './landing-canvas/landing-block/landing-loop-node' @@ -22,9 +20,7 @@ export type { LandingManualBlock, LandingViewportApi, } from './landing-canvas/landing-canvas' -// Landing Canvas export { CARD_HEIGHT, CARD_WIDTH, LandingCanvas } from './landing-canvas/landing-canvas' -// Landing Edge export { LandingEdge } from './landing-canvas/landing-edge/landing-edge' export type { LandingFlowProps } from './landing-canvas/landing-flow' export { LandingFlow } from './landing-canvas/landing-flow' diff --git a/apps/sim/app/(landing)/components/hero/components/landing-canvas/landing-block/landing-block.tsx b/apps/sim/app/(landing)/components/hero/components/landing-canvas/landing-block/landing-block.tsx index eb6212cb8c..7233eeed30 100644 --- a/apps/sim/app/(landing)/components/hero/components/landing-canvas/landing-block/landing-block.tsx +++ b/apps/sim/app/(landing)/components/hero/components/landing-canvas/landing-block/landing-block.tsx @@ -1,6 +1,9 @@ import React from 'react' import { BookIcon } from 'lucide-react' -import { Tag, type TagProps } from './tag' +import { + Tag, + type TagProps, +} from '@/app/(landing)/components/hero/components/landing-canvas/landing-block/tag' /** * Data structure for a landing card component diff --git a/apps/sim/app/(landing)/components/hero/components/landing-canvas/landing-block/landing-loop-node.tsx b/apps/sim/app/(landing)/components/hero/components/landing-canvas/landing-block/landing-loop-node.tsx index 1cdcaa3b95..af5f19dc18 100644 --- a/apps/sim/app/(landing)/components/hero/components/landing-canvas/landing-block/landing-loop-node.tsx +++ b/apps/sim/app/(landing)/components/hero/components/landing-canvas/landing-block/landing-loop-node.tsx @@ -1,7 +1,7 @@ 'use client' import React from 'react' -import { LoopBlock } from './loop-block' +import { LoopBlock } from '@/app/(landing)/components/hero/components/landing-canvas/landing-block/loop-block' /** * Data structure for the loop node diff --git a/apps/sim/app/(landing)/components/hero/components/landing-canvas/landing-block/landing-node.tsx b/apps/sim/app/(landing)/components/hero/components/landing-canvas/landing-block/landing-node.tsx index 7ca7e4df3b..3ef3eb9878 100644 --- a/apps/sim/app/(landing)/components/hero/components/landing-canvas/landing-block/landing-node.tsx +++ b/apps/sim/app/(landing)/components/hero/components/landing-canvas/landing-block/landing-node.tsx @@ -2,7 +2,10 @@ import React from 'react' import { Handle, Position } from 'reactflow' -import { LandingBlock, type LandingCardData } from './landing-block' +import { + LandingBlock, + type LandingCardData, +} from '@/app/(landing)/components/hero/components/landing-canvas/landing-block/landing-block' /** * React Flow node component for the landing canvas diff --git a/apps/sim/app/(landing)/components/hero/components/landing-canvas/landing-canvas.tsx b/apps/sim/app/(landing)/components/hero/components/landing-canvas/landing-canvas.tsx index 1f7dad539d..0cb2f41e10 100644 --- a/apps/sim/app/(landing)/components/hero/components/landing-canvas/landing-canvas.tsx +++ b/apps/sim/app/(landing)/components/hero/components/landing-canvas/landing-canvas.tsx @@ -3,9 +3,9 @@ import React from 'react' import type { Edge, Node } from 'reactflow' import { ReactFlowProvider } from 'reactflow' -import { DotPattern } from './dot-pattern' -import type { LandingCardData } from './landing-block/landing-block' -import { LandingFlow } from './landing-flow' +import { DotPattern } from '@/app/(landing)/components/hero/components/landing-canvas/dot-pattern' +import type { LandingCardData } from '@/app/(landing)/components/hero/components/landing-canvas/landing-block/landing-block' +import { LandingFlow } from '@/app/(landing)/components/hero/components/landing-canvas/landing-flow' /** * Visual constants for landing node dimensions diff --git a/apps/sim/app/(landing)/components/hero/components/landing-canvas/landing-flow.tsx b/apps/sim/app/(landing)/components/hero/components/landing-canvas/landing-flow.tsx index 5f856f6eb6..c63cba043a 100644 --- a/apps/sim/app/(landing)/components/hero/components/landing-canvas/landing-flow.tsx +++ b/apps/sim/app/(landing)/components/hero/components/landing-canvas/landing-flow.tsx @@ -3,10 +3,13 @@ import React from 'react' import ReactFlow, { applyNodeChanges, type NodeChange, useReactFlow } from 'reactflow' import 'reactflow/dist/style.css' -import { LandingLoopNode } from './landing-block/landing-loop-node' -import { LandingNode } from './landing-block/landing-node' -import { CARD_WIDTH, type LandingCanvasProps } from './landing-canvas' -import { LandingEdge } from './landing-edge/landing-edge' +import { LandingLoopNode } from '@/app/(landing)/components/hero/components/landing-canvas/landing-block/landing-loop-node' +import { LandingNode } from '@/app/(landing)/components/hero/components/landing-canvas/landing-block/landing-node' +import { + CARD_WIDTH, + type LandingCanvasProps, +} from '@/app/(landing)/components/hero/components/landing-canvas/landing-canvas' +import { LandingEdge } from '@/app/(landing)/components/hero/components/landing-canvas/landing-edge/landing-edge' /** * Props for the LandingFlow component diff --git a/apps/sim/app/(landing)/components/hero/hero.tsx b/apps/sim/app/(landing)/components/hero/hero.tsx index 1b274ea33b..c925147e6f 100644 --- a/apps/sim/app/(landing)/components/hero/hero.tsx +++ b/apps/sim/app/(landing)/components/hero/hero.tsx @@ -33,7 +33,7 @@ import { SupabaseIcon, } from '@/components/icons' import { LandingPromptStorage } from '@/lib/browser-storage' -import { soehne } from '@/app/fonts/soehne/soehne' +import { soehne } from '@/app/_styles/fonts/soehne/soehne' import { CARD_WIDTH, IconButton, @@ -41,7 +41,7 @@ import { type LandingGroupData, type LandingManualBlock, type LandingViewportApi, -} from './components' +} from '@/app/(landing)/components/hero/components' /** * Service-specific template messages for the hero input diff --git a/apps/sim/app/(landing)/components/integrations/integrations.tsx b/apps/sim/app/(landing)/components/integrations/integrations.tsx index df29c8d975..5da1786bb2 100644 --- a/apps/sim/app/(landing)/components/integrations/integrations.tsx +++ b/apps/sim/app/(landing)/components/integrations/integrations.tsx @@ -1,5 +1,5 @@ import * as Icons from '@/components/icons' -import { inter } from '@/app/fonts/inter/inter' +import { inter } from '@/app/_styles/fonts/inter/inter' const modelProviderIcons = [ { icon: Icons.OpenAIIcon, label: 'OpenAI' }, diff --git a/apps/sim/app/(landing)/components/landing-pricing/landing-pricing.tsx b/apps/sim/app/(landing)/components/landing-pricing/landing-pricing.tsx index 647688f16e..012f5b6de7 100644 --- a/apps/sim/app/(landing)/components/landing-pricing/landing-pricing.tsx +++ b/apps/sim/app/(landing)/components/landing-pricing/landing-pricing.tsx @@ -14,7 +14,7 @@ import { import { useRouter } from 'next/navigation' import { createLogger } from '@/lib/logs/console/logger' import { cn } from '@/lib/utils' -import { inter } from '@/app/fonts/inter/inter' +import { inter } from '@/app/_styles/fonts/inter/inter' import { ENTERPRISE_PLAN_FEATURES, PRO_PLAN_FEATURES, diff --git a/apps/sim/app/(landing)/components/landing-templates/components/landing-template-preview.tsx b/apps/sim/app/(landing)/components/landing-templates/components/landing-template-preview.tsx index 287a6d060e..4acf9fbd52 100644 --- a/apps/sim/app/(landing)/components/landing-templates/components/landing-template-preview.tsx +++ b/apps/sim/app/(landing)/components/landing-templates/components/landing-template-preview.tsx @@ -1,4 +1,4 @@ -import { inter } from '@/app/fonts/inter/inter' +import { inter } from '@/app/_styles/fonts/inter/inter' interface LandingTemplatePreviewProps { previewImage: string diff --git a/apps/sim/app/(landing)/components/landing-templates/landing-templates.tsx b/apps/sim/app/(landing)/components/landing-templates/landing-templates.tsx index 91c047ea4e..343511b27f 100644 --- a/apps/sim/app/(landing)/components/landing-templates/landing-templates.tsx +++ b/apps/sim/app/(landing)/components/landing-templates/landing-templates.tsx @@ -1,7 +1,6 @@ -import { inter } from '@/app/fonts/inter/inter' -import LandingTemplatePreview from './components/landing-template-preview' +import { inter } from '@/app/_styles/fonts/inter/inter' +import LandingTemplatePreview from '@/app/(landing)/components/landing-templates/components/landing-template-preview' -// Mock data for templates const templates = [ { id: 1, diff --git a/apps/sim/app/(landing)/components/legal-layout.tsx b/apps/sim/app/(landing)/components/legal-layout.tsx index 203eaeb637..d817fd60f5 100644 --- a/apps/sim/app/(landing)/components/legal-layout.tsx +++ b/apps/sim/app/(landing)/components/legal-layout.tsx @@ -1,9 +1,9 @@ 'use client' import { isHosted } from '@/lib/environment' +import { soehne } from '@/app/_styles/fonts/soehne/soehne' import Footer from '@/app/(landing)/components/footer/footer' import Nav from '@/app/(landing)/components/nav/nav' -import { soehne } from '@/app/fonts/soehne/soehne' interface LegalLayoutProps { title: string diff --git a/apps/sim/app/(landing)/components/nav/nav.tsx b/apps/sim/app/(landing)/components/nav/nav.tsx index dbf722e488..cb5010a4ab 100644 --- a/apps/sim/app/(landing)/components/nav/nav.tsx +++ b/apps/sim/app/(landing)/components/nav/nav.tsx @@ -9,8 +9,8 @@ import { GithubIcon } from '@/components/icons' import { useBrandConfig } from '@/lib/branding/branding' import { isHosted } from '@/lib/environment' import { createLogger } from '@/lib/logs/console/logger' +import { soehne } from '@/app/_styles/fonts/soehne/soehne' import { getFormattedGitHubStars } from '@/app/(landing)/actions/github' -import { soehne } from '@/app/fonts/soehne/soehne' const logger = createLogger('nav') diff --git a/apps/sim/app/(landing)/components/structured-data.tsx b/apps/sim/app/(landing)/components/structured-data.tsx index e83f81e02d..5afc2caa57 100644 --- a/apps/sim/app/(landing)/components/structured-data.tsx +++ b/apps/sim/app/(landing)/components/structured-data.tsx @@ -38,7 +38,7 @@ export default function StructuredData() { url: 'https://sim.ai', name: 'Sim - AI Agent Workflow Builder', description: - 'Open-source AI agent workflow builder. 50,000+ developers build and deploy agentic workflows. SOC2 and HIPAA compliant.', + 'Open-source AI agent workflow builder. 60,000+ developers build and deploy agentic workflows. SOC2 and HIPAA compliant.', publisher: { '@id': 'https://sim.ai/#organization', }, @@ -98,7 +98,7 @@ export default function StructuredData() { '@id': 'https://sim.ai/#software', name: 'Sim - AI Agent Workflow Builder', description: - 'Open-source AI agent workflow builder used by 50,000+ developers. Build agentic workflows with visual drag-and-drop interface. SOC2 and HIPAA compliant. Integrate with 100+ apps.', + 'Open-source AI agent workflow builder used by 60,000+ developers. Build agentic workflows with visual drag-and-drop interface. SOC2 and HIPAA compliant. Integrate with 100+ apps.', applicationCategory: 'DeveloperApplication', applicationSubCategory: 'AI Development Tools', operatingSystem: 'Web, Windows, macOS, Linux', @@ -198,7 +198,7 @@ export default function StructuredData() { name: 'What is Sim?', acceptedAnswer: { '@type': 'Answer', - text: 'Sim is an open-source AI agent workflow builder used by 50,000+ developers at trail-blazing startups to Fortune 500 companies. It provides a visual drag-and-drop interface for building and deploying agentic workflows. Sim is SOC2 and HIPAA compliant.', + text: 'Sim is an open-source AI agent workflow builder used by 60,000+ developers at trail-blazing startups to Fortune 500 companies. It provides a visual drag-and-drop interface for building and deploying agentic workflows. Sim is SOC2 and HIPAA compliant.', }, }, { diff --git a/apps/sim/app/(landing)/components/testimonials/testimonials.tsx b/apps/sim/app/(landing)/components/testimonials/testimonials.tsx index 359924613d..3542e20332 100644 --- a/apps/sim/app/(landing)/components/testimonials/testimonials.tsx +++ b/apps/sim/app/(landing)/components/testimonials/testimonials.tsx @@ -2,7 +2,7 @@ import { useEffect, useState } from 'react' import Image from 'next/image' -import { inter } from '@/app/fonts/inter/inter' +import { inter } from '@/app/_styles/fonts/inter/inter' interface Testimonial { text: string diff --git a/apps/sim/app/(landing)/studio/[slug]/page.tsx b/apps/sim/app/(landing)/studio/[slug]/page.tsx index 85b8043bce..db5092b297 100644 --- a/apps/sim/app/(landing)/studio/[slug]/page.tsx +++ b/apps/sim/app/(landing)/studio/[slug]/page.tsx @@ -5,7 +5,7 @@ import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar' import { FAQ } from '@/lib/blog/faq' import { getAllPostMeta, getPostBySlug, getRelatedPosts } from '@/lib/blog/registry' import { buildArticleJsonLd, buildBreadcrumbJsonLd, buildPostMetadata } from '@/lib/blog/seo' -import { soehne } from '@/app/fonts/soehne/soehne' +import { soehne } from '@/app/_styles/fonts/soehne/soehne' export async function generateStaticParams() { const posts = await getAllPostMeta() diff --git a/apps/sim/app/(landing)/studio/authors/[id]/page.tsx b/apps/sim/app/(landing)/studio/authors/[id]/page.tsx index 0a6b0fe529..6a4f0c9b33 100644 --- a/apps/sim/app/(landing)/studio/authors/[id]/page.tsx +++ b/apps/sim/app/(landing)/studio/authors/[id]/page.tsx @@ -1,7 +1,7 @@ import Image from 'next/image' import Link from 'next/link' import { getAllPostMeta } from '@/lib/blog/registry' -import { soehne } from '@/app/fonts/soehne/soehne' +import { soehne } from '@/app/_styles/fonts/soehne/soehne' export const revalidate = 3600 diff --git a/apps/sim/app/(landing)/studio/page.tsx b/apps/sim/app/(landing)/studio/page.tsx index 4acd4d48b9..76c51fc83d 100644 --- a/apps/sim/app/(landing)/studio/page.tsx +++ b/apps/sim/app/(landing)/studio/page.tsx @@ -2,7 +2,7 @@ import Image from 'next/image' import Link from 'next/link' import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar' import { getAllPostMeta } from '@/lib/blog/registry' -import { soehne } from '@/app/fonts/soehne/soehne' +import { soehne } from '@/app/_styles/fonts/soehne/soehne' export const revalidate = 3600 diff --git a/apps/sim/app/hydration-error-handler.tsx b/apps/sim/app/_shell/hydration-error-handler.tsx similarity index 100% rename from apps/sim/app/hydration-error-handler.tsx rename to apps/sim/app/_shell/hydration-error-handler.tsx diff --git a/apps/sim/lib/posthog/provider.tsx b/apps/sim/app/_shell/providers/posthog-provider.tsx similarity index 96% rename from apps/sim/lib/posthog/provider.tsx rename to apps/sim/app/_shell/providers/posthog-provider.tsx index b2cc8c0619..01261cbeba 100644 --- a/apps/sim/lib/posthog/provider.tsx +++ b/apps/sim/app/_shell/providers/posthog-provider.tsx @@ -3,7 +3,7 @@ import { useEffect } from 'react' import posthog from 'posthog-js' import { PostHogProvider as PHProvider } from 'posthog-js/react' -import { getEnv, isTruthy } from '../env' +import { getEnv, isTruthy } from '../../../lib/env' export function PostHogProvider({ children }: { children: React.ReactNode }) { useEffect(() => { diff --git a/apps/sim/app/providers/query-client-provider.tsx b/apps/sim/app/_shell/providers/query-provider.tsx similarity index 100% rename from apps/sim/app/providers/query-client-provider.tsx rename to apps/sim/app/_shell/providers/query-provider.tsx diff --git a/apps/sim/lib/session/session-context.tsx b/apps/sim/app/_shell/providers/session-provider.tsx similarity index 100% rename from apps/sim/lib/session/session-context.tsx rename to apps/sim/app/_shell/providers/session-provider.tsx diff --git a/apps/sim/app/theme-provider.tsx b/apps/sim/app/_shell/providers/theme-provider.tsx similarity index 100% rename from apps/sim/app/theme-provider.tsx rename to apps/sim/app/_shell/providers/theme-provider.tsx diff --git a/apps/sim/app/zoom-prevention.tsx b/apps/sim/app/_shell/zoom-prevention.tsx similarity index 100% rename from apps/sim/app/zoom-prevention.tsx rename to apps/sim/app/_shell/zoom-prevention.tsx diff --git a/apps/sim/app/fonts/inter/inter.ts b/apps/sim/app/_styles/fonts/inter/inter.ts similarity index 100% rename from apps/sim/app/fonts/inter/inter.ts rename to apps/sim/app/_styles/fonts/inter/inter.ts diff --git a/apps/sim/app/fonts/season/SeasonSans-Bold.woff b/apps/sim/app/_styles/fonts/season/SeasonSans-Bold.woff similarity index 100% rename from apps/sim/app/fonts/season/SeasonSans-Bold.woff rename to apps/sim/app/_styles/fonts/season/SeasonSans-Bold.woff diff --git a/apps/sim/app/fonts/season/SeasonSans-Bold.woff2 b/apps/sim/app/_styles/fonts/season/SeasonSans-Bold.woff2 similarity index 100% rename from apps/sim/app/fonts/season/SeasonSans-Bold.woff2 rename to apps/sim/app/_styles/fonts/season/SeasonSans-Bold.woff2 diff --git a/apps/sim/app/fonts/season/SeasonSans-Heavy.woff b/apps/sim/app/_styles/fonts/season/SeasonSans-Heavy.woff similarity index 100% rename from apps/sim/app/fonts/season/SeasonSans-Heavy.woff rename to apps/sim/app/_styles/fonts/season/SeasonSans-Heavy.woff diff --git a/apps/sim/app/fonts/season/SeasonSans-Heavy.woff2 b/apps/sim/app/_styles/fonts/season/SeasonSans-Heavy.woff2 similarity index 100% rename from apps/sim/app/fonts/season/SeasonSans-Heavy.woff2 rename to apps/sim/app/_styles/fonts/season/SeasonSans-Heavy.woff2 diff --git a/apps/sim/app/fonts/season/SeasonSans-Light.woff b/apps/sim/app/_styles/fonts/season/SeasonSans-Light.woff similarity index 100% rename from apps/sim/app/fonts/season/SeasonSans-Light.woff rename to apps/sim/app/_styles/fonts/season/SeasonSans-Light.woff diff --git a/apps/sim/app/fonts/season/SeasonSans-Light.woff2 b/apps/sim/app/_styles/fonts/season/SeasonSans-Light.woff2 similarity index 100% rename from apps/sim/app/fonts/season/SeasonSans-Light.woff2 rename to apps/sim/app/_styles/fonts/season/SeasonSans-Light.woff2 diff --git a/apps/sim/app/fonts/season/SeasonSans-Medium.woff b/apps/sim/app/_styles/fonts/season/SeasonSans-Medium.woff similarity index 100% rename from apps/sim/app/fonts/season/SeasonSans-Medium.woff rename to apps/sim/app/_styles/fonts/season/SeasonSans-Medium.woff diff --git a/apps/sim/app/fonts/season/SeasonSans-Medium.woff2 b/apps/sim/app/_styles/fonts/season/SeasonSans-Medium.woff2 similarity index 100% rename from apps/sim/app/fonts/season/SeasonSans-Medium.woff2 rename to apps/sim/app/_styles/fonts/season/SeasonSans-Medium.woff2 diff --git a/apps/sim/app/fonts/season/SeasonSans-Regular.woff b/apps/sim/app/_styles/fonts/season/SeasonSans-Regular.woff similarity index 100% rename from apps/sim/app/fonts/season/SeasonSans-Regular.woff rename to apps/sim/app/_styles/fonts/season/SeasonSans-Regular.woff diff --git a/apps/sim/app/fonts/season/SeasonSans-Regular.woff2 b/apps/sim/app/_styles/fonts/season/SeasonSans-Regular.woff2 similarity index 100% rename from apps/sim/app/fonts/season/SeasonSans-Regular.woff2 rename to apps/sim/app/_styles/fonts/season/SeasonSans-Regular.woff2 diff --git a/apps/sim/app/fonts/season/SeasonSans-SemiBold.woff b/apps/sim/app/_styles/fonts/season/SeasonSans-SemiBold.woff similarity index 100% rename from apps/sim/app/fonts/season/SeasonSans-SemiBold.woff rename to apps/sim/app/_styles/fonts/season/SeasonSans-SemiBold.woff diff --git a/apps/sim/app/fonts/season/SeasonSans-SemiBold.woff2 b/apps/sim/app/_styles/fonts/season/SeasonSans-SemiBold.woff2 similarity index 100% rename from apps/sim/app/fonts/season/SeasonSans-SemiBold.woff2 rename to apps/sim/app/_styles/fonts/season/SeasonSans-SemiBold.woff2 diff --git a/apps/sim/app/fonts/season/SeasonSansUprightsVF.woff b/apps/sim/app/_styles/fonts/season/SeasonSansUprightsVF.woff similarity index 100% rename from apps/sim/app/fonts/season/SeasonSansUprightsVF.woff rename to apps/sim/app/_styles/fonts/season/SeasonSansUprightsVF.woff diff --git a/apps/sim/app/fonts/season/SeasonSansUprightsVF.woff2 b/apps/sim/app/_styles/fonts/season/SeasonSansUprightsVF.woff2 similarity index 100% rename from apps/sim/app/fonts/season/SeasonSansUprightsVF.woff2 rename to apps/sim/app/_styles/fonts/season/SeasonSansUprightsVF.woff2 diff --git a/apps/sim/app/fonts/season/season.ts b/apps/sim/app/_styles/fonts/season/season.ts similarity index 100% rename from apps/sim/app/fonts/season/season.ts rename to apps/sim/app/_styles/fonts/season/season.ts diff --git a/apps/sim/app/fonts/soehne/soehne-buch-kursiv.woff2 b/apps/sim/app/_styles/fonts/soehne/soehne-buch-kursiv.woff2 similarity index 100% rename from apps/sim/app/fonts/soehne/soehne-buch-kursiv.woff2 rename to apps/sim/app/_styles/fonts/soehne/soehne-buch-kursiv.woff2 diff --git a/apps/sim/app/fonts/soehne/soehne-buch.woff2 b/apps/sim/app/_styles/fonts/soehne/soehne-buch.woff2 similarity index 100% rename from apps/sim/app/fonts/soehne/soehne-buch.woff2 rename to apps/sim/app/_styles/fonts/soehne/soehne-buch.woff2 diff --git a/apps/sim/app/fonts/soehne/soehne-dreiviertelfett-kursiv.woff2 b/apps/sim/app/_styles/fonts/soehne/soehne-dreiviertelfett-kursiv.woff2 similarity index 100% rename from apps/sim/app/fonts/soehne/soehne-dreiviertelfett-kursiv.woff2 rename to apps/sim/app/_styles/fonts/soehne/soehne-dreiviertelfett-kursiv.woff2 diff --git a/apps/sim/app/fonts/soehne/soehne-dreiviertelfett.woff2 b/apps/sim/app/_styles/fonts/soehne/soehne-dreiviertelfett.woff2 similarity index 100% rename from apps/sim/app/fonts/soehne/soehne-dreiviertelfett.woff2 rename to apps/sim/app/_styles/fonts/soehne/soehne-dreiviertelfett.woff2 diff --git a/apps/sim/app/fonts/soehne/soehne-halbfett-kursiv.woff2 b/apps/sim/app/_styles/fonts/soehne/soehne-halbfett-kursiv.woff2 similarity index 100% rename from apps/sim/app/fonts/soehne/soehne-halbfett-kursiv.woff2 rename to apps/sim/app/_styles/fonts/soehne/soehne-halbfett-kursiv.woff2 diff --git a/apps/sim/app/fonts/soehne/soehne-halbfett.woff2 b/apps/sim/app/_styles/fonts/soehne/soehne-halbfett.woff2 similarity index 100% rename from apps/sim/app/fonts/soehne/soehne-halbfett.woff2 rename to apps/sim/app/_styles/fonts/soehne/soehne-halbfett.woff2 diff --git a/apps/sim/app/fonts/soehne/soehne-kraftig-kursiv.woff2 b/apps/sim/app/_styles/fonts/soehne/soehne-kraftig-kursiv.woff2 similarity index 100% rename from apps/sim/app/fonts/soehne/soehne-kraftig-kursiv.woff2 rename to apps/sim/app/_styles/fonts/soehne/soehne-kraftig-kursiv.woff2 diff --git a/apps/sim/app/fonts/soehne/soehne-kraftig.woff2 b/apps/sim/app/_styles/fonts/soehne/soehne-kraftig.woff2 similarity index 100% rename from apps/sim/app/fonts/soehne/soehne-kraftig.woff2 rename to apps/sim/app/_styles/fonts/soehne/soehne-kraftig.woff2 diff --git a/apps/sim/app/fonts/soehne/soehne-leicht-kursiv.woff2 b/apps/sim/app/_styles/fonts/soehne/soehne-leicht-kursiv.woff2 similarity index 100% rename from apps/sim/app/fonts/soehne/soehne-leicht-kursiv.woff2 rename to apps/sim/app/_styles/fonts/soehne/soehne-leicht-kursiv.woff2 diff --git a/apps/sim/app/fonts/soehne/soehne-leicht.woff2 b/apps/sim/app/_styles/fonts/soehne/soehne-leicht.woff2 similarity index 100% rename from apps/sim/app/fonts/soehne/soehne-leicht.woff2 rename to apps/sim/app/_styles/fonts/soehne/soehne-leicht.woff2 diff --git a/apps/sim/app/fonts/soehne/soehne.ts b/apps/sim/app/_styles/fonts/soehne/soehne.ts similarity index 100% rename from apps/sim/app/fonts/soehne/soehne.ts rename to apps/sim/app/_styles/fonts/soehne/soehne.ts diff --git a/apps/sim/app/globals.css b/apps/sim/app/_styles/globals.css similarity index 100% rename from apps/sim/app/globals.css rename to apps/sim/app/_styles/globals.css diff --git a/apps/sim/types/creator-profile.ts b/apps/sim/app/_types/creator-profile.ts similarity index 100% rename from apps/sim/types/creator-profile.ts rename to apps/sim/app/_types/creator-profile.ts diff --git a/apps/sim/app/api/creator-profiles/route.ts b/apps/sim/app/api/creator-profiles/route.ts index db0dfa63e2..f6f67ea3d5 100644 --- a/apps/sim/app/api/creator-profiles/route.ts +++ b/apps/sim/app/api/creator-profiles/route.ts @@ -7,7 +7,7 @@ import { z } from 'zod' import { getSession } from '@/lib/auth' import { createLogger } from '@/lib/logs/console/logger' import { generateRequestId } from '@/lib/utils' -import type { CreatorProfileDetails } from '@/types/creator-profile' +import type { CreatorProfileDetails } from '@/app/_types/creator-profile' const logger = createLogger('CreatorProfilesAPI') diff --git a/apps/sim/app/api/files/utils.test.ts b/apps/sim/app/api/files/utils.test.ts index b3deae47bd..a31c7ca42f 100644 --- a/apps/sim/app/api/files/utils.test.ts +++ b/apps/sim/app/api/files/utils.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from 'vitest' -import { createFileResponse, extractFilename, findLocalFile } from './utils' +import { createFileResponse, extractFilename, findLocalFile } from '@/app/api/files/utils' describe('extractFilename', () => { describe('legitimate file paths', () => { diff --git a/apps/sim/app/api/knowledge/search/route.ts b/apps/sim/app/api/knowledge/search/route.ts index 6f97c68e31..645ecd040c 100644 --- a/apps/sim/app/api/knowledge/search/route.ts +++ b/apps/sim/app/api/knowledge/search/route.ts @@ -6,8 +6,6 @@ import { createLogger } from '@/lib/logs/console/logger' import { estimateTokenCount } from '@/lib/tokenization/estimators' import { generateRequestId } from '@/lib/utils' import { getUserId } from '@/app/api/auth/oauth/utils' -import { checkKnowledgeBaseAccess } from '@/app/api/knowledge/utils' -import { calculateCost } from '@/providers/utils' import { generateSearchEmbedding, getDocumentNamesByIds, @@ -16,7 +14,9 @@ import { handleTagOnlySearch, handleVectorOnlySearch, type SearchResult, -} from './utils' +} from '@/app/api/knowledge/search/utils' +import { checkKnowledgeBaseAccess } from '@/app/api/knowledge/utils' +import { calculateCost } from '@/providers/utils' const logger = createLogger('VectorSearchAPI') diff --git a/apps/sim/app/api/knowledge/search/utils.test.ts b/apps/sim/app/api/knowledge/search/utils.test.ts index f3fae93ee2..c95a07fceb 100644 --- a/apps/sim/app/api/knowledge/search/utils.test.ts +++ b/apps/sim/app/api/knowledge/search/utils.test.ts @@ -42,7 +42,7 @@ import { handleTagAndVectorSearch, handleTagOnlySearch, handleVectorOnlySearch, -} from './utils' +} from '@/app/api/knowledge/search/utils' describe('Knowledge Search Utils', () => { beforeEach(() => { diff --git a/apps/sim/app/api/v1/middleware.ts b/apps/sim/app/api/v1/middleware.ts index ebf27a489b..32b31fb390 100644 --- a/apps/sim/app/api/v1/middleware.ts +++ b/apps/sim/app/api/v1/middleware.ts @@ -1,8 +1,8 @@ import { type NextRequest, NextResponse } from 'next/server' import { getHighestPrioritySubscription } from '@/lib/billing/core/subscription' import { createLogger } from '@/lib/logs/console/logger' +import { authenticateV1Request } from '@/app/api/v1/auth' import { RateLimiter } from '@/services/queue/RateLimiter' -import { authenticateV1Request } from './auth' const logger = createLogger('V1Middleware') const rateLimiter = new RateLimiter() diff --git a/apps/sim/app/api/workflows/route.ts b/apps/sim/app/api/workflows/route.ts index e7b603c7c3..d89af62d51 100644 --- a/apps/sim/app/api/workflows/route.ts +++ b/apps/sim/app/api/workflows/route.ts @@ -7,7 +7,7 @@ import { getSession } from '@/lib/auth' import { createLogger } from '@/lib/logs/console/logger' import { getUserEntityPermissions } from '@/lib/permissions/utils' import { generateRequestId } from '@/lib/utils' -import { verifyWorkspaceMembership } from './utils' +import { verifyWorkspaceMembership } from '@/app/api/workflows/utils' const logger = createLogger('WorkflowAPI') diff --git a/apps/sim/app/changelog/components/changelog-content.tsx b/apps/sim/app/changelog/components/changelog-content.tsx index 60390eedb2..36c817e7f1 100644 --- a/apps/sim/app/changelog/components/changelog-content.tsx +++ b/apps/sim/app/changelog/components/changelog-content.tsx @@ -1,8 +1,8 @@ import { BookOpen, Github, Rss } from 'lucide-react' import Link from 'next/link' -import { inter } from '@/app/fonts/inter/inter' -import { soehne } from '@/app/fonts/soehne/soehne' -import ChangelogList from './timeline-list' +import { inter } from '@/app/_styles/fonts/inter/inter' +import { soehne } from '@/app/_styles/fonts/soehne/soehne' +import ChangelogList from '@/app/changelog/components/timeline-list' export interface ChangelogEntry { tag: string diff --git a/apps/sim/app/changelog/components/timeline-list.tsx b/apps/sim/app/changelog/components/timeline-list.tsx index e73b3ff142..9e2b81a03a 100644 --- a/apps/sim/app/changelog/components/timeline-list.tsx +++ b/apps/sim/app/changelog/components/timeline-list.tsx @@ -3,9 +3,9 @@ import React from 'react' import ReactMarkdown from 'react-markdown' import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar' -import { inter } from '@/app/fonts/inter/inter' -import { soehne } from '@/app/fonts/soehne/soehne' -import type { ChangelogEntry } from './changelog-content' +import { inter } from '@/app/_styles/fonts/inter/inter' +import { soehne } from '@/app/_styles/fonts/soehne/soehne' +import type { ChangelogEntry } from '@/app/changelog/components/changelog-content' type Props = { initialEntries: ChangelogEntry[] } diff --git a/apps/sim/app/changelog/page.tsx b/apps/sim/app/changelog/page.tsx index 39dbfeaa79..c94b650667 100644 --- a/apps/sim/app/changelog/page.tsx +++ b/apps/sim/app/changelog/page.tsx @@ -1,5 +1,5 @@ import type { Metadata } from 'next' -import ChangelogContent from './components/changelog-content' +import ChangelogContent from '@/app/changelog/components/changelog-content' export const metadata: Metadata = { title: 'Changelog', diff --git a/apps/sim/app/chat/components/auth/email/email-auth.tsx b/apps/sim/app/chat/components/auth/email/email-auth.tsx index f16199bf2b..d8161e5b33 100644 --- a/apps/sim/app/chat/components/auth/email/email-auth.tsx +++ b/apps/sim/app/chat/components/auth/email/email-auth.tsx @@ -9,9 +9,9 @@ import { Label } from '@/components/ui/label' import { quickValidateEmail } from '@/lib/email/validation' import { createLogger } from '@/lib/logs/console/logger' import { cn } from '@/lib/utils' +import { inter } from '@/app/_styles/fonts/inter/inter' +import { soehne } from '@/app/_styles/fonts/soehne/soehne' import Nav from '@/app/(landing)/components/nav/nav' -import { inter } from '@/app/fonts/inter/inter' -import { soehne } from '@/app/fonts/soehne/soehne' const logger = createLogger('EmailAuth') diff --git a/apps/sim/app/chat/components/auth/password/password-auth.tsx b/apps/sim/app/chat/components/auth/password/password-auth.tsx index b82880e872..5820ceefcb 100644 --- a/apps/sim/app/chat/components/auth/password/password-auth.tsx +++ b/apps/sim/app/chat/components/auth/password/password-auth.tsx @@ -7,9 +7,9 @@ import { Input } from '@/components/ui/input' import { Label } from '@/components/ui/label' import { createLogger } from '@/lib/logs/console/logger' import { cn } from '@/lib/utils' +import { inter } from '@/app/_styles/fonts/inter/inter' +import { soehne } from '@/app/_styles/fonts/soehne/soehne' import Nav from '@/app/(landing)/components/nav/nav' -import { inter } from '@/app/fonts/inter/inter' -import { soehne } from '@/app/fonts/soehne/soehne' const logger = createLogger('PasswordAuth') diff --git a/apps/sim/app/chat/components/auth/sso/sso-auth.tsx b/apps/sim/app/chat/components/auth/sso/sso-auth.tsx index ad2bf5e97d..80da21f5d8 100644 --- a/apps/sim/app/chat/components/auth/sso/sso-auth.tsx +++ b/apps/sim/app/chat/components/auth/sso/sso-auth.tsx @@ -8,9 +8,9 @@ import { Label } from '@/components/ui/label' import { quickValidateEmail } from '@/lib/email/validation' import { createLogger } from '@/lib/logs/console/logger' import { cn } from '@/lib/utils' +import { inter } from '@/app/_styles/fonts/inter/inter' +import { soehne } from '@/app/_styles/fonts/soehne/soehne' import Nav from '@/app/(landing)/components/nav/nav' -import { inter } from '@/app/fonts/inter/inter' -import { soehne } from '@/app/fonts/soehne/soehne' const logger = createLogger('SSOAuth') diff --git a/apps/sim/app/chat/components/error-state/error-state.tsx b/apps/sim/app/chat/components/error-state/error-state.tsx index bc43f4c6a9..0f222beb00 100644 --- a/apps/sim/app/chat/components/error-state/error-state.tsx +++ b/apps/sim/app/chat/components/error-state/error-state.tsx @@ -4,9 +4,9 @@ import { useEffect, useState } from 'react' import { useRouter } from 'next/navigation' import { Button } from '@/components/ui/button' import { useBrandConfig } from '@/lib/branding/branding' +import { inter } from '@/app/_styles/fonts/inter/inter' +import { soehne } from '@/app/_styles/fonts/soehne/soehne' import Nav from '@/app/(landing)/components/nav/nav' -import { inter } from '@/app/fonts/inter/inter' -import { soehne } from '@/app/fonts/soehne/soehne' interface ChatErrorStateProps { error: string diff --git a/apps/sim/app/chat/components/header/header.tsx b/apps/sim/app/chat/components/header/header.tsx index 0f742f1e57..049421c7e4 100644 --- a/apps/sim/app/chat/components/header/header.tsx +++ b/apps/sim/app/chat/components/header/header.tsx @@ -4,7 +4,7 @@ import Image from 'next/image' import Link from 'next/link' import { GithubIcon } from '@/components/icons' import { useBrandConfig } from '@/lib/branding/branding' -import { inter } from '@/app/fonts/inter/inter' +import { inter } from '@/app/_styles/fonts/inter/inter' interface ChatHeaderProps { chatConfig: { diff --git a/apps/sim/app/chat/components/message/message.tsx b/apps/sim/app/chat/components/message/message.tsx index 7147688205..3955285e62 100644 --- a/apps/sim/app/chat/components/message/message.tsx +++ b/apps/sim/app/chat/components/message/message.tsx @@ -3,7 +3,7 @@ import { memo, useMemo, useState } from 'react' import { Check, Copy, File as FileIcon, FileText, Image as ImageIcon } from 'lucide-react' import { Tooltip } from '@/components/emcn' -import MarkdownRenderer from './components/markdown-renderer' +import MarkdownRenderer from '@/app/chat/components/message/components/markdown-renderer' export interface ChatAttachment { id: string diff --git a/apps/sim/app/fonts/temp/SeasonSansBold.otf b/apps/sim/app/fonts/temp/SeasonSansBold.otf deleted file mode 100644 index f728de699f..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansBold.otf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansBold.ttf b/apps/sim/app/fonts/temp/SeasonSansBold.ttf deleted file mode 100644 index af9f722f3c..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansBold.ttf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansBold.woff2 b/apps/sim/app/fonts/temp/SeasonSansBold.woff2 deleted file mode 100644 index b8d4759db8..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansBold.woff2 and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansBoldItalic.otf b/apps/sim/app/fonts/temp/SeasonSansBoldItalic.otf deleted file mode 100644 index 5bc78a9219..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansBoldItalic.otf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansBoldItalic.ttf b/apps/sim/app/fonts/temp/SeasonSansBoldItalic.ttf deleted file mode 100644 index 4eeb731bec..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansBoldItalic.ttf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansBoldItalic.woff2 b/apps/sim/app/fonts/temp/SeasonSansBoldItalic.woff2 deleted file mode 100644 index 43f7a79955..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansBoldItalic.woff2 and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansHeavy.otf b/apps/sim/app/fonts/temp/SeasonSansHeavy.otf deleted file mode 100644 index a2d96d4a02..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansHeavy.otf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansHeavy.ttf b/apps/sim/app/fonts/temp/SeasonSansHeavy.ttf deleted file mode 100644 index 94ef71c1ff..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansHeavy.ttf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansHeavy.woff2 b/apps/sim/app/fonts/temp/SeasonSansHeavy.woff2 deleted file mode 100644 index e645f7f1b3..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansHeavy.woff2 and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansHeavyItalic.otf b/apps/sim/app/fonts/temp/SeasonSansHeavyItalic.otf deleted file mode 100644 index 375dc1f893..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansHeavyItalic.otf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansHeavyItalic.ttf b/apps/sim/app/fonts/temp/SeasonSansHeavyItalic.ttf deleted file mode 100644 index db3e12f062..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansHeavyItalic.ttf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansHeavyItalic.woff2 b/apps/sim/app/fonts/temp/SeasonSansHeavyItalic.woff2 deleted file mode 100644 index cd29aaef7b..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansHeavyItalic.woff2 and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansLight.otf b/apps/sim/app/fonts/temp/SeasonSansLight.otf deleted file mode 100644 index 2836789c1a..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansLight.otf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansLight.ttf b/apps/sim/app/fonts/temp/SeasonSansLight.ttf deleted file mode 100644 index 5046aa88af..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansLight.ttf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansLight.woff2 b/apps/sim/app/fonts/temp/SeasonSansLight.woff2 deleted file mode 100644 index b2ad434fa1..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansLight.woff2 and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansLightItalic.otf b/apps/sim/app/fonts/temp/SeasonSansLightItalic.otf deleted file mode 100644 index 6d26d345d4..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansLightItalic.otf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansLightItalic.ttf b/apps/sim/app/fonts/temp/SeasonSansLightItalic.ttf deleted file mode 100644 index 23c7fcdded..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansLightItalic.ttf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansLightItalic.woff2 b/apps/sim/app/fonts/temp/SeasonSansLightItalic.woff2 deleted file mode 100644 index cb2deb9078..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansLightItalic.woff2 and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansMedium.otf b/apps/sim/app/fonts/temp/SeasonSansMedium.otf deleted file mode 100644 index 9555b305a2..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansMedium.otf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansMedium.ttf b/apps/sim/app/fonts/temp/SeasonSansMedium.ttf deleted file mode 100644 index aed9e5129d..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansMedium.ttf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansMedium.woff2 b/apps/sim/app/fonts/temp/SeasonSansMedium.woff2 deleted file mode 100644 index 29dd441672..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansMedium.woff2 and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansMediumItalic.otf b/apps/sim/app/fonts/temp/SeasonSansMediumItalic.otf deleted file mode 100644 index 9e87e7e9e4..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansMediumItalic.otf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansMediumItalic.ttf b/apps/sim/app/fonts/temp/SeasonSansMediumItalic.ttf deleted file mode 100644 index fb34ed6772..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansMediumItalic.ttf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansMediumItalic.woff2 b/apps/sim/app/fonts/temp/SeasonSansMediumItalic.woff2 deleted file mode 100644 index b4332ff0f3..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansMediumItalic.woff2 and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansRegular.otf b/apps/sim/app/fonts/temp/SeasonSansRegular.otf deleted file mode 100644 index fa903cc00d..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansRegular.otf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansRegular.ttf b/apps/sim/app/fonts/temp/SeasonSansRegular.ttf deleted file mode 100644 index 83f023bdc3..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansRegular.ttf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansRegular.woff2 b/apps/sim/app/fonts/temp/SeasonSansRegular.woff2 deleted file mode 100644 index 2e73573f09..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansRegular.woff2 and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansRegularItalic.otf b/apps/sim/app/fonts/temp/SeasonSansRegularItalic.otf deleted file mode 100644 index 7b1f5e5973..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansRegularItalic.otf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansRegularItalic.ttf b/apps/sim/app/fonts/temp/SeasonSansRegularItalic.ttf deleted file mode 100644 index a81ede3316..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansRegularItalic.ttf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansRegularItalic.woff2 b/apps/sim/app/fonts/temp/SeasonSansRegularItalic.woff2 deleted file mode 100644 index a00f6e5edb..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansRegularItalic.woff2 and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansSemiBold.otf b/apps/sim/app/fonts/temp/SeasonSansSemiBold.otf deleted file mode 100644 index cf33e9ec77..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansSemiBold.otf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansSemiBold.ttf b/apps/sim/app/fonts/temp/SeasonSansSemiBold.ttf deleted file mode 100644 index f0bf1af523..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansSemiBold.ttf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansSemiBold.woff2 b/apps/sim/app/fonts/temp/SeasonSansSemiBold.woff2 deleted file mode 100644 index e8d9743e98..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansSemiBold.woff2 and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansSemiBoldItalic.otf b/apps/sim/app/fonts/temp/SeasonSansSemiBoldItalic.otf deleted file mode 100644 index f1a777fa65..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansSemiBoldItalic.otf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansSemiBoldItalic.ttf b/apps/sim/app/fonts/temp/SeasonSansSemiBoldItalic.ttf deleted file mode 100644 index 1aa17431c7..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansSemiBoldItalic.ttf and /dev/null differ diff --git a/apps/sim/app/fonts/temp/SeasonSansSemiBoldItalic.woff2 b/apps/sim/app/fonts/temp/SeasonSansSemiBoldItalic.woff2 deleted file mode 100644 index c705f5050f..0000000000 Binary files a/apps/sim/app/fonts/temp/SeasonSansSemiBoldItalic.woff2 and /dev/null differ diff --git a/apps/sim/app/invite/components/status-card.tsx b/apps/sim/app/invite/components/status-card.tsx index 4a31a6b3fd..65a2a30dc3 100644 --- a/apps/sim/app/invite/components/status-card.tsx +++ b/apps/sim/app/invite/components/status-card.tsx @@ -14,8 +14,8 @@ import { import { useRouter } from 'next/navigation' import { Button } from '@/components/ui/button' import { useBrandConfig } from '@/lib/branding/branding' -import { inter } from '@/app/fonts/inter/inter' -import { soehne } from '@/app/fonts/soehne/soehne' +import { inter } from '@/app/_styles/fonts/inter/inter' +import { soehne } from '@/app/_styles/fonts/soehne/soehne' interface InviteStatusCardProps { type: 'login' | 'loading' | 'error' | 'success' | 'invitation' | 'warning' diff --git a/apps/sim/app/layout.tsx b/apps/sim/app/layout.tsx index 186f6837ea..bb40e8156f 100644 --- a/apps/sim/app/layout.tsx +++ b/apps/sim/app/layout.tsx @@ -3,16 +3,16 @@ import { PublicEnvScript } from 'next-runtime-env' import { BrandedLayout } from '@/components/branded-layout' import { generateThemeCSS } from '@/lib/branding/inject-theme' import { generateBrandedMetadata, generateStructuredData } from '@/lib/branding/metadata' -import { PostHogProvider } from '@/lib/posthog/provider' -import '@/app/globals.css' +import { PostHogProvider } from '@/app/_shell/providers/posthog-provider' +import '@/app/_styles/globals.css' import { OneDollarStats } from '@/components/analytics/onedollarstats' -import { SessionProvider } from '@/lib/session/session-context' -import { season } from '@/app/fonts/season/season' -import { HydrationErrorHandler } from '@/app/hydration-error-handler' -import { QueryProvider } from '@/app/providers/query-client-provider' -import { ThemeProvider } from '@/app/theme-provider' -import { ZoomPrevention } from '@/app/zoom-prevention' +import { HydrationErrorHandler } from '@/app/_shell/hydration-error-handler' +import { QueryProvider } from '@/app/_shell/providers/query-provider' +import { SessionProvider } from '@/app/_shell/providers/session-provider' +import { ThemeProvider } from '@/app/_shell/providers/theme-provider' +import { ZoomPrevention } from '@/app/_shell/zoom-prevention' +import { season } from '@/app/_styles/fonts/season/season' export const viewport: Viewport = { width: 'device-width', @@ -42,68 +42,56 @@ export default function RootLayout({ children }: { children: React.ReactNode }) }} /> - {/* Theme CSS Override */} - {themeCSS && ( -