Skip to content

Show the referenced columns, or an error, when FK column load fails #810

Closed

Description

@EVWorth

Severity: P2

What happens

  1. Open ?mock=connected. Wrap window.__TAURI_INTERNALS__.invoke so that get_columns rejects for table products.
  2. Right-click shop > Tables > order_items, pick Design Table, and open the Foreign Keys tab.
  3. The fk_order_items_order card shows the reference-column chips for orders, with id selected.
  4. The fk_order_items_product card shows Reference Table "products" with no chips below it and no error.

The column the key points to cannot be seen or changed, and the type-mismatch warning silently stops working.

Cause

  • src/components/designer/TableDesigner.tsx:182-184: loadRefTableColumns swallows the error (catch { // ignore }).
  • :1000 renders chips only when the columns loaded, so the FK's own referenceColumns are not shown either.

Fix

  • Record the failure per table and show "Couldn't load columns of products: " with Retry.
  • Always render the FK's current referenceColumns as selected chips, even without the full column list.

Part of #783.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 23, 2026
    a8c3741
  3. added a commit that references this issue on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions