Merge pull request #5 from artslidd/develop

Last touch before launch
This commit is contained in:
Arthur Belleville 2025-10-07 23:01:09 +02:00 committed by GitHub
commit 09edcf6982
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 3 deletions

View file

@ -178,8 +178,8 @@ tabloRouter.post("/create-and-invite", async (c) => {
const { data: insertedTablo, error } = await supabase
.from("tablos")
.insert({
name: `${ownerDataTyped.name || "Propriétaire"} / ${
invitedUserDataTyped.name || "Invité"
name: `${invitedUserDataTyped.name || "Invité"} / ${
ownerDataTyped.name || "Propriétaire"
}`,
color: "bg-blue-500",
status: "todo",
@ -244,6 +244,7 @@ tabloRouter.post("/create-and-invite", async (c) => {
// Send email notifications to both owner and invited user
// Send email to the owner
await transporter.sendMail({
from: "Xtablo <noreply@xtablo.com>",
to: ownerDataTyped.email,
subject: "Nouveau tablo créé - Réservation confirmée",
html: `
@ -264,6 +265,7 @@ tabloRouter.post("/create-and-invite", async (c) => {
// Send email to the invited user
await transporter.sendMail({
from: "Xtablo <noreply@xtablo.com>",
to: invitedUserDataTyped.email,
subject: "Réservation confirmée - Nouveau tablo créé",
html: `

View file

@ -95,7 +95,7 @@ userRouter.post("/mark-temporary", async (c) => {
try {
if (profile?.email) {
const mailOptions = {
from: process.env.EMAIL_USER,
from: "Xtablo <noreply@xtablo.com>",
to: profile.email,
subject: "Bienvenue sur XTablo - Votre mot de passe temporaire",
text: `Bienvenue sur XTablo !

View file

@ -6,6 +6,9 @@ import { Header } from "@ui/components/header";
import { Link } from "react-router-dom";
export const LandingPage = () => {
window.location.href = "https://www.xtablo.com";
return null;
localStorage.setItem("xtablo-has-seen-landing-page", "true");
const CheckIcon = () => {