From 1716487c20bc157e13fd6b6a106d3d713abf9da9 Mon Sep 17 00:00:00 2001
From: Juan Andrade <78118656+Dosbodoke@users.noreply.github.com>
Date: Thu, 6 Feb 2025 17:59:13 -0300
Subject: [PATCH] New DB schema and Privacy policy (#51)
* Enable static rendering for festival and home page
* Bump to Next 15 and React 19
* Update React to stable version
* Added animation to map toggle
* Animate trigger
* Fix marker animation
* Pill animation
* Update to work with new databas schema
* Added privacy policy
---
.../[id]/_components/HighlineHeader.tsx | 2 +-
app/[locale]/[id]/_components/Info.tsx | 4 +-
app/[locale]/_components/Highline.tsx | 2 +-
.../festival/_components/timeline.tsx | 118 --
app/[locale]/privacy/page.tsx | 66 +
.../[username]/_components/LastWalks.tsx | 2 +-
components/CreateHighline.tsx | 12 +-
components/Map/LocationPicker.tsx | 2 +-
components/Map/Selected.tsx | 2 +-
messages/en.json | 37 +
messages/pt.json | 37 +
.../20230708122900_remote_commit.sql | 203 ---
.../20230719130300_entry_cadena_number.sql | 41 -
.../migrations/20231029094600_profile.sql | 79 -
.../20231030152535_auth_trigger.sql | 4 -
.../20231030163000_auth_policies.sql | 72 -
.../20231031140730_profile_picture.sql | 3 -
.../20240126152956_remote_schema.sql | 22 -
.../20240226160441_favorite_highline.sql | 47 -
.../20240329190725_highline_anchor_b.sql | 15 -
.../20240331164414_get_highline.sql | 39 -
.../20240404125731_update_highline_rls.sql | 9 -
...40417183631_entry_with_profile_picture.sql | 70 -
...4_fix_entry_whitout_associated_profile.sql | 64 -
...240520004328_multiple_highline_ranking.sql | 70 -
.../20240522132228_get_multiple_highline.sql | 43 -
...20240522152724_ranking_with_date_range.sql | 84 -
.../20250206202200_remote_schema.sql | 627 +++++++
utils/supabase/database.types.ts | 1603 +++++++++--------
29 files changed, 1657 insertions(+), 1722 deletions(-)
delete mode 100644 app/[locale]/festival/_components/timeline.tsx
create mode 100644 app/[locale]/privacy/page.tsx
delete mode 100644 supabase/migrations/20230708122900_remote_commit.sql
delete mode 100644 supabase/migrations/20230719130300_entry_cadena_number.sql
delete mode 100644 supabase/migrations/20231029094600_profile.sql
delete mode 100644 supabase/migrations/20231030152535_auth_trigger.sql
delete mode 100644 supabase/migrations/20231030163000_auth_policies.sql
delete mode 100644 supabase/migrations/20231031140730_profile_picture.sql
delete mode 100644 supabase/migrations/20240126152956_remote_schema.sql
delete mode 100644 supabase/migrations/20240226160441_favorite_highline.sql
delete mode 100644 supabase/migrations/20240329190725_highline_anchor_b.sql
delete mode 100644 supabase/migrations/20240331164414_get_highline.sql
delete mode 100644 supabase/migrations/20240404125731_update_highline_rls.sql
delete mode 100644 supabase/migrations/20240417183631_entry_with_profile_picture.sql
delete mode 100644 supabase/migrations/20240417190644_fix_entry_whitout_associated_profile.sql
delete mode 100644 supabase/migrations/20240520004328_multiple_highline_ranking.sql
delete mode 100644 supabase/migrations/20240522132228_get_multiple_highline.sql
delete mode 100644 supabase/migrations/20240522152724_ranking_with_date_range.sql
create mode 100644 supabase/migrations/20250206202200_remote_schema.sql
diff --git a/app/[locale]/[id]/_components/HighlineHeader.tsx b/app/[locale]/[id]/_components/HighlineHeader.tsx
index 5ad627d..86b93f9 100644
--- a/app/[locale]/[id]/_components/HighlineHeader.tsx
+++ b/app/[locale]/[id]/_components/HighlineHeader.tsx
@@ -58,7 +58,7 @@ export const HighlineHeader = ({ highline }: { highline: Highline }) => {
);
}
diff --git a/app/[locale]/_components/Highline.tsx b/app/[locale]/_components/Highline.tsx
index 0a70b29..9aa6ea4 100644
--- a/app/[locale]/_components/Highline.tsx
+++ b/app/[locale]/_components/Highline.tsx
@@ -45,7 +45,7 @@ export function Highline({ highline, classname }: Props) {
{" "}
- {highline.lenght.toFixed(0)}m
+ {highline.length.toFixed(0)}m
diff --git a/app/[locale]/festival/_components/timeline.tsx b/app/[locale]/festival/_components/timeline.tsx
deleted file mode 100644
index c943f54..0000000
--- a/app/[locale]/festival/_components/timeline.tsx
+++ /dev/null
@@ -1,118 +0,0 @@
-import { ClockIcon } from "lucide-react";
-import React from "react";
-
-export const timeline = () => {};
-
-// import { AvatarImage, AvatarFallback, Avatar } from "@/components/ui/avatar"
-
-export const Timeline = () => {
- return (
-
-
-
-
-
-
Ínicio de festival
-
-
- 9:00 AM
-
-
-
- Abertura oficila das vias de Highline
-
-
-
-
-
-
Oficina de resgate
-
-
- 11:00 AM
-
-
-
- Ministrada por ..., você vai aprender tudo sobre resgate
-
-
- {/*

*/}
-
-
Pessoa XXX
-
- Highliner
-
-
-
-
-
-
-
-
Panel Discussion
-
-
- 2:00 PM
-
-
-
- Join our panel of experts for an insightful discussion on the future
- of the industry.
-
-
- {/*
-
- JS
- */}
-
-
Jane Smith
-
- Industry Analyst
-
-
-
-
-
-
-
-
Networking Reception
-
-
- 5:00 PM
-
-
-
- Join us for drinks and hors oeuvres to network with other attendees.
-
-
- {/*

*/}
-
-
Globex Corporation
-
- Gold Sponsor
-
-
-
-
-
-
- );
-};
diff --git a/app/[locale]/privacy/page.tsx b/app/[locale]/privacy/page.tsx
new file mode 100644
index 0000000..77a6584
--- /dev/null
+++ b/app/[locale]/privacy/page.tsx
@@ -0,0 +1,66 @@
+import type { Metadata } from "next";
+import { getTranslations } from "next-intl/server";
+
+import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
+
+export const revalidate = 0;
+
+export const metadata: Metadata = {
+ title: "Privacy Policy",
+ description: "Our commitment to protecting your privacy",
+};
+
+export default async function PrivacyPolicyPage() {
+ const t = await getTranslations("privacyPolicy");
+
+ return (
+
+
+
+ {t("title")}
+
+
+ {t("intro")}
+
+
+ {t("collectionUse.title")}
+
+ {t("collectionUse.p1")}
+ {t("collectionUse.p2")}
+ {t("collectionUse.p3")}
+
+ {t("cookies.title")}
+ {t("cookies.p1")}
+ {t("cookies.p2")}
+ {t("cookies.p3")}
+
+
+ {t("externalLinks.title")}
+
+ {t("externalLinks.content")}
+
+
+ {t("rightOfRefusal.title")}
+
+ {t("rightOfRefusal.p1")}
+ {t("rightOfRefusal.p2")}
+
+
+ {t("userCommitment.title")}
+
+ {t("userCommitment.intro")}
+
+ - {t("userCommitment.a")}
+ - {t("userCommitment.b")}
+ - {t("userCommitment.c")}
+
+
+ {t("moreInfo.title")}
+ {t("moreInfo.content")}
+
+ {t("effectiveDate")}
+
+
+
+ );
+}
diff --git a/app/[locale]/profile/[username]/_components/LastWalks.tsx b/app/[locale]/profile/[username]/_components/LastWalks.tsx
index 9c8abe9..965492d 100644
--- a/app/[locale]/profile/[username]/_components/LastWalks.tsx
+++ b/app/[locale]/profile/[username]/_components/LastWalks.tsx
@@ -121,7 +121,7 @@ function LastWalksContent({ entries }: ContentProps) {
{t("popover.height")}: {entry.highline?.height}m
- {t("popover.length")}: {entry.highline?.lenght}m
+ {t("popover.length")}: {entry.highline?.length}m