Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export function ApiKeys({ onOpenChange }: ApiKeysProps) {
strokeWidth={2}
/>
<Input
placeholder='Search API keys...'
placeholder='Search Sim keys...'
value={searchTerm}
onChange={(e) => setSearchTerm(e.target.value)}
className='h-auto flex-1 border-0 bg-transparent p-0 font-base leading-none placeholder:text-[var(--text-tertiary)] focus-visible:ring-0 focus-visible:ring-offset-0'
Expand Down Expand Up @@ -195,7 +195,7 @@ export function ApiKeys({ onOpenChange }: ApiKeysProps) {
</div>
{workspaceKeys.length === 0 ? (
<div className='text-[13px] text-[var(--text-muted)]'>
No workspace API keys yet
No workspace Sim keys yet
</div>
) : (
workspaceKeys.map((key) => (
Expand Down Expand Up @@ -301,7 +301,7 @@ export function ApiKeys({ onOpenChange }: ApiKeysProps) {
</div>
{isConflict && (
<div className='text-[12px] text-[var(--text-error)] leading-tight'>
Workspace API key with the same name overrides this. Rename your
Workspace Sim key with the same name overrides this. Rename your
personal key to use it.
</div>
)}
Expand All @@ -317,7 +317,7 @@ export function ApiKeys({ onOpenChange }: ApiKeysProps) {
filteredWorkspaceKeys.length === 0 &&
(personalKeys.length > 0 || workspaceKeys.length > 0) && (
<div className='py-[16px] text-center text-[13px] text-[var(--text-muted)]'>
No API keys found matching "{searchTerm}"
No Sim keys found matching "{searchTerm}"
</div>
)}
</>
Expand All @@ -331,7 +331,7 @@ export function ApiKeys({ onOpenChange }: ApiKeysProps) {
<div className='mt-auto flex items-center justify-between'>
<div className='flex items-center gap-[8px]'>
<span className='font-medium text-[13px] text-[var(--text-secondary)]'>
Allow personal API keys
Allow personal Sim keys
</span>
<Tooltip.Root>
<Tooltip.Trigger asChild>
Expand Down Expand Up @@ -383,7 +383,7 @@ export function ApiKeys({ onOpenChange }: ApiKeysProps) {
{/* Delete Confirmation Dialog */}
<Modal open={showDeleteDialog} onOpenChange={setShowDeleteDialog}>
<ModalContent size='sm'>
<ModalHeader>Delete API key</ModalHeader>
<ModalHeader>Delete Sim key</ModalHeader>
<ModalBody>
<p className='text-[12px] text-[var(--text-secondary)]'>
Deleting{' '}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export function CreateApiKeyModal({
if (isDuplicate) {
setCreateError(
keyType === 'workspace'
? `A workspace API key named "${trimmedName}" already exists. Please choose a different name.`
: `A personal API key named "${trimmedName}" already exists. Please choose a different name.`
? `A workspace Sim key named "${trimmedName}" already exists. Please choose a different name.`
: `A personal Sim key named "${trimmedName}" already exists. Please choose a different name.`
)
return
}
Expand All @@ -86,11 +86,11 @@ export function CreateApiKeyModal({
} catch (error: unknown) {
logger.error('API key creation failed:', { error })
const errorMessage =
error instanceof Error ? error.message : 'Failed to create API key. Please try again.'
error instanceof Error ? error.message : 'Failed to create Sim key. Please try again.'
if (errorMessage.toLowerCase().includes('already exists')) {
setCreateError(errorMessage)
} else {
setCreateError('Failed to create API key. Please check your connection and try again.')
setCreateError('Failed to create Sim key. Please check your connection and try again.')
}
}
}
Expand All @@ -113,7 +113,7 @@ export function CreateApiKeyModal({
{/* Create API Key Dialog */}
<Modal open={open} onOpenChange={onOpenChange}>
<ModalContent size='sm'>
<ModalHeader>Create new API key</ModalHeader>
<ModalHeader>Create new Sim key</ModalHeader>
<ModalBody>
<p className='text-[12px] text-[var(--text-secondary)]'>
{keyType === 'workspace'
Expand All @@ -125,7 +125,7 @@ export function CreateApiKeyModal({
{canManageWorkspaceKeys && (
<div className='flex flex-col gap-[8px]'>
<p className='font-medium text-[13px] text-[var(--text-secondary)]'>
API Key Type
Sim Key Type
</p>
<ButtonGroup
value={keyType}
Expand All @@ -143,7 +143,7 @@ export function CreateApiKeyModal({
)}
<div className='flex flex-col gap-[8px]'>
<p className='font-medium text-[13px] text-[var(--text-secondary)]'>
Enter a name for your API key to help you identify it later.
Enter a name for your Sim key to help you identify it later.
</p>
{/* Hidden decoy fields to prevent browser autofill */}
<input
Expand Down Expand Up @@ -216,10 +216,10 @@ export function CreateApiKeyModal({
}}
>
<ModalContent size='sm'>
<ModalHeader>Your API key has been created</ModalHeader>
<ModalHeader>Your Sim key has been created</ModalHeader>
<ModalBody>
<p className='text-[12px] text-[var(--text-secondary)]'>
This is the only time you will see your API key.{' '}
This is the only time you will see your Sim key.{' '}
<span className='font-semibold text-[var(--text-primary)]'>
Copy it now and store it securely.
</span>
Expand Down
Loading