Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

Hook registration missing createSchema — all create fields render as plain text inputs, no object dropdown #2324

Closed

Description

@akarma-synetal

Summary

When creating a new Hook, ALL fields (label, name, object, description) render as plain text inputs. The Object field should be a <Select> dropdown of existing objects.

Root cause

In packages/app-shell/src/views/metadata-admin/anchors.ts, lines 90-103, Hook defines createFields: ['label', 'name', 'object', 'description'] but provides no createSchema at all. Without a schema, SchemaForm has no property type information — every field renders as plain text. The object field never receives widget: 'ref:object'.

Compare with Page (lines 110-187) and Validation (lines 288-326) — they both provide createSchema with proper widget: 'ref:object'.

Steps to reproduce

  1. Navigate to Metadata → Hook → Create new
  2. All fields are plain text inputs with no type-aware rendering
  3. Compare with Page → Create new — fields are properly typed, Object is a dropdown

Expected behavior

Proper typed fields with Object as a <Select> dropdown.

Fix

Add a createSchema with widget: 'ref:object' on the object property.

Impact

Typo-prone, bad UX, inconsistent with Page/View/Validation.

Activity

  1. self-assigned this
    on Jul 15, 2026
  2. added a commit that references this issue on Jul 17, 2026
    f0eb9be
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions