Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Import/Export] Resolve saved-plan sections for calendar export

オープン 初心者向け
#850 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
70/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
data

調査の方向性

まず src/components/saved-plans/SavedPlan.tsx を開き、保存済みプランがどのように読み込まれるかを確認してください。次に src/lib/localStorage/types.ts の SavedPlan のフィールドと、src/lib/domain/section.ts の Section の形を確認します。src/lib/ics/resolvePlan.ts を作成し、その中に resolveCalendarSections を実装してください。この関数は既存の loadSections を呼び出し、プランの CRN で絞り込みます。例(3 つのセクション、2 つの CRN で 2 件一致)と、courseIds が空の場合のケースが src/lib/ics/resolvePlan.test.ts で通れば完了です。

索引モデルが issue の本文から書いたものです。

説明

import-export

What to build

Load the class sections belonging to a saved plan before building its calendar. Match the plan’s registration numbers to the loaded sections and fail clearly if the required data is unavailable.

Files

Steps

  1. Call existing loadSections(client,plan.academicPeriod,{courseIds:plan.courseIds}); filter returned Sections by a Set of plan.crns.
  2. Do not use getPlanOfferings, which returns display WeekSchedule rather than Section[].
  3. Empty courseIds need a readable unresolved-plan result; do not silently invent sections.

Example

Returned3sections, saved2CRNs → 2matched Sections; no new CRN endpoint is needed for saved plans that already store courseIds.

Check it works

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

Before starting

  • #837 — Generate stable calendar event IDs

References

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

主要言語
TypeScript
スター
19
フォーク
94
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DevDogsUGA/DogDays のほかの issue

DevDogsUGA/DogDays の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。