feat: add multi-app support with app switcher, per-app branding, and filtered queries
Apps share the same backend, API keys, and publishing flow but each gets its own branding (name, colors, icon, app URL), knowledge files (brand identity, product info, platform guidelines), and campaigns. The pipeline dynamically writes _knowledge/ files and copies app assets before each run. - Add App model with slug, colors, appUrl, and knowledge markdown fields - Add appId FK to Campaign, seed honeyDue as first app with existing knowledge - App switcher dropdown in sidebar with icon previews - Filter campaigns, stats, and assets by active app (cookie-based) - De-hardcode lib/claude.ts: AppConfig interface, templated prompts, dynamic _knowledge/ and Remotion asset copying - App management pages (list, create, edit) with icon upload and color pickers - Asset library sort options (newest, oldest, name, platform, type) - Asset cards show creation date - Remotion HoneyDueAd accepts colors/appName props Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -8,6 +8,15 @@ import {
|
||||
staticFile,
|
||||
} from "remotion";
|
||||
|
||||
export interface AdColors {
|
||||
primary?: string;
|
||||
accent?: string;
|
||||
dark?: string;
|
||||
light?: string;
|
||||
white?: string;
|
||||
red?: string;
|
||||
}
|
||||
|
||||
export interface HoneyDueAdProps {
|
||||
platform: "instagram" | "tiktok";
|
||||
hookText: string;
|
||||
@@ -15,9 +24,11 @@ export interface HoneyDueAdProps {
|
||||
ctaText: string;
|
||||
proofText: string;
|
||||
screenshotSrc: string;
|
||||
colors?: AdColors;
|
||||
appName?: string;
|
||||
}
|
||||
|
||||
const COLORS = {
|
||||
const DEFAULT_COLORS = {
|
||||
primary: "#0079FF",
|
||||
accent: "#FF9400",
|
||||
dark: "#1a1a2e",
|
||||
@@ -33,7 +44,10 @@ export const HoneyDueAd: React.FC<HoneyDueAdProps> = ({
|
||||
ctaText,
|
||||
proofText,
|
||||
screenshotSrc,
|
||||
colors,
|
||||
appName = "honeyDue",
|
||||
}) => {
|
||||
const COLORS = { ...DEFAULT_COLORS, ...colors };
|
||||
const frame = useCurrentFrame();
|
||||
const { fps, durationInFrames, width, height } = useVideoConfig();
|
||||
|
||||
@@ -283,7 +297,7 @@ export const HoneyDueAd: React.FC<HoneyDueAdProps> = ({
|
||||
textAlign: "center",
|
||||
}}
|
||||
>
|
||||
honeyDue
|
||||
{appName}
|
||||
</div>
|
||||
|
||||
{/* Icon — 50% of canvas width, centered */}
|
||||
|
||||
Reference in New Issue
Block a user