diff --git a/src/app/(app)/actions/[symbol]/page.tsx b/src/app/(app)/actions/[symbol]/page.tsx index b3aec9a..673c26f 100644 --- a/src/app/(app)/actions/[symbol]/page.tsx +++ b/src/app/(app)/actions/[symbol]/page.tsx @@ -1,12 +1,12 @@ import { Suspense } from "react"; -import Link from "next/link"; import { notFound } from "next/navigation"; import { connection } from "next/server"; import { and, desc, eq } from "drizzle-orm"; import { PositionList } from "@/components/positions"; import { StockChart } from "@/components/stock-chart"; import { TradePanel } from "@/components/trade-panel"; -import { Badge, Card, CardSkeleton, Empty, Page } from "@/components/ui"; +import { Badge, Card, CardSkeleton, Delta, Empty, Page } from "@/components/ui"; +import { BackLink } from "@/components/nav"; import { aiEnabled, getAiSpend } from "@/lib/ai"; import { getDb, schema } from "@/lib/db"; import { pct, price, timeAgo } from "@/lib/format"; @@ -52,26 +52,32 @@ async function StockContent({ params, searchParams }: Props) { return ( - ‹ Actions - - } + subtitle={`${symbol}${stock ? `, ${stock.market === "US" ? "Bourse américaine" : "Bourse européenne"}` : ""}`} + action={} >
-

{price(quote.price, quote.currency)}

-
- {quote.changePct !== null &&

= 0 ? "text-accent" : "text-danger"}`}>{pct(quote.changePct, 2)} auj.

} - {change3m !== null &&

= 0 ? "text-accent" : "text-danger"}`}>{pct(change3m)} sur 3 mois

} +
+

{price(quote.price, quote.currency)}

+ {quote.currency === "USD" && fx &&

soit {(quote.price * fx).toFixed(2).replace(".", ",")} € chez Trade Republic

} +
+
+ {quote.changePct !== null && ( +

+ {pct(quote.changePct, 2)} aujourd'hui +

+ )} + {change3m !== null && ( +

+ {pct(change3m)} en 3 mois +

+ )}
- {quote.currency === "USD" && fx &&

≈ {(quote.price * fx).toFixed(2)} € chez Trade Republic

} -
+
- {earnings &&

📅 Prochains résultats : {formatDateFr(earnings)}

} + {earnings &&

Prochains résultats le {formatDateFr(earnings)}. L'app n'achète jamais dans les 4 jours qui précèdent.

} {held.length > 0 && ( @@ -81,13 +87,13 @@ async function StockContent({ params, searchParams }: Props) { )} {signal && ( - -

- {signal.decision === "buy" ? "Achat" : "On passe"}{" "} - confiance {signal.confidence} % + {formatDateFr(signal.date)}}> +

+ {signal.decision === "buy" ? "Achète" : "Passe son tour"} + confiance {signal.confidence} %

-

{signal.thesis}

-

⚠️ {signal.risks}

+

{signal.thesis}

+

Risques : {signal.risks}

)} @@ -111,16 +117,22 @@ async function StockContent({ params, searchParams }: Props) { {!news.length && Pas d'actu récente.} -
    +
      {news.map((n) => ( -
    • - +
    • + {n.title} - {n.triage?.reason &&

      {n.triage.reason}

      } -

      - {n.publisher} · {timeAgo(n.publishedAt)} - {n.triage && ` · ${n.triage.direction === "positive" ? "▲" : n.triage.direction === "negative" ? "▼" : "•"} ${n.triage.relevance}/10`} + {n.triage?.reason &&

      {n.triage.reason}

      } +

      + + {n.publisher}, {timeAgo(n.publishedAt)} + + {n.triage && ( + + {n.triage.direction === "positive" ? "Bonne nouvelle" : n.triage.direction === "negative" ? "Mauvaise nouvelle" : "Neutre"}, {n.triage.relevance}/10 + + )}

    • ))} @@ -134,7 +146,7 @@ export default function StockPage(props: Props) { return ( + }> diff --git a/src/app/(app)/actions/page.tsx b/src/app/(app)/actions/page.tsx index a80f300..25e66c2 100644 --- a/src/app/(app)/actions/page.tsx +++ b/src/app/(app)/actions/page.tsx @@ -2,7 +2,7 @@ import { Suspense } from "react"; import Link from "next/link"; import { connection } from "next/server"; import { StockBrowser, type StockRow } from "@/components/stock-browser"; -import { Card, CardSkeleton, Empty, Page } from "@/components/ui"; +import { Badge, Card, CardSkeleton, Empty, Page } from "@/components/ui"; import { pct } from "@/lib/format"; import { getIdeas } from "@/lib/ideas"; import { getQuotes } from "@/lib/market"; @@ -15,17 +15,17 @@ async function Ideas() { const ideas = await getIdeas(); const items = ideas?.items.slice(0, 4) ?? []; return ( - filtre sans IA}> + Sans IA}> {!items.length && Les idées se calculent à l'ouverture de l'app : reviens dans une minute.} -
        +
          {items.map((i) => (
        • - + {i.name} - {pct(i.pullbackPct)} sur 5 j + {pct(i.pullbackPct)} en 5 jours - {i.reason} + {i.reason}
        • ))} @@ -57,10 +57,10 @@ export default function ActionsPage() { return ( - 📰 Actus + + Actus } > diff --git a/src/app/(app)/actus/page.tsx b/src/app/(app)/actus/page.tsx index 4b24d6a..f90eef6 100644 --- a/src/app/(app)/actus/page.tsx +++ b/src/app/(app)/actus/page.tsx @@ -1,6 +1,7 @@ import { Suspense } from "react"; import { connection } from "next/server"; import { PageSkeleton } from "@/components/page-skeleton"; +import { BackLink } from "@/components/nav"; import { Badge, Card, Empty, Page } from "@/components/ui"; import { timeAgo } from "@/lib/format"; import { recentNews } from "@/lib/news"; @@ -33,23 +34,23 @@ async function NewsPageContent() { return (
        • - {findStock(n.symbol)?.name ?? n.symbol} + {findStock(n.symbol)?.name ?? n.symbol} {t && ( <> - - {t.direction === "positive" ? "▲ positif" : t.direction === "negative" ? "▼ négatif" : "neutre"} + + {t.direction === "positive" ? "Bonne nouvelle" : t.direction === "negative" ? "Mauvaise nouvelle" : "Neutre"} {EVENT_LABELS[t.eventType] ?? t.eventType} - {t.relevance}/10 + {t.relevance}/10 )} {!t && pas encore triée}
          - + {n.title} - {t?.reason &&

          {t.reason}

          } -

          + {t?.reason &&

          {t.reason}

          } +

          {n.publisher} · {timeAgo(n.publishedAt)}

        • @@ -57,12 +58,12 @@ async function NewsPageContent() { }; return ( - - - {important.length ?
            {important.map(item)}
          : Rien de marquant pour l'instant.} + }> + 7/10 et plus}> + {important.length ?
            {important.map(item)}
          : Rien de marquant pour l'instant.}
          - {others.length ?
            {others.map(item)}
          : Aucune actu collectée pour l'instant.} + {others.length ?
            {others.map(item)}
          : Aucune actu collectée pour l'instant.}
          ); diff --git a/src/app/(app)/bac-a-sable/page.tsx b/src/app/(app)/bac-a-sable/page.tsx index 9b971f8..d9b79ff 100644 --- a/src/app/(app)/bac-a-sable/page.tsx +++ b/src/app/(app)/bac-a-sable/page.tsx @@ -17,21 +17,26 @@ async function SandboxContent() { return ( <> - -
          -

          {eur(state.equity)}

          - {pct(perf)} + +

          Mes 200 € virtuels valent

          +
          +

          {eur(state.equity)}

          +

          + {pct(perf)} +

          -
          - {eur(state.cash, 0)} +
          + {eur(state.cash, 0)} {signedEur(realized)} - {closed.length ? `${wins}/${closed.length}` : "—"} + {closed.length ? `${wins} sur ${closed.length}` : "–"}
          - - + Acheter une action + + Choisir une action à acheter {!isTradeRepublicOpen() && ( -

          Trade Republic est fermé (7h30-23h en semaine) : tes ordres s'exécuteront à la réouverture, comme en vrai.

          +

          + Trade Republic est fermé (de 7h30 à 23h en semaine) : tes ordres partiront à la réouverture, comme en vrai. +

          )} @@ -45,7 +50,7 @@ async function SandboxContent() { - + @@ -55,8 +60,8 @@ async function SandboxContent() { export default function SandboxPage() { return ( - - }> + + }> diff --git a/src/app/(app)/ia/page.tsx b/src/app/(app)/ia/page.tsx index c38d7c7..551bd28 100644 --- a/src/app/(app)/ia/page.tsx +++ b/src/app/(app)/ia/page.tsx @@ -1,89 +1,122 @@ import { Suspense } from "react"; import { connection } from "next/server"; -import { PageSkeleton } from "@/components/page-skeleton"; import { desc } from "drizzle-orm"; import { ClosedList, PendingOrders, PositionList } from "@/components/positions"; -import { Badge, Card, Empty, Page } from "@/components/ui"; +import { ResetAi } from "@/components/reset-ai"; +import { Badge, Card, CardSkeleton, Delta, Empty, Page, Stat } from "@/components/ui"; import { getDb, schema } from "@/lib/db"; +import { aiSimStuck, MIN_POSITION_EUR } from "@/lib/engine/risk"; import { eur, pct } from "@/lib/format"; + import { getClosedPositions, getPortfolioState } from "@/lib/portfolio"; +import { getSettings } from "@/lib/settings"; +import { aiDeposits, aiPerformance } from "@/lib/stats"; +import { formatDateFr } from "@/lib/time"; - -async function AiPageContent() { +async function Pot() { await connection(); - const db = await getDb(); - const [state, closed, signals] = await Promise.all([ - getPortfolioState("ai_sim"), - getClosedPositions("ai_sim", 100), - db.select().from(schema.signals).orderBy(desc(schema.signals.createdAt)).limit(20), - ]); - const perf = (state.equity / state.initialCash - 1) * 100; + const [state, closed, deposits, settings] = await Promise.all([getPortfolioState("ai_sim"), getClosedPositions("ai_sim", 100), aiDeposits(), getSettings()]); + const perf = aiPerformance(state, deposits); const wins = closed.filter((p) => (p.pnlEur ?? 0) > 0).length; const fees = closed.reduce((s, p) => s + p.feesEur, 0); + const stuck = aiSimStuck(state); return ( - - -
          -

          {eur(state.equity)}

          -

          = 0 ? "text-accent" : "text-danger"}`}>{pct(perf)}

          + <> + +

          Sa cagnotte aujourd'hui

          +
          +

          {eur(state.equity)}

          +

          + {pct(perf.pct)} +

          -
          -
          -

          {closed.length}

          -

          trades

          -
          -
          -

          {closed.length ? Math.round((wins / closed.length) * 100) : 0} %

          -

          gagnants

          -
          -
          -

          {eur(fees, 0)}

          -

          frais payés

          -
          +

          + Sur {eur(perf.contributed, 0)} reçus : 200 € au départ le {formatDateFr(settings.simStartDate)} + {deposits.length ? `, puis ${deposits.length} versement${deposits.length > 1 ? "s" : ""} de ${settings.realMonthlyDeposit} €` : ""}. +

          +
          + {closed.length} + {closed.length ? `${Math.round((wins / closed.length) * 100)} %` : "–"} + {eur(fees, 0)}
          - + {stuck && ( + +

          + Il lui reste {eur(state.cash)}, sous le minimum de {MIN_POSITION_EUR} € par position. Elle reprendra après le prochain versement de {settings.realMonthlyDeposit} €, le{" "} + {settings.realDepositDay} du mois. Si tu estimes qu'elle a échoué, remets-la à zéro. +

          +
          + +
          +
          + )} + + {state.pendingOrders.length > 0 && ( -
          +
          +

          Ordres en attente

          )} - - {!signals.length && Aucune analyse pour l'instant. Elles arrivent chaque soir.} -
            - {signals.map((s) => ( -
          • -
            - {s.name} - {s.decision === "buy" ? "Achat" : "On passe"} - - {s.date} · confiance {s.confidence} % - -
            -

            {s.thesis}

            -

            ⚠️ {s.risks}

            - {s.riskVerdict && s.riskVerdict !== "accepté" &&

            Contrôle des risques : {s.riskVerdict}

            } -
          • - ))} -
          -
          - - + - + + {!stuck && ( + +

          + Chaque mois, l'IA reçoit le même versement que ton compte-titres ({settings.realMonthlyDeposit} €), comme en vrai. Tu peux aussi effacer sa simulation et lui redonner + 200 €. +

          + +
          + )} + + ); +} + +async function Signals() { + await connection(); + const db = await getDb(); + const signals = await db.select().from(schema.signals).orderBy(desc(schema.signals.createdAt)).limit(20); + return ( + + {!signals.length && Aucune analyse pour l'instant. Elles arrivent chaque soir de semaine, 30 minutes avant ton rendez-vous.} +
            + {signals.map((s) => ( +
          • +
            + {s.name} + {s.decision === "buy" ? "Achète" : "Passe son tour"} + + {formatDateFr(s.date)}, confiance {s.confidence} % + +
            +

            {s.thesis}

            +

            Risques : {s.risks}

            + {s.riskVerdict && s.riskVerdict !== "accepté" &&

            Refusé par le contrôle des risques : {s.riskVerdict}

            } +
          • + ))} +
          +
          ); } export default function AiPage() { return ( - }> - - + + }> + + + }> + + + ); } diff --git a/src/app/(app)/page.tsx b/src/app/(app)/page.tsx index a83c00a..df6f662 100644 --- a/src/app/(app)/page.tsx +++ b/src/app/(app)/page.tsx @@ -4,7 +4,7 @@ import { connection } from "next/server"; import { ActionCard } from "@/components/action-card"; import { FindIdeas } from "@/components/find-ideas"; import { SettingsLink } from "@/components/nav"; -import { Badge, Card, CardSkeleton, Delta, Empty, Page, primaryBtn } from "@/components/ui"; +import { Badge, Card, CardSkeleton, Delta, Empty, primaryBtn } from "@/components/ui"; import { aiEnabled, getAiSpend } from "@/lib/ai"; import { getLatestRendezvous, getPendingAdhocCards } from "@/lib/cards"; import { eur, pct, signedEur } from "@/lib/format"; @@ -18,37 +18,120 @@ function hhmm(minutes: number) { return `${String(Math.floor(minutes / 60)).padStart(2, "0")}h${String(minutes % 60).padStart(2, "0")}`; } -/** Ce que tu as à faire : seulement la base de données, donc instantané. */ +/** En-tête : la date du jour, connue sans attendre aucune donnée. */ +async function Today() { + await connection(); + const d = formatDateFr(parisDate()); + return

          {d.charAt(0).toUpperCase() + d.slice(1)}

          ; +} + +/** + * Le patrimoine et sa répartition : à gauche ce qui est à l'abri (PEA), à droite la cagnotte + * que l'IA fait travailler (compte-titres). C'est toute l'idée de l'app en une barre. + */ +async function Wealth() { + await connection(); + const settings = await getSettings(); + const [real, pea] = await Promise.all([getPortfolioState("real"), getPea(settings)]); + const safe = pea?.value ?? 0; + const pot = real.equity; + const total = safe + pot; + const safeShare = total > 0 ? (safe / total) * 100 : 50; + + return ( +
          +

          Mon patrimoine

          +

          {eur(total)}

          + +
          + {total > 0 ? ( + <> +
          +
          + + ) : ( +
          + )} +
          + +
          + +

          + À l'abri +

          +

          {eur(safe, 0)}

          +

          + {pea && pea.invested > 0 ? ( + <> + PEA S&P 500, {signedEur(pea.gain)} + + ) : settings.peaPlan ? ( + "PEA, premier achat à venir" + ) : ( + "PEA à configurer" + )} +

          + + +

          + + Cagnotte qui travaille +

          +

          {eur(pot, 0)}

          +

          + Compte-titres, {real.positions.length ? `${real.positions.length} position${real.positions.length > 1 ? "s" : ""}` : `${eur(real.cash, 0)} en attente`} +

          + +
          +
          + ); +} + +function WealthSkeleton() { + return ( +
          +

          Mon patrimoine

          +
          +
          +
          +
          +
          +
          +
          + ); +} + +/** Ce que tu as à faire : seulement la base de données, donc rapide. */ async function Todo() { await connection(); const [settings, rdv, adhoc, ideas] = await Promise.all([getSettings(), getLatestRendezvous(), getPendingAdhocCards(), getIdeas()]); const isToday = rdv?.date === parisDate(); - const cards = [...(rdv?.cards ?? []), ...adhoc]; + const cards = [...(rdv?.cards ?? []), ...adhoc.filter((c) => c.rendezvousId !== rdv?.id)]; const pending = cards.filter((c) => c.status === "pending"); - const shown = isToday ? cards : pending; + const shown = isToday ? cards.filter((c) => c.status !== "expired") : pending; return ( <> {!settings.trAccountOpenedAt && ( - -

          - Indique à l'app où en est ton compte Trade Republic (versements, PEA, actions déjà achetées). Ça prend 1 minute, et aucun identifiant n'est demandé. + +

          + Versements, PEA, actions déjà achetées : une minute suffit, et aucun identifiant Trade Republic n'est demandé.

          - + Configurer mon compte
          )} {pending.length} à traiter : undefined} > - {rdv?.summary && isToday &&

          {rdv.summary}

          } + {rdv?.summary && isToday &&

          {rdv.summary}

          } {!shown.length && ( - Rien à faire pour l'instant. Ton prochain rendez-vous arrive à {hhmm(settings.rendezvousMinutes)} (en semaine), ou lance une recherche tout de suite. + Rien à faire pour l'instant. L'IA prépare ton prochain rendez-vous pour {hhmm(settings.rendezvousMinutes)}, en semaine. Tu peux aussi lancer une recherche maintenant. )}
          @@ -56,63 +139,37 @@ async function Todo() { ))}
          -
          +
          {!pending.length && ideas && ideas.items.length > 0 && ( - Toutes les actions}> -
            + + Toutes les actions + + } + > +
              {ideas.items.slice(0, 3).map((i) => (
            • - - {i.name} - - tendance +{i.trendPct} % · repli {i.pullbackPct} % - + + {i.name} + {pct(i.pullbackPct)} cette semaine
            • ))}
            -

            Repérées par une règle simple (sans IA). À essayer dans ton bac à sable.

            +

            Des actions en hausse de fond qui viennent de reculer. Repérées par une règle simple, sans IA : essaie-les dans ton bac à sable.

            )} ); } -/** Patrimoine : dépend des cours (PEA + compte-titres). */ -async function Wealth() { - await connection(); - const settings = await getSettings(); - const [real, pea] = await Promise.all([getPortfolioState("real"), getPea(settings)]); - const total = (pea?.value ?? 0) + real.equity; - return ( - -

            {eur(total)}

            -
            - -

            PEA · cœur

            -

            {eur(pea?.value ?? 0)}

            - {pea && pea.invested > 0 ? ( -

            - {signedEur(pea.gain)} sur {eur(pea.invested, 0)} -

            - ) : ( -

            {settings.peaPlan ? "Premier achat à venir" : "Pas encore configuré ›"}

            - )} - - -

            Compte-titres

            -

            {eur(real.equity)}

            -

            {real.positions.length ? `${real.positions.length} position(s)` : `${eur(real.cash, 0)} en liquidités ›`}

            - -
            -
            - ); -} - /** Classement et critères du mode réel : dépendent de l'indice S&P 500. */ async function Progress() { await connection(); @@ -123,55 +180,69 @@ async function Progress() { return ( <> - Détails}> -
              + + Voir l'IA + + } + > +
                {board.map((row, i) => ( -
              1. - - {["🥇", "🥈", "🥉"][i]} {row.label} - {row.detail} +
              2. + {i + 1} + + {row.label} + {row.detail} {pct(row.pct)}
              3. ))}
              -

              L'IA et toi partez chacun de 200 € virtuels. Le S&P 500, c'est ce que tu aurais gagné sans rien faire.

              +

              + L'IA et toi partez de 200 € virtuels. Le S&P 500 montre ce que tu aurais gagné sans rien faire. +

              - Débloqué : {met}/5 critères}> - {settings.realLockedReason &&

              Coupe-circuit : {settings.realLockedReason}

              } -
              -
              + Débloqué : {met} critères sur 5}> + {settings.realLockedReason &&

              Coupe-circuit : {settings.realLockedReason}

              } +
              + {gate.criteria.map((c) => ( +
              + ))}
              -
              - Voir les 5 critères -
                - {gate.criteria.map((c) => ( -
              • - - {c.ok ? "✅" : "⏳"} {c.label} - - - {c.value} / {c.target} - -
              • - ))} -
              -
              +
                + {gate.criteria.map((c) => ( +
              • + + + {c.label} + + + {c.value} + objectif {c.target} + +
              • + ))} +
              - + {aiEnabled() ? ( <> -
              +

              + {spend.monthUsd.toFixed(2)} $ sur {settings.aiMonthlyBudgetUsd} $ +

              +
              -

              - {spend.monthUsd.toFixed(2)} $ sur {settings.aiMonthlyBudgetUsd} $ · coût déduit des résultats de l'IA -

              +

              Ce coût est déduit des résultats de l'IA avant de la comparer au S&P 500.

              ) : ( - IA pas encore branchée : ajoute ta clé Anthropic (ANTHROPIC_API_KEY, voir le README). En attendant, l'app te propose des idées sans IA. + + L'IA n'est pas encore branchée : ajoute ta clé Anthropic (ANTHROPIC_API_KEY, voir le README). En attendant, l'app te propose des idées sans IA. + )} @@ -180,16 +251,22 @@ async function Progress() { export default function Home() { return ( - }> - }> - - - }> +
              +
              + Aujourd'hui

              }> + +
              + +
              + }> - }> + }> + + + }> - +
              ); } diff --git a/src/app/(app)/reel/page.tsx b/src/app/(app)/reel/page.tsx index a21f9eb..6e2feba 100644 --- a/src/app/(app)/reel/page.tsx +++ b/src/app/(app)/reel/page.tsx @@ -29,15 +29,12 @@ async function AccountContent() { return ( <> - -

              - 🔒 Trade Republic n'offre pas de connexion pour les applications : l'app ne se branche jamais à ton compte et ne te demandera jamais tes identifiants. - Tu lui indiques ce que tu as, elle fait les calculs et te dit quoi faire. -

              -
              - - configuré : à faire}> - {configured &&

              Ouvert le {formatDateFr(settings.trAccountOpenedAt!)}.

              } + Configuré : À faire} + > + {configured &&

              Ouvert le {formatDateFr(settings.trAccountOpenedAt!)}.

              }
              - Mode réel actif : Simulation d'abord}> -
              -

              {eur(state.equity)}

              - {deposited > 0 && {signedEur(gain)}} + +
              +

              + + Ma cagnotte réelle +

              + {realActive ? Mode réel actif : Simulation d'abord}
              -
              - {eur(state.cash, 0)} +
              +

              {eur(state.equity)}

              + {deposited > 0 && ( +

              + {signedEur(gain)} +

              + )} +
              +
              + {eur(state.cash, 0)} {eur(deposited, 0)} - {eur(toPea, 0)} + {eur(toPea, 0)}
              {!realActive && ( -

              - Tant que l'IA n'a pas prouvé en simulation qu'elle bat le S&P 500, elle ne te propose pas de trade réel : ton argent attend sur le compte. Tu peux quand même - enregistrer ici ce que tu fais de ton côté. +

              + Tant que l'IA n'a pas prouvé en simulation qu'elle bat le S&P 500, elle ne te propose aucun trade réel : ton argent attend sur le compte. Tu peux + quand même noter ici ce que tu fais de ton côté.

              )} -
              +
              - -
              + +
              - }> + }> {closed.length > 0 && ( - + )} + +

              + Trade Republic ne permet à aucune application de se connecter à ton compte. L'app ne te demandera donc jamais tes identifiants : tu lui dis ce que tu as, elle fait les + calculs et te dit quoi faire. +

              ); } @@ -94,23 +107,32 @@ async function PeaSection() { const plan = settings.peaPlan ?? defaultPeaPlan(parisDate()); const pea = await getPea(settings); return ( -
              - +
              + +

              + + Mon PEA, la part à l'abri +

              {pea && ( -
              - {eur(pea.value, 0)} - {eur(pea.invested, 0)} - {pea.shares.toLocaleString("fr-FR", { maximumFractionDigits: 3 })} -
              + <> +

              {eur(pea.value)}

              +
              + {eur(pea.invested, 0)} + {signedEur(pea.gain)} + {pea.shares.toLocaleString("fr-FR", { maximumFractionDigits: 3 })} +
              + )} - +
              + +
              ); @@ -118,7 +140,7 @@ async function PeaSection() { export default function AccountPage() { return ( - }> + }> }> diff --git a/src/app/(app)/reglages/page.tsx b/src/app/(app)/reglages/page.tsx index b1e45f9..1d71f89 100644 --- a/src/app/(app)/reglages/page.tsx +++ b/src/app/(app)/reglages/page.tsx @@ -2,6 +2,7 @@ import { Suspense } from "react"; import Link from "next/link"; import { connection } from "next/server"; import { logout, saveSettings } from "@/app/actions"; +import { BackLink } from "@/components/nav"; import { PushManager } from "@/components/push-manager"; import { RunNow } from "@/components/run-now"; import { Card, CardSkeleton, inputCls, Page, primaryBtn, secondaryBtn } from "@/components/ui"; @@ -11,10 +12,10 @@ import { getSettings } from "@/lib/settings"; function Field({ label, hint, children }: { label: string; hint?: string; children: React.ReactNode }) { return ( -
              -