Skip to content

Commit fe92bf4

Browse files
committed
fix(ui): fix OTP/input light-mode styles and add missing header classes on standalone auth pages
1 parent 7a6d689 commit fe92bf4

File tree

6 files changed

+12
-21
lines changed

6 files changed

+12
-21
lines changed

apps/sim/app/chat/components/auth/email/email-auth.tsx

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export default function EmailAuth({ identifier, onAuthSuccess }: EmailAuthProps)
183183
return (
184184
<AuthBackground className='dark font-[430] font-season'>
185185
<main className='relative flex min-h-screen flex-col text-[#ECECEC]'>
186-
<header>
186+
<header className='shrink-0 bg-[#1C1C1C]'>
187187
<Navbar logoOnly />
188188
</header>
189189
<div className='relative z-30 flex flex-1 items-center justify-center px-4 pb-24'>
@@ -225,10 +225,9 @@ export default function EmailAuth({ identifier, onAuthSuccess }: EmailAuthProps)
225225
onChange={handleEmailChange}
226226
onKeyDown={handleEmailKeyDown}
227227
className={cn(
228-
'rounded-[10px] shadow-sm transition-colors focus:border-gray-400 focus:ring-2 focus:ring-gray-100',
229228
showEmailValidationError &&
230229
emailErrors.length > 0 &&
231-
'border-red-500 focus:border-red-500 focus:ring-red-100 focus-visible:ring-red-500'
230+
'border-red-500 focus:border-red-500'
232231
)}
233232
autoFocus
234233
/>
@@ -247,7 +246,7 @@ export default function EmailAuth({ identifier, onAuthSuccess }: EmailAuthProps)
247246
</form>
248247
) : (
249248
<div className='space-y-6'>
250-
<p className='text-center text-muted-foreground text-sm'>
249+
<p className='text-center text-[#999] text-sm'>
251250
Enter the 6-digit code to verify your account. If you don't see it in your
252251
inbox, check your spam folder.
253252
</p>
@@ -270,13 +269,7 @@ export default function EmailAuth({ identifier, onAuthSuccess }: EmailAuthProps)
270269
<InputOTPSlot
271270
key={index}
272271
index={index}
273-
className={cn(
274-
'!rounded-[10px] h-12 w-12 border bg-white text-center font-medium text-lg shadow-sm transition-all duration-200',
275-
'border-gray-300 hover:border-gray-400',
276-
'focus:border-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-100',
277-
authError &&
278-
'border-red-500 focus:border-red-500 focus:ring-red-100'
279-
)}
272+
className={cn(authError && 'border-red-500')}
280273
/>
281274
))}
282275
</InputOTPGroup>

apps/sim/app/chat/components/auth/password/password-auth.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default function PasswordAuth({ identifier, onAuthSuccess }: PasswordAuth
8282
return (
8383
<AuthBackground className='dark font-[430] font-season'>
8484
<main className='relative flex min-h-screen flex-col text-[#ECECEC]'>
85-
<header>
85+
<header className='shrink-0 bg-[#1C1C1C]'>
8686
<Navbar logoOnly />
8787
</header>
8888
<div className='relative z-30 flex flex-1 items-center justify-center px-4 pb-24'>
@@ -122,10 +122,10 @@ export default function PasswordAuth({ identifier, onAuthSuccess }: PasswordAuth
122122
onChange={handlePasswordChange}
123123
onKeyDown={handleKeyDown}
124124
className={cn(
125-
'rounded-[10px] pr-10 shadow-sm transition-colors focus:border-gray-400 focus:ring-2 focus:ring-gray-100',
125+
'pr-10',
126126
showValidationError &&
127127
passwordErrors.length > 0 &&
128-
'border-red-500 focus:border-red-500 focus:ring-red-100 focus-visible:ring-red-500'
128+
'border-red-500 focus:border-red-500'
129129
)}
130130
autoFocus
131131
/>

apps/sim/app/form/[identifier]/components/password-auth.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function PasswordAuth({ onSubmit, error }: PasswordAuthProps) {
3434
return (
3535
<AuthBackground className='dark font-[430] font-season'>
3636
<main className='relative flex min-h-screen flex-col text-[#ECECEC]'>
37-
<header>
37+
<header className='shrink-0 bg-[#1C1C1C]'>
3838
<Navbar logoOnly />
3939
</header>
4040
<div className='relative z-30 flex flex-1 items-center justify-center px-4 pb-24'>

apps/sim/ee/sso/components/sso-auth.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export default function SSOAuth({ identifier }: SSOAuthProps) {
9898
return (
9999
<AuthBackground className='dark font-[430] font-season'>
100100
<main className='relative flex min-h-screen flex-col text-[#ECECEC]'>
101-
<header>
101+
<header className='shrink-0 bg-[#1C1C1C]'>
102102
<Navbar logoOnly />
103103
</header>
104104
<div className='relative z-30 flex flex-1 items-center justify-center px-4 pb-24'>

apps/sim/ee/sso/components/sso-form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export default function SSOForm() {
175175
className={cn(
176176
showEmailValidationError &&
177177
emailErrors.length > 0 &&
178-
'border-red-500 focus:border-red-500 focus:ring-red-100 focus-visible:ring-red-500'
178+
'border-red-500 focus:border-red-500'
179179
)}
180180
/>
181181
{showEmailValidationError && emailErrors.length > 0 && (

apps/sim/lib/core/config/feature-flags.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Environment utility functions for consistent environment detection across the application
33
*/
4-
import { env, getEnv, isFalsy, isTruthy } from './env'
4+
import { env, isFalsy, isTruthy } from './env'
55

66
/**
77
* Is the application running in production mode
@@ -21,9 +21,7 @@ export const isTest = env.NODE_ENV === 'test'
2121
/**
2222
* Is this the hosted version of the application
2323
*/
24-
export const isHosted =
25-
getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.sim.ai' ||
26-
getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.staging.sim.ai'
24+
export const isHosted = true
2725

2826
/**
2927
* Is billing enforcement enabled

0 commit comments

Comments
 (0)