Move email provider settings to Integrasi tab and fix database schema

- Move Mailketing API configuration from NotifikasiTab to IntegrasiTab
- Remove email provider settings from NotifikasiTab, add info card
- Update IntegrasiTab to save email settings to notification_settings table
- Add test email functionality to Integrasi tab
- Fix database schema compatibility with new email settings
- Remove GitHub remote, keep only Gitea remote
- Clean up unused imports and variables

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
dwindown
2025-12-22 19:13:01 +07:00
parent 7f918374f4
commit 3c902aaef5
5 changed files with 324 additions and 235 deletions

40
deploy-edge-functions.sh Executable file
View File

@@ -0,0 +1,40 @@
#!/bin/bash
# Configuration
SUPABASE_URL="https://lovable.backoffice.biz.id"
SERVICE_ROLE_KEY="$SUPABASE_ACCESS_TOKEN"
# Function to deploy edge function
deploy_function() {
local func_name=$1
echo "Deploying $func_name..."
# Read the function content
if [ -f "supabase/functions/$func_name/index.ts" ]; then
FUNCTION_CONTENT=$(cat "supabase/functions/$func_name/index.ts")
# Create the function via API
curl -X POST "$SUPABASE_URL/rest/v1/functions" \
-H "Authorization: Bearer $SERVICE_ROLE_KEY" \
-H "apikey: $SERVICE_ROLE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"name\": \"$func_name\",
\"verify_jwt\": $(cat supabase/config.toml | grep -A 1 "\\[functions.$func_name\\]" | grep verify_jwt | awk '{print $3}')
}"
echo "Function $func_name created/updated"
else
echo "Function $func_name not found"
fi
}
# Deploy all functions
deploy_function "pakasir-webhook"
deploy_function "send-test-email"
deploy_function "create-meet-link"
deploy_function "send-consultation-reminder"
deploy_function "send-notification"
deploy_function "daily-reminders"
echo "Deployment complete!"