Skip to content

feat(erd): enum values on enum columns, a domain's base type (#1280) - #1292

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1280-erd-enum-values
Oct 10, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1280-erd-enum-values

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

Part of the ERD epic (#1286). An enum column showed only the type name; its values are what the reader needs.

  • PostgreSQL: the catalog query lists an enum type's labels from pg_enum, in their order, also when a domain wraps the enum, and a domain's base type (format_type(typbasetype)).
  • MySQL: labels read from the column type enum('a','b'), with '' unescaped.
  • Card: an EN marker on enum columns; the row tooltip lists the values (12 at most, then +N more), and a domain says Domain over integer.
  • MCP: describe_table reports enum_values.

Checked on the live types_showcase database through MCP: user_role_enum → admin, editor, viewer, guest, order_status_enum → six labels in order, positive_int → integer, valid_email → text.

Tests: PG labels and order, MySQL parsing with quotes and commas, domains, plain columns untouched, the PG query asks pg_enum and the domain base.

Closes #1280

Test plan

  • CI: all test sections pass (no local runs, per team rule)

PostgreSQL: the catalog query lists an enum type's labels from pg_enum in
their order (also when a domain wraps the enum) and a domain's base type.
MySQL: the labels are read from the column type enum('a','b'), quotes
unescaped. An enum column gets an EN marker; its row tooltip lists the values
(at most 12, then '+N more') and a domain says 'Domain over <base>'. MCP
describe_table reports enum_values.

Checked on the live types_showcase database through MCP: user_role_enum and
order_status_enum list their labels, positive_int and valid_email their base
types.
@github-actions github-actions Bot added enhancement New feature or request frontend Theme parser epic label: frontend core Core library logic and services P3 Low priority / Polish & Enhancements labels Oct 10, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 1c756e2 into dev Oct 10, 2026
15 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1280-erd-enum-values branch October 11, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core library logic and services enhancement New feature or request frontend Theme parser epic label: frontend P3 Low priority / Polish & Enhancements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant