`PropertiesTable` row order appears different when 1 col vs 2

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript
領域
frontend

調査の方向性

PropertiesTable コンポーネントと、47–61 行目にある SledPage.tsx の例から始めてください。1 列と 2 列の場合のレンダリングされた順序を比較し、その後、更新が必要な既存の呼び出し箇所を確認してください。完了条件は、列レイアウトにかかわらずセルの順序が一貫しており、影響を受けるすべての呼び出し箇所が引き続き正しくレンダリングされることです。

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

説明

Noticed in https://github.com/oxidecomputer/console/pull/2838#pullrequestreview-2995337226.

It seems like the elimination of PropertiesTable.Group in #2723 means we have an ordering problem. We write the code to represent the cells left to right. We might be able to fix this by changing the component so it goes by column instead of by row. We'd have to update all the existing call sites.

https://github.com/oxidecomputer/console/blob/3da27b7e41d489f748c1085ffead568ee04594eb/app/pages/system/inventory/sled/SledPage.tsx#L47-L61

Two columns
Image
One column
image
主要言語
TypeScript
スター
231
フォーク
26
平均マージ
1日 13時間
マージ済み PR(30日)
20

環境構築

はじめの一歩

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

oxidecomputer/console のほかの issue

oxidecomputer/console の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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