mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 11:07:40 +01:00
refactor(brand): CockpitMark → BrandMark (brand-agnostic component name)
The logo + wordmark component was the last brand-bound name in the component layer — every importer plus the file itself referenced 'CockpitMark'. Renaming it to 'BrandMark' completes the brand-agnostic naming pass: after a chosen new name, no component or file in src/ needs touching. Touches 4 files (rename + 3 import sites): the file itself, PublicSurface, SidebarBrand, /u/[username]/page. git tracks the move so blame/history is preserved. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
4 files changed
+7
-7
No files matched your search
@@ -9,7 +9,7 @@ import { notFound } from "next/navigation";
|
||||
// Deduplicate the user lookup across generateMetadata + the page component.
|
||||
// Both run in the same request; React cache() collapses them to one DB query.
|
||||
const getUser = cache(getUserByUsername);
|
||||
import { CockpitMark } from "@/components/shell/CockpitMark";
|
||||
import { BrandMark } from "@/components/shell/BrandMark";
|
||||
import { getPublicProjects } from "@/db/queries/user-projects";
|
||||
import { listThoughts } from "@/lib/thoughts-content";
|
||||
import { HEALTH_TAG_STYLE } from "@/config/ui";
|
||||
@@ -54,7 +54,7 @@ export default async function PublicProfilePage({
|
||||
href="/"
|
||||
className="rounded-xl outline-none focus-visible:ring-2 focus-visible:ring-border-interactive"
|
||||
>
|
||||
<CockpitMark showWordmark={false} />
|
||||
<BrandMark showWordmark={false} />
|
||||
</Link>
|
||||
</nav>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import Link from "next/link";
|
||||
import type { ReactNode } from "react";
|
||||
import { CockpitMark } from "@/components/shell/CockpitMark";
|
||||
import { BrandMark } from "@/components/shell/BrandMark";
|
||||
|
||||
export type NavLink = { label: string; href: string };
|
||||
|
||||
@@ -21,7 +21,7 @@ export function PublicSurface({
|
||||
<nav className="ui-public-nav">
|
||||
<div className="flex items-center gap-8">
|
||||
<Link href={homeHref} className="rounded-xl outline-none focus-visible:ring-2 focus-visible:ring-white/40">
|
||||
<CockpitMark inverted />
|
||||
<BrandMark inverted />
|
||||
</Link>
|
||||
{navLinks && navLinks.length > 0 && (
|
||||
<div className="hidden items-center md:flex">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { APP_KICKER, APP_NAME } from "@/config/brand";
|
||||
|
||||
export function CockpitMark({
|
||||
export function BrandMark({
|
||||
compact = false,
|
||||
showWordmark = true,
|
||||
inverted = false,
|
||||
@@ -3,7 +3,7 @@
|
||||
import Link from "next/link";
|
||||
import { PanelLeftClose, PanelLeftOpen } from "lucide-react";
|
||||
import { APP_HOME_HREF } from "@/config/shell";
|
||||
import { CockpitMark } from "../CockpitMark";
|
||||
import { BrandMark } from "../BrandMark";
|
||||
|
||||
export function SidebarBrand({
|
||||
collapsed,
|
||||
@@ -21,7 +21,7 @@ export function SidebarBrand({
|
||||
href={APP_HOME_HREF}
|
||||
className="min-w-0 rounded-xl outline-none transition-opacity hover:opacity-85 focus-visible:ring-2 focus-visible:ring-sidebar-ring"
|
||||
>
|
||||
<CockpitMark compact={collapsed} />
|
||||
<BrandMark compact={collapsed} />
|
||||
</Link>
|
||||
<button
|
||||
type="button"
|
||||
|
||||
Reference in new issue
Block a user