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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<p align="center">
<a href="https://www.apache.org/licenses/LICENSE-2.0"><img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="License: Apache-2.0"></a>
<a href="https://discord.gg/Hr4UWYEcTT"><img src="https://img.shields.io/badge/Discord-Join%20Server-7289DA?logo=discord&logoColor=white" alt="Discord"></a>
<a href="https://x.com/simstudioai"><img src="https://img.shields.io/twitter/follow/simstudioai?style=social" alt="Twitter"></a>
<a href="https://x.com/simdotai"><img src="https://img.shields.io/twitter/follow/simstudioai?style=social" alt="Twitter"></a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntax: The Twitter follow parameter should match the href URL. Update follow/simstudioai to follow/simdotai to match the new handle.

Suggested change
<a href="https://x.com/simdotai"><img src="https://img.shields.io/twitter/follow/simstudioai?style=social" alt="Twitter"></a>
<a href="https://x.com/simdotai"><img src="https://img.shields.io/twitter/follow/simdotai?style=social" alt="Twitter"></a>

<a href="https://github.com/simstudioai/sim/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs welcome"></a>
<a href="https://docs.sim.ai"><img src="https://img.shields.io/badge/Docs-visit%20documentation-blue.svg" alt="Documentation"></a>
</p>
Expand Down
4 changes: 2 additions & 2 deletions apps/sim/app/(landing)/components/sections/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function Footer() {
<DiscordIcon className='h-9 w-9 fill-[#9E91AA] hover:fill-[#bdaecb] md:h-10 md:w-10' />
</Link>
<Link
href={'https://x.com/simstudioai'}
href={'https://x.com/simdotai'}
target='_blank'
rel='noopener noreferrer'
className='text-2xl transition-all duration-500'
Expand Down Expand Up @@ -349,7 +349,7 @@ function Footer() {
<DiscordIcon className='h-9 w-9 fill-[#9E91AA] hover:fill-[#bdaecb] md:h-10 md:w-10' />
</Link>
<Link
href={'https://x.com/simstudioai'}
href={'https://x.com/simdotai'}
target='_blank'
rel='noopener noreferrer'
className='text-2xl transition-all duration-500'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function DocumentTagEntry({

// Get available tag names and check for case-insensitive duplicates
const usedTagNames = new Set(
rows.map((row) => row.cells.tagName?.toLowerCase()).filter((name) => name && name.trim())
rows.map((row) => row.cells.tagName?.toLowerCase()).filter((name) => name?.trim())
)

const availableTagDefinitions = tagDefinitions.filter(
Expand Down Expand Up @@ -226,8 +226,8 @@ export function DocumentTagEntry({
const renderHeader = () => (
<thead>
<tr className='border-b'>
<th className='px-4 py-2 text-center font-medium text-sm border-r'>Tag Name</th>
<th className='px-4 py-2 text-center font-medium text-sm border-r'>Type</th>
<th className='border-r px-4 py-2 text-center font-medium text-sm'>Tag Name</th>
<th className='border-r px-4 py-2 text-center font-medium text-sm'>Type</th>
<th className='px-4 py-2 text-center font-medium text-sm'>Value</th>
</tr>
</thead>
Expand All @@ -243,7 +243,7 @@ export function DocumentTagEntry({
}

return (
<td className='relative p-1 border-r'>
<td className='relative border-r p-1'>
<div className='relative w-full'>
<Input
value={cellValue}
Expand All @@ -254,15 +254,15 @@ export function DocumentTagEntry({
className={cn(isDuplicate && 'border-red-500 bg-red-50')}
/>
{showDropdown && availableTagDefinitions.length > 0 && (
<div className='absolute z-50 w-full mt-1 bg-popover border border-border rounded-md shadow-md max-h-60 overflow-auto'>
<div className='absolute z-50 mt-1 max-h-60 w-full overflow-auto rounded-md border border-border bg-popover shadow-md'>
{availableTagDefinitions
.filter((tagDef) =>
tagDef.displayName.toLowerCase().includes(cellValue.toLowerCase())
)
.map((tagDef) => (
<div
key={tagDef.id}
className='px-3 py-2 text-sm cursor-pointer hover:bg-accent hover:text-accent-foreground'
className='cursor-pointer px-3 py-2 text-sm hover:bg-accent hover:text-accent-foreground'
onMouseDown={() => {
handleCellChange(rowIndex, 'tagName', tagDef.displayName)
setShowDropdown(false)
Expand All @@ -289,7 +289,7 @@ export function DocumentTagEntry({
const isReadOnly = !!existingTag

return (
<td className='p-1 border-r'>
<td className='border-r p-1'>
<Select
value={cellValue}
onValueChange={(value) => handleCellChange(rowIndex, 'type', value)}
Expand Down Expand Up @@ -381,14 +381,14 @@ export function DocumentTagEntry({

{/* Add Row Button */}
{!isPreview && !disabled && (
<div className='flex flex-col items-center mt-3 gap-2'>
<div className='mt-3 flex flex-col items-center gap-2'>
<Button variant='outline' size='sm' onClick={handleAddRow} disabled={!canAddMoreTags}>
<Plus className='h-3 w-3 mr-1' />
<Plus className='mr-1 h-3 w-3' />
Add Tag
</Button>

{/* Tag slots usage indicator */}
<div className='text-xs text-muted-foreground text-center'>
<div className='text-center text-muted-foreground text-xs'>
{tagDefinitions.length + newTagsBeingCreated} of {MAX_TAG_SLOTS} tag slots used
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion apps/sim/components/emails/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const EmailFooter = ({
<table cellPadding={0} cellSpacing={0} style={{ border: 0 }}>
<tr>
<td align='center' style={{ padding: '0 8px' }}>
<Link href='https://x.com/simstudioai' rel='noopener noreferrer'>
<Link href='https://x.com/simdotai' rel='noopener noreferrer'>
<Img src={getAssetUrl('static/x-icon.png')} width='24' height='24' alt='X' />
</Link>
</td>
Expand Down
1 change: 1 addition & 0 deletions apps/sim/lib/security/csp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export const cspDirectives: CSPDirectives = {
'https://vercel.com',
'https://*.vercel.app',
'wss://*.vercel.app',
'https://pro.ip-api.com',
],

// Google Picker and Drive integration
Expand Down
1 change: 0 additions & 1 deletion apps/sim/socket-server/database/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ async function handleBlockOperationTx(

logger.debug(`[SERVER] Adding block: ${payload.type} (${payload.id})`, {
isSubflowType: isSubflowBlockType(payload.type),
payload,
})

// Extract parentId and extent from payload.data if they exist there, otherwise from payload directly
Expand Down