**Major Features Added:** - **Inline Reply System**: Replace compose screen with inline reply boxes - **Thread Navigation**: Parent/child navigation with jump functionality - **Chain Flow UI**: Reply counts, expand/collapse animations, visual hierarchy - **Enhanced Animations**: Smooth transitions, hover effects, micro-interactions **Frontend Changes:** - **ThreadedCommentWidget**: Complete rewrite with animations and navigation - **ThreadNode Model**: Added parent references and descendant counting - **ThreadedConversationScreen**: Integrated navigation handlers - **PostDetailScreen**: Replaced with threaded conversation view - **ComposeScreen**: Added reply indicators and context - **PostActions**: Fixed visibility checks for chain buttons **Backend Changes:** - **API Route**: Added /posts/:id/thread endpoint - **Post Repository**: Include allow_chain and visibility fields in feed - **Thread Handler**: Support for fetching post chains **UI/UX Improvements:** - **Reply Context**: Clear indication when replying to specific posts - **Character Counting**: 500 character limit with live counter - **Visual Hierarchy**: Depth-based indentation and styling - **Smooth Animations**: SizeTransition, FadeTransition, hover states - **Chain Navigation**: Parent/child buttons with visual feedback **Technical Enhancements:** - **Animation Controllers**: Proper lifecycle management - **State Management**: Clean separation of concerns - **Navigation Callbacks**: Reusable navigation system - **Error Handling**: Graceful fallbacks and user feedback This creates a Reddit-style threaded conversation experience with smooth animations, inline replies, and intuitive navigation between posts in a chain.
63 lines
1.7 KiB
PowerShell
63 lines
1.7 KiB
PowerShell
# Deploy all Edge Functions to Supabase
|
|
# Run this after updating supabase-js version
|
|
|
|
Write-Host "=== Deploying All Edge Functions ===" -ForegroundColor Cyan
|
|
Write-Host ""
|
|
Write-Host "This will deploy all functions with --no-verify-jwt (default for this script)" -ForegroundColor Yellow
|
|
Write-Host ""
|
|
|
|
$functions = @(
|
|
"appreciate",
|
|
"block",
|
|
"deactivate-account",
|
|
"delete-account",
|
|
"feed-personal",
|
|
"feed-sojorn",
|
|
"follow",
|
|
"manage-post",
|
|
"notifications",
|
|
"profile",
|
|
"profile-posts",
|
|
"publish-comment",
|
|
"publish-post",
|
|
"push-notification",
|
|
"report",
|
|
"save",
|
|
"search",
|
|
"sign-media",
|
|
"signup",
|
|
"tone-check",
|
|
"trending",
|
|
"upload-image"
|
|
)
|
|
|
|
$totalFunctions = $functions.Count
|
|
$currentFunction = 0
|
|
$noVerifyJwt = "--no-verify-jwt"
|
|
|
|
foreach ($func in $functions) {
|
|
$currentFunction++
|
|
Write-Host "[$currentFunction/$totalFunctions] Deploying $func..." -ForegroundColor Yellow
|
|
|
|
try {
|
|
supabase functions deploy $func $noVerifyJwt 2>&1 | Out-Null
|
|
if ($LASTEXITCODE -eq 0) {
|
|
Write-Host " OK $func deployed successfully" -ForegroundColor Green
|
|
} else {
|
|
Write-Host " FAILED to deploy $func" -ForegroundColor Red
|
|
}
|
|
}
|
|
catch {
|
|
Write-Host " ERROR deploying $func : $_" -ForegroundColor Red
|
|
}
|
|
}
|
|
|
|
Write-Host ""
|
|
Write-Host "=== Deployment Complete ===" -ForegroundColor Cyan
|
|
Write-Host ""
|
|
Write-Host "Next steps:" -ForegroundColor Yellow
|
|
Write-Host "1. Restart your Flutter app" -ForegroundColor Yellow
|
|
Write-Host "2. Sign in again" -ForegroundColor Yellow
|
|
Write-Host "3. The JWT 401 errors should be gone!" -ForegroundColor Green
|
|
Write-Host ""
|