Fix share links for already-saved private timetables

Offen
#257 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
58/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
backend, frontend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
7
Forks
39
Ø Merge
10 Std. 59 Min.
Gemergte PRs (30 T.)
62

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus CodeChefVIT/ffcs

Alle Issues in CodeChefVIT/ffcs

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.