Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Import/Export] Find the first meeting occurrence

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

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
83/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
backend

Hướng nghiên cứu

Read the section types in src/lib/domain/section.ts and the getting-started setup guide, then create src/lib/ics/meeting.ts and meeting.test.ts. Use the listed acceptance checks with pnpm test: verify DTSTART, BYDAY and UNTIL, escaped LOCATION text, null for a TBA meeting, and folded summary lines. Coordinate the date formatting with issue #788's helper when it merges.

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

Mô tả

import-export

What to build

Find the first date on which a class actually meets. Use its active start/end dates and weekdays so the exported calendar does not begin on a day with no class.

Files

Steps

  1. Return null for null range or empty weekday list.
  2. Parse range.start as UTC midnight and walk at most7 calendar dates using getUTCDay/setUTCDate. Stop after range.end.
  3. Map Sunday0..Saturday6 explicitly to domain weekday strings and return the first matching ISO date.

Example

Range 2026-08-12..2026-08-14 with MWF → 2026-08-12; range ending before any requested weekday → null.

Check it works

In src/lib/ics/meeting.test.ts, check the example above and the failure or limit described in the steps. Run pnpm test -- src/lib/ics/meeting.test.ts, pnpm lint and pnpm typecheck.

Before starting

  • #831 — Convert New York wall time to UTC
  • #832 — Fold UTF-8 iCalendar lines

References

Assign yourself before starting, or comment to claim the issue. Project setup.

Ngôn ngữ chính
TypeScript
Star
19
Fork
94
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 DevDogsUGA/DogDays

Tất cả issue của DevDogsUGA/DogDays

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.