Skip to content

Commit d758878

Browse files
committed
uptime page
1 parent d0a0d64 commit d758878

File tree

104 files changed

+960
-386
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+960
-386
lines changed

apps/api/src/query/builders/uptime.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,16 +208,15 @@ export const UptimeBuilders: Record<string, SimpleQueryConfig> = {
208208
customSql: (websiteId: string, startDate: string, endDate: string) => ({
209209
sql: `
210210
SELECT
211-
any(ssl_expiry) as ssl_expiry,
212-
min(ssl_valid) as ssl_valid,
211+
argMax(ssl_expiry, timestamp) as ssl_expiry,
212+
argMax(ssl_valid, timestamp) as ssl_valid,
213213
COUNT(*) as total_checks,
214214
sum(CASE WHEN ssl_valid = 0 THEN 1 ELSE 0 END) as invalid_ssl_checks
215215
FROM ${UPTIME_TABLE}
216216
WHERE
217217
site_id = {websiteId:String}
218218
AND timestamp >= toDateTime({startDate:String})
219219
AND timestamp <= toDateTime(concat({endDate:String}, ' 23:59:59'))
220-
AND ssl_expiry IS NOT NULL
221220
GROUP BY site_id
222221
`,
223222
params: { websiteId, startDate, endDate },

apps/dashboard/app/(auth)/login/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,14 @@ function LoginPage() {
265265
<p className="flex-1 text-[13px] text-muted-foreground lg:text-nowrap">
266266
Don&apos;t have an account?{" "}
267267
<Link
268-
className="font-medium text-accent-foreground transition-colors duration-200 hover:text-accent-foreground/80"
268+
className="font-medium text-accent-foreground duration-200 hover:text-accent-foreground/80"
269269
href="/register"
270270
>
271271
Sign up
272272
</Link>
273273
</p>
274274
<Link
275-
className="h-auto flex-1 cursor-pointer p-0 text-right text-[13px] text-accent-foreground/60 transition-colors duration-200 hover:text-accent-foreground"
275+
className="h-auto flex-1 cursor-pointer p-0 text-right text-[13px] text-accent-foreground/60 duration-200 hover:text-accent-foreground"
276276
href="/login/forgot"
277277
>
278278
Forgot password?

apps/dashboard/app/(auth)/register/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -456,15 +456,15 @@ function RegisterPageContent() {
456456
<span className="hidden sm:inline">
457457
I agree to the{" "}
458458
<Link
459-
className="font-medium text-accent-foreground transition-colors duration-200 hover:text-accent-foreground/80"
459+
className="font-medium text-accent-foreground duration-200 hover:text-accent-foreground/80"
460460
href="https://www.databuddy.cc/terms"
461461
target="_blank"
462462
>
463463
Terms of Service
464464
</Link>{" "}
465465
and{" "}
466466
<Link
467-
className="font-medium text-accent-foreground transition-colors duration-200 hover:text-accent-foreground/80"
467+
className="font-medium text-accent-foreground duration-200 hover:text-accent-foreground/80"
468468
href="https://www.databuddy.cc/privacy"
469469
target="_blank"
470470
>
@@ -539,7 +539,7 @@ function RegisterPageContent() {
539539
<p className="text-muted-foreground text-sm">
540540
Already have an account?{" "}
541541
<Link
542-
className="h-auto flex-1 cursor-pointer p-0 text-right font-medium text-[13px] text-accent-foreground transition-colors duration-200 hover:text-accent-foreground/60"
542+
className="h-auto flex-1 cursor-pointer p-0 text-right font-medium text-[13px] text-accent-foreground duration-200 hover:text-accent-foreground/60"
543543
href={
544544
callbackUrl
545545
? `/login?callback=${encodeURIComponent(callbackUrl)}`

apps/dashboard/app/(main)/billing/components/credit-card-display.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export function CreditCardDisplay({ customer }: CreditCardDisplayProps) {
101101
<>
102102
<button
103103
aria-label="Hide card details"
104-
className="w-fit cursor-pointer text-left font-mono text-[15px] text-white/90 tabular-nums tracking-[0.2em] transition-colors hover:text-white"
104+
className="w-fit cursor-pointer text-left font-mono text-[15px] text-white/90 tabular-nums tracking-[0.2em] hover:text-white"
105105
onClick={() => setShowCardDetails(false)}
106106
type="button"
107107
>
@@ -133,7 +133,7 @@ export function CreditCardDisplay({ customer }: CreditCardDisplayProps) {
133133
<>
134134
<button
135135
aria-label="Show card details"
136-
className="w-fit cursor-pointer text-left font-mono text-[15px] text-white/25 tabular-nums tracking-[0.2em] transition-colors hover:text-white/40"
136+
className="w-fit cursor-pointer text-left font-mono text-[15px] text-white/25 tabular-nums tracking-[0.2em] hover:text-white/40"
137137
onClick={() => setShowCardDetails(true)}
138138
type="button"
139139
>

apps/dashboard/app/(main)/billing/components/pricing-tiers-tooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function PricingTiersTooltip({
5959
<HoverCardTrigger asChild>
6060
<button
6161
className={cn(
62-
"inline-flex cursor-help items-center gap-1 text-muted-foreground text-xs transition-colors hover:text-foreground",
62+
"inline-flex cursor-help items-center gap-1 text-muted-foreground text-xs hover:text-foreground",
6363
!showText && "rounded-full p-1 hover:bg-muted/50",
6464
className
6565
)}

apps/dashboard/app/(main)/billing/cost-breakdown/components/usage-breakdown-table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export function UsageBreakdownTable({
130130

131131
return (
132132
<div
133-
className="group flex items-center gap-4 px-4 py-3 transition-colors hover:bg-accent/50 sm:px-6 sm:py-4"
133+
className="group flex items-center gap-4 px-4 py-3 hover:bg-accent/50 sm:px-6 sm:py-4"
134134
key={item.event_category}
135135
>
136136
<div className="flex size-10 shrink-0 items-center justify-center rounded border border-accent-foreground/10 bg-secondary">

apps/dashboard/app/(main)/organizations/components/organizations-list.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function OrganizationRow({
6464
return (
6565
<button
6666
className={cn(
67-
"group relative grid w-full cursor-pointer grid-cols-[auto_1fr_auto_auto] items-center gap-4 px-5 py-3 text-left transition-colors hover:bg-accent",
67+
"group relative grid w-full cursor-pointer grid-cols-[auto_1fr_auto_auto] items-center gap-4 px-5 py-3 text-left hover:bg-accent",
6868
isProcessing && "pointer-events-none opacity-60"
6969
)}
7070
onClick={onClick}
@@ -76,7 +76,7 @@ function OrganizationRow({
7676
</div>
7777
)}
7878

79-
<Avatar className="size-10 transition-colors">
79+
<Avatar className="size-10 ">
8080
<AvatarImage
8181
alt={organization.name}
8282
src={organization.logo ?? undefined}

apps/dashboard/app/(main)/organizations/settings/api-keys/api-key-row.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function ApiKeyRow({ apiKey, onSelect }: ApiKeyRowProps) {
3737
return (
3838
<button
3939
className={cn(
40-
"group grid w-full cursor-pointer grid-cols-[auto_1fr_auto_auto] items-center gap-4 px-5 py-4 text-left transition-colors hover:bg-accent",
40+
"group grid w-full cursor-pointer grid-cols-[auto_1fr_auto_auto] items-center gap-4 px-5 py-4 text-left hover:bg-accent",
4141
!isActive && "opacity-60"
4242
)}
4343
onClick={onSelect}
@@ -46,15 +46,15 @@ export function ApiKeyRow({ apiKey, onSelect }: ApiKeyRowProps) {
4646
{/* Icon */}
4747
<div
4848
className={cn(
49-
"flex size-10 items-center justify-center rounded border bg-background transition-colors",
49+
"flex size-10 items-center justify-center rounded border bg-background ",
5050
isActive
5151
? "group-hover:border-primary/30 group-hover:bg-primary/5"
5252
: "border-dashed"
5353
)}
5454
>
5555
{isActive ? (
5656
<KeyIcon
57-
className="text-muted-foreground transition-colors group-hover:text-primary"
57+
className="text-muted-foreground group-hover:text-primary"
5858
size={18}
5959
weight="duotone"
6060
/>

apps/dashboard/app/(main)/organizations/settings/danger/transfer-assets.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function WebsiteItem({ website, selected, onClick }: WebsiteItemProps) {
2626
return (
2727
<button
2828
className={cn(
29-
"flex w-full items-center gap-3 rounded border bg-card px-3 py-2 text-left transition-colors",
29+
"flex w-full items-center gap-3 rounded border bg-card px-3 py-2 text-left ",
3030
selected ? "bg-accent" : "hover:bg-accent"
3131
)}
3232
onClick={onClick}

apps/dashboard/app/(main)/organizations/settings/sso/sso-provider-sheet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function ProtocolSelector({
8080
<div className="grid grid-cols-2 gap-2">
8181
{protocols.map(({ type, label, icon: Icon, badge }) => (
8282
<button
83-
className={`flex flex-col items-center gap-1.5 rounded border p-3 transition-colors ${
83+
className={`flex flex-col items-center gap-1.5 rounded border p-3 ${
8484
value === type
8585
? "border-primary bg-primary/5"
8686
: "hover:border-muted-foreground/50"

0 commit comments

Comments
 (0)