Fix share links for already-saved private timetables

Đang mở
#257 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
58/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
backend, frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
7
Fork
39
Merge trung bình
10 giờ 59 phút
Pull request đã merge (30 ngày)
62

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CodeChefVIT/ffcs

Tất cả issue của CodeChefVIT/ffcs

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.