Skip to content

Commit 46f84e8

Browse files
authored
feat(platform): new UI and templates (#639) (#693)
* improvement: control bar * improvement: debug flow * improvement: control bar hovers and skeleton loading * improvement: completed control bar * improvement: panel tab selector complete * refactor: deleted notifications and history dropdown * improvement: chat UI complete * fix: tab change on control bar run * improvement: finshed console (audio display not working) * fix: text wrapping in console content * improvement: audio UI * improvement: image display * feat: add input to console * improvement: code input and showing input on errors * feat: download chat and console * improvement: expandable panel and console visibility * improvement: empty state UI * improvement: finished variables * fix: image in console entry * improvement: sidebar and templates ui * feat: uploading and fetching templates * improvement: sidebar and control bar * improvement: templates * feat: templates done
1 parent b223e45 commit 46f84e8

File tree

114 files changed

+27683
-8086
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+27683
-8086
lines changed

apps/sim/app/(auth)/components/social-login-buttons.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { GithubIcon, GoogleIcon } from '@/components/icons'
55
import { Button } from '@/components/ui/button'
66
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip'
77
import { client } from '@/lib/auth-client'
8-
import { useNotificationStore } from '@/stores/notifications/store'
98

109
interface SocialLoginButtonsProps {
1110
githubAvailable: boolean
@@ -22,7 +21,6 @@ export function SocialLoginButtons({
2221
}: SocialLoginButtonsProps) {
2322
const [isGithubLoading, setIsGithubLoading] = useState(false)
2423
const [isGoogleLoading, setIsGoogleLoading] = useState(false)
25-
const { addNotification } = useNotificationStore()
2624
const [mounted, setMounted] = useState(false)
2725

2826
// Set mounted state to true on client-side
@@ -57,8 +55,6 @@ export function SocialLoginButtons({
5755
} else if (err.message?.includes('rate limit')) {
5856
errorMessage = 'Too many attempts. Please try again later.'
5957
}
60-
61-
addNotification('error', errorMessage, null)
6258
} finally {
6359
setIsGithubLoading(false)
6460
}
@@ -89,8 +85,6 @@ export function SocialLoginButtons({
8985
} else if (err.message?.includes('rate limit')) {
9086
errorMessage = 'Too many attempts. Please try again later.'
9187
}
92-
93-
addNotification('error', errorMessage, null)
9488
} finally {
9589
setIsGoogleLoading(false)
9690
}

apps/sim/app/(auth)/layout.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import Image from 'next/image'
44
import Link from 'next/link'
55
import { GridPattern } from '../(landing)/components/grid-pattern'
6-
import { NotificationList } from '../workspace/[workspaceId]/w/[workflowId]/components/notifications/notifications'
76

87
export default function AuthLayout({ children }: { children: React.ReactNode }) {
98
return (
@@ -31,11 +30,6 @@ export default function AuthLayout({ children }: { children: React.ReactNode })
3130
<div className='relative z-10 flex flex-1 items-center justify-center px-4 pb-6'>
3231
<div className='w-full max-w-md'>{children}</div>
3332
</div>
34-
35-
{/* Notifications */}
36-
<div className='fixed right-4 bottom-4 z-50'>
37-
<NotificationList />
38-
</div>
3933
</main>
4034
)
4135
}

apps/sim/app/(auth)/verify/use-verification.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { useRouter, useSearchParams } from 'next/navigation'
55
import { client } from '@/lib/auth-client'
66
import { env, isTruthy } from '@/lib/env'
77
import { createLogger } from '@/lib/logs/console-logger'
8-
import { useNotificationStore } from '@/stores/notifications/store'
98

109
const logger = createLogger('useVerification')
1110

@@ -35,7 +34,6 @@ export function useVerification({
3534
}: UseVerificationParams): UseVerificationReturn {
3635
const router = useRouter()
3736
const searchParams = useSearchParams()
38-
const { addNotification } = useNotificationStore()
3937
const [otp, setOtp] = useState('')
4038
const [email, setEmail] = useState('')
4139
const [isLoading, setIsLoading] = useState(false)
@@ -46,13 +44,6 @@ export function useVerification({
4644
const [redirectUrl, setRedirectUrl] = useState<string | null>(null)
4745
const [isInviteFlow, setIsInviteFlow] = useState(false)
4846

49-
// Debug notification store
50-
useEffect(() => {
51-
logger.info('Notification store state:', {
52-
addNotification: !!addNotification,
53-
})
54-
}, [addNotification])
55-
5647
useEffect(() => {
5748
if (typeof window !== 'undefined') {
5849
// Get stored email

apps/sim/app/api/marketplace/[id]/info/route.ts

Lines changed: 0 additions & 56 deletions
This file was deleted.

apps/sim/app/api/marketplace/[id]/unpublish/route.ts

Lines changed: 0 additions & 108 deletions
This file was deleted.

apps/sim/app/api/marketplace/[id]/view/route.ts

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)