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

Separate HTTP request and HTML building portions of getEventHTML(), and refactor previewEvent() to use that instead

オープン
#660 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 7 日以内に返信

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript
領域
frontend, web-dev

調査の方向性

JavaScriptコード内の getEventHTML() と previewEvent() を見つけ、それらのリクエスト、イベントデータの処理、HTML構築の経路を比較します。共有されているイベント表現ロジックをHTTPリクエストから分離し、そのうえで、通常のイベントのレンダリングとローカルフォームのプレビューが、データ処理を重複させずにそれを使用していることを確認します。

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

説明

frontend

getEventHTML() currently makes an API request and modifies some values before sending it over to build the HTML. (e.g. sets the Audience label) When adding/editing an event and using the Preview function, there hasn't been a server request yet so previewEvent() has to duplicate some of the logic from getEventHTML().

Refector getEventHTML() to separate the actual request and the event data handling logic. It should be able to generate the representation of an event from an event object regardless of whether it came from an HTTP request or from local form data. Then, update previewEvent() to only make the modifications that are unique to its use case (e.g. showing print fields), but otherwise just use the same data-handling logic as the regular path.

主要言語
JavaScript
スター
30
フォーク
26
平均マージ
6日 23時間
マージ済み PR(30日)
3

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

shift-org/shift-docs のほかの issue

shift-org/shift-docs の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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