DataView: support custom key labels (keyLabel callback)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 56/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- typescript
- 領域
- frontend
調査の方向性
The issue identifies ReqoreDataView, its renderTree key chip, and IReqoreDataViewProps as the relevant implementation and API. Read those definitions first and check how onItemClick constructs root-relative paths; then add and test the optional label resolver with its raw-key fallback. Done when custom labels work for nested keys and existing behavior is unchanged when the callback is absent or returns undefined.
索引モデルが issue の本文から書いたものです。
説明
Context
ReqoreDataView renders each record key as a chip with the raw key string — in renderTree, the key tag is rendered with label: key and there is no hook to override it (checked 0.69.2: nothing in IReqoreDataViewProps or the implementation).
Consumers that render schema-described data often have friendly labels for those keys. Concretely: in qorus-ide / reqraft, a form field's arg_schema declares a display_name per key, so a hash rendered with ReqoreDataView shows schemaOption2 where the rest of the form shows "Schema option with arg_schema".
Suggestion
A per-key label resolver, analogous to how parseDate/parseEmbedded already externalise consumer-specific knowledge:
/** Resolve a display label for a record key. Return undefined to keep the raw key. */
keyLabel?: (key: string, path: string[]) => string | undefined;
pathis the same root-relative path already passed toonItemClick, so nested keys can resolve against nested schemas.- Falls back to the raw key when the callback returns
undefined— fully backwards compatible. - Possibly worth showing the raw key in the chip tooltip when a label overrides it, so the underlying data key stays discoverable.
🤖 Generated with Claude Code
- 主要言語
- TypeScript
- スター
- 4
- フォーク
- 0
- 平均マージ
- 16時間 28分
- マージ済み PR(30日)
- 9
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
qoretechnologies/reqore のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
qoretechnologies/reqore#725 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
qoretechnologies/reqore#711 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
qoretechnologies/reqore#675 ·
メンテナーはふだん 1 日以内に返信
-
Checkbox: a long description pushes the control out of its container — the label column cannot shrink対応中かも @Foxhoundn が 49 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
qoretechnologies/reqore#662 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 64/100
qoretechnologies/reqore#745 ·
メンテナーはふだん 1 日以内に返信
qoretechnologies/reqore の issue をすべて見る
似ている issue
-
documentation Entwickler
難易度 1/5 1時間未満 初心者へのやさしさ 89/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
area:frontend bug ci-test level:low priority:high
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
skytuhua-org/Gen-V1#2974 · コメント 4 件 ·
メンテナーはふだん 2 日以内に返信
-
area: cli area: core priority: P3 type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
appandflow/stim#6736 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
naomiaro/waveform-playlist#973 ·
メンテナーはふだん 1 日以内に返信