DateTimeRangeInput: let the consumer format how each end is shown

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

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
65/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
frontend

調査の方向性

dateTimeRange.ts、特に formatValue を読み、現在それぞれの端点がどのように表示されるか、コンポーネントがどのように props を受け取るかを確認します。DateTimeRangeInput の実装と使用箇所を確認し、利用側にとって最もシンプルな表示形式の設定方法を特定します。利用側が表示形式を選択でき、保存される値は YYYY-MM-DDTHH:MM のままであれば完了です。

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

説明

Problem

DateTimeRangeInput always shows its ends as YYYY-MM-DD HH:mm (formatValue in dateTimeRange.ts), and a consumer cannot change it. Backend.AI WebUI writes the same window elsewhere on the same card (a reset button's tooltip, an edit-mode caption) in the locale's date and time, dayjs's lll ("Oct 29, 2026 9:30 AM"), so the picker and the text a few pixels away show one window in two formats.

Expected

A way to set how the trigger shows each end, for example a formatValue?: (value: ISODateTimeString, showTime: boolean) => string prop, or locale-aware display through the InternationalizationProvider's locale. The value stays YYYY-MM-DDTHH:MM; only the display changes.

Context

lablup/backend.ai-webui#10915 adopts DateTimeRangeInput (#140, #145) for dashboard card periods and moved its own labels to lll.

主要言語
TypeScript
スター
2
フォーク
0
平均マージ
21時間 38分
マージ済み PR(30日)
38

環境構築

はじめの一歩

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

lablup/ui-common のほかの issue

lablup/ui-common の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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