Fix share links for already-saved private timetables

Aperta
#257 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend, frontend

Direzione di ricerca

Start in src/components/cards/ViewTimeTable.tsx at handleShare() and trace how it reads saved timetable data and reuses a share ID. Check how the backend updates timetable visibility and how stale or deleted local storage entries are handled. Done means private timetables can be shared after the owner enables sharing, and the copied link opens in a logged-out browser.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

Sharing an already-saved timetable can produce a link that opens the access-denied page.

handleShare() in ViewTimeTable.tsx reuses the share ID from local storage when it finds a matching timetable, but doesn't check whether that timetable is public.

What needs to be done

  • Check the current saved timetable and its visibility before reusing the link.
  • If it's private, let the owner enable sharing through the backend before copying the link.
  • Handle stale or deleted entries in local storage too.
  • Make sure a copied link actually opens in a logged-out browser.

File: src/components/cards/ViewTimeTable.tsx.

Lingua principale
TypeScript
Stelle
7
Fork
39
Merge medio
10h 59m
PR unite (30g)
62

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CodeChefVIT/ffcs

Tutte le issue di CodeChefVIT/ffcs

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.