Skip to content

Destination tab: "Map" buttons on fields/block properties have no click handler #28

@deanleigh

Description

@deanleigh

Clicking Map on any field or block property in the Destination → Page Content view does nothing.

Buttons are rendered at:

  • src/UpDoc/wwwroot/App_Plugins/UpDoc/src/up-doc-workflow-destination-view.element.ts:404 (field-level)
  • src/UpDoc/wwwroot/App_Plugins/UpDoc/src/up-doc-workflow-destination-view.element.ts:493 (block-property-level)

Both are plain <uui-button ... label="Map"> with no @click handler, and no #onMap… method exists on the element.

The Source tab has the mirror-image working flow at up-doc-workflow-source-view.element.ts:947 (#onMapSection): it opens UMB_DESTINATION_PICKER_MODAL, builds a SectionMapping, and calls saveMapConfig.

What's needed

Wire the Destination-side Map buttons to the reverse flow: click Map on a destination field → open a source picker modal → pick source section.part(s) → write SectionMapping entries via saveMapConfig.

No source-picker-modal exists yet (only destination-picker-modal), so this is net-new: a new modal element + token, plus #onMapField / #onMapBlockProperty handlers in the destination view.

Relates to the bidirectional three-tab mapping model (destination-driven mapping, Phases 2-5).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions