fix(bugs): fixed rb2b csp, fixed overly-verbose logs, fixed x URLs (#828)

Co-authored-by: waleedlatif <waleedlatif@waleedlatifs-MacBook-Pro.local>
This commit is contained in:
Waleed Latif
2025-07-30 16:45:53 -07:00
committed by GitHub
parent 1b929c72a5
commit 12bb0b4589
6 changed files with 15 additions and 15 deletions

View File

@@ -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>
<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>

View File

@@ -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'
@@ -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'

View File

@@ -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(
@@ -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>
@@ -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}
@@ -254,7 +254,7 @@ 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())
@@ -262,7 +262,7 @@ export function DocumentTagEntry({
.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)
@@ -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)}
@@ -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>

View File

@@ -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>

View File

@@ -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

View File

@@ -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