Collapsable field groups?

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
静か
技術スタック
javascript
領域
databases

調査の方向性

この issue では、ファイル、テスト、エントリーポイントが特定されていません。まず、意図したスコープが UI の列選択、DBML parser における折りたたみ可能なセマンティックセクション、またはその両方のいずれなのかを明確にしてください。done は、大きなテーブルに対する合意済みのインタラクションおよびレンダリングの動作として定義する必要があります。

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

説明

dbDiagram is excellent for understanding schema structure, but once a table gets large it becomes hard to stay oriented inside the table itself. In the diagram, some tables get so tall that the others are virtually invisible next to it. The issue is usually not relationship complexity — it is column count.

What I would love to see is the ability to temporarily reduce and organize the visible fields in a table without changing the schema. For example, maybe dbDiagram adds a menu choice under Detail level: such as “Select Columns” and then allow user to click/drag on the columns they want to see, hiding the rest. When the table is collapsed, maybe inspect full field detail in a side panel instead of forcing the table itself to become extremely tall?

Perhaps just adding a token (//+) to the DBML parser could enable large tables to be sectioned into semantic chunks that the visual tool might use to create expanding/collapsing sections inside the table. It would also help readers of the DBML understand a large table. It could look something like:

Table hr.user {
	id int [pk increment]
//+ Header display
	name_first varchar(30)
	name_last varchar(30)
	pronouns varchar(30)
//+ Employee fields
	title varchar(30)
	rank varchar(30)
	department varchar(30)
	date_started timestamp
	supervisor [ref: ?< hr.user.id not null]
//+ Permissions
	…
}

And then dbDiagram could render this as:

Image
主要言語
JavaScript
スター
3.7k
フォーク
233
平均マージ
2日 4時間
マージ済み PR(30日)
23

環境構築

はじめの一歩

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

holistics/dbml のほかの issue

holistics/dbml の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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