diff --git a/public/privacy.html b/public/privacy.html index c71ffa5..1336eed 100644 --- a/public/privacy.html +++ b/public/privacy.html @@ -35,8 +35,8 @@

Qui peut voir quoi

Connexion avec Google

@@ -57,7 +57,7 @@

Privacy policy (English summary)

-

AzuuCine is a free, ad-free personal watch journal. It stores your email (and your name if you sign in with Google), your library, ratings, reviews and profile. Your email is never shown to other users; your profile is visible to signed-in users unless you make your account private; written reviews stay private unless you choose to show them. Google sign-in only shares your email, name and account ID. Data is stored with Supabase and hosted on Netlify; no ads, no trackers, nothing is sold. You can export your data or delete your account at any time from Settings → Account.

+

AzuuCine is a free, ad-free personal watch journal. It stores your email (and your name if you sign in with Google), your library, ratings, reviews and profile. Your email is never shown to other users; your profile (including ratings and written reviews) is visible to signed-in users unless you make your account private; personal lists and settings stay private. Google sign-in only shares your email, name and account ID. Data is stored with Supabase and hosted on Netlify; no ads, no trackers, nothing is sold. You can export your data or delete your account at any time from Settings → Account.

← Retour à AzuuCine

diff --git a/src/components/CalendarView.tsx b/src/components/CalendarView.tsx index 07de2d1..4c47c8b 100644 --- a/src/components/CalendarView.tsx +++ b/src/components/CalendarView.tsx @@ -7,6 +7,7 @@ import { cachedMonth, isBrowsableMonth, loadMonth, RELEASE_CATEGORIES } from '.. import { remotePosterToLocal } from '../lib/image' import { calendarEvents, loadReleases, refreshReleases } from '../lib/releases' import { readStorage } from '../lib/security' +import { useScrollLock } from '../lib/scrollLock' import { cx, normalizeText, todayISO } from '../lib/utils' import { useMedia } from '../store' import type { MediaInput, MediaItem, MediaType } from '../types' @@ -107,13 +108,7 @@ export default function CalendarView({ onClose, onOpen }: { onClose: () => void; const [added, setAdded] = useState>(new Set()) const request = useRef(0) - useEffect(() => { - const prev = document.body.style.overflow - document.body.style.overflow = 'hidden' - return () => { - document.body.style.overflow = prev - } - }, []) + useScrollLock() useEffect(() => { try { diff --git a/src/components/MediaForm.tsx b/src/components/MediaForm.tsx index 20183d7..6175397 100644 --- a/src/components/MediaForm.tsx +++ b/src/components/MediaForm.tsx @@ -6,6 +6,7 @@ import { canonicalGenre, canonicalSubtype, genreLabel, genreSuggestions as defau import { fileToPosterDataURL } from '../lib/image' import { getTmdbCredits } from '../lib/catalogApi' import { renderItemCard, slug } from '../lib/shareCard' +import { useScrollLock } from '../lib/scrollLock' import { cx, formatRating, todayISO } from '../lib/utils' import { useMedia } from '../store' import type { MediaInput, MediaItem, RatingScale, WatchStatus } from '../types' @@ -127,7 +128,7 @@ function Rewatches({ dates, onChange }: { dates: string[]; onChange: (d: string[ } export default function MediaForm({ item, onClose, onGoToSettings }: Props) { - const { add, update, remove, items, settings, lists, account } = useMedia() + const { add, update, remove, items, settings, lists } = useMedia() const [form, setForm] = useState(() => { if (!item) return EMPTY const { id: _id, createdAt: _c, updatedAt: _u, ...rest } = item @@ -142,13 +143,7 @@ export default function MediaForm({ item, onClose, onGoToSettings }: Props) { const typeInfo = TYPE_BY_VALUE[form.type] // Bloque le défilement de la page derrière la feuille - useEffect(() => { - const prev = document.body.style.overflow - document.body.style.overflow = 'hidden' - return () => { - document.body.style.overflow = prev - } - }, []) + useScrollLock() const set = (key: K, value: MediaInput[K]) => setForm((f) => ({ ...f, [key]: value })) @@ -179,6 +174,11 @@ export default function MediaForm({ item, onClose, onGoToSettings }: Props) { const setStatus = (status: WatchStatus) => setForm((f) => { const next = { ...f, status } + // « À voir » : pas encore regardé, donc pas de dates + if (status === 'a_voir') { + next.startDate = undefined + next.endDate = undefined + } if (status === 'en_cours' && !f.startDate) next.startDate = todayISO() if (status === 'termine') { if (!f.endDate) next.endDate = todayISO() @@ -511,15 +511,6 @@ export default function MediaForm({ item, onClose, onGoToSettings }: Props) {