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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed
- Batch sends now respect an API key's domain restriction
- Pages no longer run off the right edge on phones: cards and sections fit the screen, and long IDs and file names wrap or are shortened
- Moving a domain that receives email to another sending region keeps receiving working: the identity it receives through is kept, and removed when receiving is turned off or the domain is deleted
- Deleting a domain works again when its Amazon SES identity is already gone, shows an error if it fails, and accepts the name typed in any case (phone keyboards capitalise it)
- **Verify again** on a verified domain now re-checks its DNS straight away, updates the problem banner, and says what it found. Record rows show a problem the DNS monitor found instead of an old "Verified"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function AttentionCard({ attention }: { attention: Attention }) {
emptyLabel="No team is over a warning threshold"
>
{attention.atRiskTeams.map((team) => (
<li key={team.teamId} className="grid gap-2 px-3 py-2.5 sm:grid-cols-[1fr_auto_auto] sm:items-center sm:gap-4">
<li key={team.teamId} className="grid grid-cols-1 gap-2 px-3 py-2.5 sm:grid-cols-[minmax(0,1fr)_auto_auto] sm:items-center sm:gap-4">
<div className="flex min-w-0 items-center gap-2">
<span className="truncate text-sm font-medium text-foreground">{team.name}</span>
<span className="font-mono text-xs text-muted-foreground">#{team.teamId}</span>
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 @@ -70,7 +70,7 @@ export default function AdminBillingPage() {
className="sm:max-w-md"
/>

<div className="grid gap-4 md:grid-cols-2 xl:grid-cols-4">
<div className="grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-4">
<SummaryCard label="Paid teams" value={summary.paid} />
<SummaryCard label="Free teams" value={summary.free} />
<SummaryCard label="Cancelling" value={summary.cancelling} />
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/(dashboard)/admin/blacklists/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function AdminBlacklistsPage() {
</div>
) : null}

<div className="grid gap-3 sm:grid-cols-3">
<div className="grid grid-cols-1 gap-3 sm:grid-cols-3">
<SummaryTile label="Verified domains" value={overview?.verifiedCount ?? 0} />
<SummaryTile label="Listed" value={listedDomains} tone="destructive" />
<SummaryTile label="Unknown" value={unknownDomains} tone="muted" />
Expand Down
2 changes: 1 addition & 1 deletion 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-lg border border-border bg-card p-4 sm:grid-cols-[180px_1fr_1fr_auto]"
className="grid grid-cols-1 gap-3 rounded-lg border border-border bg-card p-4 sm:grid-cols-[180px_minmax(0,1fr)_minmax(0,1fr)_auto]"
onSubmit={(event) => {
event.preventDefault();
add.mutate({ type: newType, value: newValue, reason: newReason || undefined });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default function AdminDeliverabilityPage() {
description={`Hard-bounce and complaint rates per team over the last ${DELIVERABILITY_WINDOW_DAYS} days. Limits are enforced automatically once a team has ${BOUNCE_RATE_MIN_VOLUME}+ deliveries.`}
/>

<div className="grid gap-3 sm:grid-cols-3">
<div className="grid grid-cols-1 gap-3 sm:grid-cols-3">
<SummaryTile label="Over limit" value={counts.overLimit} tone="destructive" />
<SummaryTile label="Warning" value={counts.warning} tone="warning" />
<SummaryTile label="Blocked" value={counts.blocked} tone="muted" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default function AdminEmailAnalyticsPage() {
</div>
</div>

<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-4">
<div className="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-4">
<SummaryCard label="Sent" value={totals.sent} />
<SummaryCard label="Delivered" value={totals.delivered} />
<SummaryCard label="Opened" value={totals.opened} />
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/(dashboard)/admin/emails/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function AdminEmailsExplorer() {
}
/>

<div className="grid gap-2 sm:grid-cols-2 xl:grid-cols-5">
<div className="grid grid-cols-1 gap-2 sm:grid-cols-2 xl:grid-cols-5">
<Select
value={timeWindow}
onValueChange={(value) => {
Expand Down
8 changes: 4 additions & 4 deletions apps/web/src/app/(dashboard)/admin/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default function AdminOverviewPage() {

{!overview || !current || !previous ? (
<div className="space-y-6">
<div className="grid gap-3 sm:grid-cols-2 xl:grid-cols-4">
<div className="grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-4">
{Array.from({ length: 8 }, (_, i) => (
<StatCardSkeleton key={i} />
))}
Expand All @@ -98,7 +98,7 @@ export default function AdminOverviewPage() {
</div>
) : (
<div className={cn("space-y-6 transition-opacity", overviewQuery.isFetching && "opacity-70")}>
<div className="grid gap-3 sm:grid-cols-2 xl:grid-cols-4">
<div className="grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-4">
<StatCard
label="Emails sent"
value={formatCompact(current.sent)}
Expand Down Expand Up @@ -167,7 +167,7 @@ export default function AdminOverviewPage() {
height={280}
/>

<div className="grid gap-6 xl:grid-cols-[2fr_1fr]">
<div className="grid grid-cols-1 gap-6 xl:grid-cols-[minmax(0,2fr)_minmax(0,1fr)]">
<DailyBarChart
title="Signups"
description="New users and teams per day"
Expand All @@ -179,7 +179,7 @@ export default function AdminOverviewPage() {
<SesQuotaCard />
</div>

<div className="grid gap-6 xl:grid-cols-[2fr_1fr]">
<div className="grid grid-cols-1 gap-6 xl:grid-cols-[minmax(0,2fr)_minmax(0,1fr)]">
<AttentionCard attention={overview.attention} />
<RecentActivityCard />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function CallbackDiagnostics() {
) : diagnosticsQuery.error ? (
<p className="rounded-lg border p-4 text-sm text-destructive">{diagnosticsQuery.error.message}</p>
) : (
<div className="grid gap-4 lg:grid-cols-2">
<div className="grid grid-cols-1 gap-4 lg:grid-cols-2">
{data?.regions.map((region) => {
const subscription = SUBSCRIPTION_TONE[region.subscription.state]!;
const healthy = region.problems.length === 0;
Expand Down
8 changes: 4 additions & 4 deletions apps/web/src/app/(dashboard)/admin/teams/[teamId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function TeamDetailSkeleton() {
<div className="space-y-6">
<Skeleton className="h-4 w-24" />
<Skeleton className="h-8 w-64" />
<div className="grid gap-3 sm:grid-cols-2 xl:grid-cols-4">
<div className="grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-4">
{Array.from({ length: 4 }, (_, i) => (
<Skeleton key={i} className="h-28 rounded-lg" />
))}
Expand Down Expand Up @@ -203,7 +203,7 @@ export default function AdminTeamDetailPage() {
</div>

<TabsContent value="overview" className="space-y-6">
<div className="grid gap-3 sm:grid-cols-2 xl:grid-cols-4">
<div className="grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-4">
<StatCard
label="Sent (30d)"
value={formatCompact(totals.sent)}
Expand Down Expand Up @@ -252,7 +252,7 @@ export default function AdminTeamDetailPage() {
</Link>
</div>

<div className="grid gap-3 sm:grid-cols-2 xl:grid-cols-4">
<div className="grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-4">
{[
{ label: "Contact books", value: team._count.contactBooks },
{ label: "Campaigns", value: team._count.campaigns },
Expand All @@ -271,7 +271,7 @@ export default function AdminTeamDetailPage() {

<Panel title="Subscription">
{subscription ? (
<dl className="grid gap-4 p-4 text-sm sm:grid-cols-4">
<dl className="grid grid-cols-1 gap-4 p-4 text-sm sm:grid-cols-4">
<div>
<dt className="text-xs text-muted-foreground">Status</dt>
<dd className="mt-0.5 capitalize">{subscription.status.replace(/_/g, " ")}</dd>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function TeamSettingsCard({ team }: { team: TeamSettingsValues }) {
onSubmit={form.handleSubmit((values) =>
updateTeam.mutate({ teamId: team.id, plan: team.plan, isBlocked: team.isBlocked, ...values }),
)}
className="grid gap-5 md:grid-cols-2"
className="grid grid-cols-1 gap-5 md:grid-cols-2"
noValidate
>
<FormField
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export default function AdminUserDetailPage() {
</div>
</div>

<div className="grid gap-6 lg:grid-cols-2">
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
<Panel title="Access">
<div className="divide-y divide-border/60">
<FlagRow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default function CampaignDetailsPage({
<Stat label="Unsubscribed" value={(campaign.unsubscribed ?? 0).toLocaleString()} hint={pct(campaign.unsubscribed ?? 0)} />
</StatGroup>

<div className="grid gap-4 lg:grid-cols-[1.4fr_1fr]">
<div className="grid grid-cols-1 gap-4 lg:grid-cols-[minmax(0,1.4fr)_minmax(0,1fr)]">
<Panel flush title="Email">
<KeyValueList
items={[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export default function ContactsPage({
<Stat label="Double opt-in" value={book?.doubleOptInEnabled ? "On" : "Off"} hint={book?.doubleOptInEnabled ? "New contacts confirm first" : "Added straight away"} />
</StatGroup>

<div className="grid gap-4 lg:grid-cols-2">
<div className="grid grid-cols-1 gap-4 lg:grid-cols-2">
<Panel flush title="Details">
<KeyValueList
items={[
Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/app/(dashboard)/dashboard/overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export function SetupProgress() {
<div className="mb-3 h-1 overflow-hidden rounded-full bg-muted">
<div className="h-full rounded-full bg-primary transition-all" style={{ width: `${(done / SETUP_STEPS.length) * 100}%` }} />
</div>
<ol className="grid gap-x-4 gap-y-1.5 text-[13px] sm:grid-cols-2 lg:grid-cols-5">
<ol className="grid grid-cols-1 gap-x-4 gap-y-1.5 text-[13px] sm:grid-cols-2 lg:grid-cols-5">
{SETUP_STEPS.map((step) => {
const complete = data.onboarding[step.key];
const isNext = step.key === next.key;
Expand Down Expand Up @@ -368,7 +368,7 @@ export function OverviewPanels() {

if (query.isLoading) {
return (
<div className="grid gap-4 lg:grid-cols-3">
<div className="grid grid-cols-1 gap-4 lg:grid-cols-3">
{Array.from({ length: 3 }, (_, i) => (
<Skeleton key={i} className="h-40 rounded-lg" />
))}
Expand All @@ -380,7 +380,7 @@ export function OverviewPanels() {

return (
<div className="space-y-4">
<div className="grid gap-4 lg:grid-cols-3">
<div className="grid grid-cols-1 gap-4 lg:grid-cols-3">
<UsagePanel usage={data.usage} />
<DeliverabilityPanel d={data.deliverability} />
<DomainsPanel domains={data.domains} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function ReputationMetrics({ days, domain }: ReputationMetricsProps) {

return (
<TooltipProvider>
<div className="grid w-full gap-4 sm:grid-cols-2">
<div className="grid grid-cols-1 w-full gap-4 sm:grid-cols-2">
<div className="rounded-lg border border-border bg-card p-4">
<div className="flex justify-between">
<div className=" flex items-center gap-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function SmtpSettingsClient({ smtpHost, smtpPort, smtpDefaultUsername, cu
<Panel flush title="Connection details" description="Paste these into your app's SMTP settings.">
<div className="divide-y divide-border/70">
{connection.map((row) => (
<div key={row.label} className="grid gap-1.5 px-4 py-3 sm:grid-cols-[8rem_1fr] sm:items-center sm:gap-4">
<div key={row.label} className="grid grid-cols-1 gap-1.5 px-4 py-3 sm:grid-cols-[8rem_minmax(0,1fr)] sm:items-center sm:gap-4">
<div>
<p className="text-[13px] font-medium text-foreground">{row.label}</p>
{row.hint ? <p className="text-xs text-muted-foreground sm:hidden">{row.hint}</p> : null}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/(dashboard)/dmarc/dmarc-setup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function DmarcSetup({ setup, isLoading }: { setup?: Setup; isLoading: boo
{!domain.reportsToUs && domain.suggested ? (
<div className="space-y-2">
<p className="text-xs font-medium text-muted-foreground">{domain.record ? "Replace it with" : "Add this TXT record"}</p>
<div className="grid gap-2 sm:grid-cols-[10rem_1fr]">
<div className="grid grid-cols-1 gap-2 sm:grid-cols-[10rem_minmax(0,1fr)]">
<CopyField value={`_dmarc.${domain.orgDomain}`} display="_dmarc" />
<CopyField value={domain.suggested} />
</div>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/(dashboard)/domains/[domainId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export default function DomainItemPage({
</Callout>
) : null}

<div className="grid gap-px overflow-hidden rounded-lg border border-border bg-border sm:grid-cols-3">
<div className="grid grid-cols-1 gap-px overflow-hidden rounded-lg border border-border bg-border sm:grid-cols-3">
<SignalCard label="DKIM" description="Proves the mail came from you" status={dkimStatus} dnsCheck={dnsPrecheck?.dkim} />
<SignalCard label="SPF" description="Allows SES to send for you" status={spfStatus} dnsCheck={dnsPrecheck?.spf} />
<SignalCard label="DMARC" description="Tells inboxes what to do with fakes" status={dmarcStatus} dnsCheck={dnsPrecheck?.mx} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export function RegionMoveCard({ domain }: { domain: DomainResponse }) {
</p>
<DnsStatusBadge status={dkimRecord.status} />
</div>
<div className="grid gap-2 text-xs sm:grid-cols-[6rem_1fr]">
<div className="grid grid-cols-1 gap-2 text-xs sm:grid-cols-[6rem_minmax(0,1fr)]">
<span className="text-muted-foreground">Name</span>
<CopyField value={dkimRecord.name} />
<span className="text-muted-foreground">Value</span>
Expand All @@ -238,7 +238,7 @@ export function RegionMoveCard({ domain }: { domain: DomainResponse }) {
</p>
<DnsStatusBadge status={mxRecord.status} />
</div>
<div className="grid gap-2 text-xs sm:grid-cols-[6rem_1fr]">
<div className="grid grid-cols-1 gap-2 text-xs sm:grid-cols-[6rem_minmax(0,1fr)]">
<span className="text-muted-foreground">Value</span>
<CopyField value={mxRecord.value} />
<span className="text-muted-foreground">Priority</span>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/(dashboard)/emails/[emailId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default function EmailPage() {
</Callout>
) : null}

<div className="grid gap-5 lg:grid-cols-[minmax(0,1fr)_22rem]">
<div className="grid grid-cols-1 gap-5 lg:grid-cols-[minmax(0,1fr)_22rem]">
<ContentPreview html={email.html ?? ""} text={email.text ?? ""} />

<div className="space-y-5">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function DomainReceiving({ domain, canEdit }: { domain: ReceivingDomain; canEdit
<div className="space-y-2">
<p className="text-xs text-muted-foreground">Add these records at your DNS provider for {domain.name}:</p>
{domain.records.map((record) => (
<div key={`${record.type}-${record.name}`} className="grid gap-1.5 sm:grid-cols-[3.5rem_minmax(0,1fr)_minmax(0,1.6fr)] sm:items-center">
<div key={`${record.type}-${record.name}`} className="grid grid-cols-1 gap-1.5 sm:grid-cols-[3.5rem_minmax(0,1fr)_minmax(0,1.6fr)] sm:items-center">
<span className="font-mono text-[11px] text-muted-foreground">
{record.type}
{record.priority ? ` ${record.priority}` : ""}
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/app/(dashboard)/settings/usage/usage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function FreePlanUsage({
const dailyPct = Math.min((dailyUsage / FREE_PLAN_DAILY_LIMIT) * 100, 100);

return (
<div className="grid gap-4 sm:grid-cols-2">
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2">
{/* Monthly gauge */}
<Card>
<CardContent className="pt-6">
Expand Down Expand Up @@ -270,7 +270,7 @@ function PaidPlanUsage({
: 0;

return (
<div className="grid gap-4 sm:grid-cols-3">
<div className="grid grid-cols-1 gap-4 sm:grid-cols-3">
{/* Amount due */}
<Card>
<CardContent className="pt-6">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export default function WebhookDetailPage({

<WebhookInfo webhook={webhook} />

<div className="grid gap-4 lg:h-[calc(100vh-320px)] lg:min-h-[560px] lg:grid-cols-2">
<div className="grid grid-cols-1 gap-4 lg:h-[calc(100vh-320px)] lg:min-h-[560px] lg:grid-cols-2">
<div className="flex min-h-0 flex-col">
<WebhookCallsTable webhookId={webhookId} selectedCallId={selectedCallId} onSelectCall={setSelectedCallId} />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function WebhookInfo({ webhook }: { webhook: Webhook }) {
);

return (
<div className="grid gap-4 lg:grid-cols-[1fr_1.2fr]">
<div className="grid grid-cols-1 gap-4 lg:grid-cols-[minmax(0,1fr)_minmax(0,1.2fr)]">
<StatGroup className="md:grid-flow-row md:grid-cols-3">
<Stat label="Delivered · 7d" value={deliveredCount.toLocaleString()} />
<Stat label="Failed · 7d" value={failedCount.toLocaleString()} tone={failedCount > 0 ? "danger" : "default"} />
Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/app/(marketing)/changelog/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ function ReleaseBody({ body }: { body: string }) {
style={{ paddingLeft: item.indent > 0 ? `${item.indent * 16}px` : undefined }}
>
<span className="mt-1.5 h-1.5 w-1.5 rounded-full bg-border shrink-0" />
<span>{parseInline(item.text)}</span>
<span className="min-w-0 [overflow-wrap:anywhere]">{parseInline(item.text)}</span>
</li>
))}
</ul>,
Expand Down Expand Up @@ -230,7 +230,7 @@ function ReleaseBody({ body }: { body: string }) {
} else {
flushList();
nodes.push(
<p key={key++} className="text-sm text-muted-foreground leading-relaxed mb-2">
<p key={key++} className="mb-2 text-sm leading-relaxed text-muted-foreground [overflow-wrap:anywhere]">
{parseInline(trimmed)}
</p>,
);
Expand Down Expand Up @@ -272,7 +272,7 @@ export default async function ChangelogPage() {
) : (
<div className="divide-y divide-border">
{releases.map((release, idx) => (
<article key={release.tag} id={release.tag} className="grid scroll-mt-20 gap-4 py-10 first:pt-0 md:grid-cols-[11rem_1fr] md:gap-10">
<article key={release.tag} id={release.tag} className="grid grid-cols-1 scroll-mt-20 gap-4 py-10 first:pt-0 md:grid-cols-[11rem_minmax(0,1fr)] md:gap-10">
<header className="md:sticky md:top-20 md:self-start">
<a href={`#${release.tag}`} className="group inline-flex items-center gap-2">
<h2 className="font-mono text-lg font-semibold tracking-tight transition-colors group-hover:text-primary">{release.name}</h2>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/(marketing)/stats/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default async function StatsPage() {
</div>
</Reveal>

<div className="grid gap-12 lg:grid-cols-[3fr_2fr]">
<div className="grid grid-cols-1 gap-12 lg:grid-cols-[minmax(0,3fr)_minmax(0,2fr)]">
<Reveal>
<h2 className="text-lg font-semibold tracking-tight">Deliverability health</h2>
<p className="mt-1 text-sm text-muted-foreground">
Expand Down
Loading
Loading