Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.
PHP ai-agentsblueskyfacebookinstagramlaravellinkedinmastodonmcpmcp-serveropen-sourcerest-apiself-hostedsocial-mediasocial-media-managementsocial-media-schedulerthreadstiktokvuejsxyoutube
<?php
declare(strict_types=1);
test('the shared tokens match the design system', function () {
$styles = file_get_contents(resource_path('css/app.css'));
$buttons = file_get_contents(resource_path('js/components/ui/button/index.ts'));
expect($styles)
->toContain('--primary: #ddd6fe;')
->toContain('--primary-foreground: #292928;')
->toContain('--primary-hover: #c4b5fd;')
->toContain('--primary-strong: #6d28d9;')
->toContain('--primary-subtle: #ede9fe;')
->toContain('--primary-text: #6d28d9;')
->toContain('--ring: #7c3aed;')
->toContain('--sidebar-primary: #ddd6fe;')
->toContain('--success-subtle: #d9f1d1;')
->toContain('--success-text: #337046;')
->toContain('--color-primary-strong: var(--primary-strong);')
->toContain('--foreground: #292928;')
->toContain('--border: #eae8e5;')
->toContain('--border-strong: #dedcd9;')
->toContain('--sidebar: #f7f6f3;')
->toContain('--success: #4e975b;')
->toContain('--color-success: var(--success);')
->toContain('--destructive-text: #7f0f00;')
->toContain('--color-destructive-text: var(--destructive-text);')
->toContain('--critical: #ffb2a8;')
->toContain('--critical-hover: #ff8575;')
->toContain('--color-critical: var(--critical);')
->toContain("'Inter', ui-sans-serif")
->toContain("'Outfit', ui-sans-serif")
->toContain('--font-heading: var(--font-heading);')
->toContain('--radius: 0.5rem;')
->toContain('--text-sm: 14px;')
->toContain('--rating: #b45309;')
->toContain('--rating: #facc15;')
->toContain('--color-rating: var(--rating);');
expect($styles)->not->toContain('#fa5d19');
expect(file_get_contents(resource_path('views/app.blade.php')))
->toContain('family=Inter:[email protected]&family=Outfit:wght@400;500;600;700');
expect(file_get_contents(resource_path('js/components/ui/badge/index.ts')))
->toContain('bg-success-subtle text-success-text');
expect(file_get_contents(resource_path('js/components/ui/switch/Switch.vue')))
->toContain('data-[state=checked]:bg-primary-strong')
->not->toContain('bg-success');
expect(file_get_contents(resource_path('js/components/command-palette/CommandPaletteItem.vue')))
->toContain('bg-primary-subtle')
->not->toContain('success');
expect($buttons)
->toContain('bg-primary-strong text-primary-strong-foreground hover:bg-primary-text-hover')
->toContain('dark:bg-primary dark:text-primary-foreground dark:hover:bg-primary-hover')
->toContain('bg-critical text-foreground hover:bg-critical-hover')
->toContain('"default": "h-8 px-3"')
->toContain('"lg": "h-10 gap-2 px-4"');
});
test('post pages use the full-width design while retaining the composer', function () {
$posts = file_get_contents(resource_path('js/pages/publish/Index.vue'));
$tabs = file_get_contents(resource_path('js/components/publish/PublishTabs.vue'));
$layout = file_get_contents(resource_path('js/layouts/app/AppSidebarLayout.vue'));
expect($posts)
->toContain('<AppLayout full-width>')
->toContain('data-testid="posts-scroll"')
->toContain('<PublishTabs')
->toContain('<PostComposerDialog');
expect($tabs)->toContain('data-testid="posts-tabs"');
expect($layout)
->toContain('<SidebarProvider v-model:open="sidebarOpen"')
->toContain('<GlobalPostComposer />');
});