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
7 changes: 5 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
- name: smtp-proxy
dockerfile: ./apps/smtp-server/Dockerfile
context: ./apps/smtp-server
- name: local-ses-sns
dockerfile: ./packages/local-ses-sns/Dockerfile
context: ./packages/local-ses-sns

steps:
- uses: actions/checkout@v5
Expand Down Expand Up @@ -180,7 +183,7 @@ jobs:
TAGS="$TAGS develop"
fi

for APP_NAME in bytesend smtp-proxy; do
for APP_NAME in bytesend smtp-proxy local-ses-sns; do
for TAG in $TAGS; do
# Wait for both platform images to be available before creating manifest
wait_for_remote_image "bytesend/$APP_NAME-amd64:$TAG" || exit 1
Expand Down Expand Up @@ -233,7 +236,7 @@ jobs:
fi

GHCR="ghcr.io/$(echo "$GITHUB_REPOSITORY_OWNER" | tr '[:upper:]' '[:lower:]')"
for APP_NAME in bytesend smtp-proxy; do
for APP_NAME in bytesend smtp-proxy local-ses-sns; do
for TAG in $TAGS; do
# Wait for both platform images to be available before creating manifest
wait_for_remote_image "$GHCR/$APP_NAME-amd64:$TAG" || exit 1
Expand Down
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

---

## [0.8.0] - 2026-10-19

### Changed
- **Redesigned dashboard, admin and website**:
- One consistent look throughout: denser tables, clearer page headers, stat strips and status badges with consistent meanings
- Settings now lives in the main sidebar
- A ⌘K search to jump to any page or domain
- Breadcrumbs that show names instead of IDs
- Error and not-found pages that keep you in the app
- New sign-in and account screens
- The email editor shows emails at inbox width on a white page
- The home page shows a live preview of the product instead of an old screenshot
- Pricing cards in USD, GBP or EUR, and a full site footer
- Domains show their sending region by name and their sent volume and bounce rate for the last 30 days
- Unsubscribe and confirm-subscription pages are plainer and unbranded, since your subscribers see them

### Added
- **Local SES and SNS emulator** (`packages/local-ses-sns`), ByteSend's own replacement for the upstream image: answers the SES, SNS and STS calls ByteSend makes, verifies every domain straight away, sends real delivery, bounce and complaint events (via SES's simulator addresses or `+bounce` / `+complaint`), and shows captured mail at http://localhost:5350. Published as `bytesend/local-ses-sns` with the other images

### Fixed
- Saving a template failed with "ctx is not defined"
- Self-hosted system emails (invites, sign-in) now send from a verified domain; they checked for statuses that don't exist and always used the first domain
- `pnpm dx:up` failed because the `minio/minio` and `bytesend/local-ses-sns` images don't exist. It now starts only Postgres, Redis and the local SES emulator; RustFS storage and the containerised app are opt-in profiles. New `pnpm dev:local` and `pnpm dx:migrate` use `.env.local`, so local development no longer has to run against production

---

## [0.7.0] - 2026-10-19

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,11 @@ export function AdminCommandSearch() {
<button
type="button"
onClick={() => setOpen(true)}
className="flex h-9 w-full items-center gap-2 rounded-lg border border-border/60 bg-background px-3 text-sm text-muted-foreground shadow-sm transition-colors hover:bg-muted/40 sm:w-72"
className="flex h-7 items-center gap-2 rounded-md border border-border bg-muted/40 px-2 text-[13px] text-muted-foreground transition-colors hover:bg-muted hover:text-foreground sm:w-64"
>
<Search className="size-4" />
<span className="flex-1 text-left">Search users, teams, domains…</span>
<kbd className="hidden rounded border border-border bg-muted px-1.5 font-mono text-[10px] sm:inline">
Ctrl K
</kbd>
<Search className="size-3.5" />
<span className="hidden flex-1 text-left sm:inline">Search users, teams, domains…</span>
<kbd className="hidden rounded border border-border bg-background px-1 font-mono text-[10px] sm:inline">⌘K</kbd>
</button>

<Dialog
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,6 @@
import type { ReactNode } from "react";
import { PageHeader } from "@bytesend/ui/src/page-header";

export function AdminPageHeader({
title,
description,
actions,
}: {
title: string;
description?: string;
actions?: ReactNode;
}) {
return (
<div className="flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between">
<div className="min-w-0">
<h2 className="text-lg font-semibold tracking-tight text-foreground">{title}</h2>
{description ? (
<p className="mt-0.5 text-sm text-muted-foreground">{description}</p>
) : null}
</div>
{actions ? <div className="flex shrink-0 flex-wrap items-center gap-2">{actions}</div> : null}
</div>
);
export function AdminPageHeader({ title, description, actions }: { title: string; description?: string; actions?: ReactNode }) {
return <PageHeader title={title} description={description} actions={actions} />;
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function AuditLogTable({

return (
<div className="space-y-4">
<div className="overflow-hidden rounded-xl border border-border/60 bg-card shadow-sm">
<div className="overflow-hidden rounded-lg border border-border bg-card">
<div className="overflow-x-auto">
<Table>
<TableHeader>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function Pagination({
const last = Math.min(page * pageSize, total);

return (
<div className="flex items-center justify-between text-sm">
<div className="flex items-center justify-between text-xs">
<span className="tabular-nums text-muted-foreground">
{formatNumber(first)}–{formatNumber(last)} of {formatNumber(total)}
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function SearchInput({

return (
<div className={cn("relative", className)}>
<Search className="pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground" />
<Search className="pointer-events-none absolute left-2.5 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground" />
<Input
value={value}
onChange={(event) => {
Expand All @@ -33,7 +33,7 @@ export function SearchInput({
}}
placeholder={placeholder}
aria-label={label}
className="pl-8"
className="h-8 pl-8 text-[13px]"
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ export function StatCard({
const isGood = lowerIsBetter ? !isUp : isUp;

return (
<div className="flex flex-col gap-2 rounded-xl border border-border/60 bg-card p-4 shadow-sm">
<div className="flex flex-col gap-1.5 rounded-lg border border-border bg-card px-4 py-3">
<p className="text-xs font-medium text-muted-foreground">{label}</p>
<div className="flex items-baseline justify-between gap-2">
<p className="font-mono text-2xl font-semibold tabular-nums tracking-tight text-foreground">
<p className="text-xl font-semibold tabular-nums tracking-tight text-foreground">
{value}
</p>
{change === undefined ? null : change === null ? (
Expand All @@ -79,7 +79,7 @@ export function StatCard({

export function StatCardSkeleton() {
return (
<div className="flex flex-col gap-3 rounded-xl border border-border/60 bg-card p-4 shadow-sm">
<div className="flex flex-col gap-3 rounded-lg border border-border bg-card p-4">
<Skeleton className="h-3 w-24" />
<Skeleton className="h-7 w-20" />
<Skeleton className="h-8 w-full" />
Expand Down
10 changes: 5 additions & 5 deletions apps/web/src/app/(dashboard)/admin/_components/status-pill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import { cn } from "@bytesend/ui/lib/utils";
export type StatusTone = "success" | "warning" | "destructive" | "muted";

const toneClasses: Record<StatusTone, { pill: string; dot: string }> = {
success: { pill: "border-success/30 bg-success/10 text-success", dot: "bg-success" },
warning: { pill: "border-warning/30 bg-warning/10 text-warning", dot: "bg-warning" },
success: { pill: "border-success/25 bg-success/10 text-success", dot: "bg-success" },
warning: { pill: "border-warning/25 bg-warning/10 text-warning", dot: "bg-warning" },
destructive: {
pill: "border-destructive/30 bg-destructive/10 text-destructive",
pill: "border-destructive/25 bg-destructive/10 text-destructive",
dot: "bg-destructive",
},
muted: { pill: "border-border bg-muted/50 text-muted-foreground", dot: "bg-muted-foreground/60" },
muted: { pill: "border-border bg-muted/60 text-muted-foreground", dot: "bg-muted-foreground/60" },
};

export function StatusPill({
Expand All @@ -25,7 +25,7 @@ export function StatusPill({
return (
<span
className={cn(
"inline-flex items-center gap-1.5 whitespace-nowrap rounded-full border px-2 py-0.5 text-xs font-medium",
"inline-flex items-center gap-1.5 whitespace-nowrap rounded-md border px-1.5 py-0.5 text-xs font-medium",
toneClasses[tone].pill,
className,
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ function Section({
{emptyLabel}
</p>
) : (
<ul className="divide-y divide-border/60 rounded-lg border border-border/60">{children}</ul>
<ul className="divide-y divide-border/60 rounded-lg border border-border">{children}</ul>
)}
</section>
);
}

export function AttentionCard({ attention }: { attention: Attention }) {
return (
<div className="space-y-5 rounded-xl border border-border/60 bg-card p-4 shadow-sm">
<div className="space-y-5 rounded-lg border border-border bg-card p-4">
<div>
<h3 className="text-sm font-medium text-foreground">Needs attention</h3>
<p className="text-xs text-muted-foreground">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function ChartTooltip({
if (!row) return null;

return (
<div className="flex min-w-36 flex-col gap-1.5 rounded-lg border border-border/60 bg-popover p-3 shadow-lg">
<div className="flex min-w-36 flex-col gap-1.5 rounded-lg border border-border bg-popover p-3 shadow-lg">
<p className="text-xs text-muted-foreground">{row.date}</p>
{series.map((s) => (
<div key={s.key} className="flex items-center gap-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function DailyBarChart({
const isEmpty = data.every((row) => series.every((s) => !Number(row[s.key])));

return (
<div className="rounded-xl border border-border/60 bg-card p-4 shadow-sm">
<div className="rounded-lg border border-border bg-card p-4">
<div className="mb-4 flex flex-col gap-2 sm:flex-row sm:items-start sm:justify-between">
<div>
<h3 className="text-sm font-medium text-foreground">{title}</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function RecentActivityCard() {
const entries = activityQuery.data?.entries ?? [];

return (
<div className="flex flex-col rounded-xl border border-border/60 bg-card p-4 shadow-sm">
<div className="flex flex-col rounded-lg border border-border bg-card p-4">
<div className="mb-4 flex items-start justify-between gap-2">
<div>
<h3 className="text-sm font-medium text-foreground">Recent admin activity</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function SesQuotaCard() {
const quotasQuery = api.admin.getSesQuotas.useQuery(undefined, { staleTime: 60_000 });

return (
<div className="flex flex-col rounded-xl border border-border/60 bg-card p-4 shadow-sm">
<div className="flex flex-col rounded-lg border border-border bg-card p-4">
<div className="mb-4 flex items-start justify-between gap-2">
<div>
<h3 className="text-sm font-medium text-foreground">SES regions</h3>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/(dashboard)/admin/billing/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function AdminBillingPage() {
<SummaryCard label="No subscription" value={summary.noSubscription} />
</div>

<div className="overflow-x-auto rounded-xl border border-border/60 bg-card shadow-sm">
<div className="overflow-x-auto rounded-lg border border-border bg-card">
<Table>
<TableHeader>
<TableRow className="bg-muted/30">
Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/app/(dashboard)/admin/blacklists/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const STATUS_META: Record<string, { label: string; tone: StatusTone }> = {

function SummaryTile({ label, value, tone }: { label: string; value: number; tone?: StatusTone }) {
return (
<div className="flex items-center justify-between rounded-xl border border-border/60 bg-card px-4 py-3 shadow-sm">
<div className="flex items-center justify-between rounded-lg border border-border bg-card px-4 py-3">
{tone ? <StatusPill tone={tone}>{label}</StatusPill> : <span className="text-sm text-muted-foreground">{label}</span>}
<span className="font-mono text-xl font-semibold tabular-nums">{formatNumber(value)}</span>
</div>
Expand Down Expand Up @@ -67,7 +67,7 @@ export default function AdminBlacklistsPage() {
/>

{overview && !overview.usesDqsKey ? (
<div className="flex gap-3 rounded-xl border border-warning/40 bg-warning/10 p-4 text-sm">
<div className="flex gap-3 rounded-lg border border-warning/40 bg-warning/10 p-4 text-sm">
<AlertTriangle className="mt-0.5 size-4 shrink-0 text-warning" />
<p className="text-foreground">
No <code className="font-mono text-xs">SPAMHAUS_DQS_KEY</code> is set. Spamhaus, SURBL and URIBL refuse queries from
Expand All @@ -83,7 +83,7 @@ export default function AdminBlacklistsPage() {
<SummaryTile label="Unknown" value={unknownDomains} tone="muted" />
</div>

<div className="overflow-hidden rounded-xl border border-border/60 bg-card shadow-sm">
<div className="overflow-hidden rounded-lg border border-border bg-card">
<div className="overflow-x-auto">
<Table>
<TableHeader>
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/app/(dashboard)/admin/blocklist/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default function AdminBlocklistPage() {
/>

<form
className="grid gap-3 rounded-xl border border-border/60 bg-card p-4 shadow-sm sm:grid-cols-[180px_1fr_1fr_auto]"
className="grid gap-3 rounded-lg border border-border bg-card p-4 sm:grid-cols-[180px_1fr_1fr_auto]"
onSubmit={(event) => {
event.preventDefault();
add.mutate({ type: newType, value: newValue, reason: newReason || undefined });
Expand Down Expand Up @@ -133,7 +133,7 @@ export default function AdminBlocklistPage() {
</Select>
</div>

<div className="overflow-hidden rounded-xl border border-border/60 bg-card shadow-sm">
<div className="overflow-hidden rounded-lg border border-border bg-card">
<div className="overflow-x-auto">
<Table>
<TableHeader>
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/app/(dashboard)/admin/deliverability/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const STATUS_META: Record<TeamRow["status"], { label: string; tone: StatusTone }

function SummaryTile({ label, value, tone }: { label: string; value: number; tone: StatusTone }) {
return (
<div className="flex items-center justify-between rounded-xl border border-border/60 bg-card px-4 py-3 shadow-sm">
<div className="flex items-center justify-between rounded-lg border border-border bg-card px-4 py-3">
<StatusPill tone={tone}>{label}</StatusPill>
<span className="font-mono text-xl font-semibold tabular-nums">{formatNumber(value)}</span>
</div>
Expand Down Expand Up @@ -107,7 +107,7 @@ export default function AdminDeliverabilityPage() {
</label>
</div>

<div className="overflow-hidden rounded-xl border border-border/60 bg-card shadow-sm">
<div className="overflow-hidden rounded-lg border border-border bg-card">
<div className="overflow-x-auto">
<Table>
<TableHeader>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/(dashboard)/admin/domains/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function AdminDomainsPage() {
className="sm:max-w-md"
/>

<div className="overflow-x-auto rounded-xl border border-border/60 bg-card shadow-sm">
<div className="overflow-x-auto rounded-lg border border-border bg-card">
<Table>
<TableHeader>
<TableRow className="bg-muted/30">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function EmailDetailSheet({ emailId, onClose }: { emailId: string | null;
<span className="text-xs text-muted-foreground">{email.team.plan}</span>
</div>

<dl className="divide-y divide-border/60 rounded-lg border border-border/60 px-3">
<dl className="divide-y divide-border/60 rounded-lg border border-border px-3">
<Field label="From">
<span className="font-mono text-xs">{email.from}</span>
</Field>
Expand Down Expand Up @@ -124,7 +124,7 @@ export function EmailDetailSheet({ emailId, onClose }: { emailId: string | null;
{email.emailEvents.length === 0 ? (
<p className="text-sm text-muted-foreground">No events yet.</p>
) : (
<ol className="relative space-y-4 border-l border-border/60 pl-5">
<ol className="relative space-y-4 border-l border-border pl-5">
{email.emailEvents.map((event) => (
<li key={event.id} className="relative">
<span className="absolute -left-[1.4rem] top-1.5 size-2 rounded-full bg-muted-foreground/60 ring-4 ring-background" />
Expand Down Expand Up @@ -157,11 +157,11 @@ export function EmailDetailSheet({ emailId, onClose }: { emailId: string | null;
<h4 className="text-xs font-medium uppercase tracking-wider text-muted-foreground">Content</h4>
{content ? (
content.html ? (
<div className="h-96 overflow-hidden rounded-lg border border-border/60 bg-white">
<div className="h-96 overflow-hidden rounded-lg border border-border bg-white">
<iframe title="Email content" className="size-full" srcDoc={content.html} sandbox="" />
</div>
) : content.text ? (
<pre className="max-h-96 overflow-auto whitespace-pre-wrap rounded-lg border border-border/60 p-3 text-xs">
<pre className="max-h-96 overflow-auto whitespace-pre-wrap rounded-lg border border-border p-3 text-xs">
{content.text}
</pre>
) : (
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/app/(dashboard)/admin/emails/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function AdminEmailsExplorer() {
</div>
) : null}

<div className="overflow-hidden rounded-xl border border-border/60 bg-card shadow-sm">
<div className="overflow-hidden rounded-lg border border-border bg-card">
<div className="overflow-x-auto">
<Table>
<TableHeader>
Expand Down Expand Up @@ -232,7 +232,7 @@ function AdminEmailsExplorer() {

export default function AdminEmailsPage() {
return (
<Suspense fallback={<Skeleton className="h-96 w-full rounded-xl" />}>
<Suspense fallback={<Skeleton className="h-96 w-full rounded-lg" />}>
<AdminEmailsExplorer />
</Suspense>
);
Expand Down
Loading
Loading