feat: introduce marketing mode and update sidebar display

- Added a new configuration flag `IS_MARKETING` to toggle marketing mode.
- Updated the sidebar component to conditionally display the marketing URL when in marketing mode.
- Refactored event type naming for consistency in the sidebar logic.
- Cleaned up formatting in the HttpApiClient for improved readability.
This commit is contained in:
Cody Seibert
2025-12-12 22:42:43 -05:00
parent 28328d7d1e
commit b3a4fd2be1
3 changed files with 120 additions and 31 deletions

View File

@@ -4,6 +4,7 @@ import { useState, useMemo, useEffect, useCallback, useRef } from "react";
import { cn } from "@/lib/utils";
import { useAppStore, formatShortcut } from "@/store/app-store";
import { CoursePromoBadge } from "@/components/ui/course-promo-badge";
import { IS_MARKETING } from "@/config/app-config";
import {
FolderOpen,
Plus,
@@ -366,7 +367,7 @@ export function Sidebar() {
if (
event.type === "auto_mode_feature_complete" ||
event.type === "auto_mode_error" ||
event.type === "auto_mode_feature_started"
event.type === "auto_mode_feature_start"
) {
const fetchRunningAgentsCount = async () => {
try {
@@ -853,7 +854,15 @@ export function Sidebar() {
sidebarOpen ? "hidden lg:block" : "hidden"
)}
>
Auto<span className="text-brand-500">maker</span>
{IS_MARKETING ? (
<>
https://<span className="text-brand-500">automaker</span>.app
</>
) : (
<>
Auto<span className="text-brand-500">maker</span>
</>
)}
</span>
</div>
{/* Bug Report Button */}