Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitamalinov committed Apr 18, 2024
1 parent 7e79e9a commit 7ddcf34
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 30 deletions.
1 change: 0 additions & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export default function Home() {
</div>
</div>
</div>

<div className="mt-14 mb-16">
<iframe
className="lg:h-[540px] lg:w-[960px] md:h-[396px] md:w-[704px] sm:h-[333px] sm:w-[592px] w-[90vw] aspect-video"
Expand Down
5 changes: 3 additions & 2 deletions components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
faLinkedin,
faYoutube,
} from "@fortawesome/free-brands-svg-icons";
import { PRIVACY_POLICY_URL } from "@/lib/constants";

export default function Footer() {
// Analytics
Expand All @@ -26,7 +27,7 @@ export default function Footer() {
<div className="flex w-[95vw] sm:w-[80vw] 2xl:w-[1280px] flex-col justify-center ">
<div className="flex flex-col gap-10 sm:gap-0 sm:flex-row items-center py-10 mt-auto w-full text-black text-lg font-helvetica justify-center ">
<div className="flex flex-wrap gap-20 xl:gap-36 mx-auto w-auto ">
<ol className="flex gap-2">
<ol className="flex gap-5">
<li>
<Link
href={process.env.NEXT_PUBLIC_GITHUB_APP_URL as string}
Expand Down Expand Up @@ -68,7 +69,7 @@ export default function Footer() {
</li>
<li>
<Link
href="/privacy-policy"
href={PRIVACY_POLICY_URL}
onClick={() => {
posthog.capture("$click", {
$event_type: "privacy_policy",
Expand Down
3 changes: 2 additions & 1 deletion components/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { useSession } from "next-auth/react";

import { motion } from "framer-motion";
import ProfileIcon from "./ProfileIcon";
import { PRIVACY_POLICY_URL } from "@/lib/constants";

const buttonStyles = `bg-pink text-white rounded-lg transition-colors
duration-200 py-2 px-3 shadow-lg hover:shadow-lg
Expand All @@ -40,7 +41,7 @@ export default function Navbar() {
}
}, [pathname, posthog]);

if (pathname === "/privacy-policy") return null;
if (pathname === PRIVACY_POLICY_URL) return null;

return (
<div className="flex flex-col w-full justify-center items-center font-helvetica font-normal bg-white text-black sm:text-md xl:text-lg">
Expand Down
1 change: 1 addition & 0 deletions lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@
// checkVar(NEXT_PUBLIC_POSTHOG_HOST, "NEXT_PUBLIC_POSTHOG_HOST");

export const REDIRECT_GITHUB_APP_URL = "/redirect-to-install";
export const PRIVACY_POLICY_URL = "/privacy-policy";
18 changes: 8 additions & 10 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ model Installation {
created_at DateTime @default(now()) @db.Timestamptz(6)
installation_id BigInt @id @unique(map: "owners_installation_id_key")
owner_name String
uninstalled_at DateTime? @db.Timestamptz(6)
owner_type String @default("")
owner_id BigInt @default(1)
uninstalled_at DateTime? @db.Timestamptz(6)
created_by String?
uninstalled_by String?
owners Owner @relation(fields: [owner_id], references: [owner_id], onDelete: NoAction, onUpdate: NoAction, map: "public_owners_owner_id_fkey")
Expand Down Expand Up @@ -45,14 +45,12 @@ model Usage {
id BigInt @id @default(autoincrement())
created_at DateTime @default(now()) @db.Timestamptz(6)
is_completed Boolean @default(false)
token_input BigInt?
token_output BigInt?
tokens_input BigInt?
tokens_output BigInt?
unique_issue_id String
user_id BigInt
installation_id BigInt
created_by String?
pr_body String?
diffs String[]
issues Issue @relation(fields: [unique_issue_id], references: [unique_id], onDelete: NoAction, onUpdate: NoAction, map: "public_usage_unique_issue_id_fkey")
@@map("usage")
Expand All @@ -62,14 +60,14 @@ model User {
id BigInt @id @default(autoincrement())
created_at DateTime @default(now()) @db.Timestamptz(6)
deleted_at DateTime? @db.Timestamptz(6)
user_name String?
user_id BigInt
first_issue Boolean @default(true)
installation_id BigInt?
is_user_assigned Boolean @default(false)
first_issue Boolean @default(true)
is_selected Boolean @default(false)
user_name String?
user_id BigInt
created_by String?
deleted_by String?
is_selected Boolean @default(false)
installations Installation? @relation(fields: [installation_id], references: [installation_id], onDelete: Cascade, map: "public_users_installation_id_fkey")
@@unique([user_id, installation_id])
Expand All @@ -85,4 +83,4 @@ model Owner {
installations Installation[]
@@map("owners")
}
}
16 changes: 0 additions & 16 deletions public/privacy-policy/privacy-policy.md

This file was deleted.

Binary file removed public/privacy-policy/privacy-policy.pdf
Binary file not shown.

0 comments on commit 7ddcf34

Please sign in to comment.