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
6 changes: 3 additions & 3 deletions apps/web/app/(dashboard)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
TooltipTrigger
} from '@/components/ui/tooltip';
import { User } from './user';
import { VercelLogo } from '@/components/icons';
import { OrunbaseMark } from '@/components/icons';
import Providers from './providers';
import { NavItem } from './nav-item';
import { SearchInput } from './search';
Expand Down Expand Up @@ -62,10 +62,10 @@ function DesktopNav() {
<aside className="fixed inset-y-0 left-0 z-10 hidden w-14 flex-col border-r bg-background sm:flex">
<nav className="flex flex-col items-center gap-4 px-2 sm:py-5">
<Link
href="https://vercel.com/templates/next.js/admin-dashboard-tailwind-postgres-react-nextjs"
href="https://orunbase.com/baselines/"
className="group flex h-9 w-9 shrink-0 items-center justify-center gap-2 rounded-full bg-primary text-lg font-semibold text-primary-foreground md:h-8 md:w-8 md:text-base"
>
<VercelLogo className="h-3 w-3 transition-all group-hover:scale-110" />
<OrunbaseMark className="h-4 w-4 transition-all group-hover:scale-110" />
<span className="sr-only">{SITE_NAME}</span>
</Link>

Expand Down
17 changes: 10 additions & 7 deletions apps/web/components/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,22 @@ export function Logo() {
);
}

export function VercelLogo(props: React.SVGProps<SVGSVGElement>) {
// The Orunbase mark (small build), drawn for the primary-coloured tile it sits
// on: the dome takes the text colour, the earth the amber for that surface.
export function OrunbaseMark(props: React.SVGProps<SVGSVGElement>) {
return (
<svg
{...props}
aria-label="Vercel logomark"
height="64"
aria-label="Orunbase mark"
height="48"
role="img"
viewBox="0 0 74 64"
viewBox="0 0 48 48"
>
<path d="M5.06 31.58 A20.4 20.4 0 1 1 42.94 31.58 Z" fill="currentColor" />
<path
d="M37.5896 0.25L74.5396 64.25H0.639648L37.5896 0.25Z"
fill="currentColor"
></path>
d="M10.43 39.23 A20.4 20.4 0 0 0 37.57 39.23 Z"
className="fill-[#E3B34C] dark:fill-[#B8862F]"
/>
</svg>
);
}
4 changes: 2 additions & 2 deletions testing/e2e.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,8 @@ if name not in [html.unescape(b) for b in brand]:
bad(f"the dashboard's home link is not labelled with the product's name: {brand}")
if "Admin Dashboard" in home:
bad("the dashboard still carries the baseline's name")
if 'href="https://vercel.com/templates/next.js/admin-dashboard-tailwind-postgres-react-nextjs"' not in home:
bad("the home link to the upstream template was renamed")
if 'href="https://orunbase.com/baselines/"' not in home:
bad("the home link does not go to orunbase.com/baselines/")
first = names(home)
if len(first) != 5 or "Showing <strong>1-5</strong> of <strong>10</strong>" not in home:
bad(f"/ does not show the first five of ten products: {first}")
Expand Down
8 changes: 4 additions & 4 deletions testing/placement.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,11 @@ for comp_path in ("apps/web", "infra/terraform/supabase", "infra/terraform/cloud
if not ref.startswith(f"secret://{ws}/{repo}/"):
bad(f"{comp_path} {k} resolves from {ref} — not the product's workspace and project")

# The upstream template's own link survives the rename, though Vercel's page
# for it spells this baseline's slug.
# The dashboard's home link goes to Orunbase's baselines, a path that spells no
# slug, so the rename leaves it alone.
nav = (tree / "apps/web/app/(dashboard)/layout.tsx").read_text()
if 'href="https://vercel.com/templates/next.js/admin-dashboard-tailwind-postgres-react-nextjs"' not in nav:
bad("the dashboard's link to the upstream template was renamed")
if 'href="https://orunbase.com/baselines/"' not in nav:
bad("the dashboard's home link does not go to orunbase.com/baselines/")

# The wrangler config is committed, and is the fixture render of the
# (rebranded) template — the composition checks it exists before the build.
Expand Down
2 changes: 1 addition & 1 deletion tooling/rebrand/rebrand.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function trackedFiles() {
//
// This tree IS Vercel's Admin Dashboard template, and Vercel's page for it is
// `vercel.com/templates/next.js/admin-dashboard…` — this baseline's slug. The
// dashboard's home link and the READMEs' credits name that page, and the
// READMEs' credits name that page (the dashboard's home link did once), and the
// repo-slug rule would otherwise rename it, pointing a product's visitors at a
// template page that does not exist. Masked before the rules run, and allowed
// by the leftover sweep. (The template's repository and demo,
Expand Down
Loading