Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
633 changes: 633 additions & 0 deletions backend/app/api/routes/profiles.py

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions backend/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from app.api.routes import creators
from app.api.routes import proposals
from app.api.routes import analytics
from app.api.routes import profiles
app = FastAPI(title="Inpact Backend", version="0.1.0")

# Verify Supabase client initialization on startup
Expand Down Expand Up @@ -42,6 +43,7 @@
app.include_router(creators.router)
app.include_router(proposals.router)
app.include_router(analytics.router)
app.include_router(profiles.router)

@app.get("/")
def root():
Expand Down
28 changes: 16 additions & 12 deletions frontend/app/brand/home/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import AuthGuard from "@/components/auth/AuthGuard";
import SlidingMenu from "@/components/SlidingMenu";
import BrandDashboard from "@/components/dashboard/BrandDashboard";
import ProfileButton from "@/components/profile/ProfileButton";
import { getUserProfile, signOut } from "@/lib/auth-helpers";
import { Briefcase, Loader2, LogOut } from "lucide-react";
import { useRouter } from "next/navigation";
Expand Down Expand Up @@ -47,18 +48,21 @@ export default function BrandHomePage() {
InPactAI
</h1>
</div>
<button
onClick={handleLogout}
disabled={isLoggingOut}
className="flex items-center gap-2 rounded-lg px-4 py-2 text-sm text-gray-700 transition hover:bg-gray-100 hover:text-gray-900 disabled:opacity-50"
>
{isLoggingOut ? (
<Loader2 className="h-4 w-4 animate-spin" />
) : (
<LogOut className="h-4 w-4" />
)}
{isLoggingOut ? "Logging out..." : "Logout"}
</button>
<div className="flex items-center gap-2">
<ProfileButton role="Brand" />
<button
onClick={handleLogout}
disabled={isLoggingOut}
className="flex items-center gap-2 rounded-lg px-4 py-2 text-sm text-gray-700 transition hover:bg-gray-100 hover:text-gray-900 disabled:opacity-50"
>
{isLoggingOut ? (
<Loader2 className="h-4 w-4 animate-spin" />
) : (
<LogOut className="h-4 w-4" />
)}
{isLoggingOut ? "Logging out..." : "Logout"}
</button>
</div>
</div>
</header>

Expand Down
Loading