Refactor to generic ERP base
Remove influencer-specific features (campaigns, TikTok, gifts, shadow ledger, contracts, briefings) and consolidate into a clean ERP foundation with core bookkeeping, invoicing, receipts, tax reporting, and calendar functionality. Reorganize database migrations into a clean numbered sequence. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
a25d10a528
commit
0aecf5b41c
@@ -332,39 +332,6 @@ export function CalendarFeedSettings() {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center justify-between">
|
||||
<div className="space-y-0.5">
|
||||
<Label htmlFor="include-campaigns">Samarbeten</Label>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
Leveransdatum och deadlines
|
||||
</p>
|
||||
</div>
|
||||
<Switch
|
||||
id="include-campaigns"
|
||||
checked={feed.include_campaigns}
|
||||
onCheckedChange={(checked) =>
|
||||
updateFeed('include_campaigns', checked)
|
||||
}
|
||||
disabled={isSaving}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center justify-between">
|
||||
<div className="space-y-0.5">
|
||||
<Label htmlFor="include-exclusivity">Exklusivitetsperioder</Label>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
Visar när du har exklusivitetsavtal
|
||||
</p>
|
||||
</div>
|
||||
<Switch
|
||||
id="include-exclusivity"
|
||||
checked={feed.include_exclusivity}
|
||||
onCheckedChange={(checked) =>
|
||||
updateFeed('include_exclusivity', checked)
|
||||
}
|
||||
disabled={isSaving}
|
||||
/>
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</div>
|
||||
|
||||
@@ -66,7 +66,6 @@ export function NotificationSettings({ onSettingsChange }: NotificationSettingsP
|
||||
user_id: user.id,
|
||||
tax_deadlines_enabled: true,
|
||||
invoice_reminders_enabled: true,
|
||||
campaign_deadlines_enabled: true,
|
||||
push_enabled: true,
|
||||
email_enabled: true,
|
||||
quiet_start: '21:00',
|
||||
@@ -290,22 +289,6 @@ export function NotificationSettings({ onSettingsChange }: NotificationSettingsP
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center justify-between">
|
||||
<div className="space-y-0.5">
|
||||
<Label htmlFor="campaign-deadlines">Samarbetsdeadlines</Label>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
Leveranser och andra samarbetsdatum
|
||||
</p>
|
||||
</div>
|
||||
<Switch
|
||||
id="campaign-deadlines"
|
||||
checked={settings.campaign_deadlines_enabled}
|
||||
onCheckedChange={(checked) =>
|
||||
updateSetting('campaign_deadlines_enabled', checked)
|
||||
}
|
||||
disabled={isSaving}
|
||||
/>
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user